@superoffice/webapi 10.3.3 → 10.3.5

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 (357) hide show
  1. package/dist/cjs/AIAgent.d.ts +97 -15
  2. package/dist/cjs/AIAgent.d.ts.map +1 -1
  3. package/dist/cjs/AIAgent.js +181 -10
  4. package/dist/cjs/AIAgent.js.map +1 -1
  5. package/dist/cjs/AppointmentAgent.d.ts +136 -2
  6. package/dist/cjs/AppointmentAgent.d.ts.map +1 -1
  7. package/dist/cjs/AppointmentAgent.js +157 -10
  8. package/dist/cjs/AppointmentAgent.js.map +1 -1
  9. package/dist/cjs/AppointmentRestApi.d.ts +34 -0
  10. package/dist/cjs/AppointmentRestApi.d.ts.map +1 -1
  11. package/dist/cjs/AppointmentRestApi.js +5 -5
  12. package/dist/cjs/AssociateAgent.d.ts +12 -0
  13. package/dist/cjs/AssociateAgent.d.ts.map +1 -1
  14. package/dist/cjs/AssociateAgent.js +2 -2
  15. package/dist/cjs/AudienceAgent.d.ts +17 -0
  16. package/dist/cjs/AudienceAgent.d.ts.map +1 -1
  17. package/dist/cjs/AudienceAgent.js +3 -3
  18. package/dist/cjs/BLOBAgent.d.ts +17 -0
  19. package/dist/cjs/BLOBAgent.d.ts.map +1 -1
  20. package/dist/cjs/BLOBAgent.js +3 -3
  21. package/dist/cjs/CRMScriptAgent.d.ts +34 -0
  22. package/dist/cjs/CRMScriptAgent.d.ts.map +1 -1
  23. package/dist/cjs/CRMScriptAgent.js +6 -6
  24. package/dist/cjs/Carriers.d.ts +680 -48
  25. package/dist/cjs/Carriers.d.ts.map +1 -1
  26. package/dist/cjs/ChatAgent.d.ts +34 -0
  27. package/dist/cjs/ChatAgent.d.ts.map +1 -1
  28. package/dist/cjs/ChatAgent.js +6 -6
  29. package/dist/cjs/ConfigurationAgent.d.ts +70 -0
  30. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
  31. package/dist/cjs/ConfigurationAgent.js +35 -11
  32. package/dist/cjs/ConfigurationAgent.js.map +1 -1
  33. package/dist/cjs/ContactAgent.d.ts +44 -0
  34. package/dist/cjs/ContactAgent.d.ts.map +1 -1
  35. package/dist/cjs/ContactAgent.js +38 -5
  36. package/dist/cjs/ContactAgent.js.map +1 -1
  37. package/dist/cjs/ContactRestApi.d.ts +34 -0
  38. package/dist/cjs/ContactRestApi.d.ts.map +1 -1
  39. package/dist/cjs/ContactRestApi.js +5 -5
  40. package/dist/cjs/ContactRestApi.js.map +1 -1
  41. package/dist/cjs/Converters.d.ts +40 -6
  42. package/dist/cjs/Converters.d.ts.map +1 -1
  43. package/dist/cjs/Converters.js +519 -55
  44. package/dist/cjs/Converters.js.map +1 -1
  45. package/dist/cjs/CustomerServiceAgent.d.ts +35 -0
  46. package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
  47. package/dist/cjs/CustomerServiceAgent.js +6 -6
  48. package/dist/cjs/DashAgent.d.ts +68 -0
  49. package/dist/cjs/DashAgent.d.ts.map +1 -1
  50. package/dist/cjs/DashAgent.js +12 -12
  51. package/dist/cjs/DashboardAgent.d.ts +34 -0
  52. package/dist/cjs/DashboardAgent.d.ts.map +1 -1
  53. package/dist/cjs/DashboardAgent.js +6 -6
  54. package/dist/cjs/DiagnosticsAgent.d.ts +7 -0
  55. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
  56. package/dist/cjs/DiagnosticsAgent.js +24 -0
  57. package/dist/cjs/DiagnosticsAgent.js.map +1 -1
  58. package/dist/cjs/DocumentAgent.d.ts +41 -0
  59. package/dist/cjs/DocumentAgent.d.ts.map +1 -1
  60. package/dist/cjs/DocumentAgent.js +7 -7
  61. package/dist/cjs/DocumentRestApi.d.ts +34 -0
  62. package/dist/cjs/DocumentRestApi.d.ts.map +1 -1
  63. package/dist/cjs/DocumentRestApi.js +5 -5
  64. package/dist/cjs/EMailAgent.d.ts +23 -0
  65. package/dist/cjs/EMailAgent.d.ts.map +1 -1
  66. package/dist/cjs/EMailAgent.js +4 -4
  67. package/dist/cjs/Enums.d.ts +167 -14
  68. package/dist/cjs/Enums.d.ts.map +1 -1
  69. package/dist/cjs/Enums.js +173 -16
  70. package/dist/cjs/Enums.js.map +1 -1
  71. package/dist/cjs/ErpSyncAgent.d.ts +17 -0
  72. package/dist/cjs/ErpSyncAgent.d.ts.map +1 -1
  73. package/dist/cjs/ErpSyncAgent.js +3 -3
  74. package/dist/cjs/ForeignSystemAgent.d.ts +23 -0
  75. package/dist/cjs/ForeignSystemAgent.d.ts.map +1 -1
  76. package/dist/cjs/ForeignSystemAgent.js +4 -4
  77. package/dist/cjs/ListAgent.d.ts +716 -0
  78. package/dist/cjs/ListAgent.d.ts.map +1 -1
  79. package/dist/cjs/ListAgent.js +152 -118
  80. package/dist/cjs/ListAgent.js.map +1 -1
  81. package/dist/cjs/MarketingAgent.d.ts +68 -0
  82. package/dist/cjs/MarketingAgent.d.ts.map +1 -1
  83. package/dist/cjs/MarketingAgent.js +12 -12
  84. package/dist/cjs/NavigatorAgent.d.ts +12 -0
  85. package/dist/cjs/NavigatorAgent.d.ts.map +1 -1
  86. package/dist/cjs/NavigatorAgent.js +2 -2
  87. package/dist/cjs/NumberAllocationAgent.d.ts +17 -0
  88. package/dist/cjs/NumberAllocationAgent.d.ts.map +1 -1
  89. package/dist/cjs/NumberAllocationAgent.js +3 -3
  90. package/dist/cjs/PersonAgent.d.ts +67 -0
  91. package/dist/cjs/PersonAgent.d.ts.map +1 -1
  92. package/dist/cjs/PersonAgent.js +47 -8
  93. package/dist/cjs/PersonAgent.js.map +1 -1
  94. package/dist/cjs/PersonRestApi.d.ts +34 -0
  95. package/dist/cjs/PersonRestApi.d.ts.map +1 -1
  96. package/dist/cjs/PersonRestApi.js +5 -5
  97. package/dist/cjs/PreferenceAgent.d.ts +34 -0
  98. package/dist/cjs/PreferenceAgent.d.ts.map +1 -1
  99. package/dist/cjs/PreferenceAgent.js +6 -6
  100. package/dist/cjs/ProjectAgent.d.ts +75 -0
  101. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  102. package/dist/cjs/ProjectAgent.js +13 -13
  103. package/dist/cjs/ProjectRestApi.d.ts +34 -0
  104. package/dist/cjs/ProjectRestApi.d.ts.map +1 -1
  105. package/dist/cjs/ProjectRestApi.js +5 -5
  106. package/dist/cjs/QuoteAgent.d.ts +40 -0
  107. package/dist/cjs/QuoteAgent.d.ts.map +1 -1
  108. package/dist/cjs/QuoteAgent.js +7 -7
  109. package/dist/cjs/RelationAgent.d.ts +6 -0
  110. package/dist/cjs/RelationAgent.d.ts.map +1 -1
  111. package/dist/cjs/RelationAgent.js +1 -1
  112. package/dist/cjs/ReplicationAgent.d.ts +24 -0
  113. package/dist/cjs/ReplicationAgent.d.ts.map +1 -1
  114. package/dist/cjs/ReplicationAgent.js +4 -4
  115. package/dist/cjs/ReportAgent.d.ts +29 -0
  116. package/dist/cjs/ReportAgent.d.ts.map +1 -1
  117. package/dist/cjs/ReportAgent.js +5 -5
  118. package/dist/cjs/SaintAgent.d.ts +18 -0
  119. package/dist/cjs/SaintAgent.d.ts.map +1 -1
  120. package/dist/cjs/SaintAgent.js +3 -3
  121. package/dist/cjs/SaleAgent.d.ts +52 -0
  122. package/dist/cjs/SaleAgent.d.ts.map +1 -1
  123. package/dist/cjs/SaleAgent.js +9 -9
  124. package/dist/cjs/SaleRestApi.d.ts +34 -0
  125. package/dist/cjs/SaleRestApi.d.ts.map +1 -1
  126. package/dist/cjs/SaleRestApi.js +5 -5
  127. package/dist/cjs/SelectionAgent.d.ts +17 -0
  128. package/dist/cjs/SelectionAgent.d.ts.map +1 -1
  129. package/dist/cjs/SelectionAgent.js +3 -3
  130. package/dist/cjs/TargetsAgent.d.ts +34 -0
  131. package/dist/cjs/TargetsAgent.d.ts.map +1 -1
  132. package/dist/cjs/TargetsAgent.js +6 -6
  133. package/dist/cjs/TicketAgent.d.ts +86 -4
  134. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  135. package/dist/cjs/TicketAgent.js +78 -8
  136. package/dist/cjs/TicketAgent.js.map +1 -1
  137. package/dist/cjs/UserAgent.d.ts +88 -0
  138. package/dist/cjs/UserAgent.d.ts.map +1 -1
  139. package/dist/cjs/UserAgent.js +15 -15
  140. package/dist/cjs/UserDefinedFieldInfoAgent.d.ts +17 -0
  141. package/dist/cjs/UserDefinedFieldInfoAgent.d.ts.map +1 -1
  142. package/dist/cjs/UserDefinedFieldInfoAgent.js +3 -3
  143. package/dist/cjs/ViewStateAgent.d.ts +6 -0
  144. package/dist/cjs/ViewStateAgent.d.ts.map +1 -1
  145. package/dist/cjs/ViewStateAgent.js +1 -1
  146. package/dist/cjs/WebApi.d.ts +2 -2
  147. package/dist/cjs/WebApi.d.ts.map +1 -1
  148. package/dist/cjs/WebhookAgent.d.ts +17 -0
  149. package/dist/cjs/WebhookAgent.d.ts.map +1 -1
  150. package/dist/cjs/WebhookAgent.js +3 -3
  151. package/dist/cjs/WorkflowAgent.d.ts +79 -12
  152. package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
  153. package/dist/cjs/WorkflowAgent.js +62 -83
  154. package/dist/cjs/WorkflowAgent.js.map +1 -1
  155. package/dist/esm/AIAgent.d.ts +97 -15
  156. package/dist/esm/AIAgent.d.ts.map +1 -1
  157. package/dist/esm/AIAgent.js +181 -10
  158. package/dist/esm/AIAgent.js.map +1 -1
  159. package/dist/esm/AppointmentAgent.d.ts +136 -2
  160. package/dist/esm/AppointmentAgent.d.ts.map +1 -1
  161. package/dist/esm/AppointmentAgent.js +157 -10
  162. package/dist/esm/AppointmentAgent.js.map +1 -1
  163. package/dist/esm/AppointmentRestApi.d.ts +34 -0
  164. package/dist/esm/AppointmentRestApi.d.ts.map +1 -1
  165. package/dist/esm/AppointmentRestApi.js +5 -5
  166. package/dist/esm/AssociateAgent.d.ts +12 -0
  167. package/dist/esm/AssociateAgent.d.ts.map +1 -1
  168. package/dist/esm/AssociateAgent.js +2 -2
  169. package/dist/esm/AudienceAgent.d.ts +17 -0
  170. package/dist/esm/AudienceAgent.d.ts.map +1 -1
  171. package/dist/esm/AudienceAgent.js +3 -3
  172. package/dist/esm/BLOBAgent.d.ts +17 -0
  173. package/dist/esm/BLOBAgent.d.ts.map +1 -1
  174. package/dist/esm/BLOBAgent.js +3 -3
  175. package/dist/esm/CRMScriptAgent.d.ts +34 -0
  176. package/dist/esm/CRMScriptAgent.d.ts.map +1 -1
  177. package/dist/esm/CRMScriptAgent.js +6 -6
  178. package/dist/esm/Carriers.d.ts +680 -48
  179. package/dist/esm/Carriers.d.ts.map +1 -1
  180. package/dist/esm/ChatAgent.d.ts +34 -0
  181. package/dist/esm/ChatAgent.d.ts.map +1 -1
  182. package/dist/esm/ChatAgent.js +6 -6
  183. package/dist/esm/ConfigurationAgent.d.ts +70 -0
  184. package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
  185. package/dist/esm/ConfigurationAgent.js +35 -11
  186. package/dist/esm/ConfigurationAgent.js.map +1 -1
  187. package/dist/esm/ContactAgent.d.ts +44 -0
  188. package/dist/esm/ContactAgent.d.ts.map +1 -1
  189. package/dist/esm/ContactAgent.js +38 -5
  190. package/dist/esm/ContactAgent.js.map +1 -1
  191. package/dist/esm/ContactRestApi.d.ts +34 -0
  192. package/dist/esm/ContactRestApi.d.ts.map +1 -1
  193. package/dist/esm/ContactRestApi.js +5 -5
  194. package/dist/esm/ContactRestApi.js.map +1 -1
  195. package/dist/esm/Converters.d.ts +40 -6
  196. package/dist/esm/Converters.d.ts.map +1 -1
  197. package/dist/esm/Converters.js +452 -22
  198. package/dist/esm/Converters.js.map +1 -1
  199. package/dist/esm/CustomerServiceAgent.d.ts +35 -0
  200. package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
  201. package/dist/esm/CustomerServiceAgent.js +6 -6
  202. package/dist/esm/DashAgent.d.ts +68 -0
  203. package/dist/esm/DashAgent.d.ts.map +1 -1
  204. package/dist/esm/DashAgent.js +12 -12
  205. package/dist/esm/DashboardAgent.d.ts +34 -0
  206. package/dist/esm/DashboardAgent.d.ts.map +1 -1
  207. package/dist/esm/DashboardAgent.js +6 -6
  208. package/dist/esm/DiagnosticsAgent.d.ts +7 -0
  209. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
  210. package/dist/esm/DiagnosticsAgent.js +24 -0
  211. package/dist/esm/DiagnosticsAgent.js.map +1 -1
  212. package/dist/esm/DocumentAgent.d.ts +41 -0
  213. package/dist/esm/DocumentAgent.d.ts.map +1 -1
  214. package/dist/esm/DocumentAgent.js +7 -7
  215. package/dist/esm/DocumentRestApi.d.ts +34 -0
  216. package/dist/esm/DocumentRestApi.d.ts.map +1 -1
  217. package/dist/esm/DocumentRestApi.js +5 -5
  218. package/dist/esm/EMailAgent.d.ts +23 -0
  219. package/dist/esm/EMailAgent.d.ts.map +1 -1
  220. package/dist/esm/EMailAgent.js +4 -4
  221. package/dist/esm/Enums.d.ts +167 -14
  222. package/dist/esm/Enums.d.ts.map +1 -1
  223. package/dist/esm/Enums.js +169 -12
  224. package/dist/esm/Enums.js.map +1 -1
  225. package/dist/esm/ErpSyncAgent.d.ts +17 -0
  226. package/dist/esm/ErpSyncAgent.d.ts.map +1 -1
  227. package/dist/esm/ErpSyncAgent.js +3 -3
  228. package/dist/esm/ForeignSystemAgent.d.ts +23 -0
  229. package/dist/esm/ForeignSystemAgent.d.ts.map +1 -1
  230. package/dist/esm/ForeignSystemAgent.js +4 -4
  231. package/dist/esm/ListAgent.d.ts +716 -0
  232. package/dist/esm/ListAgent.d.ts.map +1 -1
  233. package/dist/esm/ListAgent.js +152 -118
  234. package/dist/esm/ListAgent.js.map +1 -1
  235. package/dist/esm/MarketingAgent.d.ts +68 -0
  236. package/dist/esm/MarketingAgent.d.ts.map +1 -1
  237. package/dist/esm/MarketingAgent.js +12 -12
  238. package/dist/esm/NavigatorAgent.d.ts +12 -0
  239. package/dist/esm/NavigatorAgent.d.ts.map +1 -1
  240. package/dist/esm/NavigatorAgent.js +2 -2
  241. package/dist/esm/NumberAllocationAgent.d.ts +17 -0
  242. package/dist/esm/NumberAllocationAgent.d.ts.map +1 -1
  243. package/dist/esm/NumberAllocationAgent.js +3 -3
  244. package/dist/esm/PersonAgent.d.ts +67 -0
  245. package/dist/esm/PersonAgent.d.ts.map +1 -1
  246. package/dist/esm/PersonAgent.js +47 -8
  247. package/dist/esm/PersonAgent.js.map +1 -1
  248. package/dist/esm/PersonRestApi.d.ts +34 -0
  249. package/dist/esm/PersonRestApi.d.ts.map +1 -1
  250. package/dist/esm/PersonRestApi.js +5 -5
  251. package/dist/esm/PreferenceAgent.d.ts +34 -0
  252. package/dist/esm/PreferenceAgent.d.ts.map +1 -1
  253. package/dist/esm/PreferenceAgent.js +6 -6
  254. package/dist/esm/ProjectAgent.d.ts +75 -0
  255. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  256. package/dist/esm/ProjectAgent.js +13 -13
  257. package/dist/esm/ProjectRestApi.d.ts +34 -0
  258. package/dist/esm/ProjectRestApi.d.ts.map +1 -1
  259. package/dist/esm/ProjectRestApi.js +5 -5
  260. package/dist/esm/QuoteAgent.d.ts +40 -0
  261. package/dist/esm/QuoteAgent.d.ts.map +1 -1
  262. package/dist/esm/QuoteAgent.js +7 -7
  263. package/dist/esm/RelationAgent.d.ts +6 -0
  264. package/dist/esm/RelationAgent.d.ts.map +1 -1
  265. package/dist/esm/RelationAgent.js +1 -1
  266. package/dist/esm/ReplicationAgent.d.ts +24 -0
  267. package/dist/esm/ReplicationAgent.d.ts.map +1 -1
  268. package/dist/esm/ReplicationAgent.js +4 -4
  269. package/dist/esm/ReportAgent.d.ts +29 -0
  270. package/dist/esm/ReportAgent.d.ts.map +1 -1
  271. package/dist/esm/ReportAgent.js +5 -5
  272. package/dist/esm/SaintAgent.d.ts +18 -0
  273. package/dist/esm/SaintAgent.d.ts.map +1 -1
  274. package/dist/esm/SaintAgent.js +3 -3
  275. package/dist/esm/SaleAgent.d.ts +52 -0
  276. package/dist/esm/SaleAgent.d.ts.map +1 -1
  277. package/dist/esm/SaleAgent.js +9 -9
  278. package/dist/esm/SaleRestApi.d.ts +34 -0
  279. package/dist/esm/SaleRestApi.d.ts.map +1 -1
  280. package/dist/esm/SaleRestApi.js +5 -5
  281. package/dist/esm/SelectionAgent.d.ts +17 -0
  282. package/dist/esm/SelectionAgent.d.ts.map +1 -1
  283. package/dist/esm/SelectionAgent.js +3 -3
  284. package/dist/esm/TargetsAgent.d.ts +34 -0
  285. package/dist/esm/TargetsAgent.d.ts.map +1 -1
  286. package/dist/esm/TargetsAgent.js +6 -6
  287. package/dist/esm/TicketAgent.d.ts +86 -4
  288. package/dist/esm/TicketAgent.d.ts.map +1 -1
  289. package/dist/esm/TicketAgent.js +78 -8
  290. package/dist/esm/TicketAgent.js.map +1 -1
  291. package/dist/esm/UserAgent.d.ts +88 -0
  292. package/dist/esm/UserAgent.d.ts.map +1 -1
  293. package/dist/esm/UserAgent.js +15 -15
  294. package/dist/esm/UserDefinedFieldInfoAgent.d.ts +17 -0
  295. package/dist/esm/UserDefinedFieldInfoAgent.d.ts.map +1 -1
  296. package/dist/esm/UserDefinedFieldInfoAgent.js +3 -3
  297. package/dist/esm/ViewStateAgent.d.ts +6 -0
  298. package/dist/esm/ViewStateAgent.d.ts.map +1 -1
  299. package/dist/esm/ViewStateAgent.js +1 -1
  300. package/dist/esm/WebApi.d.ts +2 -2
  301. package/dist/esm/WebApi.d.ts.map +1 -1
  302. package/dist/esm/WebhookAgent.d.ts +17 -0
  303. package/dist/esm/WebhookAgent.d.ts.map +1 -1
  304. package/dist/esm/WebhookAgent.js +3 -3
  305. package/dist/esm/WorkflowAgent.d.ts +79 -12
  306. package/dist/esm/WorkflowAgent.d.ts.map +1 -1
  307. package/dist/esm/WorkflowAgent.js +62 -83
  308. package/dist/esm/WorkflowAgent.js.map +1 -1
  309. package/package.json +3 -3
  310. package/src/AIAgent.ts +317 -25
  311. package/src/AppointmentAgent.ts +266 -12
  312. package/src/AppointmentRestApi.ts +5 -5
  313. package/src/AssociateAgent.ts +2 -2
  314. package/src/AudienceAgent.ts +3 -3
  315. package/src/BLOBAgent.ts +3 -3
  316. package/src/CRMScriptAgent.ts +6 -6
  317. package/src/Carriers.ts +925 -54
  318. package/src/ChatAgent.ts +6 -6
  319. package/src/ConfigurationAgent.ts +41 -11
  320. package/src/ContactAgent.ts +61 -5
  321. package/src/ContactRestApi.ts +7 -5
  322. package/src/Converters.ts +557 -29
  323. package/src/CustomerServiceAgent.ts +6 -6
  324. package/src/DashAgent.ts +12 -12
  325. package/src/DashboardAgent.ts +6 -6
  326. package/src/DiagnosticsAgent.ts +30 -0
  327. package/src/DocumentAgent.ts +7 -7
  328. package/src/DocumentRestApi.ts +5 -5
  329. package/src/EMailAgent.ts +4 -4
  330. package/src/Enums.ts +173 -12
  331. package/src/ErpSyncAgent.ts +3 -3
  332. package/src/ForeignSystemAgent.ts +4 -4
  333. package/src/ListAgent.ts +176 -118
  334. package/src/MarketingAgent.ts +12 -12
  335. package/src/NavigatorAgent.ts +2 -2
  336. package/src/NumberAllocationAgent.ts +3 -3
  337. package/src/PersonAgent.ts +76 -8
  338. package/src/PersonRestApi.ts +5 -5
  339. package/src/PreferenceAgent.ts +6 -6
  340. package/src/ProjectAgent.ts +13 -13
  341. package/src/ProjectRestApi.ts +5 -5
  342. package/src/QuoteAgent.ts +7 -7
  343. package/src/RelationAgent.ts +1 -1
  344. package/src/ReplicationAgent.ts +4 -4
  345. package/src/ReportAgent.ts +5 -5
  346. package/src/SaintAgent.ts +3 -3
  347. package/src/SaleAgent.ts +9 -9
  348. package/src/SaleRestApi.ts +5 -5
  349. package/src/SelectionAgent.ts +3 -3
  350. package/src/TargetsAgent.ts +6 -6
  351. package/src/TicketAgent.ts +132 -12
  352. package/src/UserAgent.ts +15 -15
  353. package/src/UserDefinedFieldInfoAgent.ts +3 -3
  354. package/src/ViewStateAgent.ts +1 -1
  355. package/src/WebApi.ts +2 -2
  356. package/src/WebhookAgent.ts +3 -3
  357. package/src/WorkflowAgent.ts +107 -89
@@ -124,6 +124,10 @@ export interface IAppointmentAgent {
124
124
  acceptWithSmtpEmailConfirmationAsync(appointmentId: number, updateMode: enums.RecurrenceUpdateMode, smtpEMailConnectionInfo: carriers.EMailConnectionInfo, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
125
125
  rejectWithSmtpEmailConfirmationAsync(request: carriers.Appointment_RejectWithSmtpEmailConfirmationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
126
126
  rejectWithSmtpEmailConfirmationAsync(appointmentId: number, rejectReason: string, updateMode: enums.RecurrenceUpdateMode, smtpEMailConnectionInfo: carriers.EMailConnectionInfo, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
127
+ getAppointmentEmailInvitationAsync(request: carriers.Appointment_GetAppointmentEmailInvitationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity >;
128
+ getAppointmentEmailInvitationAsync(appointment: carriers.AppointmentEntity, templateName: string, language: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity >;
129
+ saveWithCustomInvitationAsync(request: carriers.Appointment_SaveWithCustomInvitationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentSaveData >;
130
+ saveWithCustomInvitationAsync(appointmentEntity: carriers.AppointmentEntity, updateMode: enums.RecurrenceUpdateMode, sendEmailToParticipants: boolean, smtpEMailConnectionInfo: carriers.EMailConnectionInfo, imapEMailConnectionInfo: carriers.EMailConnectionInfo, emailBody: string, subject: string, templateLanguage: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentSaveData >;
127
131
  getAppointmentListAsync(appointmentIds: number[]) : Promise< carriers.Appointment[] >;
128
132
  getMyAppointmentsAsync(request: carriers.Appointment_GetMyAppointmentsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Appointment[] >;
129
133
  getMyAppointmentsAsync(startTime: Date, endTime: Date, count: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Appointment[] >;
@@ -192,6 +196,8 @@ export interface IAppointmentAgent {
192
196
  updateAppointmentAsync(id: number, startTime: Date, endTime: Date, status: number, type: number, associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Appointment >;
193
197
  getAssociatesDiaryAsync(request: carriers.Appointment_GetAssociatesDiaryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Appointment[] >;
194
198
  getAssociatesDiaryAsync(associateIds: number[], startTime: Date, endTime: Date, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Appointment[] >;
199
+ getAssociatesDiaryInfoAsync(request: carriers.Appointment_GetAssociatesDiaryInfoRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentInfo[] >;
200
+ getAssociatesDiaryInfoAsync(associateIds: number[], startTime: Date, endTime: Date, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentInfo[] >;
195
201
  getAppointmentRecordsAsync(request: carriers.Appointment_GetAppointmentRecordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Appointment[] >;
196
202
  getAppointmentRecordsAsync(motherId: number, recurrenceRuleId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Appointment[] >;
197
203
  getMySyncAppointmentsAsync(request: carriers.Appointment_GetMySyncAppointmentsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentSyncData[] >;
@@ -204,6 +210,8 @@ export interface IAppointmentAgent {
204
210
  getRedLetterInformationListByDatesAndAssociateAsync(startDate: Date, endDate: Date, associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.RedLetterInformationListItem[] >;
205
211
  getAlarmsAsync(request: carriers.Appointment_GetAlarmsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MultiAlarmData >;
206
212
  getAlarmsAsync(includeInvitations: boolean, includeAllAppointments: boolean, defaultAlarmLeadTimeInMinutes: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MultiAlarmData >;
213
+ getNextAvailableTimeAsync(request: carriers.Appointment_GetNextAvailableTimeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.NextAvailableTime[] >;
214
+ getNextAvailableTimeAsync(associates: number[], startTime: Date, endTime: Date, count: number, isAllDay: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.NextAvailableTime[] >;
207
215
  generateLeadAsync(request: carriers.Appointment_GenerateLeadRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SalesActivity >;
208
216
  generateLeadAsync(associateIdForNewContact: number, leadDescription: string, relation: string, relationId: number, leadContact: string, leadPersonFirstname: string, leadPersonLastname: string, leadPersonEmail: string, leadPhoneNumber: string, creatorsContact: string, creatorsFirstname: string, creatorsLastname: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SalesActivity >;
209
217
  requestForInfoAsync(request: carriers.Appointment_RequestForInfoRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SalesActivity >;
@@ -264,7 +272,7 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
264
272
  }
265
273
  });
266
274
  }
267
- /*
275
+ /**
268
276
  * Replace the existing AppointmentEntity or creates a new AppointmentEntity if the id parameter is empty
269
277
  * @param entity - The AppointmentEntity to be saved.
270
278
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -287,7 +295,7 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
287
295
  });
288
296
  }
289
297
 
290
- /*
298
+ /**
291
299
  * Deletes the AppointmentEntity
292
300
  * @param AppointmentEntityId - The id of the AppointmentEntity to be deleted.
293
301
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -331,7 +339,7 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
331
339
  }
332
340
  });
333
341
  }
334
- /*
342
+ /**
335
343
  * Replace the existing SuggestedAppointmentEntity or creates a new SuggestedAppointmentEntity if the id parameter is empty
336
344
  * @param entity - The SuggestedAppointmentEntity to be saved.
337
345
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -376,7 +384,7 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
376
384
  }
377
385
  });
378
386
  }
379
- /*
387
+ /**
380
388
  * Replace the existing TaskListItem or creates a new TaskListItem if the id parameter is empty
381
389
  * @param entity - The TaskListItem to be saved.
382
390
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -398,7 +406,7 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
398
406
  }
399
407
  });
400
408
  }
401
- /*
409
+ /**
402
410
  * Gets a Appointment object.
403
411
  * @param appointmentId - The primary key.
404
412
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -693,7 +701,7 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
693
701
  return this._toggleAndSetActivitiesAsync( _request, _options );
694
702
  }
695
703
 
696
- /*
704
+ /**
697
705
  * Gets a AppointmentEntity object.
698
706
  * @param appointmentEntityId - The primary key.
699
707
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -2917,7 +2925,133 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
2917
2925
  return this._rejectWithSmtpEmailConfirmationAsync( _request, _options );
2918
2926
  }
2919
2927
 
2920
- /*
2928
+
2929
+ private async _getAppointmentEmailInvitationAsync(request: carriers.Appointment_GetAppointmentEmailInvitationRequest, options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity > {
2930
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
2931
+ base.WebApiBase.SetPending(options);
2932
+ return new Promise< carriers.EMailEntity >(async (resolve, reject) => {
2933
+ try {
2934
+ config.baseURL = this._options.baseUrl;
2935
+ const response = await this._axios.post("GetAppointmentEmailInvitation", request , config);
2936
+ base.WebApiBase.SetCompleted(options);
2937
+ const res : carriers.EMailEntity = converters.Create_EMailEntity_From( response.data );
2938
+ resolve(res);
2939
+ }
2940
+ catch( err ) {
2941
+ base.WebApiBase.HandleError(options, config, err);
2942
+ reject(err);
2943
+ }
2944
+ });
2945
+ }
2946
+
2947
+
2948
+
2949
+ /**
2950
+ * Create an EMailEntity (without an ical attachment) with the email sent to participants when the appointment is saved
2951
+ * @param request - Appointment, TemplateName, Language
2952
+ * @returns Email entity with the preview in HTMLBody
2953
+ */
2954
+ public async getAppointmentEmailInvitationAsync(request: carriers.Appointment_GetAppointmentEmailInvitationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity >;
2955
+
2956
+ /**
2957
+ * Create an EMailEntity (without an ical attachment) with the email sent to participants when the appointment is saved
2958
+ * @param appointment - The appointment carrier with changes made.
2959
+ * @param templateName - Filename of invitation template
2960
+ * @param language - The desired SO-language for the template
2961
+ * @returns Email entity with the preview in HTMLBody
2962
+ */
2963
+ public async getAppointmentEmailInvitationAsync(appointment: carriers.AppointmentEntity, templateName: string, language: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity >;
2964
+
2965
+ public async getAppointmentEmailInvitationAsync(appointment:carriers.AppointmentEntity|carriers.Appointment_GetAppointmentEmailInvitationRequest, templateName?:string|base.WebApiRequestOptions, language?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.EMailEntity > {
2966
+ let _request : carriers.Appointment_GetAppointmentEmailInvitationRequest = null;
2967
+ let _options : base.WebApiRequestOptions = null;
2968
+ const first : any = appointment;
2969
+ if( typeof( first ) === "object" && first && ( typeof(first.appointment)!='undefined' || typeof(first.templateName)!='undefined' || typeof(first.language)!='undefined' ) )
2970
+ {
2971
+ _request = appointment as carriers.Appointment_GetAppointmentEmailInvitationRequest;
2972
+ _options = templateName as base.WebApiRequestOptions;
2973
+ }
2974
+ else
2975
+ {
2976
+ _request = {
2977
+ appointment: appointment as carriers.AppointmentEntity,
2978
+ templateName: templateName as string,
2979
+ language: language as string,
2980
+ };
2981
+ _options = webapi_options;
2982
+ }
2983
+ return this._getAppointmentEmailInvitationAsync( _request, _options );
2984
+ }
2985
+
2986
+
2987
+ private async _saveWithCustomInvitationAsync(request: carriers.Appointment_SaveWithCustomInvitationRequest, options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentSaveData > {
2988
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
2989
+ base.WebApiBase.SetPending(options);
2990
+ return new Promise< carriers.AppointmentSaveData >(async (resolve, reject) => {
2991
+ try {
2992
+ config.baseURL = this._options.baseUrl;
2993
+ const response = await this._axios.post("SaveWithCustomInvitation", request , config);
2994
+ base.WebApiBase.SetCompleted(options);
2995
+ const res : carriers.AppointmentSaveData = converters.Create_AppointmentSaveData_From( response.data );
2996
+ resolve(res);
2997
+ }
2998
+ catch( err ) {
2999
+ base.WebApiBase.HandleError(options, config, err);
3000
+ reject(err);
3001
+ }
3002
+ });
3003
+ }
3004
+
3005
+
3006
+
3007
+ /**
3008
+ * Save a booking and send a custom invitation email to participants
3009
+ * @param request - AppointmentEntity, UpdateMode, SendEmailToParticipants, SmtpEMailConnectionInfo, ImapEMailConnectionInfo, EmailBody, Subject, TemplateLanguage
3010
+ * @returns Appointment entity and flag for if email was queued to be sent
3011
+ */
3012
+ public async saveWithCustomInvitationAsync(request: carriers.Appointment_SaveWithCustomInvitationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentSaveData >;
3013
+
3014
+ /**
3015
+ * Save a booking and send a custom invitation email to participants
3016
+ * @param appointmentEntity -
3017
+ * @param updateMode - Update mode for a recurring appointment.
3018
+ * @param sendEmailToParticipants - If true, emails will be sent to all participants that is marked with send email flag. If false no mails will be sent even if the send email flag is true.
3019
+ * @param smtpEMailConnectionInfo - Login information for outgoing smtp email server. Will be null if no login information is relevant.
3020
+ * @param imapEMailConnectionInfo - Login information for imap server. Will be null if no login information is relevant.
3021
+ * @param emailBody - The email-body to be used for new invitations
3022
+ * @param subject - The email-subject to be used for new invitations
3023
+ * @param templateLanguage - The template language to use for invitation updates
3024
+ * @returns Appointment entity and flag for if email was queued to be sent
3025
+ */
3026
+ public async saveWithCustomInvitationAsync(appointmentEntity: carriers.AppointmentEntity, updateMode: enums.RecurrenceUpdateMode, sendEmailToParticipants: boolean, smtpEMailConnectionInfo: carriers.EMailConnectionInfo, imapEMailConnectionInfo: carriers.EMailConnectionInfo, emailBody: string, subject: string, templateLanguage: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentSaveData >;
3027
+
3028
+ public async saveWithCustomInvitationAsync(appointmentEntity:carriers.AppointmentEntity|carriers.Appointment_SaveWithCustomInvitationRequest, updateMode?:enums.RecurrenceUpdateMode|base.WebApiRequestOptions, sendEmailToParticipants?:boolean, smtpEMailConnectionInfo?:carriers.EMailConnectionInfo, imapEMailConnectionInfo?:carriers.EMailConnectionInfo, emailBody?:string, subject?:string, templateLanguage?:string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentSaveData > {
3029
+ let _request : carriers.Appointment_SaveWithCustomInvitationRequest = null;
3030
+ let _options : base.WebApiRequestOptions = null;
3031
+ const first : any = appointmentEntity;
3032
+ if( typeof( first ) === "object" && first && ( typeof(first.appointmentEntity)!='undefined' || typeof(first.updateMode)!='undefined' || typeof(first.sendEmailToParticipants)!='undefined' || typeof(first.smtpEMailConnectionInfo)!='undefined' || typeof(first.imapEMailConnectionInfo)!='undefined' || typeof(first.emailBody)!='undefined' || typeof(first.subject)!='undefined' || typeof(first.templateLanguage)!='undefined' ) )
3033
+ {
3034
+ _request = appointmentEntity as carriers.Appointment_SaveWithCustomInvitationRequest;
3035
+ _options = updateMode as base.WebApiRequestOptions;
3036
+ }
3037
+ else
3038
+ {
3039
+ _request = {
3040
+ appointmentEntity: appointmentEntity as carriers.AppointmentEntity,
3041
+ updateMode: updateMode as enums.RecurrenceUpdateMode,
3042
+ sendEmailToParticipants: sendEmailToParticipants as boolean,
3043
+ smtpEMailConnectionInfo: smtpEMailConnectionInfo as carriers.EMailConnectionInfo,
3044
+ imapEMailConnectionInfo: imapEMailConnectionInfo as carriers.EMailConnectionInfo,
3045
+ emailBody: emailBody as string,
3046
+ subject: subject as string,
3047
+ templateLanguage: templateLanguage as string,
3048
+ };
3049
+ _options = webapi_options;
3050
+ }
3051
+ return this._saveWithCustomInvitationAsync( _request, _options );
3052
+ }
3053
+
3054
+ /**
2921
3055
  * Gets an array of Appointment objects.
2922
3056
  * @param appointmentIds - The primary keys.
2923
3057
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -4921,14 +5055,14 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
4921
5055
 
4922
5056
 
4923
5057
  /**
4924
- *
5058
+ * Fetch appointments for given associates
4925
5059
  * @param request - AssociateIds, StartTime, EndTime
4926
5060
  * @returns
4927
5061
  */
4928
5062
  public async getAssociatesDiaryAsync(request: carriers.Appointment_GetAssociatesDiaryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Appointment[] >;
4929
5063
 
4930
5064
  /**
4931
- *
5065
+ * Fetch appointments for given associates
4932
5066
  * @param associateIds -
4933
5067
  * @param startTime -
4934
5068
  * @param endTime -
@@ -4958,6 +5092,64 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
4958
5092
  }
4959
5093
 
4960
5094
 
5095
+ private async _getAssociatesDiaryInfoAsync(request: carriers.Appointment_GetAssociatesDiaryInfoRequest, options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentInfo[] > {
5096
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
5097
+ base.WebApiBase.SetPending(options);
5098
+ return new Promise< carriers.AppointmentInfo[] >(async (resolve, reject) => {
5099
+ try {
5100
+ config.baseURL = this._options.baseUrl;
5101
+ const response = await this._axios.post("GetAssociatesDiaryInfo", request , config);
5102
+ base.WebApiBase.SetCompleted(options);
5103
+ const res : carriers.AppointmentInfo[] = converters.Create_AppointmentInfoArray_From( response.data );
5104
+ resolve(res);
5105
+ }
5106
+ catch( err ) {
5107
+ base.WebApiBase.HandleError(options, config, err);
5108
+ reject(err);
5109
+ }
5110
+ });
5111
+ }
5112
+
5113
+
5114
+
5115
+ /**
5116
+ * Fetch appointment info for given associates
5117
+ * @param request - AssociateIds, StartTime, EndTime
5118
+ * @returns
5119
+ */
5120
+ public async getAssociatesDiaryInfoAsync(request: carriers.Appointment_GetAssociatesDiaryInfoRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentInfo[] >;
5121
+
5122
+ /**
5123
+ * Fetch appointment info for given associates
5124
+ * @param associateIds -
5125
+ * @param startTime -
5126
+ * @param endTime -
5127
+ * @returns
5128
+ */
5129
+ public async getAssociatesDiaryInfoAsync(associateIds: number[], startTime: Date, endTime: Date, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentInfo[] >;
5130
+
5131
+ public async getAssociatesDiaryInfoAsync(associateIds:number[]|carriers.Appointment_GetAssociatesDiaryInfoRequest, startTime?:Date|base.WebApiRequestOptions, endTime?:Date, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.AppointmentInfo[] > {
5132
+ let _request : carriers.Appointment_GetAssociatesDiaryInfoRequest = null;
5133
+ let _options : base.WebApiRequestOptions = null;
5134
+ const first : any = associateIds;
5135
+ if( typeof( first ) === "object" && first && ( typeof(first.associateIds)!='undefined' || typeof(first.startTime)!='undefined' || typeof(first.endTime)!='undefined' ) )
5136
+ {
5137
+ _request = associateIds as carriers.Appointment_GetAssociatesDiaryInfoRequest;
5138
+ _options = startTime as base.WebApiRequestOptions;
5139
+ }
5140
+ else
5141
+ {
5142
+ _request = {
5143
+ associateIds: associateIds as number[],
5144
+ startTime: startTime as Date,
5145
+ endTime: endTime as Date,
5146
+ };
5147
+ _options = webapi_options;
5148
+ }
5149
+ return this._getAssociatesDiaryInfoAsync( _request, _options );
5150
+ }
5151
+
5152
+
4961
5153
  private async _getAppointmentRecordsAsync(request: carriers.Appointment_GetAppointmentRecordsRequest, options?:base.WebApiRequestOptions) : Promise< carriers.Appointment[] > {
4962
5154
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
4963
5155
  base.WebApiBase.SetPending(options);
@@ -5302,6 +5494,68 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
5302
5494
  }
5303
5495
 
5304
5496
 
5497
+ private async _getNextAvailableTimeAsync(request: carriers.Appointment_GetNextAvailableTimeRequest, options?:base.WebApiRequestOptions) : Promise< carriers.NextAvailableTime[] > {
5498
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
5499
+ base.WebApiBase.SetPending(options);
5500
+ return new Promise< carriers.NextAvailableTime[] >(async (resolve, reject) => {
5501
+ try {
5502
+ config.baseURL = this._options.baseUrl;
5503
+ const response = await this._axios.post("GetNextAvailableTime", request , config);
5504
+ base.WebApiBase.SetCompleted(options);
5505
+ const res : carriers.NextAvailableTime[] = converters.Create_NextAvailableTimeArray_From( response.data );
5506
+ resolve(res);
5507
+ }
5508
+ catch( err ) {
5509
+ base.WebApiBase.HandleError(options, config, err);
5510
+ reject(err);
5511
+ }
5512
+ });
5513
+ }
5514
+
5515
+
5516
+
5517
+ /**
5518
+ * An array of the soonest-available working time slots.
5519
+ * @param request - Associates, StartTime, EndTime, Count, IsAllDay
5520
+ * @returns Array of the soonest-available working time slots.
5521
+ */
5522
+ public async getNextAvailableTimeAsync(request: carriers.Appointment_GetNextAvailableTimeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.NextAvailableTime[] >;
5523
+
5524
+ /**
5525
+ * An array of the soonest-available working time slots.
5526
+ * @param associates - Associate participants we want to account for while finding the next available times.
5527
+ * @param startTime - The start of the time interval we want appointments from.
5528
+ * @param endTime - The end of the time interval.
5529
+ * @param count - How many next-available date time slots should be returned.
5530
+ * @param isAllDay - Is the appointment an all day event.
5531
+ * @returns Array of the soonest-available working time slots.
5532
+ */
5533
+ public async getNextAvailableTimeAsync(associates: number[], startTime: Date, endTime: Date, count: number, isAllDay: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.NextAvailableTime[] >;
5534
+
5535
+ public async getNextAvailableTimeAsync(associates:number[]|carriers.Appointment_GetNextAvailableTimeRequest, startTime?:Date|base.WebApiRequestOptions, endTime?:Date, count?:number, isAllDay?:boolean, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.NextAvailableTime[] > {
5536
+ let _request : carriers.Appointment_GetNextAvailableTimeRequest = null;
5537
+ let _options : base.WebApiRequestOptions = null;
5538
+ const first : any = associates;
5539
+ if( typeof( first ) === "object" && first && ( typeof(first.associates)!='undefined' || typeof(first.startTime)!='undefined' || typeof(first.endTime)!='undefined' || typeof(first.count)!='undefined' || typeof(first.isAllDay)!='undefined' ) )
5540
+ {
5541
+ _request = associates as carriers.Appointment_GetNextAvailableTimeRequest;
5542
+ _options = startTime as base.WebApiRequestOptions;
5543
+ }
5544
+ else
5545
+ {
5546
+ _request = {
5547
+ associates: associates as number[],
5548
+ startTime: startTime as Date,
5549
+ endTime: endTime as Date,
5550
+ count: count as number,
5551
+ isAllDay: isAllDay as boolean,
5552
+ };
5553
+ _options = webapi_options;
5554
+ }
5555
+ return this._getNextAvailableTimeAsync( _request, _options );
5556
+ }
5557
+
5558
+
5305
5559
  private async _generateLeadAsync(request: carriers.Appointment_GenerateLeadRequest, options?:base.WebApiRequestOptions) : Promise< carriers.SalesActivity > {
5306
5560
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
5307
5561
  base.WebApiBase.SetPending(options);
@@ -5445,7 +5699,7 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
5445
5699
  return this._requestForInfoAsync( _request, _options );
5446
5700
  }
5447
5701
 
5448
- /*
5702
+ /**
5449
5703
  * Gets a SuggestedAppointment object.
5450
5704
  * @param suggestedAppointmentId - The primary key.
5451
5705
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -5468,7 +5722,7 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
5468
5722
  });
5469
5723
  }
5470
5724
 
5471
- /*
5725
+ /**
5472
5726
  * Gets a SuggestedAppointmentEntity object.
5473
5727
  * @param suggestedAppointmentEntityId - The primary key.
5474
5728
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -5491,7 +5745,7 @@ export class AppointmentAgent extends base.WebApiBase implements IAppointmentAge
5491
5745
  });
5492
5746
  }
5493
5747
 
5494
- /*
5748
+ /**
5495
5749
  * Gets a TaskListItem object.
5496
5750
  * @param taskListItemId - The primary key.
5497
5751
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -96,7 +96,7 @@ export class AppointmentRestApi extends base.WebApiBase implements IAppointmentR
96
96
  }
97
97
 
98
98
 
99
- /*
99
+ /**
100
100
  * `POST /api/v1/Appointment/`
101
101
  * Creates a new AppointmentEntity
102
102
  * @param newAppointment - The AppointmentEntity to be saved.
@@ -121,7 +121,7 @@ export class AppointmentRestApi extends base.WebApiBase implements IAppointmentR
121
121
  }
122
122
 
123
123
 
124
- /*
124
+ /**
125
125
  * `PUT /api/v1/Appointment/123`
126
126
  * Replace the existing AppointmentEntity
127
127
  * @param appointment - The AppointmentEntity to be saved.
@@ -147,7 +147,7 @@ export class AppointmentRestApi extends base.WebApiBase implements IAppointmentR
147
147
  });
148
148
  }
149
149
 
150
- /*
150
+ /**
151
151
  * `PATCH /api/v1/Appointment/123`
152
152
  * Updates an existing AppointmentEntity
153
153
  * @param appointment - The partial AppointmentEntity containing updated values, or an array of RFC6902 PATCH operations.
@@ -172,7 +172,7 @@ export class AppointmentRestApi extends base.WebApiBase implements IAppointmentR
172
172
  }
173
173
  });
174
174
  }
175
- /*
175
+ /**
176
176
  * `DELETE /api/v1/Appointment/123`
177
177
  * Deletes the AppointmentEntity
178
178
  * @param appointmentId - The id of the AppointmentEntity to be deleted.
@@ -194,7 +194,7 @@ export class AppointmentRestApi extends base.WebApiBase implements IAppointmentR
194
194
  }
195
195
  });
196
196
  }
197
- /*
197
+ /**
198
198
  * `GET /api/v1/Appointment/123`
199
199
  * Get an existing AppointmentEntity
200
200
  * @param appointmentId - The AppointmentEntity to be get.
@@ -68,7 +68,7 @@ export class AssociateAgent extends base.WebApiBase implements IAssociateAgent {
68
68
  }
69
69
 
70
70
 
71
- /*
71
+ /**
72
72
  * Gets a Associate object.
73
73
  * @param associateId - The primary key.
74
74
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -284,7 +284,7 @@ export class AssociateAgent extends base.WebApiBase implements IAssociateAgent {
284
284
  return this._getEncryptionKeyAsync(webapi_options);
285
285
  }
286
286
 
287
- /*
287
+ /**
288
288
  * Gets an array of Associate objects.
289
289
  * @param associateIds - The primary keys.
290
290
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -124,7 +124,7 @@ export class AudienceAgent extends base.WebApiBase implements IAudienceAgent {
124
124
  }
125
125
  });
126
126
  }
127
- /*
127
+ /**
128
128
  * Replace the existing AudienceLayoutEntity or creates a new AudienceLayoutEntity if the id parameter is empty
129
129
  * @param entity - The AudienceLayoutEntity to be saved.
130
130
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -147,7 +147,7 @@ export class AudienceAgent extends base.WebApiBase implements IAudienceAgent {
147
147
  });
148
148
  }
149
149
 
150
- /*
150
+ /**
151
151
  * Deletes the AudienceLayoutEntity
152
152
  * @param AudienceLayoutEntityId - The id of the AudienceLayoutEntity to be deleted.
153
153
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -749,7 +749,7 @@ export class AudienceAgent extends base.WebApiBase implements IAudienceAgent {
749
749
  return this._getConfigParametersOnPersonAsync( _request, _options );
750
750
  }
751
751
 
752
- /*
752
+ /**
753
753
  * Gets a AudienceLayoutEntity object.
754
754
  * @param audienceLayoutEntityId - The primary key.
755
755
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
package/src/BLOBAgent.ts CHANGED
@@ -146,7 +146,7 @@ export class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
146
146
  }
147
147
  });
148
148
  }
149
- /*
149
+ /**
150
150
  * Replace the existing BlobEntity or creates a new BlobEntity if the id parameter is empty
151
151
  * @param entity - The BlobEntity to be saved.
152
152
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -169,7 +169,7 @@ export class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
169
169
  });
170
170
  }
171
171
 
172
- /*
172
+ /**
173
173
  * Deletes the BlobEntity
174
174
  * @param BlobEntityId - The id of the BlobEntity to be deleted.
175
175
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -190,7 +190,7 @@ export class BLOBAgent extends base.WebApiBase implements IBLOBAgent {
190
190
  }
191
191
  });
192
192
  }
193
- /*
193
+ /**
194
194
  * Gets a BlobEntity object.
195
195
  * @param blobEntityId - The primary key.
196
196
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -124,7 +124,7 @@ export class CRMScriptAgent extends base.WebApiBase implements ICRMScriptAgent {
124
124
  }
125
125
  });
126
126
  }
127
- /*
127
+ /**
128
128
  * Replace the existing CRMScriptEntity or creates a new CRMScriptEntity if the id parameter is empty
129
129
  * @param entity - The CRMScriptEntity to be saved.
130
130
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -147,7 +147,7 @@ export class CRMScriptAgent extends base.WebApiBase implements ICRMScriptAgent {
147
147
  });
148
148
  }
149
149
 
150
- /*
150
+ /**
151
151
  * Deletes the CRMScriptEntity
152
152
  * @param CRMScriptEntityId - The id of the CRMScriptEntity to be deleted.
153
153
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -191,7 +191,7 @@ export class CRMScriptAgent extends base.WebApiBase implements ICRMScriptAgent {
191
191
  }
192
192
  });
193
193
  }
194
- /*
194
+ /**
195
195
  * Replace the existing TriggerScriptEntity or creates a new TriggerScriptEntity if the id parameter is empty
196
196
  * @param entity - The TriggerScriptEntity to be saved.
197
197
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -214,7 +214,7 @@ export class CRMScriptAgent extends base.WebApiBase implements ICRMScriptAgent {
214
214
  });
215
215
  }
216
216
 
217
- /*
217
+ /**
218
218
  * Deletes the TriggerScriptEntity
219
219
  * @param TriggerScriptEntityId - The id of the TriggerScriptEntity to be deleted.
220
220
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -399,7 +399,7 @@ export class CRMScriptAgent extends base.WebApiBase implements ICRMScriptAgent {
399
399
  return this._deleteCRMScriptByUniqueIdentifierAsync( _request, _options );
400
400
  }
401
401
 
402
- /*
402
+ /**
403
403
  * Gets a CRMScriptEntity object.
404
404
  * @param cRMScriptEntityId - The primary key.
405
405
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
@@ -976,7 +976,7 @@ export class CRMScriptAgent extends base.WebApiBase implements ICRMScriptAgent {
976
976
  return this._validateScriptByStringAsync( _request, _options );
977
977
  }
978
978
 
979
- /*
979
+ /**
980
980
  * Gets a TriggerScriptEntity object.
981
981
  * @param triggerScriptEntityId - The primary key.
982
982
  * @param options - Override language/culture codes on this request. Provide cancellation and request status values.