@superoffice/webapi 11.13.921 → 12.1.1412

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 (123) hide show
  1. package/dist/cjs/Carriers.d.ts +836 -9
  2. package/dist/cjs/Carriers.d.ts.map +1 -1
  3. package/dist/cjs/ConfigurationAgent.d.ts +66 -0
  4. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
  5. package/dist/cjs/ConfigurationAgent.js +158 -0
  6. package/dist/cjs/ConfigurationAgent.js.map +1 -1
  7. package/dist/cjs/Converters.d.ts +33 -0
  8. package/dist/cjs/Converters.d.ts.map +1 -1
  9. package/dist/cjs/Converters.js +484 -18
  10. package/dist/cjs/Converters.js.map +1 -1
  11. package/dist/cjs/CustomObjectAgent.d.ts +137 -0
  12. package/dist/cjs/CustomObjectAgent.d.ts.map +1 -0
  13. package/dist/cjs/CustomObjectAgent.js +294 -0
  14. package/dist/cjs/CustomObjectAgent.js.map +1 -0
  15. package/dist/cjs/CustomerServiceAgent.d.ts +4 -3
  16. package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
  17. package/dist/cjs/CustomerServiceAgent.js +3 -2
  18. package/dist/cjs/CustomerServiceAgent.js.map +1 -1
  19. package/dist/cjs/DashAgent.d.ts +7 -0
  20. package/dist/cjs/DashAgent.d.ts.map +1 -1
  21. package/dist/cjs/DashAgent.js +24 -0
  22. package/dist/cjs/DashAgent.js.map +1 -1
  23. package/dist/cjs/EMailAgent.d.ts +150 -30
  24. package/dist/cjs/EMailAgent.d.ts.map +1 -1
  25. package/dist/cjs/EMailAgent.js +260 -0
  26. package/dist/cjs/EMailAgent.js.map +1 -1
  27. package/dist/cjs/Enums.d.ts +76 -0
  28. package/dist/cjs/Enums.d.ts.map +1 -1
  29. package/dist/cjs/Enums.js +82 -2
  30. package/dist/cjs/Enums.js.map +1 -1
  31. package/dist/cjs/LicenseAgent.d.ts +7 -0
  32. package/dist/cjs/LicenseAgent.d.ts.map +1 -1
  33. package/dist/cjs/LicenseAgent.js +24 -0
  34. package/dist/cjs/LicenseAgent.js.map +1 -1
  35. package/dist/cjs/ListAgent.d.ts +25 -0
  36. package/dist/cjs/ListAgent.d.ts.map +1 -1
  37. package/dist/cjs/ListAgent.js +60 -0
  38. package/dist/cjs/ListAgent.js.map +1 -1
  39. package/dist/cjs/ProjectAgent.d.ts +10 -3
  40. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  41. package/dist/cjs/ProjectAgent.js +24 -0
  42. package/dist/cjs/ProjectAgent.js.map +1 -1
  43. package/dist/cjs/TicketAgent.d.ts +99 -0
  44. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  45. package/dist/cjs/TicketAgent.js +207 -0
  46. package/dist/cjs/TicketAgent.js.map +1 -1
  47. package/dist/cjs/WebApi.d.ts +6 -0
  48. package/dist/cjs/WebApi.d.ts.map +1 -1
  49. package/dist/cjs/WebApi.js +10 -1
  50. package/dist/cjs/WebApi.js.map +1 -1
  51. package/dist/cjs/WorkflowAgent.d.ts +7 -0
  52. package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
  53. package/dist/cjs/WorkflowAgent.js +24 -0
  54. package/dist/cjs/WorkflowAgent.js.map +1 -1
  55. package/dist/esm/Carriers.d.ts +836 -9
  56. package/dist/esm/Carriers.d.ts.map +1 -1
  57. package/dist/esm/ConfigurationAgent.d.ts +66 -0
  58. package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
  59. package/dist/esm/ConfigurationAgent.js +158 -0
  60. package/dist/esm/ConfigurationAgent.js.map +1 -1
  61. package/dist/esm/Converters.d.ts +33 -0
  62. package/dist/esm/Converters.d.ts.map +1 -1
  63. package/dist/esm/Converters.js +432 -0
  64. package/dist/esm/Converters.js.map +1 -1
  65. package/dist/esm/CustomObjectAgent.d.ts +137 -0
  66. package/dist/esm/CustomObjectAgent.d.ts.map +1 -0
  67. package/dist/esm/CustomObjectAgent.js +289 -0
  68. package/dist/esm/CustomObjectAgent.js.map +1 -0
  69. package/dist/esm/CustomerServiceAgent.d.ts +4 -3
  70. package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
  71. package/dist/esm/CustomerServiceAgent.js +3 -2
  72. package/dist/esm/CustomerServiceAgent.js.map +1 -1
  73. package/dist/esm/DashAgent.d.ts +7 -0
  74. package/dist/esm/DashAgent.d.ts.map +1 -1
  75. package/dist/esm/DashAgent.js +24 -0
  76. package/dist/esm/DashAgent.js.map +1 -1
  77. package/dist/esm/EMailAgent.d.ts +150 -30
  78. package/dist/esm/EMailAgent.d.ts.map +1 -1
  79. package/dist/esm/EMailAgent.js +260 -0
  80. package/dist/esm/EMailAgent.js.map +1 -1
  81. package/dist/esm/Enums.d.ts +76 -0
  82. package/dist/esm/Enums.d.ts.map +1 -1
  83. package/dist/esm/Enums.js +80 -0
  84. package/dist/esm/Enums.js.map +1 -1
  85. package/dist/esm/LicenseAgent.d.ts +7 -0
  86. package/dist/esm/LicenseAgent.d.ts.map +1 -1
  87. package/dist/esm/LicenseAgent.js +24 -0
  88. package/dist/esm/LicenseAgent.js.map +1 -1
  89. package/dist/esm/ListAgent.d.ts +25 -0
  90. package/dist/esm/ListAgent.d.ts.map +1 -1
  91. package/dist/esm/ListAgent.js +60 -0
  92. package/dist/esm/ListAgent.js.map +1 -1
  93. package/dist/esm/ProjectAgent.d.ts +10 -3
  94. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  95. package/dist/esm/ProjectAgent.js +24 -0
  96. package/dist/esm/ProjectAgent.js.map +1 -1
  97. package/dist/esm/TicketAgent.d.ts +99 -0
  98. package/dist/esm/TicketAgent.d.ts.map +1 -1
  99. package/dist/esm/TicketAgent.js +207 -0
  100. package/dist/esm/TicketAgent.js.map +1 -1
  101. package/dist/esm/WebApi.d.ts +6 -0
  102. package/dist/esm/WebApi.d.ts.map +1 -1
  103. package/dist/esm/WebApi.js +9 -0
  104. package/dist/esm/WebApi.js.map +1 -1
  105. package/dist/esm/WorkflowAgent.d.ts +7 -0
  106. package/dist/esm/WorkflowAgent.d.ts.map +1 -1
  107. package/dist/esm/WorkflowAgent.js +24 -0
  108. package/dist/esm/WorkflowAgent.js.map +1 -1
  109. package/package.json +4 -4
  110. package/src/Carriers.ts +1119 -3
  111. package/src/ConfigurationAgent.ts +216 -0
  112. package/src/Converters.ts +524 -0
  113. package/src/CustomObjectAgent.ts +489 -0
  114. package/src/CustomerServiceAgent.ts +7 -5
  115. package/src/DashAgent.ts +30 -0
  116. package/src/EMailAgent.ts +470 -30
  117. package/src/Enums.ts +84 -0
  118. package/src/LicenseAgent.ts +30 -0
  119. package/src/ListAgent.ts +92 -0
  120. package/src/ProjectAgent.ts +33 -3
  121. package/src/TicketAgent.ts +354 -0
  122. package/src/WebApi.ts +12 -0
  123. package/src/WorkflowAgent.ts +30 -0
@@ -8216,7 +8216,7 @@ export interface Project_SetProjectImageRequest {
8216
8216
  */
8217
8217
  projectId: number;
8218
8218
  /**
8219
- * The image that is stored on the project (System.Drawing.Image)
8219
+ * The project image.
8220
8220
  */
8221
8221
  image: ArrayBuffer | string;
8222
8222
  }
@@ -8388,6 +8388,12 @@ export interface Project_SaveProjectEntityWithoutMembersRequest {
8388
8388
  */
8389
8389
  projectEntity: ProjectEntity;
8390
8390
  }
8391
+ /**
8392
+ * Get the current project fencing status for the tenant
8393
+ * Returns FencingInfo
8394
+ */
8395
+ export interface Project_GetProjectFencingInfoRequest {
8396
+ }
8391
8397
  /**
8392
8398
  * A project that is also an event. Used by Audience
8393
8399
  */
@@ -18508,6 +18514,55 @@ export interface List_SetTicketRelationDefinitionSortOrderRequest {
18508
18514
  */
18509
18515
  sortOrder: number;
18510
18516
  }
18517
+ /**
18518
+ * Validate a ticket relation definition against combinations of source and destination ticket types. Returns one result per source/destination pair.
18519
+ * Returns TicketRelationDefinitionResult[]
18520
+ */
18521
+ export interface List_ValidateTicketRelationDefinitionRequest {
18522
+ /**
18523
+ * The id of the relation definition being validated. Pass 0 when creating a new definition.
18524
+ */
18525
+ ticketRelationDefinitionId: number;
18526
+ /**
18527
+ * The ticket type ids to use as source in the validation.
18528
+ */
18529
+ sourceTicketTypeIds: number[];
18530
+ /**
18531
+ * The ticket type ids to use as destination in the validation.
18532
+ */
18533
+ destinationTicketTypeIds: number[];
18534
+ /**
18535
+ * The relation type to validate.
18536
+ */
18537
+ relationType: enums.TicketRelationType;
18538
+ }
18539
+ /**
18540
+ * Returns all non-built-in ticket relation definitions, including their source and destination ticket type associations.
18541
+ * Returns TicketRelationDefinitionEntity[]
18542
+ */
18543
+ export interface List_GetAllTicketRelationDefinitionEntitiesRequest {
18544
+ }
18545
+ /**
18546
+ * Validation result for a single source/destination ticket type combination in a relation definition.
18547
+ */
18548
+ export interface TicketRelationDefinitionResult {
18549
+ /**
18550
+ * The source ticket type id this result applies to.
18551
+ */
18552
+ sourceTicketTypeId?: number;
18553
+ /**
18554
+ * The destination ticket type id this result applies to.
18555
+ */
18556
+ destinationTicketTypeId?: number;
18557
+ /**
18558
+ * True if no conflicting relation definition exists for this combination.
18559
+ */
18560
+ isValid?: boolean;
18561
+ /**
18562
+ * Name of the conflicting relation definition if IsValid is false.
18563
+ */
18564
+ existingRelationDefinitionName?: string;
18565
+ }
18511
18566
  /**
18512
18567
  * Entity for a ticket status. This entity describes the meta data for a ticket status, and provides special operations on it.
18513
18568
  */
@@ -20136,6 +20191,74 @@ export interface DiaryViewEntity extends Carrier {
20136
20191
  */
20137
20192
  tzLocationId?: number;
20138
20193
  }
20194
+ /**
20195
+ * Per-associate landing page configuration for an entity (type of landing page), including pinned selections and pinned entity records.
20196
+ */
20197
+ export interface LandingPageEntity extends Carrier {
20198
+ /**
20199
+ * Primary key
20200
+ */
20201
+ landingPageId?: number;
20202
+ /**
20203
+ * The associate this landing page belongs to
20204
+ */
20205
+ associateId?: number;
20206
+ /**
20207
+ * Entity table name (contact, person, sale, ...) identifying the type of landing page.
20208
+ */
20209
+ entityTableName?: string;
20210
+ /**
20211
+ * The selection to show on the landing page
20212
+ */
20213
+ selectionId?: number;
20214
+ /**
20215
+ * Selections pinned on this landing page. Item.Id = selectionId, Item.Name = selection name.
20216
+ */
20217
+ pinnedSelections?: MDOListItem[];
20218
+ /**
20219
+ * Entity records pinned on this landing page. Item.Id = recordId, Item.Name = display name, Item.Type = entity table name (contact, person, sale, ...).
20220
+ */
20221
+ pinnedEntities?: MDOListItem[];
20222
+ }
20223
+ /**
20224
+ * Get the landing page configuration for an associate and entity table. Creates the landing page row if it does not exist.
20225
+ * Returns LandingPageEntity
20226
+ */
20227
+ export interface Configuration_GetLandingPageRequest {
20228
+ /**
20229
+ * Id of the associate.
20230
+ */
20231
+ associateId: number;
20232
+ /**
20233
+ * Entity table name (contact, person, sale, ...), transformed to and from the numeric table number by the service layer.
20234
+ */
20235
+ tableName: string;
20236
+ }
20237
+ /**
20238
+ * Pin or unpin an entity or selection on the landing page identified by associate and entity table. Creates the landing page row if it does not exist.
20239
+ */
20240
+ export interface Configuration_SetLandingPagePinForAssociateRequest {
20241
+ /**
20242
+ * True to pin the item, false to unpin it.
20243
+ */
20244
+ pin: boolean;
20245
+ /**
20246
+ * Id of the associate that owns the landing page.
20247
+ */
20248
+ associateId: number;
20249
+ /**
20250
+ * Entity table name identifying which landing page (contact, person, sale, ...).
20251
+ */
20252
+ entityTableName: string;
20253
+ /**
20254
+ * Table name of the record being pinned (selection, contact, person, sale, ...).
20255
+ */
20256
+ pinTableName: string;
20257
+ /**
20258
+ * Id of the record to pin or unpin.
20259
+ */
20260
+ recordId: number;
20261
+ }
20139
20262
  /**
20140
20263
  * Entity for system events
20141
20264
  */
@@ -22502,6 +22625,10 @@ export interface EMailAccount extends Carrier {
22502
22625
  * When we last fetched email
22503
22626
  */
22504
22627
  lastFetch?: Date;
22628
+ /**
22629
+ * Use the GraphApi for this account
22630
+ */
22631
+ useGraphApi?: number;
22505
22632
  }
22506
22633
  /**
22507
22634
  * Returns the email account corresponding to this email address (for the current associate).
@@ -22722,6 +22849,10 @@ export interface EMailConnectionInfo extends Carrier {
22722
22849
  * Use a secure connection with the server
22723
22850
  */
22724
22851
  useSSL?: boolean;
22852
+ /**
22853
+ * Use Graph API
22854
+ */
22855
+ useGraphApi?: boolean;
22725
22856
  }
22726
22857
  /**
22727
22858
  *
@@ -22755,6 +22886,10 @@ export interface EMailConnectionInfoExtended extends Carrier {
22755
22886
  * Optional folder to set as current after logging in
22756
22887
  */
22757
22888
  folder?: string;
22889
+ /**
22890
+ * Use Graph API
22891
+ */
22892
+ useGraphApi?: boolean;
22758
22893
  }
22759
22894
  /**
22760
22895
  *
@@ -22833,6 +22968,10 @@ export interface EMailEntity extends Carrier {
22833
22968
  * Unique id for the e-mail on the server
22834
22969
  */
22835
22970
  serverId?: number;
22971
+ /**
22972
+ * Server identifier of this email item (GraphApi uses string Id's)
22973
+ */
22974
+ serverIdentifier?: string;
22836
22975
  /**
22837
22976
  *
22838
22977
  */
@@ -22904,6 +23043,32 @@ export interface EMail_GetEMailFromIdRequest {
22904
23043
  */
22905
23044
  includeAttachments: boolean;
22906
23045
  }
23046
+ /**
23047
+ * Get en e-mail based on its unique id string
23048
+ * Returns EMailEntity
23049
+ */
23050
+ export interface EMail_GetEMailFromServerIdentifierRequest {
23051
+ /**
23052
+ * All information needed to connect to the mailserver
23053
+ */
23054
+ connectionInfo: EMailConnectionInfo;
23055
+ /**
23056
+ * Unique ID for the e-mail to retrieve
23057
+ */
23058
+ messageServerId: string;
23059
+ /**
23060
+ * If true try to look up e-mail addresses in from/to/cc/bcc fields against superoffice contacts
23061
+ */
23062
+ lookupAddresses: boolean;
23063
+ /**
23064
+ * Any flags to apply to the fetched item. Ex: Seen/Answered
23065
+ */
23066
+ flags: enums.EMailFlags;
23067
+ /**
23068
+ * Should we retrieve attachments embedded in the e-mail from the server
23069
+ */
23070
+ includeAttachments: boolean;
23071
+ }
22907
23072
  /**
22908
23073
  * Send the provided e-mails
22909
23074
  * Returns EMailEntity[]
@@ -22988,6 +23153,24 @@ export interface EMail_GetAttachmentRequest {
22988
23153
  */
22989
23154
  attachmentId: string;
22990
23155
  }
23156
+ /**
23157
+ * Retrieve an attachment from an e-mail
23158
+ * Returns EMailAttachment
23159
+ */
23160
+ export interface EMail_GetAttachmentFromServerIdentifierRequest {
23161
+ /**
23162
+ * All information needed to connect to the mailserver
23163
+ */
23164
+ connectionInfo: EMailConnectionInfo;
23165
+ /**
23166
+ * Unique ID for the e-mail to retrieve the attachment from
23167
+ */
23168
+ messageServerId: string;
23169
+ /**
23170
+ * Id of the attachment in the e-mail
23171
+ */
23172
+ attachmentId: string;
23173
+ }
22991
23174
  /**
22992
23175
  * Mark one or more e-mails as (un)read
22993
23176
  */
@@ -23005,6 +23188,23 @@ export interface EMail_MarkAsReadRequest {
23005
23188
  */
23006
23189
  read: boolean;
23007
23190
  }
23191
+ /**
23192
+ * Mark one or more e-mails as (un)read
23193
+ */
23194
+ export interface EMail_MarkAsReadFromServerIdentifiersRequest {
23195
+ /**
23196
+ * All information needed to connect to the mailserver
23197
+ */
23198
+ connectionInfo: EMailConnectionInfo;
23199
+ /**
23200
+ * The e-mails to handle
23201
+ */
23202
+ messageServerIds: string[];
23203
+ /**
23204
+ * If true mails are marked as read. If false mails are marked as unread.
23205
+ */
23206
+ read: boolean;
23207
+ }
23008
23208
  /**
23009
23209
  * Retrieve total/unread mail items in current folder
23010
23210
  * Returns number
@@ -23036,6 +23236,23 @@ export interface EMail_DeleteRequest {
23036
23236
  */
23037
23237
  moveToFolder: string;
23038
23238
  }
23239
+ /**
23240
+ * Delete specified mail items
23241
+ */
23242
+ export interface EMail_DeleteFromServerIdentifierRequest {
23243
+ /**
23244
+ * All information needed to connect to the mailserver
23245
+ */
23246
+ connectionInfo: EMailConnectionInfo;
23247
+ /**
23248
+ * The e-mails to handle
23249
+ */
23250
+ messageServerIds: string[];
23251
+ /**
23252
+ * If set, move deleted items to this folder
23253
+ */
23254
+ moveToFolder: string;
23255
+ }
23039
23256
  /**
23040
23257
  * Moved specified items from current folder to targetFolder
23041
23258
  */
@@ -23053,6 +23270,23 @@ export interface EMail_MoveToFolderRequest {
23053
23270
  */
23054
23271
  targetFolder: string;
23055
23272
  }
23273
+ /**
23274
+ * Moved specified items from current folder to targetFolder
23275
+ */
23276
+ export interface EMail_MoveToFolderFromServerIdentifierRequest {
23277
+ /**
23278
+ * All information needed to connect to the mailserver
23279
+ */
23280
+ connectionInfo: EMailConnectionInfo;
23281
+ /**
23282
+ * The e-mails to handle
23283
+ */
23284
+ messageServerIds: string[];
23285
+ /**
23286
+ * Name of folder to move items to
23287
+ */
23288
+ targetFolder: string;
23289
+ }
23056
23290
  /**
23057
23291
  * Delete all items in folder specified in the connection object
23058
23292
  */
@@ -23084,6 +23318,24 @@ export interface EMail_GetEMailAsStreamRequest {
23084
23318
  */
23085
23319
  stripAttachments: boolean;
23086
23320
  }
23321
+ /**
23322
+ * Retrieve an e-mail optionally stripping attachments as a stream
23323
+ * Returns Blob
23324
+ */
23325
+ export interface EMail_GetEMailAsStreamFromServerIdentifierRequest {
23326
+ /**
23327
+ * All information needed to connect to the mailserver
23328
+ */
23329
+ connectionInfo: EMailConnectionInfo;
23330
+ /**
23331
+ * Unique ID for the e-mail to retrieve
23332
+ */
23333
+ messageServerId: string;
23334
+ /**
23335
+ * If true, do not include attachments in stream
23336
+ */
23337
+ stripAttachments: boolean;
23338
+ }
23087
23339
  /**
23088
23340
  * Search for contacts and persons with the specified e-mail address (exact match on the email address string required)
23089
23341
  * Returns EMailAddress[]
@@ -23200,6 +23452,20 @@ export interface EMail_GetEMailEnvelopesRequest {
23200
23452
  */
23201
23453
  messageServerIds: number[];
23202
23454
  }
23455
+ /**
23456
+ * Retrieve a set of e-mail envelopes
23457
+ * Returns EMailEnvelope[]
23458
+ */
23459
+ export interface EMail_GetEMailEnvelopesFromServerIdsRequest {
23460
+ /**
23461
+ * All information needed to connect to the mailserver
23462
+ */
23463
+ connectionInfo: EMailConnectionInfo;
23464
+ /**
23465
+ * Unique identitifiers for the e-mails to retrieve envelopes for
23466
+ */
23467
+ messageServerIds: string[];
23468
+ }
23203
23469
  /**
23204
23470
  * Set subscription on or off on a set of folders
23205
23471
  */
@@ -23879,6 +24145,10 @@ export interface EMailEnvelope extends Carrier {
23879
24145
  * Unique id for the e-mail on the server
23880
24146
  */
23881
24147
  serverId?: number;
24148
+ /**
24149
+ * Unique string id for the e-mail on the server (Graph API
24150
+ */
24151
+ serverIdentifier?: string;
23882
24152
  /**
23883
24153
  * Unique id of e-mails
23884
24154
  */
@@ -24984,9 +25254,45 @@ export interface Webhook {
24984
25254
  */
24985
25255
  updatedAssociate?: Associate;
24986
25256
  /**
24987
- * Email address to send error message to when this webhook state changes to too-many errors.
25257
+ * Obsolete, use ErrorEmails instead
24988
25258
  */
24989
25259
  errorsEmail?: string;
25260
+ /**
25261
+ * Email addresses to notify when this webhook is disabled.
25262
+ */
25263
+ errorEmails?: string[];
25264
+ /**
25265
+ * Associates to notify when this webhook is disabled.
25266
+ */
25267
+ errorAssociates?: MDOListItem[];
25268
+ /**
25269
+ * Human-readable description of what this webhook does.
25270
+ */
25271
+ description?: string;
25272
+ /**
25273
+ * How to notify recipients when this webhook changes state. 1=Email, 2=InApp.
25274
+ */
25275
+ notifyVia?: enums.WebhookNotifyVia;
25276
+ /**
25277
+ * When to notify recipients. Bitflag: 1=FirstFailure, 2=Disabling.
25278
+ */
25279
+ notifyWhen?: enums.WebhookNotifyWhen;
25280
+ /**
25281
+ * Number of times webhook has been invoked since registered. For statistical purposes.
25282
+ */
25283
+ totalCalls?: number;
25284
+ /**
25285
+ * Number of times webhook has returned error since registered. For statistical purposes.
25286
+ */
25287
+ totalErrors?: number;
25288
+ /**
25289
+ * Number of consecutive errors. Reset to 0 when an non-error is received. If too many errors, webhook.state is changed to TooManyErrors(3) to deactivate webhook.
25290
+ */
25291
+ consecutiveErrors?: number;
25292
+ /**
25293
+ * Most recent error message received from target. HTTP Headers + body. To help with debugging webhooks.
25294
+ */
25295
+ lastError?: string;
24990
25296
  }
24991
25297
  /**
24992
25298
  * Returns all webhooks, according to filter criteria
@@ -28201,6 +28507,35 @@ export interface ExtendedModuleLicense {
28201
28507
  */
28202
28508
  numberOfLicensesTotal?: number;
28203
28509
  }
28510
+ /**
28511
+ * Information about entity fencing status, including current count and maximum active entities
28512
+ */
28513
+ export interface FencingInfo extends Carrier {
28514
+ /**
28515
+ * Number of active entities
28516
+ */
28517
+ activeCount?: number;
28518
+ /**
28519
+ * Maximum number of active entities allowed
28520
+ */
28521
+ maximum?: number;
28522
+ /**
28523
+ * True if the active entity count is approaching the maximum
28524
+ */
28525
+ isNearingMaximum?: boolean;
28526
+ /**
28527
+ * True if the active entity count has reached or exceeded the maximum
28528
+ */
28529
+ hasReachedMaximum?: boolean;
28530
+ /**
28531
+ * Localized warning message to display when nearing or at the maximum
28532
+ */
28533
+ warningMessage?: string;
28534
+ /**
28535
+ * Localized warning message to display as a tooltip when nearing or at the maximum
28536
+ */
28537
+ warningTooltip?: string;
28538
+ }
28204
28539
  /**
28205
28540
  * License information, hashed and signed with public keys to prevent tampering. Counts License usage and assignments.
28206
28541
  */
@@ -28446,6 +28781,12 @@ export interface License_SaveCentralLicenseRequest {
28446
28781
  */
28447
28782
  license: LicenseOwner[];
28448
28783
  }
28784
+ /**
28785
+ * Returns fencinginfo if license fence is near or reached
28786
+ * Returns FencingInfo
28787
+ */
28788
+ export interface License_GetFencingInfoRequest {
28789
+ }
28449
28790
  /**
28450
28791
  * Represents all licenses for this owner at this site.
28451
28792
  */
@@ -31468,6 +31809,10 @@ export interface PreviewFaqEntry extends Carrier {
31468
31809
  * The answer for this entry.
31469
31810
  */
31470
31811
  answer?: string;
31812
+ /**
31813
+ * The access level for this entry (enum).
31814
+ */
31815
+ accessLevel?: enums.KbAccessLevel;
31471
31816
  }
31472
31817
  /**
31473
31818
  * Get a faq entry from its faq entry id
@@ -31888,6 +32233,10 @@ export interface CustomerService_CreateTicketFromMailDataRequest {
31888
32233
  * RFC822 formatted data to import as a ticket
31889
32234
  */
31890
32235
  data: string;
32236
+ /**
32237
+ * Optional. If greater than 0, the new ticket is attached to this person as the primary customer and the email's From header is not used to resolve the customer; the supplied person must exist and not be retired or the call throws a validation error. If 0 (default), the customer is resolved from the email as before.
32238
+ */
32239
+ personId: number;
31891
32240
  }
31892
32241
  /**
31893
32242
  * This method will add a message to an existing request in the sam way as importMail would do it from an email. It accepts RFC822 formatted data
@@ -32396,6 +32745,12 @@ export interface Dash_GetPossibleDashQuickFiltersRequest {
32396
32745
  */
32397
32746
  dashboardId: number;
32398
32747
  }
32748
+ /**
32749
+ * Get the current dashboard fencing status for the tenant
32750
+ * Returns FencingInfo
32751
+ */
32752
+ export interface Dash_GetDashboardFencingInfoRequest {
32753
+ }
32399
32754
  /**
32400
32755
  * Collection of dashboards for an associate
32401
32756
  */
@@ -36434,6 +36789,27 @@ export interface Ticket_GetTicketMessageWithOptionsRequest {
36434
36789
  */
36435
36790
  includeNonInlineAttachmentsInfo: boolean;
36436
36791
  }
36792
+ /**
36793
+ * Relation-driven actions applicable to a ticket, indicating whether to offer closing the parent or whether open children are blocking the ticket from being closed.
36794
+ */
36795
+ export interface TicketRelationAction {
36796
+ /**
36797
+ * ID of the parent ticket to offer closing when all its children are closed. 0 if not applicable.
36798
+ */
36799
+ ticketIdToClose?: number;
36800
+ /**
36801
+ * True if a parent relation is mandatory for this ticket type.
36802
+ */
36803
+ isParentRequired?: boolean;
36804
+ /**
36805
+ * True if the ticket may be closed. False if unclosed children are blocking it.
36806
+ */
36807
+ canCloseCurrentTicket?: boolean;
36808
+ /**
36809
+ * Ids of unclosed child tickets. If CanCloseCurrentTicket is false, these are the tickets blocking the close.
36810
+ */
36811
+ children?: number[];
36812
+ }
36437
36813
  /**
36438
36814
  * Relationship between two tickets, as described by the TicketRelationDefinition.
36439
36815
  */
@@ -36451,7 +36827,7 @@ export interface TicketRelationEntity extends Carrier {
36451
36827
  */
36452
36828
  destinationTicketId?: number;
36453
36829
  /**
36454
- * Ticket relation type
36830
+ * The type of relation between the two tickets.
36455
36831
  */
36456
36832
  relationType?: enums.TicketRelationType;
36457
36833
  /**
@@ -36460,15 +36836,208 @@ export interface TicketRelationEntity extends Carrier {
36460
36836
  comment?: string;
36461
36837
  }
36462
36838
  /**
36463
- * The ticket summary with heading, created date.
36839
+ * Get all relations for a ticket.
36840
+ * Returns TicketRelationItem[]
36464
36841
  */
36465
- export interface TicketSummaryItem {
36842
+ export interface Ticket_GetTicketRelationsRequest {
36466
36843
  /**
36467
- * The primary key (auto-incremented)
36844
+ * The id of the ticket to get relations for.
36468
36845
  */
36469
- ticketId?: number;
36470
- /**
36471
- * User defined ticket status
36846
+ ticketId: number;
36847
+ }
36848
+ /**
36849
+ * Get the parent ticket id. Returns 0 if the ticket has no parent.
36850
+ * Returns number
36851
+ */
36852
+ export interface Ticket_GetTicketParentIdRequest {
36853
+ /**
36854
+ * The id of the ticket to get the parent for.
36855
+ */
36856
+ ticketId: number;
36857
+ }
36858
+ /**
36859
+ * Set the parent of a ticket. If the ticket already has a parent, it will be overwritten.
36860
+ */
36861
+ export interface Ticket_SetTicketParentRequest {
36862
+ /**
36863
+ * The id of the ticket to set the parent on.
36864
+ */
36865
+ ticketId: number;
36866
+ /**
36867
+ * The id of the ticket to set as parent.
36868
+ */
36869
+ parentTicketId: number;
36870
+ /**
36871
+ * Optional comment to store on the relation.
36872
+ */
36873
+ comment: string;
36874
+ }
36875
+ /**
36876
+ * Validate proposed ticket relations without saving them. Returns a result per source ticket indicating whether the relation is valid.
36877
+ * Returns TicketRelationResult[]
36878
+ */
36879
+ export interface Ticket_ValidateTicketRelationsRequest {
36880
+ /**
36881
+ * The ids of the tickets to relate to the destination ticket.
36882
+ */
36883
+ sourceTicketIds: number[];
36884
+ /**
36885
+ * The id of the ticket that the source tickets will be related to.
36886
+ */
36887
+ destinationTicketId: number;
36888
+ /**
36889
+ * The type of relation to create.
36890
+ */
36891
+ relationType: enums.TicketRelationType;
36892
+ }
36893
+ /**
36894
+ * Create multiple ticket relations in a single call. Returns a result per source ticket indicating success or failure.
36895
+ * Returns TicketRelationResult[]
36896
+ */
36897
+ export interface Ticket_CreateTicketRelationsRequest {
36898
+ /**
36899
+ * The ids of the tickets to relate to the destination ticket.
36900
+ */
36901
+ sourceTicketIds: number[];
36902
+ /**
36903
+ * The id of the ticket that the source tickets will be related to.
36904
+ */
36905
+ destinationTicketId: number;
36906
+ /**
36907
+ * The type of relation to create.
36908
+ */
36909
+ relationType: enums.TicketRelationType;
36910
+ /**
36911
+ * Optional comment to store on each relation.
36912
+ */
36913
+ comment: string;
36914
+ }
36915
+ /**
36916
+ * Get the relation-driven actions that apply to a ticket, such as whether to offer closing the parent or whether open children are blocking the ticket from being closed.
36917
+ * Returns TicketRelationAction
36918
+ */
36919
+ export interface Ticket_GetTicketRelationActionsRequest {
36920
+ /**
36921
+ * The id of the ticket being evaluated.
36922
+ */
36923
+ ticketId: number;
36924
+ /**
36925
+ * The id of the parent ticket, if any. Pass 0 if there is no parent.
36926
+ */
36927
+ parentTicketId: number;
36928
+ /**
36929
+ * The id of the ticket type.
36930
+ */
36931
+ ticketTypeId: number;
36932
+ }
36933
+ /**
36934
+ * A ticket related to another ticket, including counts of how many further relations it has.
36935
+ */
36936
+ export interface TicketRelationItem {
36937
+ /**
36938
+ * Primary key
36939
+ */
36940
+ ticketRelationId?: number;
36941
+ /**
36942
+ * How this item relates to the source ticket: parent, child, or related.
36943
+ */
36944
+ relationType?: enums.TicketRelationType;
36945
+ /**
36946
+ * Free-text comment stored on the relation row.
36947
+ */
36948
+ relationComment?: string;
36949
+ /**
36950
+ * Whether the related ticket has a parent relation.
36951
+ */
36952
+ hasParent?: boolean;
36953
+ /**
36954
+ * Number of child relations the related ticket has.
36955
+ */
36956
+ childCount?: number;
36957
+ /**
36958
+ * Number of plain related relations the related ticket has.
36959
+ */
36960
+ relatedCount?: number;
36961
+ /**
36962
+ * Registered when
36963
+ */
36964
+ relationCreatedAt?: Date;
36965
+ /**
36966
+ * The primary key (auto-incremented)
36967
+ */
36968
+ ticketId?: number;
36969
+ /**
36970
+ * The title of the ticket.
36971
+ */
36972
+ title?: string;
36973
+ /**
36974
+ * Icon representing the ticket's state.
36975
+ */
36976
+ iconHint?: string;
36977
+ /**
36978
+ * The reference to the customer. NULL or -1 if ticket is not connected to customer.
36979
+ */
36980
+ custId?: number;
36981
+ /**
36982
+ * Get the full name for the primary person (customer)
36983
+ */
36984
+ personFullname?: string;
36985
+ /**
36986
+ * The company of the person in the cust_id field, if that person belongs to a company
36987
+ */
36988
+ contactId?: number;
36989
+ /**
36990
+ * The name of the connected contact
36991
+ */
36992
+ contactName?: string;
36993
+ /**
36994
+ * The status of the ticket. I.e. active/closed/postponed/deleted
36995
+ */
36996
+ baseStatus?: enums.TicketBaseStatus;
36997
+ /**
36998
+ * User defined ticket status
36999
+ */
37000
+ ticketStatus?: number;
37001
+ /**
37002
+ * Get the display name of the ticket status.
37003
+ */
37004
+ ticketStatusDisplayValue?: string;
37005
+ /**
37006
+ * When the ticket was created.
37007
+ */
37008
+ ticketCreatedAt?: Date;
37009
+ }
37010
+ /**
37011
+ * Result of a ticket relation operation, indicating success or the reason for failure.
37012
+ */
37013
+ export interface TicketRelationResult {
37014
+ /**
37015
+ * The id of the source ticket this result applies to.
37016
+ */
37017
+ sourceTicketId?: number;
37018
+ /**
37019
+ * True if the operation succeeded; false if it failed.
37020
+ */
37021
+ isValid?: boolean;
37022
+ /**
37023
+ * The reason the operation failed, if IsValid is false.
37024
+ */
37025
+ relationError?: enums.TicketRelationError;
37026
+ /**
37027
+ * Error message describing why the operation failed, if IsValid is false.
37028
+ */
37029
+ errorMessage?: string;
37030
+ }
37031
+ /**
37032
+ * The ticket summary with heading, created date.
37033
+ */
37034
+ export interface TicketSummaryItem {
37035
+ /**
37036
+ * The primary key (auto-incremented)
37037
+ */
37038
+ ticketId?: number;
37039
+ /**
37040
+ * User defined ticket status
36472
37041
  */
36473
37042
  ticketStatus?: number;
36474
37043
  /**
@@ -36679,6 +37248,258 @@ export interface DatabaseTable_DeleteRequest {
36679
37248
  */
36680
37249
  ids: number[];
36681
37250
  }
37251
+ /**
37252
+ * A single row in a Custom Object table.
37253
+ */
37254
+ export interface CustomObject extends Carrier {
37255
+ /**
37256
+ * Database table name of the Custom Object Definition this row belongs to, e.g. 'y_equipment'.
37257
+ */
37258
+ definitionName?: string;
37259
+ /**
37260
+ * Primary key of the row.
37261
+ */
37262
+ id?: number;
37263
+ /**
37264
+ * Column values for this row. Keys are database column names; values are formatted with CultureDataFormatter (e.g. '[I:42]' for integers).
37265
+ */
37266
+ values?: StringDictionary;
37267
+ }
37268
+ /**
37269
+ * Returns a new Custom Object row pre-populated with the default values declared by the Custom Object Definition. The row is not yet persisted.
37270
+ * Returns CustomObject
37271
+ */
37272
+ export interface CustomObject_CreateDefaultCustomObjectRequest {
37273
+ /**
37274
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37275
+ */
37276
+ definitionName: string;
37277
+ }
37278
+ /**
37279
+ * Returns a single Custom Object row by definition name and primary key.
37280
+ * Returns CustomObject
37281
+ */
37282
+ export interface CustomObject_GetCustomObjectRequest {
37283
+ /**
37284
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37285
+ */
37286
+ definitionName: string;
37287
+ /**
37288
+ * Primary key of the row to fetch.
37289
+ */
37290
+ id: number;
37291
+ }
37292
+ /**
37293
+ * Saves a Custom Object row. If the row has a primary key set it will be updated, otherwise a new row is inserted.
37294
+ * Returns CustomObject
37295
+ */
37296
+ export interface CustomObject_SaveCustomObjectRequest {
37297
+ /**
37298
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37299
+ */
37300
+ definitionName: string;
37301
+ /**
37302
+ * The Custom Object row to save.
37303
+ */
37304
+ row: CustomObject;
37305
+ }
37306
+ /**
37307
+ * Deletes a single Custom Object row by primary key.
37308
+ */
37309
+ export interface CustomObject_DeleteCustomObjectRequest {
37310
+ /**
37311
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37312
+ */
37313
+ definitionName: string;
37314
+ /**
37315
+ * Primary key of the row to delete.
37316
+ */
37317
+ id: number;
37318
+ }
37319
+ /**
37320
+ * Schema definition for a Custom Object: the underlying table and its fields.
37321
+ */
37322
+ export interface CustomObjectDefinition extends Carrier {
37323
+ /**
37324
+ * Primary key in the extra-tables table.
37325
+ */
37326
+ id?: number;
37327
+ /**
37328
+ * Database table name of the Custom Object, e.g. 'y_equipment'.
37329
+ */
37330
+ name?: string;
37331
+ /**
37332
+ * User-visible title of the Custom Object.
37333
+ */
37334
+ title?: string;
37335
+ /**
37336
+ * Name of the field used to represent a row in lists and previews.
37337
+ */
37338
+ displayField?: string;
37339
+ /**
37340
+ * Description of the Custom Object.
37341
+ */
37342
+ description?: string;
37343
+ /**
37344
+ * Icon binary-object id used in the UI.
37345
+ */
37346
+ iconId?: number;
37347
+ /**
37348
+ * Bitmask of ExtraTableFlag values.
37349
+ */
37350
+ flags?: number;
37351
+ /**
37352
+ * Field definitions for this Custom Object.
37353
+ */
37354
+ fields?: CustomObjectField[];
37355
+ }
37356
+ /**
37357
+ * Returns the schema (table + field definitions) for a Custom Object Definition by its database table name.
37358
+ * Returns CustomObjectDefinition
37359
+ */
37360
+ export interface CustomObject_GetCustomObjectDefinitionRequest {
37361
+ /**
37362
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37363
+ */
37364
+ definitionName: string;
37365
+ }
37366
+ /**
37367
+ * Returns true if a screen chooser is configured for the given Custom Object Definition and mode.
37368
+ * Returns boolean
37369
+ */
37370
+ export interface CustomObject_HasScreenChooserRequest {
37371
+ /**
37372
+ * Database table name of the Custom Object Definition.
37373
+ */
37374
+ definitionName: string;
37375
+ /**
37376
+ * True to check for a custom edit screen; false to check for a custom view screen.
37377
+ */
37378
+ edit: boolean;
37379
+ }
37380
+ /**
37381
+ * Returns bootstrap metadata for all Custom Object tables.
37382
+ * Returns CustomObjectMetadata[]
37383
+ */
37384
+ export interface CustomObject_GetCustomObjectsMetadataRequest {
37385
+ }
37386
+ /**
37387
+ * Returns SVG icon data for all Custom Object tables, keyed by table name.
37388
+ * Returns StringDictionary
37389
+ */
37390
+ export interface CustomObject_GetCustomObjectsIconsRequest {
37391
+ }
37392
+ /**
37393
+ * Describes one field on a Custom Object Definition.
37394
+ */
37395
+ export interface CustomObjectField {
37396
+ /**
37397
+ * Database column name of the field, e.g. 'x_equipment_type'.
37398
+ */
37399
+ fieldName?: string;
37400
+ /**
37401
+ * Field type, formatted as the string value of ExtraFieldType (e.g. 'string', 'int', 'datetime').
37402
+ */
37403
+ fieldType?: string;
37404
+ /**
37405
+ * User-visible name of the field.
37406
+ */
37407
+ displayName?: string;
37408
+ /**
37409
+ * Description of the field.
37410
+ */
37411
+ description?: string;
37412
+ /**
37413
+ * True if the field has a default value that should be used when creating new rows.
37414
+ */
37415
+ useDefaultValue?: boolean;
37416
+ /**
37417
+ * Default value, formatted with CultureDataFormatter (e.g. '[I:1]' for an integer).
37418
+ */
37419
+ defaultValue?: string;
37420
+ /**
37421
+ * Display order of the field within the Custom Object Definition.
37422
+ */
37423
+ rank?: number;
37424
+ /**
37425
+ * True if the field is shown by default in list views (mirrors the ViewInList extra-field flag).
37426
+ */
37427
+ isDefault?: boolean;
37428
+ }
37429
+ /**
37430
+ * Bootstrap metadata for a Custom Object table.
37431
+ */
37432
+ export interface CustomObjectMetadata {
37433
+ /**
37434
+ * User-visible name of the Custom Object.
37435
+ */
37436
+ name?: string;
37437
+ /**
37438
+ * Database table name, e.g. 'y_equipment'.
37439
+ */
37440
+ tableName?: string;
37441
+ /**
37442
+ * Icon hint string for the UI.
37443
+ */
37444
+ iconHint?: string;
37445
+ /**
37446
+ * True if the primary key field should be hidden in the UI.
37447
+ */
37448
+ flagHideId?: boolean;
37449
+ /**
37450
+ * True if the Custom Object is hidden from the navigator.
37451
+ */
37452
+ flagHidden?: boolean;
37453
+ /**
37454
+ * True if the Custom Object should appear in the Find dialog.
37455
+ */
37456
+ flagShowInFind?: boolean;
37457
+ /**
37458
+ * True if the Custom Object should appear in the navigator.
37459
+ */
37460
+ flagShowInNavigator?: boolean;
37461
+ /**
37462
+ * Relations to other entities.
37463
+ */
37464
+ relations?: CustomObjectRelation[];
37465
+ /**
37466
+ * True if the Custom Object has web panel archives configured.
37467
+ */
37468
+ hasWebPanels?: boolean;
37469
+ }
37470
+ /**
37471
+ * Describes a relation from a Custom Object to another entity.
37472
+ */
37473
+ export interface CustomObjectRelation {
37474
+ /**
37475
+ * Database table name of the related entity.
37476
+ */
37477
+ entityName?: string;
37478
+ /**
37479
+ * Type of the related entity, e.g. 'contact', 'CustomObject'.
37480
+ */
37481
+ entityType?: string;
37482
+ /**
37483
+ * User-visible title of the related entity.
37484
+ */
37485
+ entityTitle?: string;
37486
+ /**
37487
+ * Archive provider name for listing related rows.
37488
+ */
37489
+ providerName?: string;
37490
+ /**
37491
+ * Database column name of the foreign key field.
37492
+ */
37493
+ relationField?: string;
37494
+ /**
37495
+ * Database column name of the display field for the related entity.
37496
+ */
37497
+ displayField?: string;
37498
+ /**
37499
+ * True if the functions (add/edit/delete) should be hidden for this relation.
37500
+ */
37501
+ hideFunctions?: boolean;
37502
+ }
36682
37503
  /**
36683
37504
  * Chat Topic bot settings. Trigger script ids to run on bot events
36684
37505
  */
@@ -39086,6 +39907,12 @@ export interface Workflow_CopyEmailFlowRequest {
39086
39907
  */
39087
39908
  newName: string;
39088
39909
  }
39910
+ /**
39911
+ * Get the current Workflow fencing status for the tenant
39912
+ * Returns FencingInfo
39913
+ */
39914
+ export interface Workflow_GetWorkflowFencingInfoRequest {
39915
+ }
39089
39916
  /**
39090
39917
  * FieldValue carrier
39091
39918
  */