@superoffice/webapi 11.7.727 → 11.9.1204

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 (163) hide show
  1. package/LICENSE.md +15 -15
  2. package/README.md +184 -184
  3. package/__tests__/Appointment63-notz.json +1925 -1925
  4. package/__tests__/Appointment63-utctz.json +1925 -1925
  5. package/__tests__/Appointment63.json +1925 -1925
  6. package/__tests__/AppointmentTzTest.ts +115 -115
  7. package/__tests__/AxiosNockTest.ts +28 -28
  8. package/__tests__/ContactDefault.json +699 -699
  9. package/__tests__/ContactEntity.json +272 -272
  10. package/__tests__/ContactRestTest.ts +144 -144
  11. package/__tests__/ContactTest.ts +395 -395
  12. package/__tests__/ConvertersTest.ts +97 -97
  13. package/__tests__/DocumentTest.ts +101 -101
  14. package/__tests__/Person210-notz.json +1932 -1932
  15. package/__tests__/Person210-utctz.json +1932 -1932
  16. package/__tests__/Person210.json +1932 -1932
  17. package/__tests__/PersonImageData.nock +22 -22
  18. package/__tests__/PersonTest.ts +41 -41
  19. package/__tests__/PersonTzTest.ts +113 -113
  20. package/__tests__/RecurrenceInfo.json +55 -55
  21. package/__tests__/ResponseCallbackTest.ts +23 -23
  22. package/__tests__/TableRights.json +441 -441
  23. package/__tests__/WebapiTest.ts +264 -264
  24. package/__tests__/Webhook.json +16 -16
  25. package/__tests__/WebhookTest.ts +209 -209
  26. package/dist/cjs/AIAgent.d.ts +62 -0
  27. package/dist/cjs/AIAgent.d.ts.map +1 -1
  28. package/dist/cjs/AIAgent.js +149 -0
  29. package/dist/cjs/AIAgent.js.map +1 -1
  30. package/dist/cjs/Carriers.d.ts +640 -14
  31. package/dist/cjs/Carriers.d.ts.map +1 -1
  32. package/dist/cjs/Converters.d.ts +24 -0
  33. package/dist/cjs/Converters.d.ts.map +1 -1
  34. package/dist/cjs/Converters.js +388 -17
  35. package/dist/cjs/Converters.js.map +1 -1
  36. package/dist/cjs/DiagnosticsAgent.d.ts +38 -0
  37. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
  38. package/dist/cjs/DiagnosticsAgent.js +91 -0
  39. package/dist/cjs/DiagnosticsAgent.js.map +1 -1
  40. package/dist/cjs/Enums.d.ts +77 -1
  41. package/dist/cjs/Enums.d.ts.map +1 -1
  42. package/dist/cjs/Enums.js +83 -4
  43. package/dist/cjs/Enums.js.map +1 -1
  44. package/dist/cjs/ListAgent.d.ts +71 -6
  45. package/dist/cjs/ListAgent.d.ts.map +1 -1
  46. package/dist/cjs/ListAgent.js +157 -0
  47. package/dist/cjs/ListAgent.js.map +1 -1
  48. package/dist/cjs/MarketingAgent.d.ts +68 -0
  49. package/dist/cjs/MarketingAgent.d.ts.map +1 -1
  50. package/dist/cjs/MarketingAgent.js +157 -0
  51. package/dist/cjs/MarketingAgent.js.map +1 -1
  52. package/dist/cjs/TicketAgent.d.ts +23 -0
  53. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  54. package/dist/cjs/TicketAgent.js +65 -0
  55. package/dist/cjs/TicketAgent.js.map +1 -1
  56. package/dist/esm/AIAgent.d.ts +62 -0
  57. package/dist/esm/AIAgent.d.ts.map +1 -1
  58. package/dist/esm/AIAgent.js +150 -1
  59. package/dist/esm/AIAgent.js.map +1 -1
  60. package/dist/esm/Carriers.d.ts +640 -14
  61. package/dist/esm/Carriers.d.ts.map +1 -1
  62. package/dist/esm/Converters.d.ts +24 -0
  63. package/dist/esm/Converters.d.ts.map +1 -1
  64. package/dist/esm/Converters.js +346 -0
  65. package/dist/esm/Converters.js.map +1 -1
  66. package/dist/esm/DiagnosticsAgent.d.ts +38 -0
  67. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
  68. package/dist/esm/DiagnosticsAgent.js +91 -0
  69. package/dist/esm/DiagnosticsAgent.js.map +1 -1
  70. package/dist/esm/Enums.d.ts +77 -1
  71. package/dist/esm/Enums.d.ts.map +1 -1
  72. package/dist/esm/Enums.js +79 -0
  73. package/dist/esm/Enums.js.map +1 -1
  74. package/dist/esm/ListAgent.d.ts +71 -6
  75. package/dist/esm/ListAgent.d.ts.map +1 -1
  76. package/dist/esm/ListAgent.js +157 -0
  77. package/dist/esm/ListAgent.js.map +1 -1
  78. package/dist/esm/MarketingAgent.d.ts +68 -0
  79. package/dist/esm/MarketingAgent.d.ts.map +1 -1
  80. package/dist/esm/MarketingAgent.js +157 -0
  81. package/dist/esm/MarketingAgent.js.map +1 -1
  82. package/dist/esm/TicketAgent.d.ts +23 -0
  83. package/dist/esm/TicketAgent.d.ts.map +1 -1
  84. package/dist/esm/TicketAgent.js +65 -0
  85. package/dist/esm/TicketAgent.js.map +1 -1
  86. package/examples-js/hello.js +12 -12
  87. package/examples-ts/hello.ts +8 -8
  88. package/package.json +93 -93
  89. package/scripts/postbuild.js +22 -22
  90. package/scripts/setVersion.js +44 -44
  91. package/src/AIAgent.ts +2239 -1992
  92. package/src/AppointmentAgent.ts +6263 -6263
  93. package/src/AppointmentRestApi.ts +225 -225
  94. package/src/ArchiveAgent.ts +1950 -1950
  95. package/src/AssociateAgent.ts +422 -422
  96. package/src/AxiosCacheHandler.ts +74 -74
  97. package/src/BLOBAgent.ts +2100 -2100
  98. package/src/Base64.ts +285 -285
  99. package/src/BatchAgent.ts +910 -910
  100. package/src/BulkUpdateAgent.ts +504 -504
  101. package/src/CRMScriptAgent.ts +1390 -1390
  102. package/src/Carriers.ts +53121 -52274
  103. package/src/ChatAgent.ts +1422 -1422
  104. package/src/ConfigurationAgent.ts +2228 -2228
  105. package/src/ContactAgent.ts +1756 -1756
  106. package/src/ContactRestApi.ts +237 -237
  107. package/src/Converters.ts +23496 -23090
  108. package/src/CustomerServiceAgent.ts +1799 -1799
  109. package/src/DashAgent.ts +1674 -1674
  110. package/src/DatabaseAgent.ts +120 -120
  111. package/src/DatabaseTableAgent.ts +534 -534
  112. package/src/Day_js.ts +41 -41
  113. package/src/DiagnosticsAgent.ts +1384 -1240
  114. package/src/DocumentAgent.ts +5079 -5079
  115. package/src/DocumentMigrationAgent.ts +524 -524
  116. package/src/DocumentRestApi.ts +259 -259
  117. package/src/EMailAgent.ts +5328 -5328
  118. package/src/Enums.ts +6998 -6916
  119. package/src/ErpSyncAgent.ts +2658 -2658
  120. package/src/FavouriteAgent.ts +720 -720
  121. package/src/FindAgent.ts +2330 -2330
  122. package/src/ForeignSystemAgent.ts +1710 -1710
  123. package/src/FreeTextAgent.ts +372 -372
  124. package/src/ImportAgent.ts +304 -304
  125. package/src/LicenseAgent.ts +1230 -1230
  126. package/src/ListAgent.ts +11451 -11237
  127. package/src/MDOAgent.ts +748 -748
  128. package/src/MarketingAgent.ts +1146 -890
  129. package/src/MessagingAgent.ts +384 -384
  130. package/src/NavigatorAgent.ts +140 -140
  131. package/src/NumberAllocationAgent.ts +296 -296
  132. package/src/PersonAgent.ts +3287 -3287
  133. package/src/PersonRestApi.ts +241 -241
  134. package/src/PhoneListAgent.ts +458 -458
  135. package/src/PocketAgent.ts +780 -780
  136. package/src/PreferenceAgent.ts +1900 -1900
  137. package/src/PreviewsAgent.ts +116 -116
  138. package/src/ProjectAgent.ts +2391 -2391
  139. package/src/ProjectRestApi.ts +239 -239
  140. package/src/QuoteAgent.ts +5159 -5159
  141. package/src/RelationAgent.ts +220 -220
  142. package/src/ReportAgent.ts +154 -154
  143. package/src/ResourceAgent.ts +358 -358
  144. package/src/SaintAgent.ts +601 -601
  145. package/src/SaleAgent.ts +2034 -2034
  146. package/src/SaleRestApi.ts +233 -233
  147. package/src/SelectionAgent.ts +3195 -3195
  148. package/src/SentryAgent.ts +462 -462
  149. package/src/SoApiConstants.ts +8 -8
  150. package/src/TargetsAgent.ts +1104 -1104
  151. package/src/TicketAgent.ts +3708 -3638
  152. package/src/TimeZoneAgent.ts +528 -528
  153. package/src/TooltipsAgent.ts +116 -116
  154. package/src/UserAgent.ts +4856 -4856
  155. package/src/UserDefinedFieldInfoAgent.ts +1764 -1764
  156. package/src/ViewStateAgent.ts +858 -858
  157. package/src/WebApi.ts +872 -872
  158. package/src/WebApiBase.ts +565 -565
  159. package/src/WebhookAgent.ts +388 -388
  160. package/src/WorkflowAgent.ts +1338 -1338
  161. package/tsconfig.esm.json +8 -8
  162. package/tsconfig.jest.json +8 -8
  163. package/tsconfig.json +34 -34
@@ -5845,6 +5845,10 @@ export interface PersonEntity extends Carrier {
5845
5845
  * Refinement of categories of lead type. Empty if the category is not a lead type.
5846
5846
  */
5847
5847
  leadstatusId?: number;
5848
+ /**
5849
+ * Name of leadstatus
5850
+ */
5851
+ leadstatus?: string;
5848
5852
  /**
5849
5853
  * Dictionary of user defined field data.
5850
5854
  * The key string is the ProgId of the UdefField, or if the ProgId is empty it is a string of the format "SuperOffice:[UdefFieldIdentity]", e.g. "SuperOffice:1234"
@@ -9244,6 +9248,10 @@ export interface Appointment extends Carrier {
9244
9248
  * Internal notes for the appointment.
9245
9249
  */
9246
9250
  internalNotes?: string;
9251
+ /**
9252
+ * Link to task list
9253
+ */
9254
+ taskId?: number;
9247
9255
  }
9248
9256
  /**
9249
9257
  * Sets an appointment's status to Completed if the appointment had a different status, or sets the status to started if already set to completed.
@@ -11552,6 +11560,14 @@ export interface ParticipantInfo {
11552
11560
  * Description added for the email address participant, added to the email-table's description field if present.
11553
11561
  */
11554
11562
  description?: string;
11563
+ /**
11564
+ * The type of participant if the appointment is externally owned.
11565
+ */
11566
+ externallyOwnedType?: enums.ExternallyOwnedType;
11567
+ /**
11568
+ * The status of the externally owned participant.
11569
+ */
11570
+ externallyOwnedStatus?: enums.ExternallyOwnedStatus;
11555
11571
  }
11556
11572
  /**
11557
11573
  *
@@ -14725,7 +14741,7 @@ export interface AmountClassEntity extends Carrier {
14725
14741
  currencyId?: number;
14726
14742
  }
14727
14743
  /**
14728
- * Utm parameters for a given person.
14744
+ * Carrier for an automated category update setting.
14729
14745
  */
14730
14746
  export interface AutomatedCategoryUpdate extends Carrier {
14731
14747
  /**
@@ -14766,12 +14782,12 @@ export interface List_SaveAllAutomatedCategoryUpdatesRequest {
14766
14782
  export interface List_GetAllAutomatedCategoryUpdatesRequest {
14767
14783
  }
14768
14784
  /**
14769
- * Get the settings for an update when saving a sale
14785
+ * Before saving a sale, call this to see if the current changes on the sale should result in a userconfirmation dialog asking to automatically update category on contact or person
14770
14786
  * Returns AutomatedCategoryUpdate
14771
14787
  */
14772
14788
  export interface List_GetNeedCategoryUpdateForSaleRequest {
14773
14789
  /**
14774
- * The saleEntity that might trigger the category update
14790
+ * The new salestatus that might trigger the category update
14775
14791
  */
14776
14792
  saleStatus: enums.SaleStatus;
14777
14793
  /**
@@ -14788,12 +14804,12 @@ export interface List_GetNeedCategoryUpdateForSaleRequest {
14788
14804
  personId: number;
14789
14805
  }
14790
14806
  /**
14791
- * Get the settings for an update when saving a sale
14807
+ * Before saving a person with changed leadstatus, call this to see if we should ask for a userconfirmation to automatically update category on contact or person
14792
14808
  * Returns AutomatedCategoryUpdate
14793
14809
  */
14794
14810
  export interface List_GetNeedCategoryUpdateForPersonRequest {
14795
14811
  /**
14796
- * The leadstatus that might trigger the category update
14812
+ * The new leadstatus that might trigger the category update
14797
14813
  */
14798
14814
  leadStatus: number;
14799
14815
  /**
@@ -14809,6 +14825,27 @@ export interface List_GetNeedCategoryUpdateForPersonRequest {
14809
14825
  */
14810
14826
  categoryId: number;
14811
14827
  }
14828
+ /**
14829
+ * Does the actual update of the category. Ask the user first, if user confirmed yes, do automatically update category, this call will do that actual update
14830
+ */
14831
+ export interface List_PerformNeededCategoryUpdateRequest {
14832
+ /**
14833
+ * The person id that will get the resulting update
14834
+ */
14835
+ personId: number;
14836
+ /**
14837
+ * The contact id that will get the resulting update
14838
+ */
14839
+ contactId: number;
14840
+ /**
14841
+ * The category id person and contact will be updated to
14842
+ */
14843
+ categoryId: number;
14844
+ /**
14845
+ * The setting that triggered the update
14846
+ */
14847
+ setting: AutomatedCategoryUpdate;
14848
+ }
14812
14849
  /**
14813
14850
  *
14814
14851
  */
@@ -14837,17 +14874,33 @@ export interface List_GetBusinessesRequest {
14837
14874
  */
14838
14875
  export interface Category extends Carrier {
14839
14876
  /**
14840
- * The list item Id
14877
+ * The category identifier
14841
14878
  */
14842
- id: number;
14879
+ id?: number;
14843
14880
  /**
14844
- * The list item Value
14881
+ * The category name
14845
14882
  */
14846
14883
  value?: string;
14847
14884
  /**
14848
- * The list item Tooltip
14885
+ * The category description
14849
14886
  */
14850
14887
  tooltip?: string;
14888
+ /**
14889
+ * Enum of the group this category belongs to, static list of 5 groups
14890
+ */
14891
+ categoryGroup?: enums.CategoryGroup;
14892
+ /**
14893
+ * True if the category should enable lead status
14894
+ */
14895
+ enableLeadStatus?: boolean;
14896
+ /**
14897
+ * The rank of the category
14898
+ */
14899
+ rank?: number;
14900
+ /**
14901
+ * True if the category is deleted
14902
+ */
14903
+ deleted?: boolean;
14851
14904
  }
14852
14905
  /**
14853
14906
  *
@@ -14874,7 +14927,7 @@ export interface CategoryEntity extends Carrier {
14874
14927
  */
14875
14928
  rank?: number;
14876
14929
  /**
14877
- * True if the category should enable lead stage
14930
+ * True if the category should enable lead status
14878
14931
  */
14879
14932
  enableLeadStatus?: boolean;
14880
14933
  /**
@@ -14882,7 +14935,7 @@ export interface CategoryEntity extends Carrier {
14882
14935
  */
14883
14936
  categoryFamilyId?: number;
14884
14937
  /**
14885
- * true if the country is deleted
14938
+ * true if the category is deleted
14886
14939
  */
14887
14940
  deleted?: boolean;
14888
14941
  }
@@ -18315,6 +18368,72 @@ export interface List_GetAllTicketPrioritiesRequest {
18315
18368
  */
18316
18369
  includeDeleted: boolean;
18317
18370
  }
18371
+ /**
18372
+ * Ticket relation definition entity
18373
+ */
18374
+ export interface TicketRelationDefinitionEntity extends Carrier {
18375
+ /**
18376
+ * Primary key
18377
+ */
18378
+ ticketRelationDefId?: number;
18379
+ /**
18380
+ * The name of this Ticket relation
18381
+ */
18382
+ name?: string;
18383
+ /**
18384
+ * Tooltip or other description
18385
+ */
18386
+ description?: string;
18387
+ /**
18388
+ * Rank order
18389
+ */
18390
+ rank?: number;
18391
+ /**
18392
+ * Type of the relation (Related, Parent, Child)
18393
+ */
18394
+ relationType?: enums.TicketRelationType;
18395
+ /**
18396
+ * Is this row part of SuperOffice priming data
18397
+ */
18398
+ isBuiltIn?: boolean;
18399
+ /**
18400
+ * Parent relation is mandatory when a new request is created
18401
+ */
18402
+ isParentMandatory?: boolean;
18403
+ /**
18404
+ * Close parent when all children are closed
18405
+ */
18406
+ isCloseParentWithChild?: boolean;
18407
+ /**
18408
+ * Prevent closing parent until all children are closed
18409
+ */
18410
+ isPreventClosingParent?: boolean;
18411
+ /**
18412
+ * Offer to close all related when parent is closed
18413
+ */
18414
+ isCloseWithParent?: boolean;
18415
+ /**
18416
+ * Source ticket type(s) for this relation
18417
+ */
18418
+ sourceTicketTypes?: number[];
18419
+ /**
18420
+ * Destination ticket type(s) for this relation
18421
+ */
18422
+ destinationTicketTypes?: number[];
18423
+ }
18424
+ /**
18425
+ * This method will set sort order of ticket relation definition in a list
18426
+ */
18427
+ export interface List_SetTicketRelationDefinitionSortOrderRequest {
18428
+ /**
18429
+ * Id of ticket relation definition
18430
+ */
18431
+ ticketRelationDefId: number;
18432
+ /**
18433
+ * Indicates the sort order for this relation definition. 1 is first. Any records following this one will be renumbered automatically
18434
+ */
18435
+ sortOrder: number;
18436
+ }
18318
18437
  /**
18319
18438
  * Entity for a ticket status. This entity describes the meta data for a ticket status, and provides special operations on it.
18320
18439
  */
@@ -18642,6 +18761,10 @@ export interface WebPanelEntity extends Carrier {
18642
18761
  * If set to true, the content will not reload on current changes, only applies to sidepanels
18643
18762
  */
18644
18763
  neverReloadOnCurrentChange?: boolean;
18764
+ /**
18765
+ * The name of the custom object when VisibleIn is set to custom object
18766
+ */
18767
+ customObjectEntity?: string;
18645
18768
  }
18646
18769
  /**
18647
18770
  * This methods generates the navigation URL to be used to navigate to the panel
@@ -20472,6 +20595,221 @@ export interface Associate_LogOffWindowsUsersRequest {
20472
20595
  */
20473
20596
  associateIds: number[];
20474
20597
  }
20598
+ /**
20599
+ *
20600
+ */
20601
+ export interface AnalyticsData {
20602
+ /**
20603
+ * User full name. Only included in Sod
20604
+ */
20605
+ name?: string;
20606
+ /**
20607
+ * User email address. Only included in Sod
20608
+ */
20609
+ email?: string;
20610
+ /**
20611
+ * User company name. Only included in Sod
20612
+ */
20613
+ company?: string;
20614
+ /**
20615
+ * Current license status of the user and installation
20616
+ */
20617
+ licenseStatus?: UserAndInstallationLicenceStatus;
20618
+ /**
20619
+ * Dictionary of license types and their status
20620
+ */
20621
+ hasLicensce?: StringBoolDictionary;
20622
+ /**
20623
+ * Names of system licenses assigned to the user
20624
+ */
20625
+ systemLicenseNames?: string[];
20626
+ /**
20627
+ * Date and time when the user signed up
20628
+ */
20629
+ userSignedUpAt?: string;
20630
+ /**
20631
+ * Number of contacts associated with the user
20632
+ */
20633
+ numContact?: number;
20634
+ /**
20635
+ * Number of persons associated with the user
20636
+ */
20637
+ numPerson?: number;
20638
+ /**
20639
+ * Number of appointments for the user
20640
+ */
20641
+ numAppointment?: number;
20642
+ /**
20643
+ * Number of sales associated with the user
20644
+ */
20645
+ numSale?: number;
20646
+ /**
20647
+ * Number of projects associated with the user
20648
+ */
20649
+ numProject?: number;
20650
+ /**
20651
+ * Number of selections made by the user
20652
+ */
20653
+ numSelection?: number;
20654
+ /**
20655
+ * Number of email items associated with the user
20656
+ */
20657
+ numEmailItem?: number;
20658
+ /**
20659
+ * Number of ticket log actions performed by the user
20660
+ */
20661
+ numTicketLogAction?: number;
20662
+ /**
20663
+ * Number of dashboards available to the user
20664
+ */
20665
+ numDashboard?: number;
20666
+ /**
20667
+ * Number of quotes created by the user
20668
+ */
20669
+ numQuote?: number;
20670
+ /**
20671
+ * Number of quote lines associated with the user
20672
+ */
20673
+ numQuoteLine?: number;
20674
+ /**
20675
+ * Number of documents associated with the user
20676
+ */
20677
+ numDocument?: number;
20678
+ /**
20679
+ * Number of target assignment info records
20680
+ */
20681
+ numTargetAssignmentInfo?: number;
20682
+ /**
20683
+ * Number of mailings sent by the user
20684
+ */
20685
+ numMailing?: number;
20686
+ /**
20687
+ * Number of forms created by the user
20688
+ */
20689
+ numForm?: number;
20690
+ /**
20691
+ * Number of workflows associated with the user
20692
+ */
20693
+ numWorkflow?: number;
20694
+ /**
20695
+ * Total number of contacts in the system
20696
+ */
20697
+ totContact?: number;
20698
+ /**
20699
+ * Total number of persons in the system
20700
+ */
20701
+ totPerson?: number;
20702
+ /**
20703
+ * Total number of appointments in the system
20704
+ */
20705
+ totAppointment?: number;
20706
+ /**
20707
+ * Total number of sales in the system
20708
+ */
20709
+ totSale?: number;
20710
+ /**
20711
+ * Total number of projects in the system
20712
+ */
20713
+ totProject?: number;
20714
+ /**
20715
+ * Total number of selections in the system
20716
+ */
20717
+ totSelection?: number;
20718
+ /**
20719
+ * Total number of email items in the system
20720
+ */
20721
+ totEmailItem?: number;
20722
+ /**
20723
+ * Total number of ticket log actions in the system
20724
+ */
20725
+ totTicketLogAction?: number;
20726
+ /**
20727
+ * Total number of dashboards in the system
20728
+ */
20729
+ totDashboard?: number;
20730
+ /**
20731
+ * Total number of quotes in the system
20732
+ */
20733
+ totQuote?: number;
20734
+ /**
20735
+ * Total number of quote lines in the system
20736
+ */
20737
+ totQuoteLine?: number;
20738
+ /**
20739
+ * Total number of documents in the system
20740
+ */
20741
+ totDocument?: number;
20742
+ /**
20743
+ * Total number of target assignment info records
20744
+ */
20745
+ totTargetAssignmentInfo?: number;
20746
+ /**
20747
+ * Total number of mailings in the system
20748
+ */
20749
+ totMailing?: number;
20750
+ /**
20751
+ * Total number of forms in the system
20752
+ */
20753
+ totForm?: number;
20754
+ /**
20755
+ * Total number of workflows in the system
20756
+ */
20757
+ totWorkflow?: number;
20758
+ /**
20759
+ * Number of days since the user registered
20760
+ */
20761
+ userRegisteredAgeDays?: number;
20762
+ /**
20763
+ * Name of the user's country
20764
+ */
20765
+ userCountryName?: string;
20766
+ /**
20767
+ * Country code of the user
20768
+ */
20769
+ userCountryCode?: string;
20770
+ /**
20771
+ * Array of user preferences (name and value)
20772
+ */
20773
+ preferences?: StringBoolDictionary;
20774
+ /**
20775
+ * Total number of web users in the system
20776
+ */
20777
+ totWebUsers?: number;
20778
+ /**
20779
+ * Name of the group's country
20780
+ */
20781
+ groupCountryName?: string;
20782
+ /**
20783
+ * Country code of the group
20784
+ */
20785
+ groupCountryCode?: string;
20786
+ /**
20787
+ * Date when the group was registered
20788
+ */
20789
+ groupRegisteredDate?: string;
20790
+ /**
20791
+ * Number of days since the group was registered
20792
+ */
20793
+ groupRegisteredAgeDays?: number;
20794
+ /**
20795
+ * Array of feature toggles (name and enabled status)
20796
+ */
20797
+ featureToggles?: StringBoolDictionary;
20798
+ /**
20799
+ * Current file version as a string
20800
+ */
20801
+ fileVersion?: string;
20802
+ /**
20803
+ * Current file version as a number
20804
+ */
20805
+ fileVersionNumber?: number;
20806
+ }
20807
+ /**
20808
+ * Retrieve analytics properties to be included in usage tracking.
20809
+ * Returns AnalyticsData
20810
+ */
20811
+ export interface Diagnostics_GetAnalyticsDataRequest {
20812
+ }
20475
20813
  /**
20476
20814
  * Cache maintenance
20477
20815
  */
@@ -20606,6 +20944,30 @@ export interface Diagnostics_ChangeLogSettingsRequest {
20606
20944
  */
20607
20945
  logToTrace: boolean;
20608
20946
  }
20947
+ /**
20948
+ * Sends events to Amplitude and Userflow.
20949
+ * Returns number
20950
+ */
20951
+ export interface Diagnostics_TrackEventRequest {
20952
+ /**
20953
+ * "Sale Completed" or "Sale Sold" etc. See the TrackEventNames class for suitable string constants.
20954
+ */
20955
+ trackEventName: string;
20956
+ /**
20957
+ * key-value pairs of event properties. client is set from the application token. Special keys: app_version, platform, os_name, os_version, device_brand, device_manufacturer
20958
+ */
20959
+ eventProperties: StringDictionary;
20960
+ }
20961
+ /**
20962
+ * Sends user identification to Amplitude and Userflow. Sets current rights, user licenses automatically. Additional properties can be specified in userProperties.
20963
+ * Returns number
20964
+ */
20965
+ export interface Diagnostics_TrackUserRequest {
20966
+ /**
20967
+ * Optional: Additional key-value pairs of user properties to set on the user. Special keys: app_version, platform, os_name, os_version, device_brand, device_manufacturer
20968
+ */
20969
+ userProperties: StringDictionary;
20970
+ }
20609
20971
  /**
20610
20972
  *
20611
20973
  */
@@ -33099,6 +33461,85 @@ export interface OperationInfo extends Carrier {
33099
33461
  */
33100
33462
  encodedLeadTexts?: string[];
33101
33463
  }
33464
+ /**
33465
+ * Carrier for a font that is available for external use.
33466
+ */
33467
+ export interface AvailableFont extends Carrier {
33468
+ /**
33469
+ * Primary key
33470
+ */
33471
+ availableFontsId?: number;
33472
+ /**
33473
+ * The display name of the font
33474
+ */
33475
+ displayName?: string;
33476
+ /**
33477
+ * The font family name
33478
+ */
33479
+ fontFamily?: string;
33480
+ /**
33481
+ * The path to the CSS for the font
33482
+ */
33483
+ cssPath?: string;
33484
+ /**
33485
+ * The rank of the font in the list
33486
+ */
33487
+ rank?: number;
33488
+ /**
33489
+ * True if font is deleted from available fonts
33490
+ */
33491
+ deleted?: boolean;
33492
+ }
33493
+ /**
33494
+ * Create an return an empty font
33495
+ * Returns AvailableFont
33496
+ */
33497
+ export interface Marketing_CreateDefaultAvailableFontRequest {
33498
+ }
33499
+ /**
33500
+ * Saves the font and returns it with correct rank
33501
+ * Returns AvailableFont
33502
+ */
33503
+ export interface Marketing_SaveAvailableFontRequest {
33504
+ /**
33505
+ * The font to save
33506
+ */
33507
+ font: AvailableFont;
33508
+ }
33509
+ /**
33510
+ * Delete the font with the provided id
33511
+ * Returns boolean
33512
+ */
33513
+ export interface Marketing_DeleteAvailableFontRequest {
33514
+ /**
33515
+ * The id of the font to delete
33516
+ */
33517
+ availableFontId: number;
33518
+ }
33519
+ /**
33520
+ * Get an available font by id
33521
+ * Returns AvailableFont
33522
+ */
33523
+ export interface Marketing_GetAvailableFontRequest {
33524
+ /**
33525
+ * The id of the font to retrieve
33526
+ */
33527
+ availableFontId: number;
33528
+ }
33529
+ /**
33530
+ * Set the rank on the font and reorder the rest of the fonts accordingly
33531
+ * Returns boolean
33532
+ */
33533
+ export interface Marketing_SetFontRankRequest {
33534
+ /**
33535
+ * The id of the available font to set the rank on
33536
+ */
33537
+ availableFontId: number;
33538
+ /**
33539
+ * The new rank to set on the font
33540
+ */
33541
+ rank: number;
33542
+ }
33102
33543
  /**
33103
33544
  * Definition and configuration of a Form
33104
33545
  */
@@ -35791,6 +36232,31 @@ export interface Ticket_GetTicketMessageWithOptionsRequest {
35791
36232
  */
35792
36233
  includeNonInlineAttachmentsInfo: boolean;
35793
36234
  }
36235
+ /**
36236
+ * Relationship between two tickets, as described by the TicketRelationDefinition.
36237
+ */
36238
+ export interface TicketRelationEntity extends Carrier {
36239
+ /**
36240
+ * Primary key
36241
+ */
36242
+ ticketRelationId?: number;
36243
+ /**
36244
+ * Source ticket in this relation
36245
+ */
36246
+ sourceTicketId?: number;
36247
+ /**
36248
+ * Destination ticket in this relation
36249
+ */
36250
+ destinationTicketId?: number;
36251
+ /**
36252
+ * Ticket relation type
36253
+ */
36254
+ relationType?: enums.TicketRelationType;
36255
+ /**
36256
+ * Comment for relation
36257
+ */
36258
+ comment?: string;
36259
+ }
35794
36260
  /**
35795
36261
  * The ticket summary with heading, created date.
35796
36262
  */
@@ -37210,7 +37676,7 @@ export interface AI_ClearChatbotTurnsRequest {
37210
37676
  chatId: string;
37211
37677
  }
37212
37678
  /**
37213
- * Entity for Copilot data source
37679
+ * Copilot data source - contains a list of settings for this source
37214
37680
  */
37215
37681
  export interface CopilotDataSourceEntity extends Carrier {
37216
37682
  /**
@@ -37234,12 +37700,12 @@ export interface CopilotDataSourceEntity extends Carrier {
37234
37700
  */
37235
37701
  name?: string;
37236
37702
  /**
37237
- * Collection of data source settings
37703
+ * Collection of data source settings - each setting has key + value
37238
37704
  */
37239
37705
  settings?: CopilotDataSourceSetting[];
37240
37706
  }
37241
37707
  /**
37242
- * Setting for Copilot data source
37708
+ * Setting for a Copilot data source (key + value)
37243
37709
  */
37244
37710
  export interface CopilotDataSourceSetting extends Carrier {
37245
37711
  /**
@@ -37366,6 +37832,68 @@ export interface AI_TranslateEntityRequest {
37366
37832
  */
37367
37833
  targetLanguage: string;
37368
37834
  }
37835
+ /**
37836
+ * Natural language search results.
37837
+ */
37838
+ export interface NaturalLanguageSearch {
37839
+ /**
37840
+ * User's query.
37841
+ */
37842
+ query?: string;
37843
+ /**
37844
+ * Markdown response from the AI.
37845
+ */
37846
+ responseMarkdown?: string;
37847
+ /**
37848
+ * Type of entity we are searching. e.g. 'contact', 'project' etc.
37849
+ */
37850
+ entity?: string;
37851
+ /**
37852
+ * Search criteria in ODATA format
37853
+ */
37854
+ oDataQuery?: string;
37855
+ /**
37856
+ * Archive restrictions for the search query.
37857
+ */
37858
+ restrictions?: ArchiveRestrictionInfo[];
37859
+ /**
37860
+ * AI internal context - opaque to callers.
37861
+ */
37862
+ internalContext?: string;
37863
+ }
37864
+ /**
37865
+ * Return archive restrictions based on a natural language query.
37866
+ * Returns NaturalLanguageSearch
37867
+ */
37868
+ export interface AI_ParseQueryIntoRestrictionsRequest {
37869
+ /**
37870
+ * What the user asked for.
37871
+ */
37872
+ query: string;
37873
+ /**
37874
+ * Current context prompt. e.g. Current company name and id, what selection are we looking at?
37875
+ */
37876
+ currents: string;
37877
+ /**
37878
+ * Previous query, if applicable. NULL if no previous query.
37879
+ */
37880
+ previousQuery: NaturalLanguageSearch;
37881
+ }
37882
+ /**
37883
+ * Photo background remover results.
37884
+ */
37885
+ export interface CreatePhotoBackground {
37886
+ }
37887
+ /**
37888
+ * Returns an image with the background removed, leaving only the main subject
37889
+ * Returns Blob
37890
+ */
37891
+ export interface AI_RemovePhotoBackgroundRequest {
37892
+ /**
37893
+ * Image to be cleaned. JPG or PNG.
37894
+ */
37895
+ image: ArrayBuffer | string;
37896
+ }
37369
37897
  /**
37370
37898
  * Contains the answer to an AI search, with sources used.
37371
37899
  */
@@ -37492,6 +38020,104 @@ export interface AI_StartRagIndexingRequest {
37492
38020
  */
37493
38021
  sourceId: string;
37494
38022
  }
38023
+ /**
38024
+ * RAG namespace status. How is the indexing going?
38025
+ */
38026
+ export interface RagStatus {
38027
+ /**
38028
+ * UTC timestamp - when content indexeing started.
38029
+ */
38030
+ startedAt?: Date;
38031
+ /**
38032
+ * UTC timestamp - when content indexing finished.
38033
+ */
38034
+ completedAt?: Date;
38035
+ /**
38036
+ * Namespace the status belongs to.
38037
+ */
38038
+ namespaceName?: string;
38039
+ /**
38040
+ * Unique identifier for current indexing job.
38041
+ */
38042
+ currentRunTag?: string;
38043
+ /**
38044
+ * Is the indexing run finished?
38045
+ */
38046
+ isCompleted?: boolean;
38047
+ /**
38048
+ * Was the indexing cancelled before completion?
38049
+ */
38050
+ isCancelled?: boolean;
38051
+ /**
38052
+ * UTC timestamp - when last content was added/updated to index.
38053
+ */
38054
+ lastIndexed?: Date;
38055
+ /**
38056
+ * How many documents/chunks are in the index - sum of all the other types
38057
+ */
38058
+ statusAll?: RagStatusChunks;
38059
+ /**
38060
+ * How many documents/chunks of type Document are in the index
38061
+ */
38062
+ statusDocuments?: RagStatusChunks;
38063
+ /**
38064
+ * How many documents/chunks of type FAQ are in the index
38065
+ */
38066
+ statusFAQ?: RagStatusChunks;
38067
+ /**
38068
+ * How many documents/chunks of type None are in the index
38069
+ */
38070
+ statusNone?: RagStatusChunks;
38071
+ /**
38072
+ * How many documents/chunks of type Product are in the index
38073
+ */
38074
+ statusProduct?: RagStatusChunks;
38075
+ /**
38076
+ * How many documents/chunks of type Ticket are in the index
38077
+ */
38078
+ statusTicket?: RagStatusChunks;
38079
+ /**
38080
+ * How many documents/chunks of type Webpage are in the index
38081
+ */
38082
+ statusWebpage?: RagStatusChunks;
38083
+ /**
38084
+ * How many documents/chunks of type Website are in the index
38085
+ */
38086
+ statusWebsite?: RagStatusChunks;
38087
+ }
38088
+ /**
38089
+ * Get the current status.
38090
+ * Returns RagStatus
38091
+ */
38092
+ export interface AI_GetIndexingStatusRequest {
38093
+ /**
38094
+ * Identifies the namespace to store content in.
38095
+ */
38096
+ namespaceName: string;
38097
+ }
38098
+ /**
38099
+ * Cancel the current re-indexing job on a given namespace. Leaves data in inconsistent state, because removal of old data is skipped.
38100
+ * Returns RagStatus
38101
+ */
38102
+ export interface AI_CancelIndexingRequest {
38103
+ /**
38104
+ * Identifies the namespace to stop indexing in.
38105
+ */
38106
+ namespaceName: string;
38107
+ }
38108
+ /**
38109
+ * RAG namespace document index statistics
38110
+ */
38111
+ export interface RagStatusChunks {
38112
+ /**
38113
+ * How many chunks stored in the database
38114
+ */
38115
+ numberOfChunks?: number;
38116
+ /**
38117
+ * How many documents stored in the database
38118
+ */
38119
+ numberOfDocuments?: number;
38120
+ }
37495
38121
  /**
37496
38122
  * Summary functions for various entities
37497
38123
  */