@superoffice/webapi 10.2.9

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 (692) hide show
  1. package/LICENSE.md +15 -0
  2. package/README.md +184 -0
  3. package/__tests__/Appointment63-notz.json +1925 -0
  4. package/__tests__/Appointment63-utctz.json +1925 -0
  5. package/__tests__/Appointment63.json +1925 -0
  6. package/__tests__/AppointmentTzTest.ts +114 -0
  7. package/__tests__/AxiosNockTest.ts +28 -0
  8. package/__tests__/ContactDefault.json +699 -0
  9. package/__tests__/ContactEntity.json +273 -0
  10. package/__tests__/ContactRestTest.ts +144 -0
  11. package/__tests__/ContactTest.ts +395 -0
  12. package/__tests__/ConvertersTest.ts +97 -0
  13. package/__tests__/DocumentGetTemplateStream.json +1 -0
  14. package/__tests__/DocumentGetTemplateStreamBinary.json +1 -0
  15. package/__tests__/DocumentTest.ts +101 -0
  16. package/__tests__/Person210-notz.json +1932 -0
  17. package/__tests__/Person210-utctz.json +1932 -0
  18. package/__tests__/Person210.json +1932 -0
  19. package/__tests__/PersonImageData.nock +23 -0
  20. package/__tests__/PersonTest.ts +41 -0
  21. package/__tests__/PersonTzTest.ts +113 -0
  22. package/__tests__/RecurrenceInfo.json +55 -0
  23. package/__tests__/TableRights.json +441 -0
  24. package/__tests__/WebapiTest.ts +264 -0
  25. package/__tests__/Webhook.json +17 -0
  26. package/__tests__/WebhookTest.ts +209 -0
  27. package/dist/cjs/AIAgent.d.ts +265 -0
  28. package/dist/cjs/AIAgent.d.ts.map +1 -0
  29. package/dist/cjs/AIAgent.js +535 -0
  30. package/dist/cjs/AIAgent.js.map +1 -0
  31. package/dist/cjs/AppointmentAgent.d.ts +1539 -0
  32. package/dist/cjs/AppointmentAgent.d.ts.map +1 -0
  33. package/dist/cjs/AppointmentAgent.js +3363 -0
  34. package/dist/cjs/AppointmentAgent.js.map +1 -0
  35. package/dist/cjs/AppointmentRestApi.d.ts +46 -0
  36. package/dist/cjs/AppointmentRestApi.d.ts.map +1 -0
  37. package/dist/cjs/AppointmentRestApi.js +168 -0
  38. package/dist/cjs/AppointmentRestApi.js.map +1 -0
  39. package/dist/cjs/ArchiveAgent.d.ts +582 -0
  40. package/dist/cjs/ArchiveAgent.d.ts.map +1 -0
  41. package/dist/cjs/ArchiveAgent.js +1135 -0
  42. package/dist/cjs/ArchiveAgent.js.map +1 -0
  43. package/dist/cjs/AssociateAgent.d.ts +109 -0
  44. package/dist/cjs/AssociateAgent.d.ts.map +1 -0
  45. package/dist/cjs/AssociateAgent.js +257 -0
  46. package/dist/cjs/AssociateAgent.js.map +1 -0
  47. package/dist/cjs/AudienceAgent.d.ts +359 -0
  48. package/dist/cjs/AudienceAgent.d.ts.map +1 -0
  49. package/dist/cjs/AudienceAgent.js +888 -0
  50. package/dist/cjs/AudienceAgent.js.map +1 -0
  51. package/dist/cjs/AxiosCacheHandler.d.ts +20 -0
  52. package/dist/cjs/AxiosCacheHandler.d.ts.map +1 -0
  53. package/dist/cjs/AxiosCacheHandler.js +68 -0
  54. package/dist/cjs/AxiosCacheHandler.js.map +1 -0
  55. package/dist/cjs/BLOBAgent.d.ts +538 -0
  56. package/dist/cjs/BLOBAgent.d.ts.map +1 -0
  57. package/dist/cjs/BLOBAgent.js +1364 -0
  58. package/dist/cjs/BLOBAgent.js.map +1 -0
  59. package/dist/cjs/Base64.d.ts +4 -0
  60. package/dist/cjs/Base64.d.ts.map +1 -0
  61. package/dist/cjs/Base64.js +233 -0
  62. package/dist/cjs/Base64.js.map +1 -0
  63. package/dist/cjs/BatchAgent.d.ts +252 -0
  64. package/dist/cjs/BatchAgent.d.ts.map +1 -0
  65. package/dist/cjs/BatchAgent.js +522 -0
  66. package/dist/cjs/BatchAgent.js.map +1 -0
  67. package/dist/cjs/BulkUpdateAgent.d.ts +144 -0
  68. package/dist/cjs/BulkUpdateAgent.d.ts.map +1 -0
  69. package/dist/cjs/BulkUpdateAgent.js +288 -0
  70. package/dist/cjs/BulkUpdateAgent.js.map +1 -0
  71. package/dist/cjs/CRMScriptAgent.d.ts +330 -0
  72. package/dist/cjs/CRMScriptAgent.d.ts.map +1 -0
  73. package/dist/cjs/CRMScriptAgent.js +799 -0
  74. package/dist/cjs/CRMScriptAgent.js.map +1 -0
  75. package/dist/cjs/Carriers.d.ts +36976 -0
  76. package/dist/cjs/Carriers.d.ts.map +1 -0
  77. package/dist/cjs/Carriers.js +8 -0
  78. package/dist/cjs/Carriers.js.map +1 -0
  79. package/dist/cjs/ChatAgent.d.ts +366 -0
  80. package/dist/cjs/ChatAgent.d.ts.map +1 -0
  81. package/dist/cjs/ChatAgent.js +919 -0
  82. package/dist/cjs/ChatAgent.js.map +1 -0
  83. package/dist/cjs/ConfigurationAgent.d.ts +534 -0
  84. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -0
  85. package/dist/cjs/ConfigurationAgent.js +1429 -0
  86. package/dist/cjs/ConfigurationAgent.js.map +1 -0
  87. package/dist/cjs/ContactAgent.d.ts +415 -0
  88. package/dist/cjs/ContactAgent.d.ts.map +1 -0
  89. package/dist/cjs/ContactAgent.js +1005 -0
  90. package/dist/cjs/ContactAgent.js.map +1 -0
  91. package/dist/cjs/ContactRestApi.d.ts +46 -0
  92. package/dist/cjs/ContactRestApi.d.ts.map +1 -0
  93. package/dist/cjs/ContactRestApi.js +168 -0
  94. package/dist/cjs/ContactRestApi.js.map +1 -0
  95. package/dist/cjs/Converters.d.ts +1359 -0
  96. package/dist/cjs/Converters.d.ts.map +1 -0
  97. package/dist/cjs/Converters.js +18996 -0
  98. package/dist/cjs/Converters.js.map +1 -0
  99. package/dist/cjs/CustomerServiceAgent.d.ts +447 -0
  100. package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -0
  101. package/dist/cjs/CustomerServiceAgent.js +1123 -0
  102. package/dist/cjs/CustomerServiceAgent.js.map +1 -0
  103. package/dist/cjs/DashAgent.d.ts +370 -0
  104. package/dist/cjs/DashAgent.d.ts.map +1 -0
  105. package/dist/cjs/DashAgent.js +1028 -0
  106. package/dist/cjs/DashAgent.js.map +1 -0
  107. package/dist/cjs/DashboardAgent.d.ts +163 -0
  108. package/dist/cjs/DashboardAgent.d.ts.map +1 -0
  109. package/dist/cjs/DashboardAgent.js +436 -0
  110. package/dist/cjs/DashboardAgent.js.map +1 -0
  111. package/dist/cjs/DatabaseAgent.d.ts +35 -0
  112. package/dist/cjs/DatabaseAgent.d.ts.map +1 -0
  113. package/dist/cjs/DatabaseAgent.js +70 -0
  114. package/dist/cjs/DatabaseAgent.js.map +1 -0
  115. package/dist/cjs/DatabaseTableAgent.d.ts +155 -0
  116. package/dist/cjs/DatabaseTableAgent.d.ts.map +1 -0
  117. package/dist/cjs/DatabaseTableAgent.js +299 -0
  118. package/dist/cjs/DatabaseTableAgent.js.map +1 -0
  119. package/dist/cjs/Day_js.d.ts +4 -0
  120. package/dist/cjs/Day_js.d.ts.map +1 -0
  121. package/dist/cjs/Day_js.js +44 -0
  122. package/dist/cjs/Day_js.js.map +1 -0
  123. package/dist/cjs/DiagnosticsAgent.d.ts +200 -0
  124. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -0
  125. package/dist/cjs/DiagnosticsAgent.js +480 -0
  126. package/dist/cjs/DiagnosticsAgent.js.map +1 -0
  127. package/dist/cjs/DocumentAgent.d.ts +1345 -0
  128. package/dist/cjs/DocumentAgent.d.ts.map +1 -0
  129. package/dist/cjs/DocumentAgent.js +3058 -0
  130. package/dist/cjs/DocumentAgent.js.map +1 -0
  131. package/dist/cjs/DocumentMigrationAgent.d.ts +145 -0
  132. package/dist/cjs/DocumentMigrationAgent.d.ts.map +1 -0
  133. package/dist/cjs/DocumentMigrationAgent.js +297 -0
  134. package/dist/cjs/DocumentMigrationAgent.js.map +1 -0
  135. package/dist/cjs/DocumentRestApi.d.ts +46 -0
  136. package/dist/cjs/DocumentRestApi.d.ts.map +1 -0
  137. package/dist/cjs/DocumentRestApi.js +168 -0
  138. package/dist/cjs/DocumentRestApi.js.map +1 -0
  139. package/dist/cjs/EMailAgent.d.ts +1417 -0
  140. package/dist/cjs/EMailAgent.d.ts.map +1 -0
  141. package/dist/cjs/EMailAgent.js +3202 -0
  142. package/dist/cjs/EMailAgent.js.map +1 -0
  143. package/dist/cjs/Enums.d.ts +6083 -0
  144. package/dist/cjs/Enums.d.ts.map +1 -0
  145. package/dist/cjs/Enums.js +6270 -0
  146. package/dist/cjs/Enums.js.map +1 -0
  147. package/dist/cjs/ErpSyncAgent.d.ts +725 -0
  148. package/dist/cjs/ErpSyncAgent.d.ts.map +1 -0
  149. package/dist/cjs/ErpSyncAgent.js +1601 -0
  150. package/dist/cjs/ErpSyncAgent.js.map +1 -0
  151. package/dist/cjs/FavouriteAgent.d.ts +208 -0
  152. package/dist/cjs/FavouriteAgent.d.ts.map +1 -0
  153. package/dist/cjs/FavouriteAgent.js +407 -0
  154. package/dist/cjs/FavouriteAgent.js.map +1 -0
  155. package/dist/cjs/FindAgent.d.ts +688 -0
  156. package/dist/cjs/FindAgent.d.ts.map +1 -0
  157. package/dist/cjs/FindAgent.js +1337 -0
  158. package/dist/cjs/FindAgent.js.map +1 -0
  159. package/dist/cjs/ForeignSystemAgent.d.ts +478 -0
  160. package/dist/cjs/ForeignSystemAgent.d.ts.map +1 -0
  161. package/dist/cjs/ForeignSystemAgent.js +1022 -0
  162. package/dist/cjs/ForeignSystemAgent.js.map +1 -0
  163. package/dist/cjs/FreeTextAgent.d.ts +172 -0
  164. package/dist/cjs/FreeTextAgent.d.ts.map +1 -0
  165. package/dist/cjs/FreeTextAgent.js +368 -0
  166. package/dist/cjs/FreeTextAgent.js.map +1 -0
  167. package/dist/cjs/ImportAgent.d.ts +92 -0
  168. package/dist/cjs/ImportAgent.d.ts.map +1 -0
  169. package/dist/cjs/ImportAgent.js +164 -0
  170. package/dist/cjs/ImportAgent.js.map +1 -0
  171. package/dist/cjs/LicenseAgent.d.ts +298 -0
  172. package/dist/cjs/LicenseAgent.d.ts.map +1 -0
  173. package/dist/cjs/LicenseAgent.js +639 -0
  174. package/dist/cjs/LicenseAgent.js.map +1 -0
  175. package/dist/cjs/ListAgent.d.ts +2423 -0
  176. package/dist/cjs/ListAgent.d.ts.map +1 -0
  177. package/dist/cjs/ListAgent.js +7813 -0
  178. package/dist/cjs/ListAgent.js.map +1 -0
  179. package/dist/cjs/MDOAgent.d.ts +214 -0
  180. package/dist/cjs/MDOAgent.d.ts.map +1 -0
  181. package/dist/cjs/MDOAgent.js +430 -0
  182. package/dist/cjs/MDOAgent.js.map +1 -0
  183. package/dist/cjs/MarketingAgent.d.ts +170 -0
  184. package/dist/cjs/MarketingAgent.d.ts.map +1 -0
  185. package/dist/cjs/MarketingAgent.js +570 -0
  186. package/dist/cjs/MarketingAgent.js.map +1 -0
  187. package/dist/cjs/MessagingAgent.d.ts +111 -0
  188. package/dist/cjs/MessagingAgent.d.ts.map +1 -0
  189. package/dist/cjs/MessagingAgent.js +217 -0
  190. package/dist/cjs/MessagingAgent.js.map +1 -0
  191. package/dist/cjs/NavigatorAgent.d.ts +40 -0
  192. package/dist/cjs/NavigatorAgent.d.ts.map +1 -0
  193. package/dist/cjs/NavigatorAgent.js +99 -0
  194. package/dist/cjs/NavigatorAgent.js.map +1 -0
  195. package/dist/cjs/NumberAllocationAgent.d.ts +72 -0
  196. package/dist/cjs/NumberAllocationAgent.d.ts.map +1 -0
  197. package/dist/cjs/NumberAllocationAgent.js +199 -0
  198. package/dist/cjs/NumberAllocationAgent.js.map +1 -0
  199. package/dist/cjs/PersonAgent.d.ts +774 -0
  200. package/dist/cjs/PersonAgent.d.ts.map +1 -0
  201. package/dist/cjs/PersonAgent.js +1814 -0
  202. package/dist/cjs/PersonAgent.js.map +1 -0
  203. package/dist/cjs/PersonRestApi.d.ts +46 -0
  204. package/dist/cjs/PersonRestApi.d.ts.map +1 -0
  205. package/dist/cjs/PersonRestApi.js +168 -0
  206. package/dist/cjs/PersonRestApi.js.map +1 -0
  207. package/dist/cjs/PhoneListAgent.d.ts +126 -0
  208. package/dist/cjs/PhoneListAgent.d.ts.map +1 -0
  209. package/dist/cjs/PhoneListAgent.js +269 -0
  210. package/dist/cjs/PhoneListAgent.js.map +1 -0
  211. package/dist/cjs/PocketAgent.d.ts +218 -0
  212. package/dist/cjs/PocketAgent.d.ts.map +1 -0
  213. package/dist/cjs/PocketAgent.js +451 -0
  214. package/dist/cjs/PocketAgent.js.map +1 -0
  215. package/dist/cjs/PreferenceAgent.d.ts +497 -0
  216. package/dist/cjs/PreferenceAgent.d.ts.map +1 -0
  217. package/dist/cjs/PreferenceAgent.js +1194 -0
  218. package/dist/cjs/PreferenceAgent.js.map +1 -0
  219. package/dist/cjs/PreviewsAgent.d.ts +36 -0
  220. package/dist/cjs/PreviewsAgent.d.ts.map +1 -0
  221. package/dist/cjs/PreviewsAgent.js +54 -0
  222. package/dist/cjs/PreviewsAgent.js.map +1 -0
  223. package/dist/cjs/ProjectAgent.d.ts +558 -0
  224. package/dist/cjs/ProjectAgent.d.ts.map +1 -0
  225. package/dist/cjs/ProjectAgent.js +1482 -0
  226. package/dist/cjs/ProjectAgent.js.map +1 -0
  227. package/dist/cjs/ProjectRestApi.d.ts +46 -0
  228. package/dist/cjs/ProjectRestApi.d.ts.map +1 -0
  229. package/dist/cjs/ProjectRestApi.js +168 -0
  230. package/dist/cjs/ProjectRestApi.js.map +1 -0
  231. package/dist/cjs/QuoteAgent.d.ts +1415 -0
  232. package/dist/cjs/QuoteAgent.d.ts.map +1 -0
  233. package/dist/cjs/QuoteAgent.js +3224 -0
  234. package/dist/cjs/QuoteAgent.js.map +1 -0
  235. package/dist/cjs/RelationAgent.d.ts +61 -0
  236. package/dist/cjs/RelationAgent.d.ts.map +1 -0
  237. package/dist/cjs/RelationAgent.js +132 -0
  238. package/dist/cjs/RelationAgent.js.map +1 -0
  239. package/dist/cjs/ReplicationAgent.d.ts +77 -0
  240. package/dist/cjs/ReplicationAgent.d.ts.map +1 -0
  241. package/dist/cjs/ReplicationAgent.js +223 -0
  242. package/dist/cjs/ReplicationAgent.js.map +1 -0
  243. package/dist/cjs/ReportAgent.d.ts +144 -0
  244. package/dist/cjs/ReportAgent.d.ts.map +1 -0
  245. package/dist/cjs/ReportAgent.js +380 -0
  246. package/dist/cjs/ReportAgent.js.map +1 -0
  247. package/dist/cjs/ResourceAgent.d.ts +105 -0
  248. package/dist/cjs/ResourceAgent.d.ts.map +1 -0
  249. package/dist/cjs/ResourceAgent.js +196 -0
  250. package/dist/cjs/ResourceAgent.js.map +1 -0
  251. package/dist/cjs/SaintAgent.d.ts +157 -0
  252. package/dist/cjs/SaintAgent.d.ts.map +1 -0
  253. package/dist/cjs/SaintAgent.js +402 -0
  254. package/dist/cjs/SaintAgent.js.map +1 -0
  255. package/dist/cjs/SaleAgent.d.ts +477 -0
  256. package/dist/cjs/SaleAgent.d.ts.map +1 -0
  257. package/dist/cjs/SaleAgent.js +1182 -0
  258. package/dist/cjs/SaleAgent.js.map +1 -0
  259. package/dist/cjs/SaleRestApi.d.ts +46 -0
  260. package/dist/cjs/SaleRestApi.d.ts.map +1 -0
  261. package/dist/cjs/SaleRestApi.js +168 -0
  262. package/dist/cjs/SaleRestApi.js.map +1 -0
  263. package/dist/cjs/SelectionAgent.d.ts +814 -0
  264. package/dist/cjs/SelectionAgent.d.ts.map +1 -0
  265. package/dist/cjs/SelectionAgent.js +1795 -0
  266. package/dist/cjs/SelectionAgent.js.map +1 -0
  267. package/dist/cjs/SentryAgent.d.ts +113 -0
  268. package/dist/cjs/SentryAgent.d.ts.map +1 -0
  269. package/dist/cjs/SentryAgent.js +238 -0
  270. package/dist/cjs/SentryAgent.js.map +1 -0
  271. package/dist/cjs/SoApiConstants.d.ts +8 -0
  272. package/dist/cjs/SoApiConstants.d.ts.map +1 -0
  273. package/dist/cjs/SoApiConstants.js +12 -0
  274. package/dist/cjs/SoApiConstants.js.map +1 -0
  275. package/dist/cjs/TargetsAgent.d.ts +289 -0
  276. package/dist/cjs/TargetsAgent.d.ts.map +1 -0
  277. package/dist/cjs/TargetsAgent.js +728 -0
  278. package/dist/cjs/TargetsAgent.js.map +1 -0
  279. package/dist/cjs/TicketAgent.d.ts +802 -0
  280. package/dist/cjs/TicketAgent.d.ts.map +1 -0
  281. package/dist/cjs/TicketAgent.js +1865 -0
  282. package/dist/cjs/TicketAgent.js.map +1 -0
  283. package/dist/cjs/TimeZoneAgent.d.ts +139 -0
  284. package/dist/cjs/TimeZoneAgent.d.ts.map +1 -0
  285. package/dist/cjs/TimeZoneAgent.js +348 -0
  286. package/dist/cjs/TimeZoneAgent.js.map +1 -0
  287. package/dist/cjs/TooltipsAgent.d.ts +36 -0
  288. package/dist/cjs/TooltipsAgent.d.ts.map +1 -0
  289. package/dist/cjs/TooltipsAgent.js +54 -0
  290. package/dist/cjs/TooltipsAgent.js.map +1 -0
  291. package/dist/cjs/UserAgent.d.ts +1260 -0
  292. package/dist/cjs/UserAgent.d.ts.map +1 -0
  293. package/dist/cjs/UserAgent.js +2978 -0
  294. package/dist/cjs/UserAgent.js.map +1 -0
  295. package/dist/cjs/UserDefinedFieldInfoAgent.d.ts +474 -0
  296. package/dist/cjs/UserDefinedFieldInfoAgent.d.ts.map +1 -0
  297. package/dist/cjs/UserDefinedFieldInfoAgent.js +1067 -0
  298. package/dist/cjs/UserDefinedFieldInfoAgent.js.map +1 -0
  299. package/dist/cjs/ViewStateAgent.d.ts +230 -0
  300. package/dist/cjs/ViewStateAgent.d.ts.map +1 -0
  301. package/dist/cjs/ViewStateAgent.js +518 -0
  302. package/dist/cjs/ViewStateAgent.js.map +1 -0
  303. package/dist/cjs/WebApi.d.ts +427 -0
  304. package/dist/cjs/WebApi.d.ts.map +1 -0
  305. package/dist/cjs/WebApi.js +656 -0
  306. package/dist/cjs/WebApi.js.map +1 -0
  307. package/dist/cjs/WebApiBase.d.ts +152 -0
  308. package/dist/cjs/WebApiBase.d.ts.map +1 -0
  309. package/dist/cjs/WebApiBase.js +442 -0
  310. package/dist/cjs/WebApiBase.js.map +1 -0
  311. package/dist/cjs/WebhookAgent.d.ts +102 -0
  312. package/dist/cjs/WebhookAgent.d.ts.map +1 -0
  313. package/dist/cjs/WebhookAgent.js +245 -0
  314. package/dist/cjs/WebhookAgent.js.map +1 -0
  315. package/dist/cjs/WorkflowAgent.d.ts +250 -0
  316. package/dist/cjs/WorkflowAgent.d.ts.map +1 -0
  317. package/dist/cjs/WorkflowAgent.js +763 -0
  318. package/dist/cjs/WorkflowAgent.js.map +1 -0
  319. package/dist/cjs/package.json +1 -0
  320. package/dist/esm/AIAgent.d.ts +265 -0
  321. package/dist/esm/AIAgent.d.ts.map +1 -0
  322. package/dist/esm/AIAgent.js +530 -0
  323. package/dist/esm/AIAgent.js.map +1 -0
  324. package/dist/esm/AppointmentAgent.d.ts +1539 -0
  325. package/dist/esm/AppointmentAgent.d.ts.map +1 -0
  326. package/dist/esm/AppointmentAgent.js +3358 -0
  327. package/dist/esm/AppointmentAgent.js.map +1 -0
  328. package/dist/esm/AppointmentRestApi.d.ts +46 -0
  329. package/dist/esm/AppointmentRestApi.d.ts.map +1 -0
  330. package/dist/esm/AppointmentRestApi.js +163 -0
  331. package/dist/esm/AppointmentRestApi.js.map +1 -0
  332. package/dist/esm/ArchiveAgent.d.ts +582 -0
  333. package/dist/esm/ArchiveAgent.d.ts.map +1 -0
  334. package/dist/esm/ArchiveAgent.js +1130 -0
  335. package/dist/esm/ArchiveAgent.js.map +1 -0
  336. package/dist/esm/AssociateAgent.d.ts +109 -0
  337. package/dist/esm/AssociateAgent.d.ts.map +1 -0
  338. package/dist/esm/AssociateAgent.js +252 -0
  339. package/dist/esm/AssociateAgent.js.map +1 -0
  340. package/dist/esm/AudienceAgent.d.ts +359 -0
  341. package/dist/esm/AudienceAgent.d.ts.map +1 -0
  342. package/dist/esm/AudienceAgent.js +883 -0
  343. package/dist/esm/AudienceAgent.js.map +1 -0
  344. package/dist/esm/AxiosCacheHandler.d.ts +20 -0
  345. package/dist/esm/AxiosCacheHandler.d.ts.map +1 -0
  346. package/dist/esm/AxiosCacheHandler.js +64 -0
  347. package/dist/esm/AxiosCacheHandler.js.map +1 -0
  348. package/dist/esm/BLOBAgent.d.ts +538 -0
  349. package/dist/esm/BLOBAgent.d.ts.map +1 -0
  350. package/dist/esm/BLOBAgent.js +1359 -0
  351. package/dist/esm/BLOBAgent.js.map +1 -0
  352. package/dist/esm/Base64.d.ts +4 -0
  353. package/dist/esm/Base64.d.ts.map +1 -0
  354. package/dist/esm/Base64.js +228 -0
  355. package/dist/esm/Base64.js.map +1 -0
  356. package/dist/esm/BatchAgent.d.ts +252 -0
  357. package/dist/esm/BatchAgent.d.ts.map +1 -0
  358. package/dist/esm/BatchAgent.js +517 -0
  359. package/dist/esm/BatchAgent.js.map +1 -0
  360. package/dist/esm/BulkUpdateAgent.d.ts +144 -0
  361. package/dist/esm/BulkUpdateAgent.d.ts.map +1 -0
  362. package/dist/esm/BulkUpdateAgent.js +283 -0
  363. package/dist/esm/BulkUpdateAgent.js.map +1 -0
  364. package/dist/esm/CRMScriptAgent.d.ts +330 -0
  365. package/dist/esm/CRMScriptAgent.d.ts.map +1 -0
  366. package/dist/esm/CRMScriptAgent.js +794 -0
  367. package/dist/esm/CRMScriptAgent.js.map +1 -0
  368. package/dist/esm/Carriers.d.ts +36976 -0
  369. package/dist/esm/Carriers.d.ts.map +1 -0
  370. package/dist/esm/Carriers.js +6 -0
  371. package/dist/esm/Carriers.js.map +1 -0
  372. package/dist/esm/ChatAgent.d.ts +366 -0
  373. package/dist/esm/ChatAgent.d.ts.map +1 -0
  374. package/dist/esm/ChatAgent.js +914 -0
  375. package/dist/esm/ChatAgent.js.map +1 -0
  376. package/dist/esm/ConfigurationAgent.d.ts +534 -0
  377. package/dist/esm/ConfigurationAgent.d.ts.map +1 -0
  378. package/dist/esm/ConfigurationAgent.js +1424 -0
  379. package/dist/esm/ConfigurationAgent.js.map +1 -0
  380. package/dist/esm/ContactAgent.d.ts +415 -0
  381. package/dist/esm/ContactAgent.d.ts.map +1 -0
  382. package/dist/esm/ContactAgent.js +1000 -0
  383. package/dist/esm/ContactAgent.js.map +1 -0
  384. package/dist/esm/ContactRestApi.d.ts +46 -0
  385. package/dist/esm/ContactRestApi.d.ts.map +1 -0
  386. package/dist/esm/ContactRestApi.js +163 -0
  387. package/dist/esm/ContactRestApi.js.map +1 -0
  388. package/dist/esm/Converters.d.ts +1359 -0
  389. package/dist/esm/Converters.d.ts.map +1 -0
  390. package/dist/esm/Converters.js +17609 -0
  391. package/dist/esm/Converters.js.map +1 -0
  392. package/dist/esm/CustomerServiceAgent.d.ts +447 -0
  393. package/dist/esm/CustomerServiceAgent.d.ts.map +1 -0
  394. package/dist/esm/CustomerServiceAgent.js +1118 -0
  395. package/dist/esm/CustomerServiceAgent.js.map +1 -0
  396. package/dist/esm/DashAgent.d.ts +370 -0
  397. package/dist/esm/DashAgent.d.ts.map +1 -0
  398. package/dist/esm/DashAgent.js +1023 -0
  399. package/dist/esm/DashAgent.js.map +1 -0
  400. package/dist/esm/DashboardAgent.d.ts +163 -0
  401. package/dist/esm/DashboardAgent.d.ts.map +1 -0
  402. package/dist/esm/DashboardAgent.js +431 -0
  403. package/dist/esm/DashboardAgent.js.map +1 -0
  404. package/dist/esm/DatabaseAgent.d.ts +35 -0
  405. package/dist/esm/DatabaseAgent.d.ts.map +1 -0
  406. package/dist/esm/DatabaseAgent.js +65 -0
  407. package/dist/esm/DatabaseAgent.js.map +1 -0
  408. package/dist/esm/DatabaseTableAgent.d.ts +155 -0
  409. package/dist/esm/DatabaseTableAgent.d.ts.map +1 -0
  410. package/dist/esm/DatabaseTableAgent.js +294 -0
  411. package/dist/esm/DatabaseTableAgent.js.map +1 -0
  412. package/dist/esm/Day_js.d.ts +4 -0
  413. package/dist/esm/Day_js.d.ts.map +1 -0
  414. package/dist/esm/Day_js.js +38 -0
  415. package/dist/esm/Day_js.js.map +1 -0
  416. package/dist/esm/DiagnosticsAgent.d.ts +200 -0
  417. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -0
  418. package/dist/esm/DiagnosticsAgent.js +475 -0
  419. package/dist/esm/DiagnosticsAgent.js.map +1 -0
  420. package/dist/esm/DocumentAgent.d.ts +1345 -0
  421. package/dist/esm/DocumentAgent.d.ts.map +1 -0
  422. package/dist/esm/DocumentAgent.js +3053 -0
  423. package/dist/esm/DocumentAgent.js.map +1 -0
  424. package/dist/esm/DocumentMigrationAgent.d.ts +145 -0
  425. package/dist/esm/DocumentMigrationAgent.d.ts.map +1 -0
  426. package/dist/esm/DocumentMigrationAgent.js +292 -0
  427. package/dist/esm/DocumentMigrationAgent.js.map +1 -0
  428. package/dist/esm/DocumentRestApi.d.ts +46 -0
  429. package/dist/esm/DocumentRestApi.d.ts.map +1 -0
  430. package/dist/esm/DocumentRestApi.js +163 -0
  431. package/dist/esm/DocumentRestApi.js.map +1 -0
  432. package/dist/esm/EMailAgent.d.ts +1417 -0
  433. package/dist/esm/EMailAgent.d.ts.map +1 -0
  434. package/dist/esm/EMailAgent.js +3197 -0
  435. package/dist/esm/EMailAgent.js.map +1 -0
  436. package/dist/esm/Enums.d.ts +6083 -0
  437. package/dist/esm/Enums.d.ts.map +1 -0
  438. package/dist/esm/Enums.js +6264 -0
  439. package/dist/esm/Enums.js.map +1 -0
  440. package/dist/esm/ErpSyncAgent.d.ts +725 -0
  441. package/dist/esm/ErpSyncAgent.d.ts.map +1 -0
  442. package/dist/esm/ErpSyncAgent.js +1596 -0
  443. package/dist/esm/ErpSyncAgent.js.map +1 -0
  444. package/dist/esm/FavouriteAgent.d.ts +208 -0
  445. package/dist/esm/FavouriteAgent.d.ts.map +1 -0
  446. package/dist/esm/FavouriteAgent.js +402 -0
  447. package/dist/esm/FavouriteAgent.js.map +1 -0
  448. package/dist/esm/FindAgent.d.ts +688 -0
  449. package/dist/esm/FindAgent.d.ts.map +1 -0
  450. package/dist/esm/FindAgent.js +1332 -0
  451. package/dist/esm/FindAgent.js.map +1 -0
  452. package/dist/esm/ForeignSystemAgent.d.ts +478 -0
  453. package/dist/esm/ForeignSystemAgent.d.ts.map +1 -0
  454. package/dist/esm/ForeignSystemAgent.js +1017 -0
  455. package/dist/esm/ForeignSystemAgent.js.map +1 -0
  456. package/dist/esm/FreeTextAgent.d.ts +172 -0
  457. package/dist/esm/FreeTextAgent.d.ts.map +1 -0
  458. package/dist/esm/FreeTextAgent.js +363 -0
  459. package/dist/esm/FreeTextAgent.js.map +1 -0
  460. package/dist/esm/ImportAgent.d.ts +92 -0
  461. package/dist/esm/ImportAgent.d.ts.map +1 -0
  462. package/dist/esm/ImportAgent.js +159 -0
  463. package/dist/esm/ImportAgent.js.map +1 -0
  464. package/dist/esm/LicenseAgent.d.ts +298 -0
  465. package/dist/esm/LicenseAgent.d.ts.map +1 -0
  466. package/dist/esm/LicenseAgent.js +634 -0
  467. package/dist/esm/LicenseAgent.js.map +1 -0
  468. package/dist/esm/ListAgent.d.ts +2423 -0
  469. package/dist/esm/ListAgent.d.ts.map +1 -0
  470. package/dist/esm/ListAgent.js +7808 -0
  471. package/dist/esm/ListAgent.js.map +1 -0
  472. package/dist/esm/MDOAgent.d.ts +214 -0
  473. package/dist/esm/MDOAgent.d.ts.map +1 -0
  474. package/dist/esm/MDOAgent.js +425 -0
  475. package/dist/esm/MDOAgent.js.map +1 -0
  476. package/dist/esm/MarketingAgent.d.ts +170 -0
  477. package/dist/esm/MarketingAgent.d.ts.map +1 -0
  478. package/dist/esm/MarketingAgent.js +565 -0
  479. package/dist/esm/MarketingAgent.js.map +1 -0
  480. package/dist/esm/MessagingAgent.d.ts +111 -0
  481. package/dist/esm/MessagingAgent.d.ts.map +1 -0
  482. package/dist/esm/MessagingAgent.js +212 -0
  483. package/dist/esm/MessagingAgent.js.map +1 -0
  484. package/dist/esm/NavigatorAgent.d.ts +40 -0
  485. package/dist/esm/NavigatorAgent.d.ts.map +1 -0
  486. package/dist/esm/NavigatorAgent.js +94 -0
  487. package/dist/esm/NavigatorAgent.js.map +1 -0
  488. package/dist/esm/NumberAllocationAgent.d.ts +72 -0
  489. package/dist/esm/NumberAllocationAgent.d.ts.map +1 -0
  490. package/dist/esm/NumberAllocationAgent.js +194 -0
  491. package/dist/esm/NumberAllocationAgent.js.map +1 -0
  492. package/dist/esm/PersonAgent.d.ts +774 -0
  493. package/dist/esm/PersonAgent.d.ts.map +1 -0
  494. package/dist/esm/PersonAgent.js +1809 -0
  495. package/dist/esm/PersonAgent.js.map +1 -0
  496. package/dist/esm/PersonRestApi.d.ts +46 -0
  497. package/dist/esm/PersonRestApi.d.ts.map +1 -0
  498. package/dist/esm/PersonRestApi.js +163 -0
  499. package/dist/esm/PersonRestApi.js.map +1 -0
  500. package/dist/esm/PhoneListAgent.d.ts +126 -0
  501. package/dist/esm/PhoneListAgent.d.ts.map +1 -0
  502. package/dist/esm/PhoneListAgent.js +264 -0
  503. package/dist/esm/PhoneListAgent.js.map +1 -0
  504. package/dist/esm/PocketAgent.d.ts +218 -0
  505. package/dist/esm/PocketAgent.d.ts.map +1 -0
  506. package/dist/esm/PocketAgent.js +446 -0
  507. package/dist/esm/PocketAgent.js.map +1 -0
  508. package/dist/esm/PreferenceAgent.d.ts +497 -0
  509. package/dist/esm/PreferenceAgent.d.ts.map +1 -0
  510. package/dist/esm/PreferenceAgent.js +1189 -0
  511. package/dist/esm/PreferenceAgent.js.map +1 -0
  512. package/dist/esm/PreviewsAgent.d.ts +36 -0
  513. package/dist/esm/PreviewsAgent.d.ts.map +1 -0
  514. package/dist/esm/PreviewsAgent.js +49 -0
  515. package/dist/esm/PreviewsAgent.js.map +1 -0
  516. package/dist/esm/ProjectAgent.d.ts +558 -0
  517. package/dist/esm/ProjectAgent.d.ts.map +1 -0
  518. package/dist/esm/ProjectAgent.js +1477 -0
  519. package/dist/esm/ProjectAgent.js.map +1 -0
  520. package/dist/esm/ProjectRestApi.d.ts +46 -0
  521. package/dist/esm/ProjectRestApi.d.ts.map +1 -0
  522. package/dist/esm/ProjectRestApi.js +163 -0
  523. package/dist/esm/ProjectRestApi.js.map +1 -0
  524. package/dist/esm/QuoteAgent.d.ts +1415 -0
  525. package/dist/esm/QuoteAgent.d.ts.map +1 -0
  526. package/dist/esm/QuoteAgent.js +3219 -0
  527. package/dist/esm/QuoteAgent.js.map +1 -0
  528. package/dist/esm/RelationAgent.d.ts +61 -0
  529. package/dist/esm/RelationAgent.d.ts.map +1 -0
  530. package/dist/esm/RelationAgent.js +127 -0
  531. package/dist/esm/RelationAgent.js.map +1 -0
  532. package/dist/esm/ReplicationAgent.d.ts +77 -0
  533. package/dist/esm/ReplicationAgent.d.ts.map +1 -0
  534. package/dist/esm/ReplicationAgent.js +218 -0
  535. package/dist/esm/ReplicationAgent.js.map +1 -0
  536. package/dist/esm/ReportAgent.d.ts +144 -0
  537. package/dist/esm/ReportAgent.d.ts.map +1 -0
  538. package/dist/esm/ReportAgent.js +375 -0
  539. package/dist/esm/ReportAgent.js.map +1 -0
  540. package/dist/esm/ResourceAgent.d.ts +105 -0
  541. package/dist/esm/ResourceAgent.d.ts.map +1 -0
  542. package/dist/esm/ResourceAgent.js +191 -0
  543. package/dist/esm/ResourceAgent.js.map +1 -0
  544. package/dist/esm/SaintAgent.d.ts +157 -0
  545. package/dist/esm/SaintAgent.d.ts.map +1 -0
  546. package/dist/esm/SaintAgent.js +397 -0
  547. package/dist/esm/SaintAgent.js.map +1 -0
  548. package/dist/esm/SaleAgent.d.ts +477 -0
  549. package/dist/esm/SaleAgent.d.ts.map +1 -0
  550. package/dist/esm/SaleAgent.js +1177 -0
  551. package/dist/esm/SaleAgent.js.map +1 -0
  552. package/dist/esm/SaleRestApi.d.ts +46 -0
  553. package/dist/esm/SaleRestApi.d.ts.map +1 -0
  554. package/dist/esm/SaleRestApi.js +163 -0
  555. package/dist/esm/SaleRestApi.js.map +1 -0
  556. package/dist/esm/SelectionAgent.d.ts +814 -0
  557. package/dist/esm/SelectionAgent.d.ts.map +1 -0
  558. package/dist/esm/SelectionAgent.js +1790 -0
  559. package/dist/esm/SelectionAgent.js.map +1 -0
  560. package/dist/esm/SentryAgent.d.ts +113 -0
  561. package/dist/esm/SentryAgent.d.ts.map +1 -0
  562. package/dist/esm/SentryAgent.js +233 -0
  563. package/dist/esm/SentryAgent.js.map +1 -0
  564. package/dist/esm/SoApiConstants.d.ts +8 -0
  565. package/dist/esm/SoApiConstants.d.ts.map +1 -0
  566. package/dist/esm/SoApiConstants.js +9 -0
  567. package/dist/esm/SoApiConstants.js.map +1 -0
  568. package/dist/esm/TargetsAgent.d.ts +289 -0
  569. package/dist/esm/TargetsAgent.d.ts.map +1 -0
  570. package/dist/esm/TargetsAgent.js +723 -0
  571. package/dist/esm/TargetsAgent.js.map +1 -0
  572. package/dist/esm/TicketAgent.d.ts +802 -0
  573. package/dist/esm/TicketAgent.d.ts.map +1 -0
  574. package/dist/esm/TicketAgent.js +1860 -0
  575. package/dist/esm/TicketAgent.js.map +1 -0
  576. package/dist/esm/TimeZoneAgent.d.ts +139 -0
  577. package/dist/esm/TimeZoneAgent.d.ts.map +1 -0
  578. package/dist/esm/TimeZoneAgent.js +343 -0
  579. package/dist/esm/TimeZoneAgent.js.map +1 -0
  580. package/dist/esm/TooltipsAgent.d.ts +36 -0
  581. package/dist/esm/TooltipsAgent.d.ts.map +1 -0
  582. package/dist/esm/TooltipsAgent.js +49 -0
  583. package/dist/esm/TooltipsAgent.js.map +1 -0
  584. package/dist/esm/UserAgent.d.ts +1260 -0
  585. package/dist/esm/UserAgent.d.ts.map +1 -0
  586. package/dist/esm/UserAgent.js +2973 -0
  587. package/dist/esm/UserAgent.js.map +1 -0
  588. package/dist/esm/UserDefinedFieldInfoAgent.d.ts +474 -0
  589. package/dist/esm/UserDefinedFieldInfoAgent.d.ts.map +1 -0
  590. package/dist/esm/UserDefinedFieldInfoAgent.js +1062 -0
  591. package/dist/esm/UserDefinedFieldInfoAgent.js.map +1 -0
  592. package/dist/esm/ViewStateAgent.d.ts +230 -0
  593. package/dist/esm/ViewStateAgent.d.ts.map +1 -0
  594. package/dist/esm/ViewStateAgent.js +513 -0
  595. package/dist/esm/ViewStateAgent.js.map +1 -0
  596. package/dist/esm/WebApi.d.ts +427 -0
  597. package/dist/esm/WebApi.d.ts.map +1 -0
  598. package/dist/esm/WebApi.js +649 -0
  599. package/dist/esm/WebApi.js.map +1 -0
  600. package/dist/esm/WebApiBase.d.ts +152 -0
  601. package/dist/esm/WebApiBase.d.ts.map +1 -0
  602. package/dist/esm/WebApiBase.js +437 -0
  603. package/dist/esm/WebApiBase.js.map +1 -0
  604. package/dist/esm/WebhookAgent.d.ts +102 -0
  605. package/dist/esm/WebhookAgent.d.ts.map +1 -0
  606. package/dist/esm/WebhookAgent.js +240 -0
  607. package/dist/esm/WebhookAgent.js.map +1 -0
  608. package/dist/esm/WorkflowAgent.d.ts +250 -0
  609. package/dist/esm/WorkflowAgent.d.ts.map +1 -0
  610. package/dist/esm/WorkflowAgent.js +758 -0
  611. package/dist/esm/WorkflowAgent.js.map +1 -0
  612. package/dist/esm/package.json +1 -0
  613. package/examples-js/hello.js +12 -0
  614. package/examples-ts/hello.ts +8 -0
  615. package/package.json +89 -0
  616. package/scripts/setVersion.js +46 -0
  617. package/src/AIAgent.ts +928 -0
  618. package/src/AppointmentAgent.ts +5573 -0
  619. package/src/AppointmentRestApi.ts +225 -0
  620. package/src/ArchiveAgent.ts +1950 -0
  621. package/src/AssociateAgent.ts +422 -0
  622. package/src/AudienceAgent.ts +1430 -0
  623. package/src/AxiosCacheHandler.ts +74 -0
  624. package/src/BLOBAgent.ts +2214 -0
  625. package/src/Base64.ts +285 -0
  626. package/src/BatchAgent.ts +910 -0
  627. package/src/BulkUpdateAgent.ts +504 -0
  628. package/src/CRMScriptAgent.ts +1276 -0
  629. package/src/Carriers.ts +49791 -0
  630. package/src/ChatAgent.ts +1422 -0
  631. package/src/ConfigurationAgent.ts +2138 -0
  632. package/src/ContactAgent.ts +1586 -0
  633. package/src/ContactRestApi.ts +235 -0
  634. package/src/Converters.ts +21633 -0
  635. package/src/CustomerServiceAgent.ts +1734 -0
  636. package/src/DashAgent.ts +1504 -0
  637. package/src/DashboardAgent.ts +658 -0
  638. package/src/DatabaseAgent.ts +120 -0
  639. package/src/DatabaseTableAgent.ts +534 -0
  640. package/src/Day_js.ts +41 -0
  641. package/src/DiagnosticsAgent.ts +744 -0
  642. package/src/DocumentAgent.ts +5018 -0
  643. package/src/DocumentMigrationAgent.ts +494 -0
  644. package/src/DocumentRestApi.ts +259 -0
  645. package/src/EMailAgent.ts +5210 -0
  646. package/src/Enums.ts +6438 -0
  647. package/src/ErpSyncAgent.ts +2658 -0
  648. package/src/FavouriteAgent.ts +720 -0
  649. package/src/FindAgent.ts +2330 -0
  650. package/src/ForeignSystemAgent.ts +1710 -0
  651. package/src/FreeTextAgent.ts +626 -0
  652. package/src/ImportAgent.ts +304 -0
  653. package/src/LicenseAgent.ts +1088 -0
  654. package/src/ListAgent.ts +10894 -0
  655. package/src/MDOAgent.ts +748 -0
  656. package/src/MarketingAgent.ts +776 -0
  657. package/src/MessagingAgent.ts +384 -0
  658. package/src/NavigatorAgent.ts +164 -0
  659. package/src/NumberAllocationAgent.ts +296 -0
  660. package/src/PersonAgent.ts +2919 -0
  661. package/src/PersonRestApi.ts +239 -0
  662. package/src/PhoneListAgent.ts +458 -0
  663. package/src/PocketAgent.ts +780 -0
  664. package/src/PreferenceAgent.ts +1900 -0
  665. package/src/PreviewsAgent.ts +116 -0
  666. package/src/ProjectAgent.ts +2275 -0
  667. package/src/ProjectRestApi.ts +239 -0
  668. package/src/QuoteAgent.ts +5294 -0
  669. package/src/RelationAgent.ts +220 -0
  670. package/src/ReplicationAgent.ts +325 -0
  671. package/src/ReportAgent.ts +575 -0
  672. package/src/ResourceAgent.ts +358 -0
  673. package/src/SaintAgent.ts +601 -0
  674. package/src/SaleAgent.ts +1862 -0
  675. package/src/SaleRestApi.ts +233 -0
  676. package/src/SelectionAgent.ts +2980 -0
  677. package/src/SentryAgent.ts +406 -0
  678. package/src/SoApiConstants.ts +8 -0
  679. package/src/TargetsAgent.ts +1104 -0
  680. package/src/TicketAgent.ts +3032 -0
  681. package/src/TimeZoneAgent.ts +528 -0
  682. package/src/TooltipsAgent.ts +116 -0
  683. package/src/UserAgent.ts +4798 -0
  684. package/src/UserDefinedFieldInfoAgent.ts +1764 -0
  685. package/src/ViewStateAgent.ts +858 -0
  686. package/src/WebApi.ts +908 -0
  687. package/src/WebApiBase.ts +562 -0
  688. package/src/WebhookAgent.ts +388 -0
  689. package/src/WorkflowAgent.ts +1054 -0
  690. package/tsconfig.esm.json +8 -0
  691. package/tsconfig.jest.json +12 -0
  692. package/tsconfig.json +35 -0
@@ -0,0 +1,1345 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ import * as enums from './Enums.js';
3
+ import * as base from './WebApiBase.js';
4
+ import * as carriers from './Carriers.js';
5
+ /**
6
+ * Collection of all services that works with Document data. This is services for the document information, not the physical document themselves. These are handled by the BLOB service methods.
7
+ */
8
+ export interface IDocumentAgent {
9
+ createDefaultDocumentEntityAsync(): Promise<carriers.DocumentEntity>;
10
+ saveDocumentEntityAsync(entity: carriers.DocumentEntity): Promise<carriers.DocumentEntity>;
11
+ deleteDocumentEntityAsync(DocumentEntityId: number): Promise<void>;
12
+ createDefaultDocumentPreviewAsync(): Promise<carriers.DocumentPreview>;
13
+ createDefaultSuggestedDocumentEntityAsync(): Promise<carriers.SuggestedDocumentEntity>;
14
+ saveSuggestedDocumentEntityAsync(entity: carriers.SuggestedDocumentEntity): Promise<carriers.SuggestedDocumentEntity>;
15
+ createDefaultTemplateVariablesParametersAsync(): Promise<carriers.TemplateVariablesParameters>;
16
+ getDocumentAsync(documentId: number): Promise<carriers.Document>;
17
+ getDocumentEntityAsync(documentEntityId: number): Promise<carriers.DocumentEntity>;
18
+ getDocumentStreamFromEntityAsync(request: carriers.Document_GetDocumentStreamFromEntityRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
19
+ getDocumentStreamFromEntityAsync(documentEntity: carriers.DocumentEntity, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
20
+ setDocumentStreamAsync(request: carriers.Document_SetDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
21
+ setDocumentStreamAsync(documentEntity: carriers.DocumentEntity, stream: ArrayBuffer | string, overwriteExistingData: boolean, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
22
+ createDocumentStreamAsync(request: carriers.Document_CreateDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
23
+ createDocumentStreamAsync(documentEntity: carriers.DocumentEntity, overwriteExistingData: boolean, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
24
+ getTemplateStreamAsync(request: carriers.Document_GetTemplateStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
25
+ getTemplateStreamAsync(templateName: string, allowPersonal: boolean, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
26
+ getSanitizedTemplateStreamAsync(request: carriers.Document_GetSanitizedTemplateStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
27
+ getSanitizedTemplateStreamAsync(templateName: string, allowPersonal: boolean, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
28
+ getTemplateStreamFromIdAsync(request: carriers.Document_GetTemplateStreamFromIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
29
+ getTemplateStreamFromIdAsync(templateId: number, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
30
+ getSanitizedTemplateStreamFromIdAsync(request: carriers.Document_GetSanitizedTemplateStreamFromIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
31
+ getSanitizedTemplateStreamFromIdAsync(templateId: number, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
32
+ getDocumentStreamAsync(request: carriers.Document_GetDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
33
+ getDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
34
+ getSanitizedDocumentStreamAsync(request: carriers.Document_GetSanitizedDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
35
+ getSanitizedDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
36
+ getPreviewDocumentStreamAsync(request: carriers.Document_GetPreviewDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentPreview>;
37
+ getPreviewDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentPreview>;
38
+ getUnsanitizedPreviewDocumentStreamAsync(request: carriers.Document_GetUnsanitizedPreviewDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentPreview>;
39
+ getUnsanitizedPreviewDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentPreview>;
40
+ createNewPhysicalMailMergeDocumentFromTemplateAsync(request: carriers.Document_CreateNewPhysicalMailMergeDocumentFromTemplateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
41
+ createNewPhysicalMailMergeDocumentFromTemplateAsync(documentId: number, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
42
+ createNewPhysicalDocumentFromTemplateWithCustomTagsAsync(request: carriers.Document_CreateNewPhysicalDocumentFromTemplateWithCustomTagsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
43
+ createNewPhysicalDocumentFromTemplateWithCustomTagsAsync(contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, customTags: string[], customValues: string[], uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
44
+ createNewPhysicalDocumentFromTemplateWithCustomTags2Async(request: carriers.Document_CreateNewPhysicalDocumentFromTemplateWithCustomTags2Request, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
45
+ createNewPhysicalDocumentFromTemplateWithCustomTags2Async(contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, customTags: carriers.StringDictionary, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
46
+ substituteTemplateVariablesAsync(request: carriers.Document_SubstituteTemplateVariablesRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
47
+ substituteTemplateVariablesAsync(source: string, generatorEncoding: enums.GeneratorEncoding, contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, cultureName: string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
48
+ substituteTemplateVariablesWithCustomTagsAsync(request: carriers.Document_SubstituteTemplateVariablesWithCustomTagsRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
49
+ substituteTemplateVariablesWithCustomTagsAsync(source: string, generatorEncoding: enums.GeneratorEncoding, customTags: string[], customValues: string[], contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, cultureName: string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
50
+ substituteTemplateVariablesWithCustomTags2Async(request: carriers.Document_SubstituteTemplateVariablesWithCustomTags2Request, webapi_options?: base.WebApiRequestOptions): Promise<string>;
51
+ substituteTemplateVariablesWithCustomTags2Async(source: string, generatorEncoding: enums.GeneratorEncoding, customTags: carriers.StringDictionary, contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, cultureName: string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
52
+ createTempFileAsync(request: carriers.Document_CreateTempFileRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
53
+ createTempFileAsync(filename: string, dataStream: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
54
+ getTempFileAsync(request: carriers.Document_GetTempFileRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
55
+ getTempFileAsync(filename: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
56
+ deleteTempFileAsync(request: carriers.Document_DeleteTempFileRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
57
+ deleteTempFileAsync(filename: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
58
+ setTemplateStreamAsync(request: carriers.Document_SetTemplateStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
59
+ setTemplateStreamAsync(filename: string, personal: boolean, stream: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
60
+ createNewPhysicalDocumentFromTemplateAsync(request: carriers.Document_CreateNewPhysicalDocumentFromTemplateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
61
+ createNewPhysicalDocumentFromTemplateAsync(contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
62
+ substituteMergeDocumentTemplateVariablesAsync(request: carriers.Document_SubstituteMergeDocumentTemplateVariablesRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
63
+ substituteMergeDocumentTemplateVariablesAsync(documentId: number, associateId: number, customTags: string[], customValues: string[], webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
64
+ substituteMergeDocumentTemplateVariables2Async(request: carriers.Document_SubstituteMergeDocumentTemplateVariables2Request, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
65
+ substituteMergeDocumentTemplateVariables2Async(documentId: number, associateId: number, customTags: carriers.StringDictionary, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
66
+ substituteTemplateVariablesExAsync(request: carriers.Document_SubstituteTemplateVariablesExRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
67
+ substituteTemplateVariablesExAsync(parameters: carriers.TemplateVariablesParameters, webapi_options?: base.WebApiRequestOptions): Promise<string>;
68
+ verifyGetDocumentStreamAsync(request: carriers.Document_VerifyGetDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
69
+ verifyGetDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<void>;
70
+ substituteMergeDocumentTemplateVariablesExAsync(request: carriers.Document_SubstituteMergeDocumentTemplateVariablesExRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
71
+ substituteMergeDocumentTemplateVariablesExAsync(mergeDocumentId: number, contactId: number, personId: number, projectId: number, selectionId: number, appointmentId: number, documentId: number, saleId: number, customTags: string[], customValues: string[], webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
72
+ substituteMergeDocumentTemplateVariablesEx2Async(request: carriers.Document_SubstituteMergeDocumentTemplateVariablesEx2Request, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
73
+ substituteMergeDocumentTemplateVariablesEx2Async(mergeDocumentId: number, contactId: number, personId: number, projectId: number, selectionId: number, appointmentId: number, documentId: number, saleId: number, customTags: carriers.StringDictionary, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
74
+ getDocumentUrlAsync(request: carriers.Document_GetDocumentUrlRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
75
+ getDocumentUrlAsync(documentId: number, versionId: string, writeableUrl: boolean, webapi_options?: base.WebApiRequestOptions): Promise<string>;
76
+ deletePhysicalDocumentAsync(request: carriers.Document_DeletePhysicalDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
77
+ deletePhysicalDocumentAsync(documentId: number, allowedReturnType: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
78
+ renameDocumentAsync(request: carriers.Document_RenameDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
79
+ renameDocumentAsync(documentId: number, newFilename: string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
80
+ getCheckoutStateAsync(request: carriers.Document_GetCheckoutStateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.CheckoutInfo>;
81
+ getCheckoutStateAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.CheckoutInfo>;
82
+ checkoutDocumentAsync(request: carriers.Document_CheckoutDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
83
+ checkoutDocumentAsync(documentId: number, allowedReturnTypes: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
84
+ checkinDocumentAsync(request: carriers.Document_CheckinDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
85
+ checkinDocumentAsync(documentId: number, allowedReturnTypes: string[], versionDescription: string, versionExtraFields: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
86
+ undoCheckoutDocumentAsync(request: carriers.Document_UndoCheckoutDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
87
+ undoCheckoutDocumentAsync(documentId: number, allowedReturnTypes: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
88
+ getVersionListAsync(request: carriers.Document_GetVersionListRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.VersionInfo[]>;
89
+ getVersionListAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.VersionInfo[]>;
90
+ getPluginListAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
91
+ getPluginCapabilitiesAsync(request: carriers.Document_GetPluginCapabilitiesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
92
+ getPluginCapabilitiesAsync(pluginId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
93
+ getDocumentPropertiesAsync(request: carriers.Document_GetDocumentPropertiesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
94
+ getDocumentPropertiesAsync(documentId: number, requestedProperties: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
95
+ getDocumentCommandsAsync(request: carriers.Document_GetDocumentCommandsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.CommandInfo[]>;
96
+ getDocumentCommandsAsync(documentId: number, allowedReturnTypes: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.CommandInfo[]>;
97
+ executeDocumentCommandAsync(request: carriers.Document_ExecuteDocumentCommandRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
98
+ executeDocumentCommandAsync(documentId: number, versionId: string, allowedReturnTypes: string[], command: string, additionalData: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
99
+ createDefaultDocumentEntityFromSuggestionAsync(request: carriers.Document_CreateDefaultDocumentEntityFromSuggestionRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
100
+ createDefaultDocumentEntityFromSuggestionAsync(suggestedDocumentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
101
+ saveDocumentTemplateStreamAsync(request: carriers.Document_SaveDocumentTemplateStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.TemplateInfo>;
102
+ saveDocumentTemplateStreamAsync(documentTemplateId: number, content: ArrayBuffer | string, languageCode: string, pluginId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.TemplateInfo>;
103
+ setDocumentStreamFromIdAsync(request: carriers.Document_SetDocumentStreamFromIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
104
+ setDocumentStreamFromIdAsync(documentId: number, stream: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
105
+ savePrivacyReportAsync(request: carriers.Document_SavePrivacyReportRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
106
+ savePrivacyReportAsync(htmlReport: string, title: string, personId: number, webapi_options?: base.WebApiRequestOptions): Promise<number>;
107
+ validateDocumentEntityAsync(request: carriers.Document_ValidateDocumentEntityRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
108
+ validateDocumentEntityAsync(documentEntity: carriers.DocumentEntity, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
109
+ getDocumentLengthAsync(request: carriers.Document_GetDocumentLengthRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
110
+ getDocumentLengthAsync(documentId: number, versionId: string, webapi_options?: base.WebApiRequestOptions): Promise<number>;
111
+ copyDocumentToCsAttachmentAsync(request: carriers.Document_CopyDocumentToCsAttachmentRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
112
+ copyDocumentToCsAttachmentAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<number>;
113
+ getDocumentListAsync(documentIds: number[]): Promise<carriers.Document[]>;
114
+ getAppointmentDocumentsAsync(request: carriers.Document_GetAppointmentDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
115
+ getAppointmentDocumentsAsync(appointmentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
116
+ getSaleDocumentsAsync(request: carriers.Document_GetSaleDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
117
+ getSaleDocumentsAsync(saleId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
118
+ getPersonDocumentsAsync(request: carriers.Document_GetPersonDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
119
+ getPersonDocumentsAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
120
+ getPublishedDocumentAsync(request: carriers.Document_GetPublishedDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document>;
121
+ getPublishedDocumentAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document>;
122
+ getPublishedDocumentsAsync(request: carriers.Document_GetPublishedDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
123
+ getPublishedDocumentsAsync(documentIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
124
+ getMyPublishedDocumentsAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
125
+ getPublishedDocumentsByDateAsync(request: carriers.Document_GetPublishedDocumentsByDateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
126
+ getPublishedDocumentsByDateAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
127
+ getContactDocumentsByTemplateTypesAsync(request: carriers.Document_GetContactDocumentsByTemplateTypesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
128
+ getContactDocumentsByTemplateTypesAsync(contactId: number, startTime: Date, endTime: Date, count: number, documentTemplateIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
129
+ getContactDocumentsByTemplateTypeAsync(request: carriers.Document_GetContactDocumentsByTemplateTypeRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
130
+ getContactDocumentsByTemplateTypeAsync(contactId: number, startTime: Date, endTime: Date, count: number, documentTemplateId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
131
+ getContactDocumentsByTemplateHeadingAsync(request: carriers.Document_GetContactDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
132
+ getContactDocumentsByTemplateHeadingAsync(contactId: number, startTime: Date, endTime: Date, count: number, templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
133
+ getContactDocumentsAsync(request: carriers.Document_GetContactDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
134
+ getContactDocumentsAsync(contactId: number, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
135
+ getPublishedPersonDocumentsByDateAsync(request: carriers.Document_GetPublishedPersonDocumentsByDateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
136
+ getPublishedPersonDocumentsByDateAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
137
+ getPublishedProjectDocumentsAsync(request: carriers.Document_GetPublishedProjectDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
138
+ getPublishedProjectDocumentsAsync(projectId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
139
+ getProjectMemberDocumentsByTemplateTypesAsync(request: carriers.Document_GetProjectMemberDocumentsByTemplateTypesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
140
+ getProjectMemberDocumentsByTemplateTypesAsync(personId: number, startTime: Date, endTime: Date, count: number, documentTemplateIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
141
+ getProjectMemberDocumentsByTemplateTypeAsync(request: carriers.Document_GetProjectMemberDocumentsByTemplateTypeRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
142
+ getProjectMemberDocumentsByTemplateTypeAsync(personId: number, startTime: Date, endTime: Date, count: number, documentTemplateId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
143
+ getProjectMemberDocumentsByTemplateHeadingAsync(request: carriers.Document_GetProjectMemberDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
144
+ getProjectMemberDocumentsByTemplateHeadingAsync(personId: number, startTime: Date, endTime: Date, count: number, templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
145
+ getProjectMemberDocumentsAsync(request: carriers.Document_GetProjectMemberDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
146
+ getProjectMemberDocumentsAsync(personId: number, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
147
+ getProjectDocumentsByTemplateTypesAsync(request: carriers.Document_GetProjectDocumentsByTemplateTypesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
148
+ getProjectDocumentsByTemplateTypesAsync(projectId: number, startTime: Date, endTime: Date, count: number, documentTemplateIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
149
+ getProjectDocumentsByTemplateTypeAsync(request: carriers.Document_GetProjectDocumentsByTemplateTypeRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
150
+ getProjectDocumentsByTemplateTypeAsync(projectId: number, startTime: Date, endTime: Date, count: number, documentTemplateId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
151
+ getProjectDocumentsByTemplateHeadingAsync(request: carriers.Document_GetProjectDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
152
+ getProjectDocumentsByTemplateHeadingAsync(projectId: number, startTime: Date, endTime: Date, count: number, templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
153
+ getProjectDocumentsAsync(request: carriers.Document_GetProjectDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
154
+ getProjectDocumentsAsync(projectId: number, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
155
+ getPersonDocumentsByTemplateTypesAsync(request: carriers.Document_GetPersonDocumentsByTemplateTypesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
156
+ getPersonDocumentsByTemplateTypesAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, documentTemplateIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
157
+ getPersonDocumentsByTemplateTypeAsync(request: carriers.Document_GetPersonDocumentsByTemplateTypeRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
158
+ getPersonDocumentsByTemplateTypeAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, documentTemplateId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
159
+ getPersonDocumentsByTemplateHeadingAsync(request: carriers.Document_GetPersonDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
160
+ getPersonDocumentsByTemplateHeadingAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
161
+ getPersonDocumentsByDateAsync(request: carriers.Document_GetPersonDocumentsByDateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
162
+ getPersonDocumentsByDateAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
163
+ getDocumentsByTemplateHeadingAsync(request: carriers.Document_GetDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
164
+ getDocumentsByTemplateHeadingAsync(templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
165
+ getSuggestedDocumentEntityAsync(suggestedDocumentEntityId: number): Promise<carriers.SuggestedDocumentEntity>;
166
+ }
167
+ /**
168
+ * Collection of all services that works with Document data. This is services for the document information, not the physical document themselves. These are handled by the BLOB service methods.
169
+ */
170
+ export declare class DocumentAgent extends base.WebApiBase implements IDocumentAgent {
171
+ constructor(baseUrl?: string, languageCode?: string, cultureCode?: string);
172
+ constructor(baseUrl?: string, resourceParsing?: base.ResourceParsing);
173
+ constructor(baseUrl: string, resourceManager: any);
174
+ constructor(baseUrl: string, config: AxiosRequestConfig, resourceManager: any);
175
+ constructor(baseUrl: string, config: AxiosRequestConfig, resourceParsing?: base.ResourceParsing);
176
+ constructor(baseUrl: string, config: AxiosRequestConfig, languageCode?: string, cultureCode?: string);
177
+ constructor(options: base.WebApiOptions);
178
+ /**
179
+ * Set default values into a new DocumentEntity.
180
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
181
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
182
+ * @returns A blank entity.
183
+ */
184
+ createDefaultDocumentEntityAsync(options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
185
+ saveDocumentEntityAsync(entity: carriers.DocumentEntity, options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
186
+ deleteDocumentEntityAsync(DocumentEntityId: number, options?: base.WebApiRequestOptions): Promise<void>;
187
+ /**
188
+ * Set default values into a new DocumentPreview.
189
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
190
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
191
+ * @returns A blank entity.
192
+ */
193
+ createDefaultDocumentPreviewAsync(options?: base.WebApiRequestOptions): Promise<carriers.DocumentPreview>;
194
+ /**
195
+ * Set default values into a new SuggestedDocumentEntity.
196
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
197
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
198
+ * @returns A blank entity.
199
+ */
200
+ createDefaultSuggestedDocumentEntityAsync(options?: base.WebApiRequestOptions): Promise<carriers.SuggestedDocumentEntity>;
201
+ saveSuggestedDocumentEntityAsync(entity: carriers.SuggestedDocumentEntity, options?: base.WebApiRequestOptions): Promise<carriers.SuggestedDocumentEntity>;
202
+ /**
203
+ * Set default values into a new TemplateVariablesParameters.
204
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
205
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
206
+ * @returns A blank entity.
207
+ */
208
+ createDefaultTemplateVariablesParametersAsync(options?: base.WebApiRequestOptions): Promise<carriers.TemplateVariablesParameters>;
209
+ getDocumentAsync(documentId: number, options?: base.WebApiRequestOptions): Promise<carriers.Document>;
210
+ getDocumentEntityAsync(documentEntityId: number, options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
211
+ private _getDocumentStreamFromEntityAsync;
212
+ /**
213
+ * Get the document as a stream
214
+ * @param request - DocumentEntity
215
+ * @returns The document as a Stream
216
+ */
217
+ getDocumentStreamFromEntityAsync(request: carriers.Document_GetDocumentStreamFromEntityRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
218
+ /**
219
+ * Get the document as a stream
220
+ * @param documentEntity - The document entity object that refers to the binary data (document)
221
+ * @returns The document as a Stream
222
+ */
223
+ getDocumentStreamFromEntityAsync(documentEntity: carriers.DocumentEntity, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
224
+ private _setDocumentStreamAsync;
225
+ /**
226
+ * Store a document&apos;s contents from its stream. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
227
+ * @param request - DocumentEntity, Stream, OverwriteExistingData
228
+ * @returns Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
229
+ */
230
+ setDocumentStreamAsync(request: carriers.Document_SetDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
231
+ /**
232
+ * Store a document&apos;s contents from its stream. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
233
+ * @param documentEntity - The document entity object that the binary data (document) should be stored to. Its file name may be amended by this call, see the return value
234
+ * @param stream - The document as a stream.
235
+ * @param overwriteExistingData - If true, the stream will overwrite existing data stored for this record in the document archive; this works only for documents that already have a physical document in existence. If false, the call will only work for a document that has no physical document in the archive, and such a physical document will be created.
236
+ * @returns Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
237
+ */
238
+ setDocumentStreamAsync(documentEntity: carriers.DocumentEntity, stream: ArrayBuffer | string, overwriteExistingData: boolean, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
239
+ private _createDocumentStreamAsync;
240
+ /**
241
+ * Creates a new Stream that can be used to store the document in the file archive.
242
+ * @param request - DocumentEntity, OverwriteExistingData
243
+ * @returns A writeable stream. When written and closed, the stream will become the new document content, subject to locking and versioning constraints.
244
+ */
245
+ createDocumentStreamAsync(request: carriers.Document_CreateDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
246
+ /**
247
+ * Creates a new Stream that can be used to store the document in the file archive.
248
+ * @param documentEntity - The document the stream belongs to
249
+ * @param overwriteExistingData - If true, the stream will overwrite existing data stored for this record in the document archive
250
+ * @returns A writeable stream. When written and closed, the stream will become the new document content, subject to locking and versioning constraints.
251
+ */
252
+ createDocumentStreamAsync(documentEntity: carriers.DocumentEntity, overwriteExistingData: boolean, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
253
+ private _getTemplateStreamAsync;
254
+ /**
255
+ * Retrieve a stream to a mail template based on its name
256
+ * @param request - TemplateName, AllowPersonal, UiCulture
257
+ * @returns Open stream to the mail template
258
+ */
259
+ getTemplateStreamAsync(request: carriers.Document_GetTemplateStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
260
+ /**
261
+ * Retrieve a stream to a mail template based on its name
262
+ * @param templateName - Filename of mail template to retrieve
263
+ * @param allowPersonal - If true, try looking up template in personal area before looking in shared document template area
264
+ * @param uiCulture - Language variation of template to use. (ISO code: "en-US" or "nb-NO" etc). Used to select a template of the appropriate language. Can be overridden in SO ARC by user preference "PreferDocLang".
265
+ * @returns Open stream to the mail template
266
+ */
267
+ getTemplateStreamAsync(templateName: string, allowPersonal: boolean, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
268
+ private _getSanitizedTemplateStreamAsync;
269
+ /**
270
+ * Retrieve a stream to a mail template based on its name. Sanitizes the contents if possible.
271
+ * @param request - TemplateName, AllowPersonal, UiCulture
272
+ * @returns Open stream to the mail template
273
+ */
274
+ getSanitizedTemplateStreamAsync(request: carriers.Document_GetSanitizedTemplateStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
275
+ /**
276
+ * Retrieve a stream to a mail template based on its name. Sanitizes the contents if possible.
277
+ * @param templateName - Filename of mail template to retrieve
278
+ * @param allowPersonal - If true, try looking up template in personal area before looking in shared document template area
279
+ * @param uiCulture - Language variation of template to use. (ISO code: "en-US" or "nb-NO" etc). Used to select a template of the appropriate language. Can be overridden in SO ARC by user preference "PreferDocLang".
280
+ * @returns Open stream to the mail template
281
+ */
282
+ getSanitizedTemplateStreamAsync(templateName: string, allowPersonal: boolean, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
283
+ private _getTemplateStreamFromIdAsync;
284
+ /**
285
+ * Retrieve a stream to a document template based on its id
286
+ * @param request - TemplateId, UiCulture
287
+ * @returns Open stream to the template
288
+ */
289
+ getTemplateStreamFromIdAsync(request: carriers.Document_GetTemplateStreamFromIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
290
+ /**
291
+ * Retrieve a stream to a document template based on its id
292
+ * @param templateId - Id of template to retrieve
293
+ * @param uiCulture - Language variation of template to use. (ISO code: "en-US" or "nb-NO" etc). Used to select a template of the appropriate language. Can be overridden in SO ARC by user preference "PreferDocLang".
294
+ * @returns Open stream to the template
295
+ */
296
+ getTemplateStreamFromIdAsync(templateId: number, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
297
+ private _getSanitizedTemplateStreamFromIdAsync;
298
+ /**
299
+ * Retrieve a stream to a document template based on its id. Sanitizes the contents if possible.
300
+ * @param request - TemplateId, UiCulture
301
+ * @returns Open stream to the template
302
+ */
303
+ getSanitizedTemplateStreamFromIdAsync(request: carriers.Document_GetSanitizedTemplateStreamFromIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
304
+ /**
305
+ * Retrieve a stream to a document template based on its id. Sanitizes the contents if possible.
306
+ * @param templateId - Id of template to retrieve
307
+ * @param uiCulture - Language variation of template to use. (ISO code: "en-US" or "nb-NO" etc). Used to select a template of the appropriate language. Can be overridden in SO ARC by user preference "PreferDocLang".
308
+ * @returns Open stream to the template
309
+ */
310
+ getSanitizedTemplateStreamFromIdAsync(templateId: number, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
311
+ private _getDocumentStreamAsync;
312
+ /**
313
+ * Get the document content as a stream
314
+ * @param request - DocumentId
315
+ * @returns The document as a Stream. This stream can be read once and clients should not assume it remains valid after a ReadToEnd or Close.
316
+ */
317
+ getDocumentStreamAsync(request: carriers.Document_GetDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
318
+ /**
319
+ * Get the document content as a stream
320
+ * @param documentId - SuperOffice document id
321
+ * @returns The document as a Stream. This stream can be read once and clients should not assume it remains valid after a ReadToEnd or Close.
322
+ */
323
+ getDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
324
+ private _getSanitizedDocumentStreamAsync;
325
+ /**
326
+ * Get the document content as a stream. Retrieves a sanitized version if possible
327
+ * @param request - DocumentId
328
+ * @returns The document as a Stream. This stream can be read once and clients should not assume it remains valid after a ReadToEnd or Close.
329
+ */
330
+ getSanitizedDocumentStreamAsync(request: carriers.Document_GetSanitizedDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
331
+ /**
332
+ * Get the document content as a stream. Retrieves a sanitized version if possible
333
+ * @param documentId - SuperOffice document id
334
+ * @returns The document as a Stream. This stream can be read once and clients should not assume it remains valid after a ReadToEnd or Close.
335
+ */
336
+ getSanitizedDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
337
+ private _getPreviewDocumentStreamAsync;
338
+ /**
339
+ * Get the preview version of the document content as a stream. Retrieves a sanitized version if possible
340
+ * @param request - DocumentId
341
+ * @returns Preview version of the document
342
+ */
343
+ getPreviewDocumentStreamAsync(request: carriers.Document_GetPreviewDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentPreview>;
344
+ /**
345
+ * Get the preview version of the document content as a stream. Retrieves a sanitized version if possible
346
+ * @param documentId - SuperOffice document id
347
+ * @returns Preview version of the document
348
+ */
349
+ getPreviewDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentPreview>;
350
+ private _getUnsanitizedPreviewDocumentStreamAsync;
351
+ /**
352
+ * Get the preview version of the document content as a stream. Retrieves an unsanitized version. This has less CPU impact but the caller must sanitize the content before presenting it to the user.
353
+ * @param request - DocumentId
354
+ * @returns Unsanitized preview version of the document
355
+ */
356
+ getUnsanitizedPreviewDocumentStreamAsync(request: carriers.Document_GetUnsanitizedPreviewDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentPreview>;
357
+ /**
358
+ * Get the preview version of the document content as a stream. Retrieves an unsanitized version. This has less CPU impact but the caller must sanitize the content before presenting it to the user.
359
+ * @param documentId - SuperOffice document id
360
+ * @returns Unsanitized preview version of the document
361
+ */
362
+ getUnsanitizedPreviewDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentPreview>;
363
+ private _createNewPhysicalMailMergeDocumentFromTemplateAsync;
364
+ /**
365
+ * Create a new physical document based on the documents template. Do not replace template tags, as the document is going to be used as a mail merge source. Use GetDocumentStream to obtain the created documents. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
366
+ * @param request - DocumentId, UiCulture
367
+ * @returns The document object with updated info after creating the document.
368
+ */
369
+ createNewPhysicalMailMergeDocumentFromTemplateAsync(request: carriers.Document_CreateNewPhysicalMailMergeDocumentFromTemplateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
370
+ /**
371
+ * Create a new physical document based on the documents template. Do not replace template tags, as the document is going to be used as a mail merge source. Use GetDocumentStream to obtain the created documents. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
372
+ * @param documentId - Identifier for a document. The template to use is stored in the document entity.
373
+ * @param uiCulture - Language variation of template to use. (ISO code: "en-US" or "nb-NO" etc). Used to select a template of the appropriate language. Can be overridden in SO ARC by user preference "PreferDocLang".
374
+ * @returns The document object with updated info after creating the document.
375
+ */
376
+ createNewPhysicalMailMergeDocumentFromTemplateAsync(documentId: number, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
377
+ private _createNewPhysicalDocumentFromTemplateWithCustomTagsAsync;
378
+ /**
379
+ * Create a new physical document based on a document template and store it in the document archive. Tags are substituted according to the provided id&apos;s. Use GetDocumentStream to obtain the created document content. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
380
+ * @param request - ContactId, PersonId, AppointmentId, DocumentId, SaleId, SelectionId, ProjectId, CustomTags, CustomValues, UiCulture
381
+ * @returns The document object with updated info after creating the document
382
+ */
383
+ createNewPhysicalDocumentFromTemplateWithCustomTagsAsync(request: carriers.Document_CreateNewPhysicalDocumentFromTemplateWithCustomTagsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
384
+ /**
385
+ * Create a new physical document based on a document template and store it in the document archive. Tags are substituted according to the provided id&apos;s. Use GetDocumentStream to obtain the created document content. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
386
+ * @param contactId - Identifier for a contact. Defaults to document's contact if 0
387
+ * @param personId - Identifier for a person. Defaults to document's person if 0
388
+ * @param appointmentId - identifier for an appointment. Defaults to document if 0
389
+ * @param documentId - Identifier for the document
390
+ * @param saleId - Identifier for sale. Defaults to document's sale if 0.
391
+ * @param selectionId - identifier for selection.
392
+ * @param projectId - identifier for project. Defaults to document's project if 0
393
+ * @param customTags - Array of custom tag names. Each name should have exactly four characters. There should be exactly one value for each tag, i.e., the lengths of the customTags and customValues arrays should be the same.
394
+ * @param customValues - Array of values for custom tags. There should be exactly one value for each tag, i.e., the lengths of the customTags and customValues arrays should be the same.
395
+ * @param uiCulture - Language variation of template to use when creating document. (ISO code - "en-US" or "nb-NO" etc). Used to select a template of the appropriate language. Can be overridden in SO ARC by user preference "PreferDocLang".
396
+ * @returns The document object with updated info after creating the document
397
+ */
398
+ createNewPhysicalDocumentFromTemplateWithCustomTagsAsync(contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, customTags: string[], customValues: string[], uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
399
+ private _createNewPhysicalDocumentFromTemplateWithCustomTags2Async;
400
+ /**
401
+ * Create a new physical document based on a document template and store it in the document archive. Tags are substituted according to the provided id&apos;s. Use GetDocumentStream to obtain the created document content. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
402
+ * @param request - ContactId, PersonId, AppointmentId, DocumentId, SaleId, SelectionId, ProjectId, CustomTags, UiCulture
403
+ * @returns The document object with updated info after creating the document
404
+ */
405
+ createNewPhysicalDocumentFromTemplateWithCustomTags2Async(request: carriers.Document_CreateNewPhysicalDocumentFromTemplateWithCustomTags2Request, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
406
+ /**
407
+ * Create a new physical document based on a document template and store it in the document archive. Tags are substituted according to the provided id&apos;s. Use GetDocumentStream to obtain the created document content. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
408
+ * @param contactId - Identifier for a contact. Defaults to document's contact if 0
409
+ * @param personId - Identifier for a person. Defaults to document's person if 0
410
+ * @param appointmentId - identifier for an appointment. Defaults to document if 0
411
+ * @param documentId - Identifier for the document
412
+ * @param saleId - Identifier for sale. Defaults to document's sale if 0.
413
+ * @param selectionId - identifier for selection.
414
+ * @param projectId - identifier for project. Defaults to document's project if 0
415
+ * @param customTags - Dictionary of custom tag names and values. Each name should have exactly four characters. There should be exactly one value for each tag.
416
+ * @param uiCulture - Language variation of template to use when creating document. (ISO code - "en-US" or "nb-NO" etc). Used to select a template of the appropriate language. Can be overridden in SO ARC by user preference "PreferDocLang".
417
+ * @returns The document object with updated info after creating the document
418
+ */
419
+ createNewPhysicalDocumentFromTemplateWithCustomTags2Async(contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, customTags: carriers.StringDictionary, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
420
+ private _substituteTemplateVariablesAsync;
421
+ /**
422
+ * Parse the source string, and replace any template variable tags with their values, based on the ID&apos;s given in the other parameters.
423
+ * @param request - Source, GeneratorEncoding, ContactId, PersonId, AppointmentId, DocumentId, SaleId, SelectionId, ProjectId, CultureName
424
+ * @returns Source string with templates substituted, using the same encoding as for the source (binary data will be returned in Base64).
425
+ */
426
+ substituteTemplateVariablesAsync(request: carriers.Document_SubstituteTemplateVariablesRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
427
+ /**
428
+ * Parse the source string, and replace any template variable tags with their values, based on the ID&apos;s given in the other parameters.
429
+ * @param source - Source string to parse for template variables. Such variables must have delimiters corresponding to the standard for the given generator encoding.<p/>Non-text source data (such as the binary content of a .doc file) should be passed in as Base64.
430
+ * @param generatorEncoding - Encoding of source string. Non-text formats such as MsWord or Excel should be Base64 encoded in the source string.
431
+ * @param contactId - Identifier for a contact
432
+ * @param personId - Identifier for a person
433
+ * @param appointmentId - Identifier for an appointment
434
+ * @param documentId - Identifier for a document
435
+ * @param saleId - Identifier for a sale
436
+ * @param selectionId - Identifier for a selection
437
+ * @param projectId - Identifier for a project
438
+ * @param cultureName - Name of culture to be used for culture-sensitive data, such as dates or multi-language texts. Use a blank string to accept whatever current culture is set on the server (possibly not a good choice in multinational organizations with a single server).
439
+ * @returns Source string with templates substituted, using the same encoding as for the source (binary data will be returned in Base64).
440
+ */
441
+ substituteTemplateVariablesAsync(source: string, generatorEncoding: enums.GeneratorEncoding, contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, cultureName: string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
442
+ private _substituteTemplateVariablesWithCustomTagsAsync;
443
+ /**
444
+ * Parse the source string, and replace any template variable tags with their values, based on the ID&apos;s given in the other parameters.&lt;p/&gt;This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
445
+ * @param request - Source, GeneratorEncoding, CustomTags, CustomValues, ContactId, PersonId, AppointmentId, DocumentId, SaleId, SelectionId, ProjectId, CultureName
446
+ * @returns Source string with templates substituted, using the same encoding as for the source (binary data will be returned in Base64).
447
+ */
448
+ substituteTemplateVariablesWithCustomTagsAsync(request: carriers.Document_SubstituteTemplateVariablesWithCustomTagsRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
449
+ /**
450
+ * Parse the source string, and replace any template variable tags with their values, based on the ID&apos;s given in the other parameters.&lt;p/&gt;This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
451
+ * @param source - Source string to parse for template variables. Such variables must have delimiters corresponding to the standard for the given generator encoding.<p/>Non-text source data (such as the binary content of a .doc file) should be passed in as Base64.
452
+ * @param generatorEncoding - Encoding of source string. Non-text formats such as MsWord or Excel should be Base64 encoded in the source string.
453
+ * @param customTags - Array of custom tag names. Each name should have exactly four characters. There should be exactly one value for each tag, i.e., the lengths of the customTags and customValues arrays should be the same.
454
+ * @param customValues - Array of values for custom tags. There should be exactly one value for each tag, i.e., the lengths of the customTags and customValues arrays should be the same.
455
+ * @param contactId - Identifier for a contact
456
+ * @param personId - Identifier for a person
457
+ * @param appointmentId - Identifier for an appointment
458
+ * @param documentId - Identifier for a document
459
+ * @param saleId - Identifier for a sale
460
+ * @param selectionId - Identifier for a selection
461
+ * @param projectId - Identifier for a project
462
+ * @param cultureName - Name of culture to be used for culture-sensitive data, such as dates or multi-language texts. Use a blank string to accept whatever current culture is set on the server (possibly not a good choice in multinational organizations with a single server).
463
+ * @returns Source string with templates substituted, using the same encoding as for the source (binary data will be returned in Base64).
464
+ */
465
+ substituteTemplateVariablesWithCustomTagsAsync(source: string, generatorEncoding: enums.GeneratorEncoding, customTags: string[], customValues: string[], contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, cultureName: string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
466
+ private _substituteTemplateVariablesWithCustomTags2Async;
467
+ /**
468
+ * Parse the source string, and replace any template variable tags with their values, based on the ID&apos;s given in the other parameters.&lt;p/&gt;This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
469
+ * @param request - Source, GeneratorEncoding, CustomTags, ContactId, PersonId, AppointmentId, DocumentId, SaleId, SelectionId, ProjectId, CultureName
470
+ * @returns Source string with templates substituted, using the same encoding as for the source (binary data will be returned in Base64).
471
+ */
472
+ substituteTemplateVariablesWithCustomTags2Async(request: carriers.Document_SubstituteTemplateVariablesWithCustomTags2Request, webapi_options?: base.WebApiRequestOptions): Promise<string>;
473
+ /**
474
+ * Parse the source string, and replace any template variable tags with their values, based on the ID&apos;s given in the other parameters.&lt;p/&gt;This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
475
+ * @param source - Source string to parse for template variables. Such variables must have delimiters corresponding to the standard for the given generator encoding.<p/>Non-text source data (such as the binary content of a .doc file) should be passed in as Base64.
476
+ * @param generatorEncoding - Encoding of source string. Non-text formats such as MsWord or Excel should be Base64 encoded in the source string.
477
+ * @param customTags - Dictionary of custom tag names and values. Each name should have exactly four characters. There should be exactly one value for each tag.
478
+ * @param contactId - Identifier for a contact
479
+ * @param personId - Identifier for a person
480
+ * @param appointmentId - Identifier for an appointment
481
+ * @param documentId - Identifier for a document
482
+ * @param saleId - Identifier for a sale
483
+ * @param selectionId - Identifier for a selection
484
+ * @param projectId - Identifier for a project
485
+ * @param cultureName - Name of culture to be used for culture-sensitive data, such as dates or multi-language texts. Use a blank string to accept whatever current culture is set on the server (possibly not a good choice in multinational organizations with a single server).
486
+ * @returns Source string with templates substituted, using the same encoding as for the source (binary data will be returned in Base64).
487
+ */
488
+ substituteTemplateVariablesWithCustomTags2Async(source: string, generatorEncoding: enums.GeneratorEncoding, customTags: carriers.StringDictionary, contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, cultureName: string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
489
+ private _createTempFileAsync;
490
+ /**
491
+ * Create a new temporary file based on the provided stream. Specified filename may be overridden, and actual name is returned.
492
+ * @param request - Filename, DataStream
493
+ * @returns Actual used filename.
494
+ */
495
+ createTempFileAsync(request: carriers.Document_CreateTempFileRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
496
+ /**
497
+ * Create a new temporary file based on the provided stream. Specified filename may be overridden, and actual name is returned.
498
+ * @param filename - Wanted name of file.
499
+ * @param dataStream - Data to be added to the file.
500
+ * @returns Actual used filename.
501
+ */
502
+ createTempFileAsync(filename: string, dataStream: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
503
+ private _getTempFileAsync;
504
+ /**
505
+ * Get data stream for temporary file created with CreateTempFile.
506
+ * @param request - Filename
507
+ * @returns The document as a Stream
508
+ */
509
+ getTempFileAsync(request: carriers.Document_GetTempFileRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
510
+ /**
511
+ * Get data stream for temporary file created with CreateTempFile.
512
+ * @param filename - Name of temporary file to retrieve.
513
+ * @returns The document as a Stream
514
+ */
515
+ getTempFileAsync(filename: string, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
516
+ private _deleteTempFileAsync;
517
+ /**
518
+ * Delete a temporary file created with CreateTempFile.
519
+ * @param request - Filename
520
+ * @returns
521
+ */
522
+ deleteTempFileAsync(request: carriers.Document_DeleteTempFileRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
523
+ /**
524
+ * Delete a temporary file created with CreateTempFile.
525
+ * @param filename - Name of temporary file to delete.
526
+ * @returns
527
+ */
528
+ deleteTempFileAsync(filename: string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
529
+ private _setTemplateStreamAsync;
530
+ /**
531
+ * Save a mail signature template to the document archive
532
+ * @param request - Filename, Personal, Stream
533
+ * @returns This method has no return value
534
+ */
535
+ setTemplateStreamAsync(request: carriers.Document_SetTemplateStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
536
+ /**
537
+ * Save a mail signature template to the document archive
538
+ * @param filename - Filename of template.
539
+ * @param personal - If true, save the template in the user area, instead of in shared template area.
540
+ * @param stream - The signature template content as a stream.
541
+ * @returns This method has no return value
542
+ */
543
+ setTemplateStreamAsync(filename: string, personal: boolean, stream: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<void>;
544
+ private _createNewPhysicalDocumentFromTemplateAsync;
545
+ /**
546
+ * Create a new document content based on a document template and store it in the document archive. Tags are substituted according to the provided id&apos;s. Use GetDocumentStream to obtain the created document. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
547
+ * @param request - ContactId, PersonId, AppointmentId, DocumentId, SaleId, SelectionId, ProjectId, UiCulture
548
+ * @returns The updated document entity, after creating the document content from the template.
549
+ */
550
+ createNewPhysicalDocumentFromTemplateAsync(request: carriers.Document_CreateNewPhysicalDocumentFromTemplateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
551
+ /**
552
+ * Create a new document content based on a document template and store it in the document archive. Tags are substituted according to the provided id&apos;s. Use GetDocumentStream to obtain the created document. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
553
+ * @param contactId - Identifier for a contact. Defaults to document's contact if 0
554
+ * @param personId - Identifier for a person. Defaults to document's person if 0
555
+ * @param appointmentId - identifier for an appointment. Defaults to document if 0
556
+ * @param documentId - Identifier for a document. The document defines the template to use.
557
+ * @param saleId - Identifier for sale. Defaults to document's sale if 0.
558
+ * @param selectionId - identifier for selection.
559
+ * @param projectId - identifier for project. Defaults to document's project if 0
560
+ * @param uiCulture - Language variation of template to use when creating document content. (ISO code "en-US" or "nb-NO" etc). Used to select a template of the appropriate language. Can be overridden in SO ARC by user preference "PreferDocLang".
561
+ * @returns The updated document entity, after creating the document content from the template.
562
+ */
563
+ createNewPhysicalDocumentFromTemplateAsync(contactId: number, personId: number, appointmentId: number, documentId: number, saleId: number, selectionId: number, projectId: number, uiCulture: string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
564
+ private _substituteMergeDocumentTemplateVariablesAsync;
565
+ /**
566
+ * Parse the source document, and replace any template variable tags with their values, based on the associate Id.&lt;p/&gt; The source document should be of type MergeDraft. This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
567
+ * @param request - DocumentId, AssociateId, CustomTags, CustomValues
568
+ * @returns The document as a Stream
569
+ */
570
+ substituteMergeDocumentTemplateVariablesAsync(request: carriers.Document_SubstituteMergeDocumentTemplateVariablesRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
571
+ /**
572
+ * Parse the source document, and replace any template variable tags with their values, based on the associate Id.&lt;p/&gt; The source document should be of type MergeDraft. This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
573
+ * @param documentId - The document id that refers to the binary data (document)
574
+ * @param associateId - The associateId used to subsitute tags in the document.
575
+ * @param customTags - Array of custom tag names. Each name should have exactly four characters. There should be exactly one value for each tag, i.e., the lengths of the customTags and customValues arrays should be the same.
576
+ * @param customValues - Array of values for custom tags. There should be exactly one value for each tag, i.e., the lengths of the customTags and customValues arrays should be the same.
577
+ * @returns The document as a Stream
578
+ */
579
+ substituteMergeDocumentTemplateVariablesAsync(documentId: number, associateId: number, customTags: string[], customValues: string[], webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
580
+ private _substituteMergeDocumentTemplateVariables2Async;
581
+ /**
582
+ * Parse the source document, and replace any template variable tags with their values, based on the associate Id.&lt;p/&gt; The source document should be of type MergeDraft. This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
583
+ * @param request - DocumentId, AssociateId, CustomTags
584
+ * @returns The document as a Stream
585
+ */
586
+ substituteMergeDocumentTemplateVariables2Async(request: carriers.Document_SubstituteMergeDocumentTemplateVariables2Request, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
587
+ /**
588
+ * Parse the source document, and replace any template variable tags with their values, based on the associate Id.&lt;p/&gt; The source document should be of type MergeDraft. This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
589
+ * @param documentId - The document id that refers to the binary data (document)
590
+ * @param associateId - The associateId used to subsitute tags in the document.
591
+ * @param customTags - Dictionary of custom tag names and values. Each name should have exactly four characters. There should be exactly one value for each tag.
592
+ * @returns The document as a Stream
593
+ */
594
+ substituteMergeDocumentTemplateVariables2Async(documentId: number, associateId: number, customTags: carriers.StringDictionary, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
595
+ private _substituteTemplateVariablesExAsync;
596
+ /**
597
+ * Parse the source string, and replace any template variable tags with their values, based on the identities, custom values and entities specified in the other parameters.
598
+ * @param request - Parameters
599
+ * @returns Source string with templates substituted, using the same encoding as for the source (binary data will be returned in Base64).
600
+ */
601
+ substituteTemplateVariablesExAsync(request: carriers.Document_SubstituteTemplateVariablesExRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
602
+ /**
603
+ * Parse the source string, and replace any template variable tags with their values, based on the identities, custom values and entities specified in the other parameters.
604
+ * @param parameters - Name of culture to be used for culture-sensitive data, such as dates or multi-language texts. Use a blank string to accept whatever current culture is set on the server (possibly not a good choice in multinational organizations with a single server).
605
+ * @returns Source string with templates substituted, using the same encoding as for the source (binary data will be returned in Base64).
606
+ */
607
+ substituteTemplateVariablesExAsync(parameters: carriers.TemplateVariablesParameters, webapi_options?: base.WebApiRequestOptions): Promise<string>;
608
+ private _verifyGetDocumentStreamAsync;
609
+ /**
610
+ * Verify that the requested document stream exists, and that we can access it, without actually getting the stream.
611
+ * @param request - DocumentId
612
+ * @returns
613
+ */
614
+ verifyGetDocumentStreamAsync(request: carriers.Document_VerifyGetDocumentStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<void>;
615
+ /**
616
+ * Verify that the requested document stream exists, and that we can access it, without actually getting the stream.
617
+ * @param documentId - The document id that refers to the binary data (document)
618
+ * @returns
619
+ */
620
+ verifyGetDocumentStreamAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<void>;
621
+ private _substituteMergeDocumentTemplateVariablesExAsync;
622
+ /**
623
+ * Parse the source document, and replace any template variable tags with their values, based on the provided identifiers.&lt;p/&gt; The source document should be of type MergeDraft. This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
624
+ * @param request - MergeDocumentId, ContactId, PersonId, ProjectId, SelectionId, AppointmentId, DocumentId, SaleId, CustomTags, CustomValues
625
+ * @returns The document as a Stream
626
+ */
627
+ substituteMergeDocumentTemplateVariablesExAsync(request: carriers.Document_SubstituteMergeDocumentTemplateVariablesExRequest, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
628
+ /**
629
+ * Parse the source document, and replace any template variable tags with their values, based on the provided identifiers.&lt;p/&gt; The source document should be of type MergeDraft. This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
630
+ * @param mergeDocumentId - The document id that refers to the binary data (document)
631
+ * @param contactId - The contact identifier to use for template substitution
632
+ * @param personId - The person identifier to use for template substitution
633
+ * @param projectId - The project identifier to use for template substitution
634
+ * @param selectionId - The selection identifier to use for template substitution
635
+ * @param appointmentId - The appointment identifier to use for template substitution
636
+ * @param documentId - The document identifier to use for template substitution
637
+ * @param saleId - The sale identifier to use for template substitution
638
+ * @param customTags - Array of custom tag names. Each name should have exactly four characters. There should be exactly one value for each tag, i.e., the lengths of the customTags and customValues arrays should be the same.
639
+ * @param customValues - Array of values for custom tags. There should be exactly one value for each tag, i.e., the lengths of the customTags and customValues arrays should be the same.
640
+ * @returns The document as a Stream
641
+ */
642
+ substituteMergeDocumentTemplateVariablesExAsync(mergeDocumentId: number, contactId: number, personId: number, projectId: number, selectionId: number, appointmentId: number, documentId: number, saleId: number, customTags: string[], customValues: string[], webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
643
+ private _substituteMergeDocumentTemplateVariablesEx2Async;
644
+ /**
645
+ * Parse the source document, and replace any template variable tags with their values, based on the provided identifiers.&lt;p/&gt; The source document should be of type MergeDraft. This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
646
+ * @param request - MergeDocumentId, ContactId, PersonId, ProjectId, SelectionId, AppointmentId, DocumentId, SaleId, CustomTags
647
+ * @returns The document as a Stream
648
+ */
649
+ substituteMergeDocumentTemplateVariablesEx2Async(request: carriers.Document_SubstituteMergeDocumentTemplateVariablesEx2Request, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
650
+ /**
651
+ * Parse the source document, and replace any template variable tags with their values, based on the provided identifiers.&lt;p/&gt; The source document should be of type MergeDraft. This method also takes a pair of arrays specifying custom tags and their values; these tags will be available during substitution in addition to all the existing tags. Custom values will override values otherwise set.
652
+ * @param mergeDocumentId - The document id that refers to the binary data (document)
653
+ * @param contactId - The contact identifier to use for template substitution
654
+ * @param personId - The person identifier to use for template substitution
655
+ * @param projectId - The project identifier to use for template substitution
656
+ * @param selectionId - The selection identifier to use for template substitution
657
+ * @param appointmentId - The appointment identifier to use for template substitution
658
+ * @param documentId - The document identifier to use for template substitution
659
+ * @param saleId - The sale identifier to use for template substitution
660
+ * @param customTags - Dictionary of custom tag names and values. Each name should have exactly four characters. There should be exactly one value for each tag
661
+ * @returns The document as a Stream
662
+ */
663
+ substituteMergeDocumentTemplateVariablesEx2Async(mergeDocumentId: number, contactId: number, personId: number, projectId: number, selectionId: number, appointmentId: number, documentId: number, saleId: number, customTags: carriers.StringDictionary, webapi_options?: base.WebApiRequestOptions): Promise<ArrayBuffer | string>;
664
+ private _getDocumentUrlAsync;
665
+ /**
666
+ * Get a URL referring to the given document content.&lt;para/&gt;This URL may be passed to the ultimate client (text editor of some kind?), which is then responsible for all further operations.&lt;para/&gt;The returned string is a fully qualified URL.&lt;para/&gt;Not all documents and document plugins support this feature.
667
+ * @param request - DocumentId, VersionId, WriteableUrl
668
+ * @returns Fully resolved URL referring to the document. May be NULL or blank if plugin does not support URLs.
669
+ */
670
+ getDocumentUrlAsync(request: carriers.Document_GetDocumentUrlRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
671
+ /**
672
+ * Get a URL referring to the given document content.&lt;para/&gt;This URL may be passed to the ultimate client (text editor of some kind?), which is then responsible for all further operations.&lt;para/&gt;The returned string is a fully qualified URL.&lt;para/&gt;Not all documents and document plugins support this feature.
673
+ * @param documentId - SuperOffice document primary key
674
+ * @param versionId - Version ID if applicable/desired; a blank value implies "latest" version and is always acceptable.
675
+ * @param writeableUrl - If true, then a URL that supports saving is requested. Som edocument plugins may not support read-only URLs, so there is no guarantee that a False value will actually yield a read-only URL, and vice versa.
676
+ * @returns Fully resolved URL referring to the document. May be NULL or blank if plugin does not support URLs.
677
+ */
678
+ getDocumentUrlAsync(documentId: number, versionId: string, writeableUrl: boolean, webapi_options?: base.WebApiRequestOptions): Promise<string>;
679
+ private _deletePhysicalDocumentAsync;
680
+ /**
681
+ * Delete the document contents
682
+ * @param request - DocumentId, AllowedReturnType
683
+ * @returns Delete status - did removal succeed or not
684
+ */
685
+ deletePhysicalDocumentAsync(request: carriers.Document_DeletePhysicalDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
686
+ /**
687
+ * Delete the document contents
688
+ * @param documentId - document primary key
689
+ * @param allowedReturnType - List of return types that the client is prepared to handle, in case the document plugin needs to request additional processing. Standard allowed return types include 'None', 'Message', 'SoProtocol', 'CustomGui', 'Other'.<br/>An empty array implies that the client places no restriction on possible return action requests
690
+ * @returns Delete status - did removal succeed or not
691
+ */
692
+ deletePhysicalDocumentAsync(documentId: number, allowedReturnType: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
693
+ private _renameDocumentAsync;
694
+ /**
695
+ * Rename the physical document, i.e., change the file name or equivalent concept in the document archive.
696
+ * @param request - DocumentId, NewFilename
697
+ * @returns The actual, new "file" name. This will generally be derived from the suggested name, but may be amended.
698
+ */
699
+ renameDocumentAsync(request: carriers.Document_RenameDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<string>;
700
+ /**
701
+ * Rename the physical document, i.e., change the file name or equivalent concept in the document archive.
702
+ * @param documentId - SuperOffice document ID
703
+ * @param newFilename - Suggested new file name. The document archive may amend this to conform to uniqueness constraints, character range limitations etc.
704
+ * @returns The actual, new "file" name. This will generally be derived from the suggested name, but may be amended.
705
+ */
706
+ renameDocumentAsync(documentId: number, newFilename: string, webapi_options?: base.WebApiRequestOptions): Promise<string>;
707
+ private _getCheckoutStateAsync;
708
+ /**
709
+ * Get the current checkout state for a document, relative to the user perforing the call.
710
+ * @param request - DocumentId
711
+ * @returns Current checkout state of the document
712
+ */
713
+ getCheckoutStateAsync(request: carriers.Document_GetCheckoutStateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.CheckoutInfo>;
714
+ /**
715
+ * Get the current checkout state for a document, relative to the user perforing the call.
716
+ * @param documentId - SuperOffice document ID
717
+ * @returns Current checkout state of the document
718
+ */
719
+ getCheckoutStateAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.CheckoutInfo>;
720
+ private _checkoutDocumentAsync;
721
+ /**
722
+ * Check out a document for editing by the current user.
723
+ * @param request - DocumentId, AllowedReturnTypes
724
+ * @returns Return information, including possible requests for further processing ("Return Action"). Return actions are constrained by the allowedReturnTypes parameter.
725
+ */
726
+ checkoutDocumentAsync(request: carriers.Document_CheckoutDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
727
+ /**
728
+ * Check out a document for editing by the current user.
729
+ * @param documentId - SuperOffice document ID
730
+ * @param allowedReturnTypes - List of return types that the client is prepared to handle, in case the document plugin needs to request additional processing.<br/>Standard allowed return types include 'None', 'Message', 'SoProtocol', 'CustomGui', 'Other'.<br/>An empty array implies that the client places no restriction on possible return action requests.
731
+ * @returns Return information, including possible requests for further processing ("Return Action"). Return actions are constrained by the allowedReturnTypes parameter.
732
+ */
733
+ checkoutDocumentAsync(documentId: number, allowedReturnTypes: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
734
+ private _checkinDocumentAsync;
735
+ /**
736
+ * Check in a currently checked-out document
737
+ * @param request - DocumentId, AllowedReturnTypes, VersionDescription, VersionExtraFields
738
+ * @returns Return information, including possible requests for further processing ("Return Action"). Return actions are constrained by the allowedReturnTypes parameter.
739
+ */
740
+ checkinDocumentAsync(request: carriers.Document_CheckinDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
741
+ /**
742
+ * Check in a currently checked-out document
743
+ * @param documentId - SuperOffice document Id
744
+ * @param allowedReturnTypes - List of return types that the client is prepared to handle, in case the document plugin needs to request additional processing.<br/>Standard allowed return types include 'None', 'Message', 'SoProtocol', 'CustomGui', 'Other'.<br/>An empty array implies that the client places no restriction on possible return action requests.
745
+ * @param versionDescription - Optional textual description related to this version of the document; may be blank, and is discarded if the document/plugin do not support versioning.
746
+ * @param versionExtraFields - Optional extra metadata related to the new version (as opposed to metadata related to the document as a whole). Discarded if the document/plugin do not support versioning.
747
+ * @returns Return information, including possible requests for further processing ("Return Action"). Return actions are constrained by the allowedReturnTypes parameter.
748
+ */
749
+ checkinDocumentAsync(documentId: number, allowedReturnTypes: string[], versionDescription: string, versionExtraFields: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
750
+ private _undoCheckoutDocumentAsync;
751
+ /**
752
+ * Undo (abandon) a checkout
753
+ * @param request - DocumentId, AllowedReturnTypes
754
+ * @returns Return information, including possible requests for further processing ("Return Action"). Return actions are constrained by the allowedReturnTypes parameter.
755
+ */
756
+ undoCheckoutDocumentAsync(request: carriers.Document_UndoCheckoutDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
757
+ /**
758
+ * Undo (abandon) a checkout
759
+ * @param documentId - SuperOffice document ID
760
+ * @param allowedReturnTypes - List of return types that the client is prepared to handle, in case the document plugin needs to request additional processing.<br/>Standard allowed return types include 'None', 'Message', 'SoProtocol', 'CustomGui', 'Other'.<br/>An empty array implies that the client places no restriction on possible return action requests.
761
+ * @returns Return information, including possible requests for further processing ("Return Action"). Return actions are constrained by the allowedReturnTypes parameter.
762
+ */
763
+ undoCheckoutDocumentAsync(documentId: number, allowedReturnTypes: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
764
+ private _getVersionListAsync;
765
+ /**
766
+ * Get a list of existing, committed versions for a given document
767
+ * @param request - DocumentId
768
+ * @returns Array of objects describing the existing, committed versions for this document
769
+ */
770
+ getVersionListAsync(request: carriers.Document_GetVersionListRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.VersionInfo[]>;
771
+ /**
772
+ * Get a list of existing, committed versions for a given document
773
+ * @param documentId - SuperOffice document Id
774
+ * @returns Array of objects describing the existing, committed versions for this document
775
+ */
776
+ getVersionListAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.VersionInfo[]>;
777
+ private _getPluginListAsync;
778
+ /**
779
+ * Get a list of installed document plugins
780
+ * @returns Dictionary mapping plugin id=plugin name
781
+ */
782
+ getPluginListAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
783
+ private _getPluginCapabilitiesAsync;
784
+ /**
785
+ * Get a list of plugin-dependent capabilities for a given document archive plugin.&lt;br/&gt;A standard set of properties is defined in SuperOffice.CRM.Documents.Constants.Capabilities.
786
+ * @param request - PluginId
787
+ * @returns Dictionary mapping capability names=values
788
+ */
789
+ getPluginCapabilitiesAsync(request: carriers.Document_GetPluginCapabilitiesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
790
+ /**
791
+ * Get a list of plugin-dependent capabilities for a given document archive plugin.&lt;br/&gt;A standard set of properties is defined in SuperOffice.CRM.Documents.Constants.Capabilities.
792
+ * @param pluginId - Numeric document plugin id, corresponding to the document.archiveProvider id or doctmpl.autoeventid.
793
+ * @returns Dictionary mapping capability names=values
794
+ */
795
+ getPluginCapabilitiesAsync(pluginId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
796
+ private _getDocumentPropertiesAsync;
797
+ /**
798
+ * Get plugin-dependent properties for the document. A number of standard properties that should be supported by all plugins are defined in SuperOffice.CRM.Documents.Constants.Properties.
799
+ * @param request - DocumentId, RequestedProperties
800
+ * @returns Dictionary of name=value pairs, corresponding to the requested properties.
801
+ */
802
+ getDocumentPropertiesAsync(request: carriers.Document_GetDocumentPropertiesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
803
+ /**
804
+ * Get plugin-dependent properties for the document. A number of standard properties that should be supported by all plugins are defined in SuperOffice.CRM.Documents.Constants.Properties.
805
+ * @param documentId - SuperOffice document ID
806
+ * @param requestedProperties - Array of property names whose values are being requested.
807
+ * @returns Dictionary of name=value pairs, corresponding to the requested properties.
808
+ */
809
+ getDocumentPropertiesAsync(documentId: number, requestedProperties: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
810
+ private _getDocumentCommandsAsync;
811
+ /**
812
+ * Get a list of custom commands valid for the specific document at this time. This information should not be cached by clients, as it may change between documents and over time.
813
+ * @param request - DocumentId, AllowedReturnTypes
814
+ * @returns Array of command information items. The command list is constrained by the allowedReturnTypes parameter.
815
+ */
816
+ getDocumentCommandsAsync(request: carriers.Document_GetDocumentCommandsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.CommandInfo[]>;
817
+ /**
818
+ * Get a list of custom commands valid for the specific document at this time. This information should not be cached by clients, as it may change between documents and over time.
819
+ * @param documentId - SuperOffice document ID
820
+ * @param allowedReturnTypes - List of return types that the client is prepared to handle, in case the document plugin needs to request additional processing.<br/>Standard allowed return types include 'None', 'Message', 'SoProtocol', 'CustomGui', 'Other'.<br/>An empty array implies that the client places no restriction on possible return action requests.<br/>In this context the parameter is used to filter the returned command list, so that commands that require return actions not supported, will not be included by the document plugin.
821
+ * @returns Array of command information items. The command list is constrained by the allowedReturnTypes parameter.
822
+ */
823
+ getDocumentCommandsAsync(documentId: number, allowedReturnTypes: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.CommandInfo[]>;
824
+ private _executeDocumentCommandAsync;
825
+ /**
826
+ * Execute a custom command on a particular document, optionally a particular version
827
+ * @param request - DocumentId, VersionId, AllowedReturnTypes, Command, AdditionalData
828
+ * @returns Return information, including possible requests for further processing ("Return Action"). Return actions are constrained by the allowedReturnTypes parameter.
829
+ */
830
+ executeDocumentCommandAsync(request: carriers.Document_ExecuteDocumentCommandRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
831
+ /**
832
+ * Execute a custom command on a particular document, optionally a particular version
833
+ * @param documentId - SuperOffice document ID
834
+ * @param versionId - Version ID if applicable/desired; a blank value implies "latest" version and is always acceptable.
835
+ * @param allowedReturnTypes - List of return types that the client is prepared to handle, in case the document plugin needs to request additional processing.<br/>Standard allowed return types include 'None', 'Message', 'SoProtocol', 'CustomGui', 'Other'.<br/>An empty array implies that the client places no restriction on possible return action requests.
836
+ * @param command - Command name, generally matching one of those returned from the GetDocumentCommands service. However, it is legal for document plugins to support commands that are not declared through GetDocumentCommands, for instance if a custom GUI needs to access plugin functionality.
837
+ * @param additionalData - Any additional data that the document command needs. This parameter can be used as a tunnel between a custom-programmed GUI and its plugin.<br/>It is suggested that the format is name=value, with one such pair per array item.
838
+ * @returns Return information, including possible requests for further processing ("Return Action"). Return actions are constrained by the allowedReturnTypes parameter.
839
+ */
840
+ executeDocumentCommandAsync(documentId: number, versionId: string, allowedReturnTypes: string[], command: string, additionalData: string[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.ReturnInfo>;
841
+ private _createDefaultDocumentEntityFromSuggestionAsync;
842
+ /**
843
+ *
844
+ * @param request - SuggestedDocumentId
845
+ * @returns
846
+ */
847
+ createDefaultDocumentEntityFromSuggestionAsync(request: carriers.Document_CreateDefaultDocumentEntityFromSuggestionRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
848
+ /**
849
+ *
850
+ * @param suggestedDocumentId -
851
+ * @returns
852
+ */
853
+ createDefaultDocumentEntityFromSuggestionAsync(suggestedDocumentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
854
+ private _saveDocumentTemplateStreamAsync;
855
+ /**
856
+ * Saves content in stream to document template file
857
+ * @param request - DocumentTemplateId, Content, LanguageCode, PluginId
858
+ * @returns Template info
859
+ */
860
+ saveDocumentTemplateStreamAsync(request: carriers.Document_SaveDocumentTemplateStreamRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.TemplateInfo>;
861
+ /**
862
+ * Saves content in stream to document template file
863
+ * @param documentTemplateId - Identifier for document template
864
+ * @param content - Stream containing content to be saved to document template file
865
+ * @param languageCode - Language variation of template to update. (ISO code: "en-US" or "nb-NO" etc). Used to select a template of the appropriate language. Can be overridden in SO ARC by user preference "PreferDocLang".
866
+ * @param pluginId - Plugin id. Use -1 to use the plugin specified in the template.
867
+ * @returns Template info
868
+ */
869
+ saveDocumentTemplateStreamAsync(documentTemplateId: number, content: ArrayBuffer | string, languageCode: string, pluginId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.TemplateInfo>;
870
+ private _setDocumentStreamFromIdAsync;
871
+ /**
872
+ * Store document content from stream. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
873
+ * @param request - DocumentId, Stream
874
+ * @returns Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
875
+ */
876
+ setDocumentStreamFromIdAsync(request: carriers.Document_SetDocumentStreamFromIdRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
877
+ /**
878
+ * Store document content from stream. Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
879
+ * @param documentId - The document entity object that the binary data (document) should be stored to. Its file name may be amended by this call, see the return value.
880
+ * @param stream - The document content as a stream.
881
+ * @returns Since there is a potential for a name conflict (the file name stored by the document entity earlier may prove to be invalid), the (possibly amended) document entity is returned. The client should not assume that any earlier, cached entity information is valid.
882
+ */
883
+ setDocumentStreamFromIdAsync(documentId: number, stream: ArrayBuffer | string, webapi_options?: base.WebApiRequestOptions): Promise<carriers.DocumentEntity>;
884
+ private _savePrivacyReportAsync;
885
+ /**
886
+ * Generates a Pdf from HTML and makes a document
887
+ * @param request - HtmlReport, Title, PersonId
888
+ * @returns Document id of saved report
889
+ */
890
+ savePrivacyReportAsync(request: carriers.Document_SavePrivacyReportRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
891
+ /**
892
+ * Generates a Pdf from HTML and makes a document
893
+ * @param htmlReport - Html to convert
894
+ * @param title - Title of report
895
+ * @param personId - Person id associated with the report
896
+ * @returns Document id of saved report
897
+ */
898
+ savePrivacyReportAsync(htmlReport: string, title: string, personId: number, webapi_options?: base.WebApiRequestOptions): Promise<number>;
899
+ private _validateDocumentEntityAsync;
900
+ /**
901
+ * Check that entity is ready for saving, return error messages by field.
902
+ * @param request - DocumentEntity
903
+ * @returns Error messages tagged by field.
904
+ */
905
+ validateDocumentEntityAsync(request: carriers.Document_ValidateDocumentEntityRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
906
+ /**
907
+ * Check that entity is ready for saving, return error messages by field.
908
+ * @param documentEntity - Entity to be checked for errors.
909
+ * @returns Error messages tagged by field.
910
+ */
911
+ validateDocumentEntityAsync(documentEntity: carriers.DocumentEntity, webapi_options?: base.WebApiRequestOptions): Promise<carriers.StringDictionary>;
912
+ private _getDocumentLengthAsync;
913
+ /**
914
+ * Get length of the document content in bytes.
915
+ * @param request - DocumentId, VersionId
916
+ * @returns The length of the document content in bytes.
917
+ */
918
+ getDocumentLengthAsync(request: carriers.Document_GetDocumentLengthRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
919
+ /**
920
+ * Get length of the document content in bytes.
921
+ * @param documentId - SuperOffice document id
922
+ * @param versionId - Version ID if applicable; a blank value implies "latest" version and is always acceptable.
923
+ * @returns The length of the document content in bytes.
924
+ */
925
+ getDocumentLengthAsync(documentId: number, versionId: string, webapi_options?: base.WebApiRequestOptions): Promise<number>;
926
+ private _copyDocumentToCsAttachmentAsync;
927
+ /**
928
+ * Copy a crm document to cs attachemnt. For use in mailings
929
+ * @param request - DocumentId
930
+ * @returns The primary key of the newly added attachment
931
+ */
932
+ copyDocumentToCsAttachmentAsync(request: carriers.Document_CopyDocumentToCsAttachmentRequest, webapi_options?: base.WebApiRequestOptions): Promise<number>;
933
+ /**
934
+ * Copy a crm document to cs attachemnt. For use in mailings
935
+ * @param documentId - The primary key of the document to copy to the cs attachment
936
+ * @returns The primary key of the newly added attachment
937
+ */
938
+ copyDocumentToCsAttachmentAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<number>;
939
+ getDocumentListAsync(documentIds: number[], options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
940
+ private _getAppointmentDocumentsAsync;
941
+ /**
942
+ * Get all documents that are linked to the appointment. I.e. the documents that are listed in the appointment dialog.
943
+ * @param request - AppointmentId
944
+ * @returns Array of documents
945
+ */
946
+ getAppointmentDocumentsAsync(request: carriers.Document_GetAppointmentDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
947
+ /**
948
+ * Get all documents that are linked to the appointment. I.e. the documents that are listed in the appointment dialog.
949
+ * @param appointmentId - The appointment id.
950
+ * @returns Array of documents
951
+ */
952
+ getAppointmentDocumentsAsync(appointmentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
953
+ private _getSaleDocumentsAsync;
954
+ /**
955
+ * Get all documents that are linked to the sale. I.e. the documents that are listed in the sale dialog.
956
+ * @param request - SaleId
957
+ * @returns Array of documents
958
+ */
959
+ getSaleDocumentsAsync(request: carriers.Document_GetSaleDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
960
+ /**
961
+ * Get all documents that are linked to the sale. I.e. the documents that are listed in the sale dialog.
962
+ * @param saleId - The sale id.
963
+ * @returns Array of documents
964
+ */
965
+ getSaleDocumentsAsync(saleId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
966
+ private _getPersonDocumentsAsync;
967
+ /**
968
+ * Get all documents that are linked to the person. I.e. the documents that are listed in the person dialog.
969
+ * @param request - PersonId
970
+ * @returns Array of documents
971
+ */
972
+ getPersonDocumentsAsync(request: carriers.Document_GetPersonDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
973
+ /**
974
+ * Get all documents that are linked to the person. I.e. the documents that are listed in the person dialog.
975
+ * @param personId - The person id.
976
+ * @returns Array of documents
977
+ */
978
+ getPersonDocumentsAsync(personId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
979
+ private _getPublishedDocumentAsync;
980
+ /**
981
+ * Get the document if it&apos;s published
982
+ * @param request - DocumentId
983
+ * @returns Document
984
+ */
985
+ getPublishedDocumentAsync(request: carriers.Document_GetPublishedDocumentRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document>;
986
+ /**
987
+ * Get the document if it&apos;s published
988
+ * @param documentId - The document id
989
+ * @returns Document
990
+ */
991
+ getPublishedDocumentAsync(documentId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document>;
992
+ private _getPublishedDocumentsAsync;
993
+ /**
994
+ * Get the published documents from an array of doucment ids.
995
+ * @param request - DocumentIds
996
+ * @returns Array of Document
997
+ */
998
+ getPublishedDocumentsAsync(request: carriers.Document_GetPublishedDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
999
+ /**
1000
+ * Get the published documents from an array of doucment ids.
1001
+ * @param documentIds - Array of document ids.
1002
+ * @returns Array of Document
1003
+ */
1004
+ getPublishedDocumentsAsync(documentIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1005
+ private _getMyPublishedDocumentsAsync;
1006
+ /**
1007
+ *
1008
+ * @returns Array of documents
1009
+ */
1010
+ getMyPublishedDocumentsAsync(webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1011
+ private _getPublishedDocumentsByDateAsync;
1012
+ /**
1013
+ * Method that returns a specified number of published document appointments within a time range. The document appointments is visible to the person specified or the document is in a project the person belongs to.
1014
+ * @param request - PersonId, IncludeProjectDocuments, StartTime, EndTime, Count
1015
+ * @returns Array of Appointments.
1016
+ */
1017
+ getPublishedDocumentsByDateAsync(request: carriers.Document_GetPublishedDocumentsByDateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1018
+ /**
1019
+ * Method that returns a specified number of published document appointments within a time range. The document appointments is visible to the person specified or the document is in a project the person belongs to.
1020
+ * @param personId - The personId
1021
+ * @param includeProjectDocuments - Include projectDocuments to select documents in projects person is a member of.
1022
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1023
+ * @param endTime - The end of the time interval.
1024
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1025
+ * @returns Array of Appointments.
1026
+ */
1027
+ getPublishedDocumentsByDateAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1028
+ private _getContactDocumentsByTemplateTypesAsync;
1029
+ /**
1030
+ * Method that returns a specified number of document appointments within a time range, filtered by document template types. The document appointments belong to the contact specified.
1031
+ * @param request - ContactId, StartTime, EndTime, Count, DocumentTemplateIds
1032
+ * @returns Array of Appointments.
1033
+ */
1034
+ getContactDocumentsByTemplateTypesAsync(request: carriers.Document_GetContactDocumentsByTemplateTypesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1035
+ /**
1036
+ * Method that returns a specified number of document appointments within a time range, filtered by document template types. The document appointments belong to the contact specified.
1037
+ * @param contactId - The contact id
1038
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1039
+ * @param endTime - The end of the time interval.
1040
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1041
+ * @param documentTemplateIds - Ids of the document template types to filter on.
1042
+ * @returns Array of Appointments.
1043
+ */
1044
+ getContactDocumentsByTemplateTypesAsync(contactId: number, startTime: Date, endTime: Date, count: number, documentTemplateIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1045
+ private _getContactDocumentsByTemplateTypeAsync;
1046
+ /**
1047
+ * Method that returns a specified number of document appointments within a time range, filtered by document template type. The document appointments belong to the contact specified.
1048
+ * @param request - ContactId, StartTime, EndTime, Count, DocumentTemplateId
1049
+ * @returns Array of Appointments.
1050
+ */
1051
+ getContactDocumentsByTemplateTypeAsync(request: carriers.Document_GetContactDocumentsByTemplateTypeRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1052
+ /**
1053
+ * Method that returns a specified number of document appointments within a time range, filtered by document template type. The document appointments belong to the contact specified.
1054
+ * @param contactId - The contact id
1055
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1056
+ * @param endTime - The end of the time interval.
1057
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1058
+ * @param documentTemplateId - Id of the document template type to filter on.
1059
+ * @returns Array of Appointments.
1060
+ */
1061
+ getContactDocumentsByTemplateTypeAsync(contactId: number, startTime: Date, endTime: Date, count: number, documentTemplateId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1062
+ private _getContactDocumentsByTemplateHeadingAsync;
1063
+ /**
1064
+ * Method that returns a specified number of document appointments within a time range, filtered by the document template heading. The document appointments belong to the contact specified. The heading represents a grouping or filtering of document templates.
1065
+ * @param request - ContactId, StartTime, EndTime, Count, TemplateHeadingId
1066
+ * @returns Array of Appointments.
1067
+ */
1068
+ getContactDocumentsByTemplateHeadingAsync(request: carriers.Document_GetContactDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1069
+ /**
1070
+ * Method that returns a specified number of document appointments within a time range, filtered by the document template heading. The document appointments belong to the contact specified. The heading represents a grouping or filtering of document templates.
1071
+ * @param contactId - The contact id
1072
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1073
+ * @param endTime - The end of the time interval.
1074
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1075
+ * @param templateHeadingId - The document template heading id. The heading represents a grouping or filtering of document templates.
1076
+ * @returns Array of Appointments.
1077
+ */
1078
+ getContactDocumentsByTemplateHeadingAsync(contactId: number, startTime: Date, endTime: Date, count: number, templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1079
+ private _getContactDocumentsAsync;
1080
+ /**
1081
+ * Method that returns a specified number of document appointments within a time range. The document appointments belong to the contact specified.
1082
+ * @param request - ContactId, StartTime, EndTime, Count
1083
+ * @returns Array of Appointments.
1084
+ */
1085
+ getContactDocumentsAsync(request: carriers.Document_GetContactDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1086
+ /**
1087
+ * Method that returns a specified number of document appointments within a time range. The document appointments belong to the contact specified.
1088
+ * @param contactId - The contact id
1089
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1090
+ * @param endTime - The end of the time interval.
1091
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1092
+ * @returns Array of Appointments.
1093
+ */
1094
+ getContactDocumentsAsync(contactId: number, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1095
+ private _getPublishedPersonDocumentsByDateAsync;
1096
+ /**
1097
+ * Method that returns a specified number of published document appointments within a time range. The document appointments belong to the person specified or the document is in a project the person belongs to.
1098
+ * @param request - PersonId, IncludeProjectDocuments, StartTime, EndTime, Count
1099
+ * @returns Array of Appointments.
1100
+ */
1101
+ getPublishedPersonDocumentsByDateAsync(request: carriers.Document_GetPublishedPersonDocumentsByDateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1102
+ /**
1103
+ * Method that returns a specified number of published document appointments within a time range. The document appointments belong to the person specified or the document is in a project the person belongs to.
1104
+ * @param personId - The person id of the SuperOffice user (associate).
1105
+ * @param includeProjectDocuments - If true, all appointments that belong to projects where the user is a project member are included as well as the appointments belonging to the person.
1106
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1107
+ * @param endTime - The end of the time interval.
1108
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1109
+ * @returns Array of Appointments.
1110
+ */
1111
+ getPublishedPersonDocumentsByDateAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1112
+ private _getPublishedProjectDocumentsAsync;
1113
+ /**
1114
+ * Get published appointment documents by project id.
1115
+ * @param request - ProjectId
1116
+ * @returns Array of Appointment
1117
+ */
1118
+ getPublishedProjectDocumentsAsync(request: carriers.Document_GetPublishedProjectDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1119
+ /**
1120
+ * Get published appointment documents by project id.
1121
+ * @param projectId - The project id
1122
+ * @returns Array of Appointment
1123
+ */
1124
+ getPublishedProjectDocumentsAsync(projectId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1125
+ private _getProjectMemberDocumentsByTemplateTypesAsync;
1126
+ /**
1127
+ * Method that returns a specified number of document appointments within a time range, filtered by document template types. The document appointments belong to the project member specified.
1128
+ * @param request - PersonId, StartTime, EndTime, Count, DocumentTemplateIds
1129
+ * @returns Array of Appointments.
1130
+ */
1131
+ getProjectMemberDocumentsByTemplateTypesAsync(request: carriers.Document_GetProjectMemberDocumentsByTemplateTypesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1132
+ /**
1133
+ * Method that returns a specified number of document appointments within a time range, filtered by document template types. The document appointments belong to the project member specified.
1134
+ * @param personId - The project member's person id
1135
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1136
+ * @param endTime - The end of the time interval.
1137
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1138
+ * @param documentTemplateIds - Ids of the document template types to filter on.
1139
+ * @returns Array of Appointments.
1140
+ */
1141
+ getProjectMemberDocumentsByTemplateTypesAsync(personId: number, startTime: Date, endTime: Date, count: number, documentTemplateIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1142
+ private _getProjectMemberDocumentsByTemplateTypeAsync;
1143
+ /**
1144
+ * Method that returns a specified number of document appointments within a time range, filtered by document template type. The document appointments belong to the project member specified.
1145
+ * @param request - PersonId, StartTime, EndTime, Count, DocumentTemplateId
1146
+ * @returns Array of Appointments.
1147
+ */
1148
+ getProjectMemberDocumentsByTemplateTypeAsync(request: carriers.Document_GetProjectMemberDocumentsByTemplateTypeRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1149
+ /**
1150
+ * Method that returns a specified number of document appointments within a time range, filtered by document template type. The document appointments belong to the project member specified.
1151
+ * @param personId - The project member's person id
1152
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1153
+ * @param endTime - The end of the time interval.
1154
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1155
+ * @param documentTemplateId - Id of the document template type to filter on.
1156
+ * @returns Array of Appointments.
1157
+ */
1158
+ getProjectMemberDocumentsByTemplateTypeAsync(personId: number, startTime: Date, endTime: Date, count: number, documentTemplateId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1159
+ private _getProjectMemberDocumentsByTemplateHeadingAsync;
1160
+ /**
1161
+ * Method that returns a specified number of document appointments within a time range, filtered by document template heading. The document appointments belong to the project member specified. The heading represents a grouping or filtering of document templates.
1162
+ * @param request - PersonId, StartTime, EndTime, Count, TemplateHeadingId
1163
+ * @returns Array of Appointments.
1164
+ */
1165
+ getProjectMemberDocumentsByTemplateHeadingAsync(request: carriers.Document_GetProjectMemberDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1166
+ /**
1167
+ * Method that returns a specified number of document appointments within a time range, filtered by document template heading. The document appointments belong to the project member specified. The heading represents a grouping or filtering of document templates.
1168
+ * @param personId - The project member's person id
1169
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1170
+ * @param endTime - The end of the time interval.
1171
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1172
+ * @param templateHeadingId - The document template heading id. The heading represents a grouping or filtering of document templates.
1173
+ * @returns Array of Appointments.
1174
+ */
1175
+ getProjectMemberDocumentsByTemplateHeadingAsync(personId: number, startTime: Date, endTime: Date, count: number, templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1176
+ private _getProjectMemberDocumentsAsync;
1177
+ /**
1178
+ * Method that returns a specified number of document appointments within a time range. The document appointments belong to the project member specified.
1179
+ * @param request - PersonId, StartTime, EndTime, Count
1180
+ * @returns Array of Appointments.
1181
+ */
1182
+ getProjectMemberDocumentsAsync(request: carriers.Document_GetProjectMemberDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1183
+ /**
1184
+ * Method that returns a specified number of document appointments within a time range. The document appointments belong to the project member specified.
1185
+ * @param personId - The project member's person id
1186
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1187
+ * @param endTime - The end of the time interval.
1188
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1189
+ * @returns Array of Appointments.
1190
+ */
1191
+ getProjectMemberDocumentsAsync(personId: number, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1192
+ private _getProjectDocumentsByTemplateTypesAsync;
1193
+ /**
1194
+ * Method that returns a specified number of document appointments within a time range, filtered by document template types. The document appointments belong to the project specified.
1195
+ * @param request - ProjectId, StartTime, EndTime, Count, DocumentTemplateIds
1196
+ * @returns Array of Appointments.
1197
+ */
1198
+ getProjectDocumentsByTemplateTypesAsync(request: carriers.Document_GetProjectDocumentsByTemplateTypesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1199
+ /**
1200
+ * Method that returns a specified number of document appointments within a time range, filtered by document template types. The document appointments belong to the project specified.
1201
+ * @param projectId - The project id
1202
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1203
+ * @param endTime - The end of the time interval.
1204
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1205
+ * @param documentTemplateIds - Ids of the document template types to filter on.
1206
+ * @returns Array of Appointments.
1207
+ */
1208
+ getProjectDocumentsByTemplateTypesAsync(projectId: number, startTime: Date, endTime: Date, count: number, documentTemplateIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1209
+ private _getProjectDocumentsByTemplateTypeAsync;
1210
+ /**
1211
+ * Method that returns a specified number of document appointments within a time range, filtered by document template type. The document appointments belong to the project specified.
1212
+ * @param request - ProjectId, StartTime, EndTime, Count, DocumentTemplateId
1213
+ * @returns Array of Appointments.
1214
+ */
1215
+ getProjectDocumentsByTemplateTypeAsync(request: carriers.Document_GetProjectDocumentsByTemplateTypeRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1216
+ /**
1217
+ * Method that returns a specified number of document appointments within a time range, filtered by document template type. The document appointments belong to the project specified.
1218
+ * @param projectId - The project id
1219
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1220
+ * @param endTime - The end of the time interval.
1221
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1222
+ * @param documentTemplateId - Id of the document template type to filter on.
1223
+ * @returns Array of Appointments.
1224
+ */
1225
+ getProjectDocumentsByTemplateTypeAsync(projectId: number, startTime: Date, endTime: Date, count: number, documentTemplateId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1226
+ private _getProjectDocumentsByTemplateHeadingAsync;
1227
+ /**
1228
+ * Method that returns a specified number of document appointments within a time range, filtered by document template heading. The document appointments belong to the project specified. The heading represents a grouping or filtering of document templates.
1229
+ * @param request - ProjectId, StartTime, EndTime, Count, TemplateHeadingId
1230
+ * @returns Array of Appointments.
1231
+ */
1232
+ getProjectDocumentsByTemplateHeadingAsync(request: carriers.Document_GetProjectDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1233
+ /**
1234
+ * Method that returns a specified number of document appointments within a time range, filtered by document template heading. The document appointments belong to the project specified. The heading represents a grouping or filtering of document templates.
1235
+ * @param projectId - The project id
1236
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1237
+ * @param endTime - The end of the time interval.
1238
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1239
+ * @param templateHeadingId - The document template heading id. The heading represents a grouping or filtering of document templates.
1240
+ * @returns Array of Appointments.
1241
+ */
1242
+ getProjectDocumentsByTemplateHeadingAsync(projectId: number, startTime: Date, endTime: Date, count: number, templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1243
+ private _getProjectDocumentsAsync;
1244
+ /**
1245
+ * Method that returns a specified number of document appointments within a time range. The document appointments belong to the project specified.
1246
+ * @param request - ProjectId, StartTime, EndTime, Count
1247
+ * @returns Array of Appointments.
1248
+ */
1249
+ getProjectDocumentsAsync(request: carriers.Document_GetProjectDocumentsRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1250
+ /**
1251
+ * Method that returns a specified number of document appointments within a time range. The document appointments belong to the project specified.
1252
+ * @param projectId - The project id
1253
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1254
+ * @param endTime - The end of the time interval.
1255
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1256
+ * @returns Array of Appointments.
1257
+ */
1258
+ getProjectDocumentsAsync(projectId: number, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1259
+ private _getPersonDocumentsByTemplateTypesAsync;
1260
+ /**
1261
+ * Method that returns a specified number of document appointments within a time range, filtered by document template types. The document appointments belong to the person specified.
1262
+ * @param request - PersonId, IncludeProjectDocuments, StartTime, EndTime, Count, DocumentTemplateIds
1263
+ * @returns Array of Appointments.
1264
+ */
1265
+ getPersonDocumentsByTemplateTypesAsync(request: carriers.Document_GetPersonDocumentsByTemplateTypesRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1266
+ /**
1267
+ * Method that returns a specified number of document appointments within a time range, filtered by document template types. The document appointments belong to the person specified.
1268
+ * @param personId - The person id of the SuperOffice user (associate).
1269
+ * @param includeProjectDocuments - If true, all appointments that belong to projects where the user is a project member are included as well as the appointments belonging to the person.
1270
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1271
+ * @param endTime - The end of the time interval.
1272
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1273
+ * @param documentTemplateIds - Ids of the document template types to filter on.
1274
+ * @returns Array of Appointments.
1275
+ */
1276
+ getPersonDocumentsByTemplateTypesAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, documentTemplateIds: number[], webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1277
+ private _getPersonDocumentsByTemplateTypeAsync;
1278
+ /**
1279
+ * Method that returns a specified number of document appointments within a time range, filtered by document template type. The document appointments belong to the person specified.
1280
+ * @param request - PersonId, IncludeProjectDocuments, StartTime, EndTime, Count, DocumentTemplateId
1281
+ * @returns Array of Appointments.
1282
+ */
1283
+ getPersonDocumentsByTemplateTypeAsync(request: carriers.Document_GetPersonDocumentsByTemplateTypeRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1284
+ /**
1285
+ * Method that returns a specified number of document appointments within a time range, filtered by document template type. The document appointments belong to the person specified.
1286
+ * @param personId - The person id of the SuperOffice user (associate).
1287
+ * @param includeProjectDocuments - If true, all appointments that belong to projects where the user is a project member are included as well as the appointments belonging to the person.
1288
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1289
+ * @param endTime - The end of the time interval.
1290
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1291
+ * @param documentTemplateId - Id of the document template type to filter on.
1292
+ * @returns Array of Appointments.
1293
+ */
1294
+ getPersonDocumentsByTemplateTypeAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, documentTemplateId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1295
+ private _getPersonDocumentsByTemplateHeadingAsync;
1296
+ /**
1297
+ * Method that returns a specified number of document appointments within a time range, filtered by document template heading. The document appointments belong to the person specified. The heading represents a grouping or filtering of document templates.
1298
+ * @param request - PersonId, IncludeProjectDocuments, StartTime, EndTime, Count, TemplateHeadingId
1299
+ * @returns Array of Appointments.
1300
+ */
1301
+ getPersonDocumentsByTemplateHeadingAsync(request: carriers.Document_GetPersonDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1302
+ /**
1303
+ * Method that returns a specified number of document appointments within a time range, filtered by document template heading. The document appointments belong to the person specified. The heading represents a grouping or filtering of document templates.
1304
+ * @param personId - The person id of the SuperOffice user (associate).
1305
+ * @param includeProjectDocuments - If true, all appointments that belong to projects where the user is a project member are included as well as the appointments belonging to the person.
1306
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1307
+ * @param endTime - The end of the time interval.
1308
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1309
+ * @param templateHeadingId - The document template heading id. The heading represents a grouping or filtering of document templates.
1310
+ * @returns Array of Appointments.
1311
+ */
1312
+ getPersonDocumentsByTemplateHeadingAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1313
+ private _getPersonDocumentsByDateAsync;
1314
+ /**
1315
+ * Method that returns a specified number of document appointments within a time range. The document appointments belong to the person specified.
1316
+ * @param request - PersonId, IncludeProjectDocuments, StartTime, EndTime, Count
1317
+ * @returns Array of Appointments.
1318
+ */
1319
+ getPersonDocumentsByDateAsync(request: carriers.Document_GetPersonDocumentsByDateRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1320
+ /**
1321
+ * Method that returns a specified number of document appointments within a time range. The document appointments belong to the person specified.
1322
+ * @param personId - The person id of the SuperOffice user (associate).
1323
+ * @param includeProjectDocuments - If true, all appointments that belong to projects where the user is a project member are included as well as the appointments belonging to the person.
1324
+ * @param startTime - The start of the time interval we want appointments from. This will usually be the current time.
1325
+ * @param endTime - The end of the time interval.
1326
+ * @param count - The maximum number of appointments that should be returned. -1 means no count restrictions.
1327
+ * @returns Array of Appointments.
1328
+ */
1329
+ getPersonDocumentsByDateAsync(personId: number, includeProjectDocuments: boolean, startTime: Date, endTime: Date, count: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1330
+ private _getDocumentsByTemplateHeadingAsync;
1331
+ /**
1332
+ * Method that returns document appointments, filtered by the document template heading. The heading represents a grouping or filtering of document templates.
1333
+ * @param request - TemplateHeadingId
1334
+ * @returns Array of Appointments.
1335
+ */
1336
+ getDocumentsByTemplateHeadingAsync(request: carriers.Document_GetDocumentsByTemplateHeadingRequest, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1337
+ /**
1338
+ * Method that returns document appointments, filtered by the document template heading. The heading represents a grouping or filtering of document templates.
1339
+ * @param templateHeadingId - The document template heading id. The heading represents a grouping or filtering of document templates.
1340
+ * @returns Array of Appointments.
1341
+ */
1342
+ getDocumentsByTemplateHeadingAsync(templateHeadingId: number, webapi_options?: base.WebApiRequestOptions): Promise<carriers.Document[]>;
1343
+ getSuggestedDocumentEntityAsync(suggestedDocumentEntityId: number, options?: base.WebApiRequestOptions): Promise<carriers.SuggestedDocumentEntity>;
1344
+ }
1345
+ //# sourceMappingURL=DocumentAgent.d.ts.map