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