@superoffice/webapi 10.5.5 → 11.1.447

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 (173) hide show
  1. package/dist/cjs/BLOBAgent.d.ts +0 -31
  2. package/dist/cjs/BLOBAgent.d.ts.map +1 -1
  3. package/dist/cjs/BLOBAgent.js +0 -67
  4. package/dist/cjs/BLOBAgent.js.map +1 -1
  5. package/dist/cjs/Carriers.d.ts +107 -1111
  6. package/dist/cjs/Carriers.d.ts.map +1 -1
  7. package/dist/cjs/ConfigurationAgent.d.ts +14 -0
  8. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
  9. package/dist/cjs/ConfigurationAgent.js +48 -0
  10. package/dist/cjs/ConfigurationAgent.js.map +1 -1
  11. package/dist/cjs/Converters.d.ts +3 -39
  12. package/dist/cjs/Converters.d.ts.map +1 -1
  13. package/dist/cjs/Converters.js +34 -570
  14. package/dist/cjs/Converters.js.map +1 -1
  15. package/dist/cjs/CustomerServiceAgent.d.ts +0 -16
  16. package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
  17. package/dist/cjs/CustomerServiceAgent.js +0 -44
  18. package/dist/cjs/CustomerServiceAgent.js.map +1 -1
  19. package/dist/cjs/EMailAgent.d.ts +5 -5
  20. package/dist/cjs/EMailAgent.js +1 -1
  21. package/dist/cjs/Enums.d.ts +0 -243
  22. package/dist/cjs/Enums.d.ts.map +1 -1
  23. package/dist/cjs/Enums.js +4 -254
  24. package/dist/cjs/Enums.js.map +1 -1
  25. package/dist/cjs/FreeTextAgent.d.ts +0 -67
  26. package/dist/cjs/FreeTextAgent.d.ts.map +1 -1
  27. package/dist/cjs/FreeTextAgent.js +0 -156
  28. package/dist/cjs/FreeTextAgent.js.map +1 -1
  29. package/dist/cjs/LicenseAgent.d.ts +22 -0
  30. package/dist/cjs/LicenseAgent.d.ts.map +1 -1
  31. package/dist/cjs/LicenseAgent.js +57 -0
  32. package/dist/cjs/LicenseAgent.js.map +1 -1
  33. package/dist/cjs/ListAgent.d.ts +18 -18
  34. package/dist/cjs/ListAgent.d.ts.map +1 -1
  35. package/dist/cjs/ListAgent.js +15 -15
  36. package/dist/cjs/ListAgent.js.map +1 -1
  37. package/dist/cjs/NavigatorAgent.d.ts +0 -8
  38. package/dist/cjs/NavigatorAgent.d.ts.map +1 -1
  39. package/dist/cjs/NavigatorAgent.js +0 -22
  40. package/dist/cjs/NavigatorAgent.js.map +1 -1
  41. package/dist/cjs/PersonAgent.d.ts +18 -0
  42. package/dist/cjs/PersonAgent.d.ts.map +1 -1
  43. package/dist/cjs/PersonAgent.js +36 -0
  44. package/dist/cjs/PersonAgent.js.map +1 -1
  45. package/dist/cjs/QuoteAgent.d.ts +0 -48
  46. package/dist/cjs/QuoteAgent.d.ts.map +1 -1
  47. package/dist/cjs/QuoteAgent.js +0 -118
  48. package/dist/cjs/QuoteAgent.js.map +1 -1
  49. package/dist/cjs/ReportAgent.d.ts +0 -121
  50. package/dist/cjs/ReportAgent.d.ts.map +1 -1
  51. package/dist/cjs/ReportAgent.js +0 -271
  52. package/dist/cjs/ReportAgent.js.map +1 -1
  53. package/dist/cjs/SelectionAgent.d.ts +0 -46
  54. package/dist/cjs/SelectionAgent.d.ts.map +1 -1
  55. package/dist/cjs/SelectionAgent.js +0 -110
  56. package/dist/cjs/SelectionAgent.js.map +1 -1
  57. package/dist/cjs/ViewStateAgent.d.ts +22 -22
  58. package/dist/cjs/ViewStateAgent.d.ts.map +1 -1
  59. package/dist/cjs/ViewStateAgent.js +57 -57
  60. package/dist/cjs/ViewStateAgent.js.map +1 -1
  61. package/dist/cjs/WebApi.d.ts +0 -18
  62. package/dist/cjs/WebApi.d.ts.map +1 -1
  63. package/dist/cjs/WebApi.js +2 -29
  64. package/dist/cjs/WebApi.js.map +1 -1
  65. package/dist/esm/BLOBAgent.d.ts +0 -31
  66. package/dist/esm/BLOBAgent.d.ts.map +1 -1
  67. package/dist/esm/BLOBAgent.js +0 -67
  68. package/dist/esm/BLOBAgent.js.map +1 -1
  69. package/dist/esm/Carriers.d.ts +107 -1111
  70. package/dist/esm/Carriers.d.ts.map +1 -1
  71. package/dist/esm/ConfigurationAgent.d.ts +14 -0
  72. package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
  73. package/dist/esm/ConfigurationAgent.js +48 -0
  74. package/dist/esm/ConfigurationAgent.js.map +1 -1
  75. package/dist/esm/Converters.d.ts +3 -39
  76. package/dist/esm/Converters.d.ts.map +1 -1
  77. package/dist/esm/Converters.js +6 -505
  78. package/dist/esm/Converters.js.map +1 -1
  79. package/dist/esm/CustomerServiceAgent.d.ts +0 -16
  80. package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
  81. package/dist/esm/CustomerServiceAgent.js +0 -44
  82. package/dist/esm/CustomerServiceAgent.js.map +1 -1
  83. package/dist/esm/EMailAgent.d.ts +5 -5
  84. package/dist/esm/EMailAgent.js +1 -1
  85. package/dist/esm/Enums.d.ts +0 -243
  86. package/dist/esm/Enums.d.ts.map +1 -1
  87. package/dist/esm/Enums.js +0 -250
  88. package/dist/esm/Enums.js.map +1 -1
  89. package/dist/esm/FreeTextAgent.d.ts +0 -67
  90. package/dist/esm/FreeTextAgent.d.ts.map +1 -1
  91. package/dist/esm/FreeTextAgent.js +0 -156
  92. package/dist/esm/FreeTextAgent.js.map +1 -1
  93. package/dist/esm/LicenseAgent.d.ts +22 -0
  94. package/dist/esm/LicenseAgent.d.ts.map +1 -1
  95. package/dist/esm/LicenseAgent.js +57 -0
  96. package/dist/esm/LicenseAgent.js.map +1 -1
  97. package/dist/esm/ListAgent.d.ts +18 -18
  98. package/dist/esm/ListAgent.d.ts.map +1 -1
  99. package/dist/esm/ListAgent.js +15 -15
  100. package/dist/esm/ListAgent.js.map +1 -1
  101. package/dist/esm/NavigatorAgent.d.ts +0 -8
  102. package/dist/esm/NavigatorAgent.d.ts.map +1 -1
  103. package/dist/esm/NavigatorAgent.js +0 -22
  104. package/dist/esm/NavigatorAgent.js.map +1 -1
  105. package/dist/esm/PersonAgent.d.ts +18 -0
  106. package/dist/esm/PersonAgent.d.ts.map +1 -1
  107. package/dist/esm/PersonAgent.js +36 -0
  108. package/dist/esm/PersonAgent.js.map +1 -1
  109. package/dist/esm/QuoteAgent.d.ts +0 -48
  110. package/dist/esm/QuoteAgent.d.ts.map +1 -1
  111. package/dist/esm/QuoteAgent.js +0 -118
  112. package/dist/esm/QuoteAgent.js.map +1 -1
  113. package/dist/esm/ReportAgent.d.ts +0 -121
  114. package/dist/esm/ReportAgent.d.ts.map +1 -1
  115. package/dist/esm/ReportAgent.js +0 -271
  116. package/dist/esm/ReportAgent.js.map +1 -1
  117. package/dist/esm/SelectionAgent.d.ts +0 -46
  118. package/dist/esm/SelectionAgent.d.ts.map +1 -1
  119. package/dist/esm/SelectionAgent.js +0 -110
  120. package/dist/esm/SelectionAgent.js.map +1 -1
  121. package/dist/esm/ViewStateAgent.d.ts +22 -22
  122. package/dist/esm/ViewStateAgent.d.ts.map +1 -1
  123. package/dist/esm/ViewStateAgent.js +57 -57
  124. package/dist/esm/ViewStateAgent.js.map +1 -1
  125. package/dist/esm/WebApi.d.ts +0 -18
  126. package/dist/esm/WebApi.d.ts.map +1 -1
  127. package/dist/esm/WebApi.js +0 -27
  128. package/dist/esm/WebApi.js.map +1 -1
  129. package/package.json +3 -3
  130. package/src/BLOBAgent.ts +0 -114
  131. package/src/Carriers.ts +94 -1458
  132. package/src/ConfigurationAgent.ts +60 -0
  133. package/src/Converters.ts +10 -617
  134. package/src/CustomerServiceAgent.ts +0 -47
  135. package/src/EMailAgent.ts +5 -5
  136. package/src/Enums.ts +0 -257
  137. package/src/FreeTextAgent.ts +0 -254
  138. package/src/LicenseAgent.ts +86 -0
  139. package/src/ListAgent.ts +34 -34
  140. package/src/NavigatorAgent.ts +0 -24
  141. package/src/PersonAgent.ts +62 -0
  142. package/src/QuoteAgent.ts +0 -193
  143. package/src/ReportAgent.ts +0 -421
  144. package/src/SelectionAgent.ts +0 -160
  145. package/src/ViewStateAgent.ts +86 -86
  146. package/src/WebApi.ts +0 -36
  147. package/dist/cjs/AudienceAgent.d.ts +0 -376
  148. package/dist/cjs/AudienceAgent.d.ts.map +0 -1
  149. package/dist/cjs/AudienceAgent.js +0 -888
  150. package/dist/cjs/AudienceAgent.js.map +0 -1
  151. package/dist/cjs/DashboardAgent.d.ts +0 -197
  152. package/dist/cjs/DashboardAgent.d.ts.map +0 -1
  153. package/dist/cjs/DashboardAgent.js +0 -436
  154. package/dist/cjs/DashboardAgent.js.map +0 -1
  155. package/dist/cjs/ReplicationAgent.d.ts +0 -101
  156. package/dist/cjs/ReplicationAgent.d.ts.map +0 -1
  157. package/dist/cjs/ReplicationAgent.js +0 -223
  158. package/dist/cjs/ReplicationAgent.js.map +0 -1
  159. package/dist/esm/AudienceAgent.d.ts +0 -376
  160. package/dist/esm/AudienceAgent.d.ts.map +0 -1
  161. package/dist/esm/AudienceAgent.js +0 -883
  162. package/dist/esm/AudienceAgent.js.map +0 -1
  163. package/dist/esm/DashboardAgent.d.ts +0 -197
  164. package/dist/esm/DashboardAgent.d.ts.map +0 -1
  165. package/dist/esm/DashboardAgent.js +0 -431
  166. package/dist/esm/DashboardAgent.js.map +0 -1
  167. package/dist/esm/ReplicationAgent.d.ts +0 -101
  168. package/dist/esm/ReplicationAgent.d.ts.map +0 -1
  169. package/dist/esm/ReplicationAgent.js +0 -218
  170. package/dist/esm/ReplicationAgent.js.map +0 -1
  171. package/src/AudienceAgent.ts +0 -1430
  172. package/src/DashboardAgent.ts +0 -658
  173. package/src/ReplicationAgent.ts +0 -325
@@ -32,8 +32,6 @@ export interface ICustomerServiceAgent {
32
32
  deleteCustomerCenterConfigAsync(CustomerCenterConfigId: number) : Promise<void>;
33
33
  createDefaultMailboxEntityAsync(): Promise< carriers.MailboxEntity >;
34
34
  saveMailboxEntityAsync(entity: carriers.MailboxEntity) : Promise< carriers.MailboxEntity >;
35
- createDefaultSmsConfigAsync(): Promise< carriers.SmsConfig >;
36
- saveSmsConfigAsync(entity: carriers.SmsConfig) : Promise< carriers.SmsConfig >;
37
35
  updateFeatureTogglesAsync(request: carriers.CustomerService_UpdateFeatureTogglesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
38
36
  updateFeatureTogglesAsync(featureToggles: carriers.CsFeatureToggle[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
39
37
  eventHandlerExistsAsync(request: carriers.CustomerService_EventHandlerExistsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
@@ -232,51 +230,6 @@ export class CustomerServiceAgent extends base.WebApiBase implements ICustomerSe
232
230
  });
233
231
  }
234
232
 
235
- /**
236
- * Set default values into a new SmsConfig.
237
- * NetServer calculates default values on the entity, which is required when creating/storing a new instance
238
- * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
239
- * @returns A blank entity.
240
- */
241
- public async createDefaultSmsConfigAsync(options?:base.WebApiRequestOptions) : Promise< carriers.SmsConfig > {
242
- const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
243
- base.WebApiBase.SetPending(options);
244
- return new Promise< carriers.SmsConfig >(async (resolve, reject) => {
245
- try {
246
- const response = await this._axios.post("CreateDefaultSmsConfig", null, config);
247
- base.WebApiBase.SetCompleted(options);
248
- const res : carriers.SmsConfig = converters.Create_SmsConfig_From( response.data );
249
- resolve(res);
250
- }
251
- catch( err ) {
252
- base.WebApiBase.HandleError(options, config, err);
253
- reject(err);
254
- }
255
- });
256
- }
257
- /**
258
- * Replace the existing SmsConfig or creates a new SmsConfig if the id parameter is empty
259
- * @param entity - The SmsConfig to be saved.
260
- * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
261
- * @returns New or updated SmsConfig
262
- */
263
- public async saveSmsConfigAsync(entity: carriers.SmsConfig, options?:base.WebApiRequestOptions) : Promise< carriers.SmsConfig > {
264
- const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
265
- base.WebApiBase.SetPending(options);
266
- return new Promise< carriers.SmsConfig >(async (resolve, reject) => {
267
- try {
268
- const response = await this._axios.post("SaveSmsConfig", entity, config);
269
- base.WebApiBase.SetCompleted(options);
270
- const res : carriers.SmsConfig = converters.Create_SmsConfig_From( response.data );
271
- resolve(res);
272
- }
273
- catch( err ) {
274
- base.WebApiBase.HandleError(options, config, err);
275
- reject(err);
276
- }
277
- });
278
- }
279
-
280
233
  private async _updateFeatureTogglesAsync(request: carriers.CustomerService_UpdateFeatureTogglesRequest, options?:base.WebApiRequestOptions) : Promise< void > {
281
234
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
282
235
  base.WebApiBase.SetPending(options);
package/src/EMailAgent.ts CHANGED
@@ -5207,7 +5207,7 @@ export class EMailAgent extends base.WebApiBase implements IEMailAgent {
5207
5207
 
5208
5208
 
5209
5209
  /**
5210
- * Gets the list of SyncUserAccounts that should be synced.
5210
+ * Gets the list of SyncUserAccounts that should be synced, from mail server to SuperOffice database cache.
5211
5211
  * @returns List of accounts to sync
5212
5212
  */
5213
5213
  public async getReadySyncEmailAccountsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SyncUserAccount[] >
@@ -5237,14 +5237,14 @@ export class EMailAgent extends base.WebApiBase implements IEMailAgent {
5237
5237
 
5238
5238
 
5239
5239
  /**
5240
- * Sync the given account
5240
+ * Sync the given account, from mail server to SuperOffice database cache. This API has no throttling, so please be careful with multiple concurrent calls. Mail servers may become angry.
5241
5241
  * @param request - SyncUserAccount
5242
5242
  * @returns A void return
5243
5243
  */
5244
5244
  public async syncEmailAccountAsync(request: carriers.EMail_SyncEmailAccountRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
5245
5245
 
5246
5246
  /**
5247
- * Sync the given account
5247
+ * Sync the given account, from mail server to SuperOffice database cache. This API has no throttling, so please be careful with multiple concurrent calls. Mail servers may become angry.
5248
5248
  * @param syncUserAccount - Account to sync
5249
5249
  * @returns A void return
5250
5250
  */
@@ -5291,14 +5291,14 @@ export class EMailAgent extends base.WebApiBase implements IEMailAgent {
5291
5291
 
5292
5292
 
5293
5293
  /**
5294
- * Start syncing of the given accounts
5294
+ * Start syncing of the given accounts, from mail server to SuperOffice database cache. Only one of these API calls may run at a time. If one is already active, we return after 1 (one) second, with no indication that the sync was not really started. This is a way to throttle sync&apos;ing to avoid making the mail servers angry at us. &lt;br/&gt; There is an &lt;b&gt;additional&lt;/b&gt; level of throttling within the implementation as well, limiting us to a maximum of 10 tasks, regardless of how many associates are to to be sync&apos;ed. The outer, API-level lock is released when all those tasks are done.
5295
5295
  * @param request - SyncUserAccounts
5296
5296
  * @returns A void return
5297
5297
  */
5298
5298
  public async syncEmailAccountsAsync(request: carriers.EMail_SyncEmailAccountsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
5299
5299
 
5300
5300
  /**
5301
- * Start syncing of the given accounts
5301
+ * Start syncing of the given accounts, from mail server to SuperOffice database cache. Only one of these API calls may run at a time. If one is already active, we return after 1 (one) second, with no indication that the sync was not really started. This is a way to throttle sync&apos;ing to avoid making the mail servers angry at us. &lt;br/&gt; There is an &lt;b&gt;additional&lt;/b&gt; level of throttling within the implementation as well, limiting us to a maximum of 10 tasks, regardless of how many associates are to to be sync&apos;ed. The outer, API-level lock is released when all those tasks are done.
5302
5302
  * @param syncUserAccounts - Accounts to sync
5303
5303
  * @returns A void return
5304
5304
  */
package/src/Enums.ts CHANGED
@@ -1728,41 +1728,6 @@
1728
1728
  }
1729
1729
 
1730
1730
 
1731
- /**
1732
- * What type of delivery system to use for a mail merge
1733
- */
1734
- export enum EMailMergeTargetType {
1735
- /**
1736
- * 0: Default to mail, then fax, then printer
1737
- */
1738
- BestFit = "BestFit",
1739
- /**
1740
- * 1: Default to mail, then fax
1741
- */
1742
- Electronic = "Electronic",
1743
- /**
1744
- * 2: Deliver by mail
1745
- */
1746
- Mail = "Mail",
1747
- /**
1748
- * 3: Deliver by fax
1749
- */
1750
- Fax = "Fax",
1751
- /**
1752
- * 4: Deliver to printer
1753
- */
1754
- Printer = "Printer",
1755
- /**
1756
- * 5: Output mails as xml. This target is used in conjunction with external mail clients.
1757
- */
1758
- Xml = "Xml",
1759
- /**
1760
- * 6: Same as Xml, but use fax format for recipient addresses
1761
- */
1762
- XmlFax = "XmlFax",
1763
- }
1764
-
1765
-
1766
1731
  /**
1767
1732
  * Status if this appointment is in the process of being assigned to someone else
1768
1733
  */
@@ -2306,53 +2271,6 @@
2306
2271
  }
2307
2272
 
2308
2273
 
2309
- /**
2310
- * The avaliable category
2311
- */
2312
- export enum ReportCategory {
2313
- /**
2314
- * 0: New/empty report
2315
- */
2316
- None = "None",
2317
- /**
2318
- * 1: All reports
2319
- */
2320
- All = "All",
2321
- /**
2322
- * 2: 2: Company reports
2323
- */
2324
- Contact = "Contact",
2325
- /**
2326
- * 3: 3: Project reports
2327
- */
2328
- Project = "Project",
2329
- /**
2330
- * 4: 4: Sale reports
2331
- */
2332
- Sale = "Sale",
2333
- /**
2334
- * 5: 5: Appointment reports
2335
- */
2336
- Appointment = "Appointment",
2337
- /**
2338
- * 6: 6: Selection reports
2339
- */
2340
- Selection = "Selection",
2341
- /**
2342
- * 7: 7: Person reports
2343
- */
2344
- Person = "Person",
2345
- /**
2346
- * 8: 8: Diary reports
2347
- */
2348
- Diary = "Diary",
2349
- /**
2350
- * 9: Favorite reports for an associate
2351
- */
2352
- Favorites = "Favorites",
2353
- }
2354
-
2355
-
2356
2274
  /**
2357
2275
  *
2358
2276
  * This Enum is used by: email_item.priority
@@ -2499,49 +2417,6 @@
2499
2417
  }
2500
2418
 
2501
2419
 
2502
- /**
2503
- *
2504
- */
2505
- export enum ReportLayout {
2506
- /**
2507
- * 0:
2508
- */
2509
- Unknown = "Unknown",
2510
- /**
2511
- * 1:
2512
- */
2513
- List = "List",
2514
- /**
2515
- * 2:
2516
- */
2517
- Label = "Label",
2518
- /**
2519
- * 3:
2520
- */
2521
- GroupList = "GroupList",
2522
- /**
2523
- * 4:
2524
- */
2525
- CrossTable = "CrossTable",
2526
- /**
2527
- * 5:
2528
- */
2529
- CalendarWeek5 = "CalendarWeek5",
2530
- /**
2531
- * 6:
2532
- */
2533
- CalendarWeek7 = "CalendarWeek7",
2534
- /**
2535
- * 7:
2536
- */
2537
- CalendarMonth = "CalendarMonth",
2538
- /**
2539
- * 8:
2540
- */
2541
- Text = "Text",
2542
- }
2543
-
2544
-
2545
2420
  /**
2546
2421
  * Describes the orientation of the paper when printing a report. The report layout must be "Label"
2547
2422
  */
@@ -2647,138 +2522,6 @@
2647
2522
  }
2648
2523
 
2649
2524
 
2650
- /**
2651
- * Dashboard layout
2652
- */
2653
- export enum DashboardLayout {
2654
- /**
2655
- * 0: Unknown layout
2656
- */
2657
- None = "None",
2658
- /**
2659
- * 1: One tile.
2660
- */
2661
- One = "One",
2662
- /**
2663
- * 2: Two vertical split.
2664
- */
2665
- TwoVerticalSplit = "TwoVerticalSplit",
2666
- /**
2667
- * 3: Three E split.
2668
- */
2669
- ThreeESplit = "ThreeESplit",
2670
- /**
2671
- * 4: Two horizontal split.
2672
- */
2673
- TwoHorizontalSplit = "TwoHorizontalSplit",
2674
- /**
2675
- * 5: Three T split.
2676
- */
2677
- ThreeTSplit = "ThreeTSplit",
2678
- /**
2679
- * 7: Four tiles.
2680
- */
2681
- Four = "Four",
2682
- }
2683
-
2684
-
2685
- /**
2686
- * Dashboard tile type
2687
- */
2688
- export enum DashboardTileType {
2689
- /**
2690
- * 0: Unknown layout
2691
- */
2692
- None = "None",
2693
- /**
2694
- * 1: Chart tile
2695
- */
2696
- Chart = "Chart",
2697
- /**
2698
- * 2: Web tile
2699
- */
2700
- Web = "Web",
2701
- /**
2702
- * 3: List tile
2703
- */
2704
- List = "List",
2705
- /**
2706
- * 4: Number tile
2707
- */
2708
- Bignum = "Bignum",
2709
- }
2710
-
2711
-
2712
- /**
2713
- * Dashboard tile entity type
2714
- */
2715
- export enum DashboardTileEntityType {
2716
- /**
2717
- * 0: Unknown entity type
2718
- */
2719
- None = "None",
2720
- /**
2721
- * 1:
2722
- */
2723
- Company = "Company",
2724
- /**
2725
- * 2:
2726
- */
2727
- Project = "Project",
2728
- /**
2729
- * 3:
2730
- */
2731
- Sale = "Sale",
2732
- /**
2733
- * 4:
2734
- */
2735
- Product = "Product",
2736
- /**
2737
- * 5:
2738
- */
2739
- Activity = "Activity",
2740
- /**
2741
- * 6:
2742
- */
2743
- Document = "Document",
2744
- /**
2745
- * 7:
2746
- */
2747
- WebPanel = "WebPanel",
2748
- /**
2749
- * 8:
2750
- */
2751
- Followup = "Followup",
2752
- }
2753
-
2754
-
2755
- /**
2756
- * Dashboard tile option type
2757
- */
2758
- export enum DashboardTileOptionType {
2759
- /**
2760
- * 0: Unknown type
2761
- */
2762
- None = "None",
2763
- /**
2764
- * 1: String
2765
- */
2766
- String = "String",
2767
- /**
2768
- * 2: Integer
2769
- */
2770
- Integer = "Integer",
2771
- /**
2772
- * 3: Boolean
2773
- */
2774
- Boolean = "Boolean",
2775
- /**
2776
- * 4: List
2777
- */
2778
- List = "List",
2779
- }
2780
-
2781
-
2782
2525
  /**
2783
2526
  * Dashboard tile chart type (V2)
2784
2527
  * This Enum is used by: dashboard_tile_definition.tile_type
@@ -30,19 +30,10 @@ export interface IFreeTextAgent {
30
30
  getStatusAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FreeText >;
31
31
  setEnabledAsync(request: carriers.FreeText_SetEnabledRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
32
32
  setEnabledAsync(enabled: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
33
- setAutoEnableTravelAreasAsync(request: carriers.FreeText_SetAutoEnableTravelAreasRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
34
- setAutoEnableTravelAreasAsync(autoEnable: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
35
33
  setSingleWordOperatorAsync(request: carriers.FreeText_SetSingleWordOperatorRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
36
34
  setSingleWordOperatorAsync(freeTextOperator: enums.FreeTextOperator, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
37
35
  setMultiWordOperatorAsync(request: carriers.FreeText_SetMultiWordOperatorRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
38
36
  setMultiWordOperatorAsync(freeTextOperator: enums.FreeTextOperator, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
39
- getStopWordListAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >;
40
- addWordsAsync(request: carriers.FreeText_AddWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
41
- addWordsAsync(stopWords: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
42
- deleteStopWordsByIdAsync(request: carriers.FreeText_DeleteStopWordsByIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
43
- deleteStopWordsByIdAsync(stopWordIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
44
- getSuggestedStopWordsAsync(request: carriers.FreeText_GetSuggestedStopWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
45
- getSuggestedStopWordsAsync(countWords: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
46
37
  regenerateIndexAsync(request: carriers.FreeText_RegenerateIndexRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BatchTaskInfo >;
47
38
  regenerateIndexAsync(runAsBatch: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BatchTaskInfo >;
48
39
  freetextIndexRowsAsync(request: carriers.FreeText_FreetextIndexRowsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
@@ -159,60 +150,6 @@ export class FreeTextAgent extends base.WebApiBase implements IFreeTextAgent {
159
150
  }
160
151
 
161
152
 
162
- private async _setAutoEnableTravelAreasAsync(request: carriers.FreeText_SetAutoEnableTravelAreasRequest, options?:base.WebApiRequestOptions) : Promise< void > {
163
- const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
164
- base.WebApiBase.SetPending(options);
165
- return new Promise< void >(async (resolve, reject) => {
166
- try {
167
- config.baseURL = this._options.baseUrl;
168
- const response = await this._axios.post("SetAutoEnableTravelAreas", request , config);
169
- base.WebApiBase.SetCompleted(options);
170
- const res = response.data;
171
- resolve(res);
172
- }
173
- catch( err ) {
174
- base.WebApiBase.HandleError(options, config, err);
175
- reject(err);
176
- }
177
- });
178
- }
179
-
180
-
181
-
182
- /**
183
- * Automatically enable freetext search for new travel areas? true or false
184
- * @param request - AutoEnable
185
- * @returns This method has no return value
186
- */
187
- public async setAutoEnableTravelAreasAsync(request: carriers.FreeText_SetAutoEnableTravelAreasRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
188
-
189
- /**
190
- * Automatically enable freetext search for new travel areas? true or false
191
- * @param autoEnable - If true, auto enable
192
- * @returns This method has no return value
193
- */
194
- public async setAutoEnableTravelAreasAsync(autoEnable: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
195
-
196
- public async setAutoEnableTravelAreasAsync(autoEnable:boolean|carriers.FreeText_SetAutoEnableTravelAreasRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
197
- let _request : carriers.FreeText_SetAutoEnableTravelAreasRequest = null;
198
- let _options : base.WebApiRequestOptions = null;
199
- const first : any = autoEnable;
200
- if( typeof( first ) === "object" && first && ( typeof(first.autoEnable)!='undefined' ) )
201
- {
202
- _request = autoEnable as carriers.FreeText_SetAutoEnableTravelAreasRequest;
203
- _options = webapi_options as base.WebApiRequestOptions;
204
- }
205
- else
206
- {
207
- _request = {
208
- autoEnable: autoEnable as boolean,
209
- };
210
- _options = webapi_options;
211
- }
212
- return this._setAutoEnableTravelAreasAsync( _request, _options );
213
- }
214
-
215
-
216
153
  private async _setSingleWordOperatorAsync(request: carriers.FreeText_SetSingleWordOperatorRequest, options?:base.WebApiRequestOptions) : Promise< void > {
217
154
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
218
155
  base.WebApiBase.SetPending(options);
@@ -321,197 +258,6 @@ export class FreeTextAgent extends base.WebApiBase implements IFreeTextAgent {
321
258
  }
322
259
 
323
260
 
324
- private async _getStopWordListAsync( options?:base.WebApiRequestOptions) : Promise< string[] > {
325
- const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
326
- base.WebApiBase.SetPending(options);
327
- return new Promise< string[] >(async (resolve, reject) => {
328
- try {
329
- config.baseURL = this._options.baseUrl;
330
- const response = await this._axios.post("GetStopWordList", undefined , config);
331
- base.WebApiBase.SetCompleted(options);
332
- const res : string[] = response.data as string[];
333
- resolve(res);
334
- }
335
- catch( err ) {
336
- base.WebApiBase.HandleError(options, config, err);
337
- reject(err);
338
- }
339
- });
340
- }
341
-
342
-
343
- /**
344
- * Returns the list of stop words
345
- * @returns The list of stop words
346
- */
347
- public async getStopWordListAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >
348
- {
349
- return this._getStopWordListAsync(webapi_options);
350
- }
351
-
352
-
353
- private async _addWordsAsync(request: carriers.FreeText_AddWordsRequest, options?:base.WebApiRequestOptions) : Promise< void > {
354
- const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
355
- base.WebApiBase.SetPending(options);
356
- return new Promise< void >(async (resolve, reject) => {
357
- try {
358
- config.baseURL = this._options.baseUrl;
359
- const response = await this._axios.post("AddWords", request , config);
360
- base.WebApiBase.SetCompleted(options);
361
- const res = response.data;
362
- resolve(res);
363
- }
364
- catch( err ) {
365
- base.WebApiBase.HandleError(options, config, err);
366
- reject(err);
367
- }
368
- });
369
- }
370
-
371
-
372
-
373
- /**
374
- * Adds the words in the string to the stop word list
375
- * @param request - StopWords
376
- * @returns This method has no return value
377
- */
378
- public async addWordsAsync(request: carriers.FreeText_AddWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
379
-
380
- /**
381
- * Adds the words in the string to the stop word list
382
- * @param stopWords - The stop words to add
383
- * @returns This method has no return value
384
- */
385
- public async addWordsAsync(stopWords: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
386
-
387
- public async addWordsAsync(stopWords:string|carriers.FreeText_AddWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
388
- let _request : carriers.FreeText_AddWordsRequest = null;
389
- let _options : base.WebApiRequestOptions = null;
390
- const first : any = stopWords;
391
- if( typeof( first ) === "object" && first && ( typeof(first.stopWords)!='undefined' ) )
392
- {
393
- _request = stopWords as carriers.FreeText_AddWordsRequest;
394
- _options = webapi_options as base.WebApiRequestOptions;
395
- }
396
- else
397
- {
398
- _request = {
399
- stopWords: stopWords as string,
400
- };
401
- _options = webapi_options;
402
- }
403
- return this._addWordsAsync( _request, _options );
404
- }
405
-
406
-
407
- private async _deleteStopWordsByIdAsync(request: carriers.FreeText_DeleteStopWordsByIdRequest, options?:base.WebApiRequestOptions) : Promise< void > {
408
- const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
409
- base.WebApiBase.SetPending(options);
410
- return new Promise< void >(async (resolve, reject) => {
411
- try {
412
- config.baseURL = this._options.baseUrl;
413
- const response = await this._axios.post("DeleteStopWordsById", request , config);
414
- base.WebApiBase.SetCompleted(options);
415
- const res = response.data;
416
- resolve(res);
417
- }
418
- catch( err ) {
419
- base.WebApiBase.HandleError(options, config, err);
420
- reject(err);
421
- }
422
- });
423
- }
424
-
425
-
426
-
427
- /**
428
- * Delete the stop words with these ids
429
- * @param request - StopWordIds
430
- * @returns This method has no return value
431
- */
432
- public async deleteStopWordsByIdAsync(request: carriers.FreeText_DeleteStopWordsByIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
433
-
434
- /**
435
- * Delete the stop words with these ids
436
- * @param stopWordIds - The ids of the stopwords to delete
437
- * @returns This method has no return value
438
- */
439
- public async deleteStopWordsByIdAsync(stopWordIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
440
-
441
- public async deleteStopWordsByIdAsync(stopWordIds:number[]|carriers.FreeText_DeleteStopWordsByIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
442
- let _request : carriers.FreeText_DeleteStopWordsByIdRequest = null;
443
- let _options : base.WebApiRequestOptions = null;
444
- const first : any = stopWordIds;
445
- if( typeof( first ) === "object" && first && ( typeof(first.stopWordIds)!='undefined' ) )
446
- {
447
- _request = stopWordIds as carriers.FreeText_DeleteStopWordsByIdRequest;
448
- _options = webapi_options as base.WebApiRequestOptions;
449
- }
450
- else
451
- {
452
- _request = {
453
- stopWordIds: stopWordIds as number[],
454
- };
455
- _options = webapi_options;
456
- }
457
- return this._deleteStopWordsByIdAsync( _request, _options );
458
- }
459
-
460
-
461
- private async _getSuggestedStopWordsAsync(request: carriers.FreeText_GetSuggestedStopWordsRequest, options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] > {
462
- const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
463
- base.WebApiBase.SetPending(options);
464
- return new Promise< carriers.MDOListItem[] >(async (resolve, reject) => {
465
- try {
466
- config.baseURL = this._options.baseUrl;
467
- const response = await this._axios.post("GetSuggestedStopWords", request , config);
468
- base.WebApiBase.SetCompleted(options);
469
- const res : carriers.MDOListItem[] = converters.Create_MDOListItemArray_From( response.data );
470
- resolve(res);
471
- }
472
- catch( err ) {
473
- base.WebApiBase.HandleError(options, config, err);
474
- reject(err);
475
- }
476
- });
477
- }
478
-
479
-
480
-
481
- /**
482
- * Returns the top used words in the freetext index table, sorted as most used first
483
- * @param request - CountWords
484
- * @returns The most used words
485
- */
486
- public async getSuggestedStopWordsAsync(request: carriers.FreeText_GetSuggestedStopWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
487
-
488
- /**
489
- * Returns the top used words in the freetext index table, sorted as most used first
490
- * @param countWords - The count of words that will be returned
491
- * @returns The most used words
492
- */
493
- public async getSuggestedStopWordsAsync(countWords: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
494
-
495
- public async getSuggestedStopWordsAsync(countWords:number|carriers.FreeText_GetSuggestedStopWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] > {
496
- let _request : carriers.FreeText_GetSuggestedStopWordsRequest = null;
497
- let _options : base.WebApiRequestOptions = null;
498
- const first : any = countWords;
499
- if( typeof( first ) === "object" && first && ( typeof(first.countWords)!='undefined' ) )
500
- {
501
- _request = countWords as carriers.FreeText_GetSuggestedStopWordsRequest;
502
- _options = webapi_options as base.WebApiRequestOptions;
503
- }
504
- else
505
- {
506
- _request = {
507
- countWords: countWords as number,
508
- };
509
- _options = webapi_options;
510
- }
511
- return this._getSuggestedStopWordsAsync( _request, _options );
512
- }
513
-
514
-
515
261
  private async _regenerateIndexAsync(request: carriers.FreeText_RegenerateIndexRequest, options?:base.WebApiRequestOptions) : Promise< carriers.BatchTaskInfo > {
516
262
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
517
263
  base.WebApiBase.SetPending(options);