@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,1130 @@
1
+ // <auto-generated>
2
+ // SuperOffice Code Generator
3
+ // modelling\templates\servicestswebapi\tswebapiagents.tt
4
+ // </auto-generated>
5
+ import * as base from './WebApiBase.js';
6
+ import * as converters from './Converters.js';
7
+ /**
8
+ * ArchiveList functions of all kinds
9
+ */
10
+ export class ArchiveAgent extends base.WebApiBase {
11
+ constructor(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode) {
12
+ const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
13
+ options.basePath = "v1/Agents/Archive/";
14
+ super(options);
15
+ }
16
+ /**
17
+ * Set default values into a new ArchiveListResult.
18
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
19
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
20
+ * @returns A blank entity.
21
+ */
22
+ async createDefaultArchiveListResultAsync(options) {
23
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
24
+ base.WebApiBase.SetPending(options);
25
+ return new Promise(async (resolve, reject) => {
26
+ try {
27
+ const response = await this._axios.post("CreateDefaultArchiveListResult", null, config);
28
+ base.WebApiBase.SetCompleted(options);
29
+ const res = converters.Create_ArchiveListResult_From(response.data);
30
+ resolve(res);
31
+ }
32
+ catch (err) {
33
+ base.WebApiBase.HandleError(options, config, err);
34
+ reject(err);
35
+ }
36
+ });
37
+ }
38
+ async _getActivityFilterAsync(options) {
39
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
40
+ base.WebApiBase.SetPending(options);
41
+ return new Promise(async (resolve, reject) => {
42
+ try {
43
+ config.baseURL = this._options.baseUrl;
44
+ const response = await this._axios.post("GetActivityFilter", undefined, config);
45
+ base.WebApiBase.SetCompleted(options);
46
+ const res = converters.Create_ActivityFilter_From(response.data);
47
+ resolve(res);
48
+ }
49
+ catch (err) {
50
+ base.WebApiBase.HandleError(options, config, err);
51
+ reject(err);
52
+ }
53
+ });
54
+ }
55
+ /**
56
+ * Get activity filter for the specified list.
57
+ * @returns The activity filter for the specified list
58
+ */
59
+ async getActivityFilterAsync(webapi_options) {
60
+ return this._getActivityFilterAsync(webapi_options);
61
+ }
62
+ async _setActivityFilterAsync(request, options) {
63
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
64
+ base.WebApiBase.SetPending(options);
65
+ return new Promise(async (resolve, reject) => {
66
+ try {
67
+ config.baseURL = this._options.baseUrl;
68
+ const response = await this._axios.post("SetActivityFilter", request, config);
69
+ base.WebApiBase.SetCompleted(options);
70
+ const res = response.data;
71
+ resolve(res);
72
+ }
73
+ catch (err) {
74
+ base.WebApiBase.HandleError(options, config, err);
75
+ reject(err);
76
+ }
77
+ });
78
+ }
79
+ async setActivityFilterAsync(activityFilter, webapi_options) {
80
+ let _request = null;
81
+ let _options = null;
82
+ const first = activityFilter;
83
+ if (typeof (first) === "object" && first && (typeof (first.activityFilter) != 'undefined')) {
84
+ _request = activityFilter;
85
+ _options = webapi_options;
86
+ }
87
+ else {
88
+ _request = {
89
+ activityFilter: activityFilter,
90
+ };
91
+ _options = webapi_options;
92
+ }
93
+ return this._setActivityFilterAsync(_request, _options);
94
+ }
95
+ async _getGroupAssociateIdsAsync(request, options) {
96
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
97
+ base.WebApiBase.SetPending(options);
98
+ return new Promise(async (resolve, reject) => {
99
+ try {
100
+ config.baseURL = this._options.baseUrl;
101
+ const response = await this._axios.post("GetGroupAssociateIds", request, config);
102
+ base.WebApiBase.SetCompleted(options);
103
+ const res = response.data;
104
+ resolve(res);
105
+ }
106
+ catch (err) {
107
+ base.WebApiBase.HandleError(options, config, err);
108
+ reject(err);
109
+ }
110
+ });
111
+ }
112
+ async getGroupAssociateIdsAsync(groupIds, webapi_options) {
113
+ let _request = null;
114
+ let _options = null;
115
+ const first = groupIds;
116
+ if (typeof (first) === "object" && first && (typeof (first.groupIds) != 'undefined')) {
117
+ _request = groupIds;
118
+ _options = webapi_options;
119
+ }
120
+ else {
121
+ _request = {
122
+ groupIds: groupIds,
123
+ };
124
+ _options = webapi_options;
125
+ }
126
+ return this._getGroupAssociateIdsAsync(_request, _options);
127
+ }
128
+ async _getArchiveConfigurationAsync(request, options) {
129
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
130
+ base.WebApiBase.SetPending(options);
131
+ return new Promise(async (resolve, reject) => {
132
+ try {
133
+ config.baseURL = this._options.baseUrl;
134
+ const response = await this._axios.post("GetArchiveConfiguration", request, config);
135
+ base.WebApiBase.SetCompleted(options);
136
+ const res = converters.Create_ArchiveConfiguration_From(response.data);
137
+ resolve(res);
138
+ }
139
+ catch (err) {
140
+ base.WebApiBase.HandleError(options, config, err);
141
+ reject(err);
142
+ }
143
+ });
144
+ }
145
+ async getArchiveConfigurationAsync(guiName, providerName, webapi_options) {
146
+ let _request = null;
147
+ let _options = null;
148
+ const first = guiName;
149
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined')) {
150
+ _request = guiName;
151
+ _options = providerName;
152
+ }
153
+ else {
154
+ _request = {
155
+ guiName: guiName,
156
+ providerName: providerName,
157
+ };
158
+ _options = webapi_options;
159
+ }
160
+ return this._getArchiveConfigurationAsync(_request, _options);
161
+ }
162
+ async _getArchiveConfigurationWithContextAsync(request, options) {
163
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
164
+ base.WebApiBase.SetPending(options);
165
+ return new Promise(async (resolve, reject) => {
166
+ try {
167
+ config.baseURL = this._options.baseUrl;
168
+ const response = await this._axios.post("GetArchiveConfigurationWithContext", request, config);
169
+ base.WebApiBase.SetCompleted(options);
170
+ const res = converters.Create_ArchiveConfiguration_From(response.data);
171
+ resolve(res);
172
+ }
173
+ catch (err) {
174
+ base.WebApiBase.HandleError(options, config, err);
175
+ reject(err);
176
+ }
177
+ });
178
+ }
179
+ async getArchiveConfigurationWithContextAsync(guiName, providerName, context, webapi_options) {
180
+ let _request = null;
181
+ let _options = null;
182
+ const first = guiName;
183
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.context) != 'undefined')) {
184
+ _request = guiName;
185
+ _options = providerName;
186
+ }
187
+ else {
188
+ _request = {
189
+ guiName: guiName,
190
+ providerName: providerName,
191
+ context: context,
192
+ };
193
+ _options = webapi_options;
194
+ }
195
+ return this._getArchiveConfigurationWithContextAsync(_request, _options);
196
+ }
197
+ async _setColumnWidthsAsync(request, options) {
198
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
199
+ base.WebApiBase.SetPending(options);
200
+ return new Promise(async (resolve, reject) => {
201
+ try {
202
+ config.baseURL = this._options.baseUrl;
203
+ const response = await this._axios.post("SetColumnWidths", request, config);
204
+ base.WebApiBase.SetCompleted(options);
205
+ const res = response.data;
206
+ resolve(res);
207
+ }
208
+ catch (err) {
209
+ base.WebApiBase.HandleError(options, config, err);
210
+ reject(err);
211
+ }
212
+ });
213
+ }
214
+ async setColumnWidthsAsync(guiName, columnWidths, webapi_options) {
215
+ let _request = null;
216
+ let _options = null;
217
+ const first = guiName;
218
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.columnWidths) != 'undefined')) {
219
+ _request = guiName;
220
+ _options = columnWidths;
221
+ }
222
+ else {
223
+ _request = {
224
+ guiName: guiName,
225
+ columnWidths: columnWidths,
226
+ };
227
+ _options = webapi_options;
228
+ }
229
+ return this._setColumnWidthsAsync(_request, _options);
230
+ }
231
+ async _setChosenEntitiesAsync(request, options) {
232
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
233
+ base.WebApiBase.SetPending(options);
234
+ return new Promise(async (resolve, reject) => {
235
+ try {
236
+ config.baseURL = this._options.baseUrl;
237
+ const response = await this._axios.post("SetChosenEntities", request, config);
238
+ base.WebApiBase.SetCompleted(options);
239
+ const res = response.data;
240
+ resolve(res);
241
+ }
242
+ catch (err) {
243
+ base.WebApiBase.HandleError(options, config, err);
244
+ reject(err);
245
+ }
246
+ });
247
+ }
248
+ async setChosenEntitiesAsync(guiName, providerName, entities, webapi_options) {
249
+ let _request = null;
250
+ let _options = null;
251
+ const first = guiName;
252
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.entities) != 'undefined')) {
253
+ _request = guiName;
254
+ _options = providerName;
255
+ }
256
+ else {
257
+ _request = {
258
+ guiName: guiName,
259
+ providerName: providerName,
260
+ entities: entities,
261
+ };
262
+ _options = webapi_options;
263
+ }
264
+ return this._setChosenEntitiesAsync(_request, _options);
265
+ }
266
+ async _setChosenColumnsAsync(request, options) {
267
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
268
+ base.WebApiBase.SetPending(options);
269
+ return new Promise(async (resolve, reject) => {
270
+ try {
271
+ config.baseURL = this._options.baseUrl;
272
+ const response = await this._axios.post("SetChosenColumns", request, config);
273
+ base.WebApiBase.SetCompleted(options);
274
+ const res = response.data;
275
+ resolve(res);
276
+ }
277
+ catch (err) {
278
+ base.WebApiBase.HandleError(options, config, err);
279
+ reject(err);
280
+ }
281
+ });
282
+ }
283
+ async setChosenColumnsAsync(guiName, providerName, chosenColumns, webapi_options) {
284
+ let _request = null;
285
+ let _options = null;
286
+ const first = guiName;
287
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.chosenColumns) != 'undefined')) {
288
+ _request = guiName;
289
+ _options = providerName;
290
+ }
291
+ else {
292
+ _request = {
293
+ guiName: guiName,
294
+ providerName: providerName,
295
+ chosenColumns: chosenColumns,
296
+ };
297
+ _options = webapi_options;
298
+ }
299
+ return this._setChosenColumnsAsync(_request, _options);
300
+ }
301
+ async _getArchiveConfigurationV2Async(request, options) {
302
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
303
+ base.WebApiBase.SetPending(options);
304
+ return new Promise(async (resolve, reject) => {
305
+ try {
306
+ config.baseURL = this._options.baseUrl;
307
+ const response = await this._axios.post("GetArchiveConfigurationV2", request, config);
308
+ base.WebApiBase.SetCompleted(options);
309
+ const res = converters.Create_ArchiveConfiguration_From(response.data);
310
+ resolve(res);
311
+ }
312
+ catch (err) {
313
+ base.WebApiBase.HandleError(options, config, err);
314
+ reject(err);
315
+ }
316
+ });
317
+ }
318
+ async getArchiveConfigurationV2Async(guiName, providerName, context, ownerKeys, webapi_options) {
319
+ let _request = null;
320
+ let _options = null;
321
+ const first = guiName;
322
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.context) != 'undefined' || typeof (first.ownerKeys) != 'undefined')) {
323
+ _request = guiName;
324
+ _options = providerName;
325
+ }
326
+ else {
327
+ _request = {
328
+ guiName: guiName,
329
+ providerName: providerName,
330
+ context: context,
331
+ ownerKeys: ownerKeys,
332
+ };
333
+ _options = webapi_options;
334
+ }
335
+ return this._getArchiveConfigurationV2Async(_request, _options);
336
+ }
337
+ async _setColumnWidthsV2Async(request, options) {
338
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
339
+ base.WebApiBase.SetPending(options);
340
+ return new Promise(async (resolve, reject) => {
341
+ try {
342
+ config.baseURL = this._options.baseUrl;
343
+ const response = await this._axios.post("SetColumnWidthsV2", request, config);
344
+ base.WebApiBase.SetCompleted(options);
345
+ const res = response.data;
346
+ resolve(res);
347
+ }
348
+ catch (err) {
349
+ base.WebApiBase.HandleError(options, config, err);
350
+ reject(err);
351
+ }
352
+ });
353
+ }
354
+ async setColumnWidthsV2Async(guiName, providerName, context, ownerKeys, columnWidths, webapi_options) {
355
+ let _request = null;
356
+ let _options = null;
357
+ const first = guiName;
358
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.context) != 'undefined' || typeof (first.ownerKeys) != 'undefined' || typeof (first.columnWidths) != 'undefined')) {
359
+ _request = guiName;
360
+ _options = providerName;
361
+ }
362
+ else {
363
+ _request = {
364
+ guiName: guiName,
365
+ providerName: providerName,
366
+ context: context,
367
+ ownerKeys: ownerKeys,
368
+ columnWidths: columnWidths,
369
+ };
370
+ _options = webapi_options;
371
+ }
372
+ return this._setColumnWidthsV2Async(_request, _options);
373
+ }
374
+ async _setChosenEntitiesV2Async(request, options) {
375
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
376
+ base.WebApiBase.SetPending(options);
377
+ return new Promise(async (resolve, reject) => {
378
+ try {
379
+ config.baseURL = this._options.baseUrl;
380
+ const response = await this._axios.post("SetChosenEntitiesV2", request, config);
381
+ base.WebApiBase.SetCompleted(options);
382
+ const res = response.data;
383
+ resolve(res);
384
+ }
385
+ catch (err) {
386
+ base.WebApiBase.HandleError(options, config, err);
387
+ reject(err);
388
+ }
389
+ });
390
+ }
391
+ async setChosenEntitiesV2Async(guiName, providerName, context, ownerKeys, entities, webapi_options) {
392
+ let _request = null;
393
+ let _options = null;
394
+ const first = guiName;
395
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.context) != 'undefined' || typeof (first.ownerKeys) != 'undefined' || typeof (first.entities) != 'undefined')) {
396
+ _request = guiName;
397
+ _options = providerName;
398
+ }
399
+ else {
400
+ _request = {
401
+ guiName: guiName,
402
+ providerName: providerName,
403
+ context: context,
404
+ ownerKeys: ownerKeys,
405
+ entities: entities,
406
+ };
407
+ _options = webapi_options;
408
+ }
409
+ return this._setChosenEntitiesV2Async(_request, _options);
410
+ }
411
+ async _setChosenColumnsV2Async(request, options) {
412
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
413
+ base.WebApiBase.SetPending(options);
414
+ return new Promise(async (resolve, reject) => {
415
+ try {
416
+ config.baseURL = this._options.baseUrl;
417
+ const response = await this._axios.post("SetChosenColumnsV2", request, config);
418
+ base.WebApiBase.SetCompleted(options);
419
+ const res = response.data;
420
+ resolve(res);
421
+ }
422
+ catch (err) {
423
+ base.WebApiBase.HandleError(options, config, err);
424
+ reject(err);
425
+ }
426
+ });
427
+ }
428
+ async setChosenColumnsV2Async(guiName, providerName, context, ownerKeys, chosenColumns, webapi_options) {
429
+ let _request = null;
430
+ let _options = null;
431
+ const first = guiName;
432
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.context) != 'undefined' || typeof (first.ownerKeys) != 'undefined' || typeof (first.chosenColumns) != 'undefined')) {
433
+ _request = guiName;
434
+ _options = providerName;
435
+ }
436
+ else {
437
+ _request = {
438
+ guiName: guiName,
439
+ providerName: providerName,
440
+ context: context,
441
+ ownerKeys: ownerKeys,
442
+ chosenColumns: chosenColumns,
443
+ };
444
+ _options = webapi_options;
445
+ }
446
+ return this._setChosenColumnsV2Async(_request, _options);
447
+ }
448
+ async _getArchiveListByColumnsAsync(request, options) {
449
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
450
+ base.WebApiBase.SetPending(options);
451
+ return new Promise(async (resolve, reject) => {
452
+ try {
453
+ config.baseURL = this._options.baseUrl;
454
+ const response = await this._axios.post("GetArchiveListByColumns", request, config);
455
+ base.WebApiBase.SetCompleted(options);
456
+ const res = converters.Create_ArchiveListItemArray_From(response.data);
457
+ resolve(res);
458
+ }
459
+ catch (err) {
460
+ base.WebApiBase.HandleError(options, config, err);
461
+ reject(err);
462
+ }
463
+ });
464
+ }
465
+ async getArchiveListByColumnsAsync(providerName, columns, sortOrder, restriction, entities, page, pageSize, webapi_options) {
466
+ let _request = null;
467
+ let _options = null;
468
+ const first = providerName;
469
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.columns) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined')) {
470
+ _request = providerName;
471
+ _options = columns;
472
+ }
473
+ else {
474
+ _request = {
475
+ providerName: providerName,
476
+ columns: columns,
477
+ sortOrder: sortOrder,
478
+ restriction: restriction,
479
+ entities: entities,
480
+ page: page,
481
+ pageSize: pageSize,
482
+ };
483
+ _options = webapi_options;
484
+ }
485
+ return this._getArchiveListByColumnsAsync(_request, _options);
486
+ }
487
+ async _getArchiveListByColumnsWithContextAsync(request, options) {
488
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
489
+ base.WebApiBase.SetPending(options);
490
+ return new Promise(async (resolve, reject) => {
491
+ try {
492
+ config.baseURL = this._options.baseUrl;
493
+ const response = await this._axios.post("GetArchiveListByColumnsWithContext", request, config);
494
+ base.WebApiBase.SetCompleted(options);
495
+ const res = converters.Create_ArchiveListItemArray_From(response.data);
496
+ resolve(res);
497
+ }
498
+ catch (err) {
499
+ base.WebApiBase.HandleError(options, config, err);
500
+ reject(err);
501
+ }
502
+ });
503
+ }
504
+ async getArchiveListByColumnsWithContextAsync(providerName, columns, sortOrder, restriction, entities, page, pageSize, context, webapi_options) {
505
+ let _request = null;
506
+ let _options = null;
507
+ const first = providerName;
508
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.columns) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined' || typeof (first.context) != 'undefined')) {
509
+ _request = providerName;
510
+ _options = columns;
511
+ }
512
+ else {
513
+ _request = {
514
+ providerName: providerName,
515
+ columns: columns,
516
+ sortOrder: sortOrder,
517
+ restriction: restriction,
518
+ entities: entities,
519
+ page: page,
520
+ pageSize: pageSize,
521
+ context: context,
522
+ };
523
+ _options = webapi_options;
524
+ }
525
+ return this._getArchiveListByColumnsWithContextAsync(_request, _options);
526
+ }
527
+ async _getArchiveListAsync(request, options) {
528
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
529
+ base.WebApiBase.SetPending(options);
530
+ return new Promise(async (resolve, reject) => {
531
+ try {
532
+ config.baseURL = this._options.baseUrl;
533
+ const response = await this._axios.post("GetArchiveList", request, config);
534
+ base.WebApiBase.SetCompleted(options);
535
+ const res = converters.Create_ArchiveListItemArray_From(response.data);
536
+ resolve(res);
537
+ }
538
+ catch (err) {
539
+ base.WebApiBase.HandleError(options, config, err);
540
+ reject(err);
541
+ }
542
+ });
543
+ }
544
+ async getArchiveListAsync(guiName, providerName, sortOrder, restriction, entities, page, pageSize, webapi_options) {
545
+ let _request = null;
546
+ let _options = null;
547
+ const first = guiName;
548
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined')) {
549
+ _request = guiName;
550
+ _options = providerName;
551
+ }
552
+ else {
553
+ _request = {
554
+ guiName: guiName,
555
+ providerName: providerName,
556
+ sortOrder: sortOrder,
557
+ restriction: restriction,
558
+ entities: entities,
559
+ page: page,
560
+ pageSize: pageSize,
561
+ };
562
+ _options = webapi_options;
563
+ }
564
+ return this._getArchiveListAsync(_request, _options);
565
+ }
566
+ async _getArchiveListWithContextAsync(request, options) {
567
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
568
+ base.WebApiBase.SetPending(options);
569
+ return new Promise(async (resolve, reject) => {
570
+ try {
571
+ config.baseURL = this._options.baseUrl;
572
+ const response = await this._axios.post("GetArchiveListWithContext", request, config);
573
+ base.WebApiBase.SetCompleted(options);
574
+ const res = converters.Create_ArchiveListItemArray_From(response.data);
575
+ resolve(res);
576
+ }
577
+ catch (err) {
578
+ base.WebApiBase.HandleError(options, config, err);
579
+ reject(err);
580
+ }
581
+ });
582
+ }
583
+ async getArchiveListWithContextAsync(guiName, providerName, sortOrder, restriction, entities, page, pageSize, context, webapi_options) {
584
+ let _request = null;
585
+ let _options = null;
586
+ const first = guiName;
587
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined' || typeof (first.context) != 'undefined')) {
588
+ _request = guiName;
589
+ _options = providerName;
590
+ }
591
+ else {
592
+ _request = {
593
+ guiName: guiName,
594
+ providerName: providerName,
595
+ sortOrder: sortOrder,
596
+ restriction: restriction,
597
+ entities: entities,
598
+ page: page,
599
+ pageSize: pageSize,
600
+ context: context,
601
+ };
602
+ _options = webapi_options;
603
+ }
604
+ return this._getArchiveListWithContextAsync(_request, _options);
605
+ }
606
+ async _getArchiveListByColumnsWithHeaderAsync(request, options) {
607
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
608
+ base.WebApiBase.SetPending(options);
609
+ return new Promise(async (resolve, reject) => {
610
+ try {
611
+ config.baseURL = this._options.baseUrl;
612
+ const response = await this._axios.post("GetArchiveListByColumnsWithHeader", request, config);
613
+ base.WebApiBase.SetCompleted(options);
614
+ const res = converters.Create_ArchiveListResult_From(response.data);
615
+ resolve(res);
616
+ }
617
+ catch (err) {
618
+ base.WebApiBase.HandleError(options, config, err);
619
+ reject(err);
620
+ }
621
+ });
622
+ }
623
+ async getArchiveListByColumnsWithHeaderAsync(providerName, columns, sortOrder, restriction, entities, page, pageSize, options, webapi_options) {
624
+ let _request = null;
625
+ let _options = null;
626
+ const first = providerName;
627
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.columns) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined' || typeof (first.options) != 'undefined')) {
628
+ _request = providerName;
629
+ _options = columns;
630
+ }
631
+ else {
632
+ _request = {
633
+ providerName: providerName,
634
+ columns: columns,
635
+ sortOrder: sortOrder,
636
+ restriction: restriction,
637
+ entities: entities,
638
+ page: page,
639
+ pageSize: pageSize,
640
+ options: options,
641
+ };
642
+ _options = webapi_options;
643
+ }
644
+ return this._getArchiveListByColumnsWithHeaderAsync(_request, _options);
645
+ }
646
+ async _getProviderNamesAsync(options) {
647
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
648
+ base.WebApiBase.SetPending(options);
649
+ return new Promise(async (resolve, reject) => {
650
+ try {
651
+ config.baseURL = this._options.baseUrl;
652
+ const response = await this._axios.post("GetProviderNames", undefined, config);
653
+ base.WebApiBase.SetCompleted(options);
654
+ const res = response.data;
655
+ resolve(res);
656
+ }
657
+ catch (err) {
658
+ base.WebApiBase.HandleError(options, config, err);
659
+ reject(err);
660
+ }
661
+ });
662
+ }
663
+ /**
664
+ * Return list of all archive provider names
665
+ * @returns Array of all archive provider names.
666
+ */
667
+ async getProviderNamesAsync(webapi_options) {
668
+ return this._getProviderNamesAsync(webapi_options);
669
+ }
670
+ async _getArchiveListByColumnsWithHeaderWithContextAsync(request, options) {
671
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
672
+ base.WebApiBase.SetPending(options);
673
+ return new Promise(async (resolve, reject) => {
674
+ try {
675
+ config.baseURL = this._options.baseUrl;
676
+ const response = await this._axios.post("GetArchiveListByColumnsWithHeaderWithContext", request, config);
677
+ base.WebApiBase.SetCompleted(options);
678
+ const res = converters.Create_ArchiveListResult_From(response.data);
679
+ resolve(res);
680
+ }
681
+ catch (err) {
682
+ base.WebApiBase.HandleError(options, config, err);
683
+ reject(err);
684
+ }
685
+ });
686
+ }
687
+ async getArchiveListByColumnsWithHeaderWithContextAsync(providerName, columns, sortOrder, restriction, entities, page, pageSize, options, context, webapi_options) {
688
+ let _request = null;
689
+ let _options = null;
690
+ const first = providerName;
691
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.columns) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined' || typeof (first.options) != 'undefined' || typeof (first.context) != 'undefined')) {
692
+ _request = providerName;
693
+ _options = columns;
694
+ }
695
+ else {
696
+ _request = {
697
+ providerName: providerName,
698
+ columns: columns,
699
+ sortOrder: sortOrder,
700
+ restriction: restriction,
701
+ entities: entities,
702
+ page: page,
703
+ pageSize: pageSize,
704
+ options: options,
705
+ context: context,
706
+ };
707
+ _options = webapi_options;
708
+ }
709
+ return this._getArchiveListByColumnsWithHeaderWithContextAsync(_request, _options);
710
+ }
711
+ async _getAvailableColumnsAsync(request, options) {
712
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
713
+ base.WebApiBase.SetPending(options);
714
+ return new Promise(async (resolve, reject) => {
715
+ try {
716
+ config.baseURL = this._options.baseUrl;
717
+ const response = await this._axios.post("GetAvailableColumns", request, config);
718
+ base.WebApiBase.SetCompleted(options);
719
+ const res = converters.Create_ArchiveColumnInfoArray_From(response.data);
720
+ resolve(res);
721
+ }
722
+ catch (err) {
723
+ base.WebApiBase.HandleError(options, config, err);
724
+ reject(err);
725
+ }
726
+ });
727
+ }
728
+ async getAvailableColumnsAsync(providerName, context, webapi_options) {
729
+ let _request = null;
730
+ let _options = null;
731
+ const first = providerName;
732
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.context) != 'undefined')) {
733
+ _request = providerName;
734
+ _options = context;
735
+ }
736
+ else {
737
+ _request = {
738
+ providerName: providerName,
739
+ context: context,
740
+ };
741
+ _options = webapi_options;
742
+ }
743
+ return this._getAvailableColumnsAsync(_request, _options);
744
+ }
745
+ async _getAvailableEntitiesAsync(request, options) {
746
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
747
+ base.WebApiBase.SetPending(options);
748
+ return new Promise(async (resolve, reject) => {
749
+ try {
750
+ config.baseURL = this._options.baseUrl;
751
+ const response = await this._axios.post("GetAvailableEntities", request, config);
752
+ base.WebApiBase.SetCompleted(options);
753
+ const res = converters.Create_MDOListItemArray_From(response.data);
754
+ resolve(res);
755
+ }
756
+ catch (err) {
757
+ base.WebApiBase.HandleError(options, config, err);
758
+ reject(err);
759
+ }
760
+ });
761
+ }
762
+ async getAvailableEntitiesAsync(providerName, context, webapi_options) {
763
+ let _request = null;
764
+ let _options = null;
765
+ const first = providerName;
766
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.context) != 'undefined')) {
767
+ _request = providerName;
768
+ _options = context;
769
+ }
770
+ else {
771
+ _request = {
772
+ providerName: providerName,
773
+ context: context,
774
+ };
775
+ _options = webapi_options;
776
+ }
777
+ return this._getAvailableEntitiesAsync(_request, _options);
778
+ }
779
+ async _getArchiveListByColumns2Async(request, options) {
780
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
781
+ base.WebApiBase.SetPending(options);
782
+ return new Promise(async (resolve, reject) => {
783
+ try {
784
+ config.baseURL = this._options.baseUrl;
785
+ const response = await this._axios.post("GetArchiveListByColumns2", request, config);
786
+ base.WebApiBase.SetCompleted(options);
787
+ const res = converters.Create_ArchiveListItemArray_From(response.data);
788
+ resolve(res);
789
+ }
790
+ catch (err) {
791
+ base.WebApiBase.HandleError(options, config, err);
792
+ reject(err);
793
+ }
794
+ });
795
+ }
796
+ async getArchiveListByColumns2Async(providerName, columns, sortOrder, restrictions, entities, page, pageSize, webapi_options) {
797
+ let _request = null;
798
+ let _options = null;
799
+ const first = providerName;
800
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.columns) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restrictions) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined')) {
801
+ _request = providerName;
802
+ _options = columns;
803
+ }
804
+ else {
805
+ _request = {
806
+ providerName: providerName,
807
+ columns: columns,
808
+ sortOrder: sortOrder,
809
+ restrictions: restrictions,
810
+ entities: entities,
811
+ page: page,
812
+ pageSize: pageSize,
813
+ };
814
+ _options = webapi_options;
815
+ }
816
+ return this._getArchiveListByColumns2Async(_request, _options);
817
+ }
818
+ async _getArchiveListByColumnsWithContext2Async(request, options) {
819
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
820
+ base.WebApiBase.SetPending(options);
821
+ return new Promise(async (resolve, reject) => {
822
+ try {
823
+ config.baseURL = this._options.baseUrl;
824
+ const response = await this._axios.post("GetArchiveListByColumnsWithContext2", request, config);
825
+ base.WebApiBase.SetCompleted(options);
826
+ const res = converters.Create_ArchiveListItemArray_From(response.data);
827
+ resolve(res);
828
+ }
829
+ catch (err) {
830
+ base.WebApiBase.HandleError(options, config, err);
831
+ reject(err);
832
+ }
833
+ });
834
+ }
835
+ async getArchiveListByColumnsWithContext2Async(providerName, columns, sortOrder, restriction, entities, page, pageSize, context, webapi_options) {
836
+ let _request = null;
837
+ let _options = null;
838
+ const first = providerName;
839
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.columns) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined' || typeof (first.context) != 'undefined')) {
840
+ _request = providerName;
841
+ _options = columns;
842
+ }
843
+ else {
844
+ _request = {
845
+ providerName: providerName,
846
+ columns: columns,
847
+ sortOrder: sortOrder,
848
+ restriction: restriction,
849
+ entities: entities,
850
+ page: page,
851
+ pageSize: pageSize,
852
+ context: context,
853
+ };
854
+ _options = webapi_options;
855
+ }
856
+ return this._getArchiveListByColumnsWithContext2Async(_request, _options);
857
+ }
858
+ async _getArchiveList2Async(request, options) {
859
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
860
+ base.WebApiBase.SetPending(options);
861
+ return new Promise(async (resolve, reject) => {
862
+ try {
863
+ config.baseURL = this._options.baseUrl;
864
+ const response = await this._axios.post("GetArchiveList2", request, config);
865
+ base.WebApiBase.SetCompleted(options);
866
+ const res = converters.Create_ArchiveListItemArray_From(response.data);
867
+ resolve(res);
868
+ }
869
+ catch (err) {
870
+ base.WebApiBase.HandleError(options, config, err);
871
+ reject(err);
872
+ }
873
+ });
874
+ }
875
+ async getArchiveList2Async(guiName, providerName, sortOrder, restriction, entities, page, pageSize, webapi_options) {
876
+ let _request = null;
877
+ let _options = null;
878
+ const first = guiName;
879
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined')) {
880
+ _request = guiName;
881
+ _options = providerName;
882
+ }
883
+ else {
884
+ _request = {
885
+ guiName: guiName,
886
+ providerName: providerName,
887
+ sortOrder: sortOrder,
888
+ restriction: restriction,
889
+ entities: entities,
890
+ page: page,
891
+ pageSize: pageSize,
892
+ };
893
+ _options = webapi_options;
894
+ }
895
+ return this._getArchiveList2Async(_request, _options);
896
+ }
897
+ async _getArchiveListWithContext2Async(request, options) {
898
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
899
+ base.WebApiBase.SetPending(options);
900
+ return new Promise(async (resolve, reject) => {
901
+ try {
902
+ config.baseURL = this._options.baseUrl;
903
+ const response = await this._axios.post("GetArchiveListWithContext2", request, config);
904
+ base.WebApiBase.SetCompleted(options);
905
+ const res = converters.Create_ArchiveListItemArray_From(response.data);
906
+ resolve(res);
907
+ }
908
+ catch (err) {
909
+ base.WebApiBase.HandleError(options, config, err);
910
+ reject(err);
911
+ }
912
+ });
913
+ }
914
+ async getArchiveListWithContext2Async(guiName, providerName, sortOrder, restriction, entities, page, pageSize, context, webapi_options) {
915
+ let _request = null;
916
+ let _options = null;
917
+ const first = guiName;
918
+ if (typeof (first) === "object" && first && (typeof (first.guiName) != 'undefined' || typeof (first.providerName) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined' || typeof (first.context) != 'undefined')) {
919
+ _request = guiName;
920
+ _options = providerName;
921
+ }
922
+ else {
923
+ _request = {
924
+ guiName: guiName,
925
+ providerName: providerName,
926
+ sortOrder: sortOrder,
927
+ restriction: restriction,
928
+ entities: entities,
929
+ page: page,
930
+ pageSize: pageSize,
931
+ context: context,
932
+ };
933
+ _options = webapi_options;
934
+ }
935
+ return this._getArchiveListWithContext2Async(_request, _options);
936
+ }
937
+ async _getArchiveListByColumnsWithHeader2Async(request, options) {
938
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
939
+ base.WebApiBase.SetPending(options);
940
+ return new Promise(async (resolve, reject) => {
941
+ try {
942
+ config.baseURL = this._options.baseUrl;
943
+ const response = await this._axios.post("GetArchiveListByColumnsWithHeader2", request, config);
944
+ base.WebApiBase.SetCompleted(options);
945
+ const res = converters.Create_ArchiveListResult_From(response.data);
946
+ resolve(res);
947
+ }
948
+ catch (err) {
949
+ base.WebApiBase.HandleError(options, config, err);
950
+ reject(err);
951
+ }
952
+ });
953
+ }
954
+ async getArchiveListByColumnsWithHeader2Async(providerName, columns, sortOrder, restriction, entities, page, pageSize, options, webapi_options) {
955
+ let _request = null;
956
+ let _options = null;
957
+ const first = providerName;
958
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.columns) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined' || typeof (first.options) != 'undefined')) {
959
+ _request = providerName;
960
+ _options = columns;
961
+ }
962
+ else {
963
+ _request = {
964
+ providerName: providerName,
965
+ columns: columns,
966
+ sortOrder: sortOrder,
967
+ restriction: restriction,
968
+ entities: entities,
969
+ page: page,
970
+ pageSize: pageSize,
971
+ options: options,
972
+ };
973
+ _options = webapi_options;
974
+ }
975
+ return this._getArchiveListByColumnsWithHeader2Async(_request, _options);
976
+ }
977
+ async _getArchiveListByColumnsWithHeaderWithContext2Async(request, options) {
978
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
979
+ base.WebApiBase.SetPending(options);
980
+ return new Promise(async (resolve, reject) => {
981
+ try {
982
+ config.baseURL = this._options.baseUrl;
983
+ const response = await this._axios.post("GetArchiveListByColumnsWithHeaderWithContext2", request, config);
984
+ base.WebApiBase.SetCompleted(options);
985
+ const res = converters.Create_ArchiveListResult_From(response.data);
986
+ resolve(res);
987
+ }
988
+ catch (err) {
989
+ base.WebApiBase.HandleError(options, config, err);
990
+ reject(err);
991
+ }
992
+ });
993
+ }
994
+ async getArchiveListByColumnsWithHeaderWithContext2Async(providerName, columns, sortOrder, restriction, entities, page, pageSize, options, context, webapi_options) {
995
+ let _request = null;
996
+ let _options = null;
997
+ const first = providerName;
998
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.columns) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restriction) != 'undefined' || typeof (first.entities) != 'undefined' || typeof (first.page) != 'undefined' || typeof (first.pageSize) != 'undefined' || typeof (first.options) != 'undefined' || typeof (first.context) != 'undefined')) {
999
+ _request = providerName;
1000
+ _options = columns;
1001
+ }
1002
+ else {
1003
+ _request = {
1004
+ providerName: providerName,
1005
+ columns: columns,
1006
+ sortOrder: sortOrder,
1007
+ restriction: restriction,
1008
+ entities: entities,
1009
+ page: page,
1010
+ pageSize: pageSize,
1011
+ options: options,
1012
+ context: context,
1013
+ };
1014
+ _options = webapi_options;
1015
+ }
1016
+ return this._getArchiveListByColumnsWithHeaderWithContext2Async(_request, _options);
1017
+ }
1018
+ async _exportArchiveAsync(request, options) {
1019
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1020
+ base.WebApiBase.SetPending(options);
1021
+ return new Promise(async (resolve, reject) => {
1022
+ try {
1023
+ config.baseURL = this._options.baseUrl;
1024
+ const response = await this._axios.post("ExportArchive", request, config);
1025
+ base.WebApiBase.SetCompleted(options);
1026
+ const res = converters.Create_ExportArchiveResult_From(response.data);
1027
+ resolve(res);
1028
+ }
1029
+ catch (err) {
1030
+ base.WebApiBase.HandleError(options, config, err);
1031
+ reject(err);
1032
+ }
1033
+ });
1034
+ }
1035
+ async exportArchiveAsync(providerName, context, desiredEntities, columns, sortOrder, restrictions, exportType, selectedRowIds, estimatedRowCount, webapi_options) {
1036
+ let _request = null;
1037
+ let _options = null;
1038
+ const first = providerName;
1039
+ if (typeof (first) === "object" && first && (typeof (first.providerName) != 'undefined' || typeof (first.context) != 'undefined' || typeof (first.desiredEntities) != 'undefined' || typeof (first.columns) != 'undefined' || typeof (first.sortOrder) != 'undefined' || typeof (first.restrictions) != 'undefined' || typeof (first.exportType) != 'undefined' || typeof (first.selectedRowIds) != 'undefined' || typeof (first.estimatedRowCount) != 'undefined')) {
1040
+ _request = providerName;
1041
+ _options = context;
1042
+ }
1043
+ else {
1044
+ _request = {
1045
+ providerName: providerName,
1046
+ context: context,
1047
+ desiredEntities: desiredEntities,
1048
+ columns: columns,
1049
+ sortOrder: sortOrder,
1050
+ restrictions: restrictions,
1051
+ exportType: exportType,
1052
+ selectedRowIds: selectedRowIds,
1053
+ estimatedRowCount: estimatedRowCount,
1054
+ };
1055
+ _options = webapi_options;
1056
+ }
1057
+ return this._exportArchiveAsync(_request, _options);
1058
+ }
1059
+ async _getRelatedDataAsync(request, options) {
1060
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1061
+ base.WebApiBase.SetPending(options);
1062
+ return new Promise(async (resolve, reject) => {
1063
+ try {
1064
+ config.baseURL = this._options.baseUrl;
1065
+ const response = await this._axios.post("GetRelatedData", request, config);
1066
+ base.WebApiBase.SetCompleted(options);
1067
+ const res = converters.Create_RelatedDataArray_From(response.data);
1068
+ resolve(res);
1069
+ }
1070
+ catch (err) {
1071
+ base.WebApiBase.HandleError(options, config, err);
1072
+ reject(err);
1073
+ }
1074
+ });
1075
+ }
1076
+ async getRelatedDataAsync(table, recordId, fields, webapi_options) {
1077
+ let _request = null;
1078
+ let _options = null;
1079
+ const first = table;
1080
+ if (typeof (first) === "object" && first && (typeof (first.table) != 'undefined' || typeof (first.recordId) != 'undefined' || typeof (first.fields) != 'undefined')) {
1081
+ _request = table;
1082
+ _options = recordId;
1083
+ }
1084
+ else {
1085
+ _request = {
1086
+ table: table,
1087
+ recordId: recordId,
1088
+ fields: fields,
1089
+ };
1090
+ _options = webapi_options;
1091
+ }
1092
+ return this._getRelatedDataAsync(_request, _options);
1093
+ }
1094
+ async _getRelatedData2Async(request, options) {
1095
+ const config = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1096
+ base.WebApiBase.SetPending(options);
1097
+ return new Promise(async (resolve, reject) => {
1098
+ try {
1099
+ config.baseURL = this._options.baseUrl;
1100
+ const response = await this._axios.post("GetRelatedData2", request, config);
1101
+ base.WebApiBase.SetCompleted(options);
1102
+ const res = converters.Create_RelatedDataArray_From(response.data);
1103
+ resolve(res);
1104
+ }
1105
+ catch (err) {
1106
+ base.WebApiBase.HandleError(options, config, err);
1107
+ reject(err);
1108
+ }
1109
+ });
1110
+ }
1111
+ async getRelatedData2Async(table, recordId, fields, webapi_options) {
1112
+ let _request = null;
1113
+ let _options = null;
1114
+ const first = table;
1115
+ if (typeof (first) === "object" && first && (typeof (first.table) != 'undefined' || typeof (first.recordId) != 'undefined' || typeof (first.fields) != 'undefined')) {
1116
+ _request = table;
1117
+ _options = recordId;
1118
+ }
1119
+ else {
1120
+ _request = {
1121
+ table: table,
1122
+ recordId: recordId,
1123
+ fields: fields,
1124
+ };
1125
+ _options = webapi_options;
1126
+ }
1127
+ return this._getRelatedData2Async(_request, _options);
1128
+ }
1129
+ } // class v1ArchiveAgentController
1130
+ //# sourceMappingURL=ArchiveAgent.js.map