@superoffice/webapi 12.1.1412 → 12.3.2570

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 (96) hide show
  1. package/dist/cjs/Carriers.d.ts +585 -23
  2. package/dist/cjs/Carriers.d.ts.map +1 -1
  3. package/dist/cjs/ConfigurationAgent.d.ts +17 -0
  4. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
  5. package/dist/cjs/ConfigurationAgent.js +35 -0
  6. package/dist/cjs/ConfigurationAgent.js.map +1 -1
  7. package/dist/cjs/Converters.d.ts +30 -0
  8. package/dist/cjs/Converters.d.ts.map +1 -1
  9. package/dist/cjs/Converters.js +445 -32
  10. package/dist/cjs/Converters.js.map +1 -1
  11. package/dist/cjs/DiagnosticsAgent.d.ts +7 -0
  12. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
  13. package/dist/cjs/DiagnosticsAgent.js +24 -0
  14. package/dist/cjs/DiagnosticsAgent.js.map +1 -1
  15. package/dist/cjs/EMailAgent.d.ts +16 -0
  16. package/dist/cjs/EMailAgent.d.ts.map +1 -1
  17. package/dist/cjs/EMailAgent.js +48 -0
  18. package/dist/cjs/EMailAgent.js.map +1 -1
  19. package/dist/cjs/Enums.d.ts +93 -1
  20. package/dist/cjs/Enums.d.ts.map +1 -1
  21. package/dist/cjs/Enums.js +99 -2
  22. package/dist/cjs/Enums.js.map +1 -1
  23. package/dist/cjs/ListAgent.d.ts +31 -0
  24. package/dist/cjs/ListAgent.d.ts.map +1 -1
  25. package/dist/cjs/ListAgent.js +87 -0
  26. package/dist/cjs/ListAgent.js.map +1 -1
  27. package/dist/cjs/MarketingAgent.d.ts +94 -16
  28. package/dist/cjs/MarketingAgent.d.ts.map +1 -1
  29. package/dist/cjs/MarketingAgent.js +222 -34
  30. package/dist/cjs/MarketingAgent.js.map +1 -1
  31. package/dist/cjs/NewsFeedAgent.d.ts +141 -0
  32. package/dist/cjs/NewsFeedAgent.d.ts.map +1 -0
  33. package/dist/cjs/NewsFeedAgent.js +292 -0
  34. package/dist/cjs/NewsFeedAgent.js.map +1 -0
  35. package/dist/cjs/ViewStateAgent.d.ts +34 -0
  36. package/dist/cjs/ViewStateAgent.d.ts.map +1 -1
  37. package/dist/cjs/ViewStateAgent.js +70 -0
  38. package/dist/cjs/ViewStateAgent.js.map +1 -1
  39. package/dist/cjs/WebApi.d.ts +6 -0
  40. package/dist/cjs/WebApi.d.ts.map +1 -1
  41. package/dist/cjs/WebApi.js +10 -1
  42. package/dist/cjs/WebApi.js.map +1 -1
  43. package/dist/esm/Carriers.d.ts +585 -23
  44. package/dist/esm/Carriers.d.ts.map +1 -1
  45. package/dist/esm/ConfigurationAgent.d.ts +17 -0
  46. package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
  47. package/dist/esm/ConfigurationAgent.js +35 -0
  48. package/dist/esm/ConfigurationAgent.js.map +1 -1
  49. package/dist/esm/Converters.d.ts +30 -0
  50. package/dist/esm/Converters.d.ts.map +1 -1
  51. package/dist/esm/Converters.js +384 -1
  52. package/dist/esm/Converters.js.map +1 -1
  53. package/dist/esm/DiagnosticsAgent.d.ts +7 -0
  54. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
  55. package/dist/esm/DiagnosticsAgent.js +24 -0
  56. package/dist/esm/DiagnosticsAgent.js.map +1 -1
  57. package/dist/esm/EMailAgent.d.ts +16 -0
  58. package/dist/esm/EMailAgent.d.ts.map +1 -1
  59. package/dist/esm/EMailAgent.js +48 -0
  60. package/dist/esm/EMailAgent.js.map +1 -1
  61. package/dist/esm/Enums.d.ts +93 -1
  62. package/dist/esm/Enums.d.ts.map +1 -1
  63. package/dist/esm/Enums.js +97 -1
  64. package/dist/esm/Enums.js.map +1 -1
  65. package/dist/esm/ListAgent.d.ts +31 -0
  66. package/dist/esm/ListAgent.d.ts.map +1 -1
  67. package/dist/esm/ListAgent.js +87 -0
  68. package/dist/esm/ListAgent.js.map +1 -1
  69. package/dist/esm/MarketingAgent.d.ts +94 -16
  70. package/dist/esm/MarketingAgent.d.ts.map +1 -1
  71. package/dist/esm/MarketingAgent.js +222 -34
  72. package/dist/esm/MarketingAgent.js.map +1 -1
  73. package/dist/esm/NewsFeedAgent.d.ts +141 -0
  74. package/dist/esm/NewsFeedAgent.d.ts.map +1 -0
  75. package/dist/esm/NewsFeedAgent.js +287 -0
  76. package/dist/esm/NewsFeedAgent.js.map +1 -0
  77. package/dist/esm/ViewStateAgent.d.ts +34 -0
  78. package/dist/esm/ViewStateAgent.d.ts.map +1 -1
  79. package/dist/esm/ViewStateAgent.js +70 -0
  80. package/dist/esm/ViewStateAgent.js.map +1 -1
  81. package/dist/esm/WebApi.d.ts +6 -0
  82. package/dist/esm/WebApi.d.ts.map +1 -1
  83. package/dist/esm/WebApi.js +9 -0
  84. package/dist/esm/WebApi.js.map +1 -1
  85. package/package.json +4 -4
  86. package/src/Carriers.ts +810 -27
  87. package/src/ConfigurationAgent.ts +60 -0
  88. package/src/Converters.ts +468 -1
  89. package/src/DiagnosticsAgent.ts +30 -0
  90. package/src/EMailAgent.ts +76 -0
  91. package/src/Enums.ts +101 -1
  92. package/src/ListAgent.ts +94 -0
  93. package/src/MarketingAgent.ts +324 -58
  94. package/src/NewsFeedAgent.ts +481 -0
  95. package/src/ViewStateAgent.ts +120 -0
  96. package/src/WebApi.ts +12 -0
package/src/Carriers.ts CHANGED
@@ -452,6 +452,30 @@ export interface IntStringDictionary {
452
452
 
453
453
 
454
454
 
455
+ /**
456
+ * The combined answer of one live UI sync call: new UI events, plus the sync state of the tickets the client asked about.
457
+ */
458
+ export interface LiveUiSyncResult {
459
+
460
+
461
+ /**
462
+ * New events since the given event id — the same content the PublishAndRetrieveUiEvents operation returns.
463
+ */
464
+ events?: UiEvent[];
465
+
466
+ /**
467
+ * Sync state of each requested ticket the user is allowed to see. Requested tickets the user cannot see are omitted.
468
+ */
469
+ ticketStates?: TicketStateInfo[];
470
+
471
+ }
472
+
473
+
474
+
475
+
476
+
477
+
478
+
455
479
  /**
456
480
  * LocalizedField is used to store localized information such as formatted address data, a formatted phone number, etc.
457
481
  */
@@ -1331,7 +1355,7 @@ export interface SoPrincipalCarrier {
1331
1355
 
1332
1356
 
1333
1357
  /**
1334
- * Representation of a serialized exception that can be communicatyed over web services
1358
+ * System Information - license, version, database type, language
1335
1359
  */
1336
1360
  export interface SoSystemInfoCarrier extends Carrier {
1337
1361
 
@@ -1407,7 +1431,7 @@ export interface SoSystemInfoCarrier extends Carrier {
1407
1431
  companyName?: string;
1408
1432
 
1409
1433
  /**
1410
- * License Info: Company name associated with license.
1434
+ * License Info: Company (contact_id) associated with license.
1411
1435
  */
1412
1436
  companyId?: number;
1413
1437
 
@@ -1436,6 +1460,11 @@ export interface SoSystemInfoCarrier extends Carrier {
1436
1460
  */
1437
1461
  isSatellite?: boolean;
1438
1462
 
1463
+ /**
1464
+ * Default language configured on the database (iso2 language code: en, sv, no, da, de, zh-cn, pt-br, de-ch, etc) - null if not configured
1465
+ */
1466
+ databaseLanguage?: string;
1467
+
1439
1468
  }
1440
1469
 
1441
1470
 
@@ -1625,6 +1654,69 @@ export interface TicketMessageHeader extends Carrier {
1625
1654
 
1626
1655
 
1627
1656
 
1657
+ /**
1658
+ * The sync state of one ticket: its current last-changed value on the server, whether the client's copy is out of date, and who last changed it.
1659
+ */
1660
+ export interface TicketStateInfo {
1661
+
1662
+
1663
+ /**
1664
+ * The primary key (auto-incremented)
1665
+ */
1666
+ ticketId?: number;
1667
+
1668
+ /**
1669
+ * The ticket's current last-changed value on the server. Clients store this and send it back as the version in later calls.
1670
+ */
1671
+ lastChanged?: Date;
1672
+
1673
+ /**
1674
+ * True when the ticket changed after the version the client sent. Always false when the client sent no version (DateTime.MinValue).
1675
+ */
1676
+ isStale?: boolean;
1677
+
1678
+ /**
1679
+ * The associate who made the latest change, when the ticket is stale and the change can be attributed; 0 otherwise.
1680
+ */
1681
+ changedById?: number;
1682
+
1683
+ /**
1684
+ * Full name of the associate who made the latest change; empty when unknown.
1685
+ */
1686
+ changedByName?: string;
1687
+
1688
+ }
1689
+
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+
1696
+ /**
1697
+ * A ticket the client is showing, together with the last-changed value of the client's loaded copy. Sent to the server to ask whether that copy is out of date.
1698
+ */
1699
+ export interface TicketVersionInfo {
1700
+
1701
+
1702
+ /**
1703
+ * The primary key (auto-incremented)
1704
+ */
1705
+ ticketId?: number;
1706
+
1707
+ /**
1708
+ * The last-changed value of the copy the client has loaded. DateTime.MinValue (or omitted) means the client has no loaded copy and only wants the ticket's current value back.
1709
+ */
1710
+ lastChanged?: Date;
1711
+
1712
+ }
1713
+
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+
1628
1720
  /**
1629
1721
  * The UserCandidate carrier is used to represent a Customer Centre User.
1630
1722
  */
@@ -19929,7 +20021,7 @@ export interface ConsentPurpose extends Carrier {
19929
20021
  deleted?: boolean;
19930
20022
 
19931
20023
  /**
19932
- * Rank of this consent source
20024
+ * Rank order
19933
20025
  */
19934
20026
  rank?: number;
19935
20027
 
@@ -20027,7 +20119,7 @@ export interface ConsentSource extends Carrier {
20027
20119
  key?: string;
20028
20120
 
20029
20121
  /**
20030
- * The mail template to use when automatically sending emails to new persons created with this consent source.
20122
+ * The document template to be used for sending 'You have been added to our system, is this ok' emails when a new person is registered using this source
20031
20123
  */
20032
20124
  mailTemplateId?: number;
20033
20125
 
@@ -21470,12 +21562,12 @@ export interface LegalBase extends Carrier {
21470
21562
  name?: string;
21471
21563
 
21472
21564
  /**
21473
- * Tooltip for this consent source
21565
+ * Tooltip for this legal base
21474
21566
  */
21475
21567
  tooltip?: string;
21476
21568
 
21477
21569
  /**
21478
- * Rank of this consent source
21570
+ * Rank of this legal base
21479
21571
  */
21480
21572
  rank?: number;
21481
21573
 
@@ -22823,6 +22915,70 @@ export interface List_GetPaymentTypesRequest {
22823
22915
  // response object: PaymentType[]
22824
22916
 
22825
22917
 
22918
+ /**
22919
+ * Picture/mailing folder (s_picture_folder)
22920
+ */
22921
+ export interface PictureFolderEntity extends Carrier {
22922
+
22923
+
22924
+ /**
22925
+ * Primary key
22926
+ */
22927
+ sPictureFolderId?: number;
22928
+
22929
+ /**
22930
+ * Name of folder
22931
+ */
22932
+ name?: string;
22933
+
22934
+ /**
22935
+ * The parent id for this folder. -1 for root folders
22936
+ */
22937
+ parentId?: number;
22938
+
22939
+ /**
22940
+ * A description of the folder
22941
+ */
22942
+ description?: string;
22943
+
22944
+ /**
22945
+ * Indicates which type of folder this is
22946
+ */
22947
+ folderType?: number;
22948
+
22949
+ /**
22950
+ * Sub-folders, if any.
22951
+ */
22952
+ children?: PictureFolderEntity[];
22953
+
22954
+ /**
22955
+ * Registered when
22956
+ */
22957
+ registered?: Date;
22958
+
22959
+ /**
22960
+ * Registered by whom
22961
+ */
22962
+ registeredAssociateId?: number;
22963
+
22964
+ /**
22965
+ * Last updated when
22966
+ */
22967
+ updated?: Date;
22968
+
22969
+ /**
22970
+ * Last updated by whom
22971
+ */
22972
+ updatedAssociateId?: number;
22973
+
22974
+ }
22975
+
22976
+
22977
+
22978
+
22979
+
22980
+
22981
+
22826
22982
  /**
22827
22983
  *
22828
22984
  */
@@ -25259,6 +25415,7 @@ export interface List_GetWebPanelByProgIdRequest {
25259
25415
 
25260
25416
 
25261
25417
 
25418
+
25262
25419
 
25263
25420
 
25264
25421
  /**
@@ -26954,6 +27111,11 @@ export interface LandingPageEntity extends Carrier {
26954
27111
  */
26955
27112
  pinnedEntities?: MDOListItem[];
26956
27113
 
27114
+ /**
27115
+ * All tabs on this landing page (pinned and open), ordered by rank. Supersedes PinnedSelections/PinnedEntities and additionally carries open-state and provider tabs.
27116
+ */
27117
+ tabs?: LandingPageTab[];
27118
+
26957
27119
  }
26958
27120
 
26959
27121
 
@@ -27006,6 +27168,76 @@ export interface Configuration_SetLandingPagePinForAssociateRequest {
27006
27168
 
27007
27169
  // Void response...
27008
27170
 
27171
+ /**
27172
+ * Replace the full ordered set of tabs on the landing page identified by associate and entity table, reconciling against the existing rows. Creates the landing page row if it does not exist.
27173
+ * Returns LandingPageEntity
27174
+ */
27175
+ export interface Configuration_SaveLandingPageTabsRequest {
27176
+ /**
27177
+ * Id of the associate that owns the landing page.
27178
+ */
27179
+ associateId: number;
27180
+ /**
27181
+ * Entity table name identifying which landing page (contact, person, sale, ...).
27182
+ */
27183
+ entityTableName: string;
27184
+ /**
27185
+ * The complete ordered set of tabs to persist.
27186
+ */
27187
+ tabs: LandingPageTab[];
27188
+ }
27189
+
27190
+ // response object: LandingPageEntity
27191
+
27192
+
27193
+ /**
27194
+ * A single tab on a landing page. Depending on TabType it represents a saved selection, an entity record, or a hardcoded provider.
27195
+ */
27196
+ export interface LandingPageTab extends Carrier {
27197
+
27198
+
27199
+ /**
27200
+ * Record id the tab points at: the selection id for a selection tab, the entity record id for an entity tab, 0 for a provider tab.
27201
+ */
27202
+ id?: number;
27203
+
27204
+ /**
27205
+ * Display name for the tab. Populated for selection and entity tabs; empty for provider tabs (the client owns provider captions).
27206
+ */
27207
+ name?: string;
27208
+
27209
+ /**
27210
+ * Table name of the record the tab points at (selection, contact, person, sale, ...) for a selection or entity tab; empty for a provider tab.
27211
+ */
27212
+ entityType?: string;
27213
+
27214
+ /**
27215
+ * What kind of content the tab shows: a saved selection, a single entity record, or a hardcoded provider.
27216
+ */
27217
+ tabType?: enums.LandingPageTabType;
27218
+
27219
+ /**
27220
+ * True if the tab is pinned; false if it is only open in the working set.
27221
+ */
27222
+ pinned?: boolean;
27223
+
27224
+ /**
27225
+ * Zero-based position of the tab in the landing page's tab order.
27226
+ */
27227
+ rank?: number;
27228
+
27229
+ /**
27230
+ * Provider key for a provider tab (e.g. LastTickets, FavouriteTickets); empty for selection and entity tabs.
27231
+ */
27232
+ providerKey?: string;
27233
+
27234
+ }
27235
+
27236
+
27237
+
27238
+
27239
+
27240
+
27009
27241
 
27010
27242
  /**
27011
27243
  * Entity for system events
@@ -27234,6 +27466,8 @@ export interface Configuration_SaveWindowPosSizesRequest {
27234
27466
 
27235
27467
 
27236
27468
 
27469
+
27470
+
27237
27471
  /**
27238
27472
  * A config containing parameters for live UI
27239
27473
  */
@@ -27521,6 +27755,46 @@ export interface HistoryRequest extends Carrier {
27521
27755
 
27522
27756
 
27523
27757
 
27758
+ /**
27759
+ * A single navigation entry - a key and its navigation value (soprotocol).
27760
+ */
27761
+ export interface NavigationElement extends Carrier {
27762
+
27763
+
27764
+ /**
27765
+ * Navigation key; identifies the screen/panel for Current, or the entry for Recent
27766
+ */
27767
+ key?: string;
27768
+
27769
+ /**
27770
+ * The navigation value (soprotocol string)
27771
+ */
27772
+ navigationValue?: string;
27773
+
27774
+ }
27775
+
27776
+
27777
+
27778
+
27779
+
27780
+
27781
+ /**
27782
+ * Upsert Recent navigation entries for the logged-in associate and the given client. The entries are ranked so that the first element in the array becomes the most recent. The list is capped by the RecentNavigationLimit preference; the oldest entries beyond the cap are removed.
27783
+ */
27784
+ export interface ViewState_UpsertRecentNavigationRequest {
27785
+ /**
27786
+ * The client the entries belong to, e.g. Crm, Admin or Mobile
27787
+ */
27788
+ client: string;
27789
+ /**
27790
+ * The navigation entries to upsert. The first element becomes the most recent; duplicate keys are collapsed keeping the first occurrence.
27791
+ */
27792
+ elements: NavigationElement[];
27793
+ }
27794
+
27795
+ // Void response...
27796
+
27797
+
27524
27798
  /**
27525
27799
  * An event that the user interface should know about. The origin may be something that happens in the user interface (in any session), or in the database (for instance, background process)
27526
27800
  */
@@ -27590,6 +27864,35 @@ export interface ViewState_PublishAndRetrieveUiEventsRequest {
27590
27864
 
27591
27865
  // response object: UiEvent[]
27592
27866
 
27867
+ /**
27868
+ * Publish zero or more events and return any new events since the given event id, exactly like PublishAndRetrieveUiEvents — and additionally answer, for each ticket version the client supplies, whether that ticket has changed since (and by whom). Requested tickets the user cannot see are omitted from the answer
27869
+ * Returns LiveUiSyncResult
27870
+ */
27871
+ export interface ViewState_PublishAndSyncUiEventsRequest {
27872
+ /**
27873
+ * The last event ID that this client knows about. The return value will be any events occurring /after/ that point, numbered by the server. Clients need to keep track themselves of this number between calls
27874
+ */
27875
+ latestKnownEventId: number;
27876
+ /**
27877
+ * Array of events to publish. This can be empty if the client only wants to retrieve information
27878
+ */
27879
+ publishEvents: UiEvent[];
27880
+ /**
27881
+ * Optional statistical and performance metrics collected by the frontend. Can be null or empty. Metrics are sum-accumulated and reported once a minute; please do not report the same logical event twice
27882
+ */
27883
+ metrics: MetricPair[];
27884
+ /**
27885
+ * The tickets the client is showing, each with the last-changed value of the client's loaded copy (DateTime.MinValue or omitted = no copy; the current value is then returned without a staleness verdict). At most 500 entries after removing duplicates
27886
+ */
27887
+ ticketVersions: TicketVersionInfo[];
27888
+ }
27889
+
27890
+ // response object: LiveUiSyncResult
27891
+
27892
+
27893
+
27894
+
27895
+
27593
27896
 
27594
27897
 
27595
27898
 
@@ -28277,6 +28580,29 @@ export interface Diagnostics_TrackUserRequest {
28277
28580
  // response object: number
28278
28581
 
28279
28582
 
28583
+ /**
28584
+ * System information
28585
+ */
28586
+ export interface SystemInfo extends Carrier {
28587
+
28588
+
28589
+ }
28590
+
28591
+
28592
+
28593
+
28594
+
28595
+
28596
+ /**
28597
+ * Get system information
28598
+ * Returns SoSystemInfoCarrier
28599
+ */
28600
+ export interface Diagnostics_GetSystemInfoRequest {
28601
+ }
28602
+
28603
+ // response object: SoSystemInfoCarrier
28604
+
28605
+
28280
28606
  /**
28281
28607
  *
28282
28608
  */
@@ -30232,11 +30558,6 @@ export interface EMailAccount extends Carrier {
30232
30558
  */
30233
30559
  sentFolder?: string;
30234
30560
 
30235
- /**
30236
- * Simple mode used for sending and retrieving invitations, accept/decline etc. without the full Inbox GUI experience
30237
- */
30238
- simpleMode?: number;
30239
-
30240
30561
  /**
30241
30562
  * When we last fetched email
30242
30563
  */
@@ -31565,6 +31886,23 @@ export interface EMail_RelayMessageRequest {
31565
31886
 
31566
31887
  // Void response...
31567
31888
 
31889
+ /**
31890
+ * Get an inbox e-mail (by its EmailItemId) serialized as an Outlook-openable RFC822 (.eml) stream. Works for both IMAP and Graph/Exchange-Online mailboxes because it serializes the loaded entity instead of re-fetching the raw message by server id.
31891
+ * Returns Blob
31892
+ */
31893
+ export interface EMail_GetEMailAsEmlStreamRequest {
31894
+ /**
31895
+ * The EmailItemId of the e-mail to retrieve as stream
31896
+ */
31897
+ emailItemId: number;
31898
+ /**
31899
+ * Should attachments be included in the stream
31900
+ */
31901
+ includeAttachments: boolean;
31902
+ }
31903
+
31904
+ // response object: Blob
31905
+
31568
31906
  /**
31569
31907
  * Get en e-mail based on its primary key in the DB
31570
31908
  * Returns EMailEntity
@@ -45843,6 +46181,22 @@ export interface FormEntity extends Carrier {
45843
46181
 
45844
46182
 
45845
46183
 
46184
+ /**
46185
+ * Move one or more forms into the given folder. FolderId -1 = root. Only the folder reference is written - Save would rewrite the whole form, including a re-sanitized Config, and would bump Updated (the thumbnail cache-buster).
46186
+ */
46187
+ export interface Marketing_MoveFormsToFolderRequest {
46188
+ /**
46189
+ * Ids of the forms to move (form.form_id)
46190
+ */
46191
+ formIds: number[];
46192
+ /**
46193
+ * Target folder id (s_picture_folder.id, formFolder type); -1 = root
46194
+ */
46195
+ folderId: number;
46196
+ }
46197
+
46198
+ // Void response...
46199
+
45846
46200
  /**
45847
46201
  * This method will try to verify a Google recaptcha token. The token is gained from the recaptcha frontend component
45848
46202
  * Returns boolean
@@ -45966,6 +46320,175 @@ export interface FormSubmissionEntity extends Carrier {
45966
46320
 
45967
46321
 
45968
46322
 
46323
+ /**
46324
+ * A mailing (shipment) — the run that sends a message to a set of recipients
46325
+ */
46326
+ export interface MailingEntity extends Carrier {
46327
+
46328
+
46329
+ /**
46330
+ * Primary key
46331
+ */
46332
+ mailingId?: number;
46333
+
46334
+ /**
46335
+ * Describes the shipment
46336
+ */
46337
+ description?: string;
46338
+
46339
+ /**
46340
+ * The id of the message that is sent in this shipment
46341
+ */
46342
+ messageId?: number;
46343
+
46344
+ /**
46345
+ * The folder which this shipment belongs to. -1 indicates that the shipment is on the root
46346
+ */
46347
+ folderId?: number;
46348
+
46349
+ /**
46350
+ * The date and time when to start this shipment
46351
+ */
46352
+ startDate?: Date;
46353
+
46354
+ /**
46355
+ * Is set when this shipment is ended
46356
+ */
46357
+ endDate?: Date;
46358
+
46359
+ /**
46360
+ * Email address to put in the From header of the messages
46361
+ */
46362
+ fromAddr?: string;
46363
+
46364
+ /**
46365
+ * Email address to put in the Reply To: header of the messages
46366
+ */
46367
+ replyAddr?: string;
46368
+
46369
+ /**
46370
+ * Email address for the MTA envelope (where bounces are returned)
46371
+ */
46372
+ envelopeFrom?: string;
46373
+
46374
+ /**
46375
+ * Sending/stopped/failed etc.
46376
+ */
46377
+ status?: enums.ShipmentStatus;
46378
+
46379
+ /**
46380
+ * The total number of recipients to send message to.
46381
+ */
46382
+ recipients?: number;
46383
+
46384
+ /**
46385
+ * This field indicates what kind of shipment this is.
46386
+ */
46387
+ configuration?: number;
46388
+
46389
+ /**
46390
+ * Set if this shipment should be related to a Selection
46391
+ */
46392
+ selectionId?: number;
46393
+
46394
+ /**
46395
+ * Set if this shipment should be related to a Project
46396
+ */
46397
+ projectId?: number;
46398
+
46399
+ /**
46400
+ * Id of subscriptionType that this shipment has, so we may check for reservations
46401
+ */
46402
+ shipmenttypeId?: number;
46403
+
46404
+ /**
46405
+ * Number of mails sent
46406
+ */
46407
+ sentNum?: number;
46408
+
46409
+ /**
46410
+ * Number of mails sent minus bounces
46411
+ */
46412
+ deliveredNum?: number;
46413
+
46414
+ /**
46415
+ * Registered when
46416
+ */
46417
+ registered?: Date;
46418
+
46419
+ /**
46420
+ * Registered by whom
46421
+ */
46422
+ registeredAssociateId?: number;
46423
+
46424
+ /**
46425
+ * Last updated when
46426
+ */
46427
+ updated?: Date;
46428
+
46429
+ /**
46430
+ * Last updated by whom
46431
+ */
46432
+ updatedAssociateId?: number;
46433
+
46434
+ /**
46435
+ * Number of updates made to this record
46436
+ */
46437
+ updatedCount?: number;
46438
+
46439
+ }
46440
+
46441
+
46442
+
46443
+
46444
+
46445
+
46446
+ /**
46447
+ * Move one or more mailings (shipments) into the given folder. FolderId -1 = root.
46448
+ */
46449
+ export interface Marketing_MoveMailingsToFolderRequest {
46450
+ /**
46451
+ * Shipment ids of the mailings to move (s_shipment.id)
46452
+ */
46453
+ mailingIds: number[];
46454
+ /**
46455
+ * Target folder id (s_picture_folder.id, shipmentFolder type); -1 = root
46456
+ */
46457
+ folderId: number;
46458
+ }
46459
+
46460
+ // Void response...
46461
+
46462
+ /**
46463
+ * Change the mailing name (shipment description) that the given message (MessageId) belongs to
46464
+ */
46465
+ export interface Marketing_RenameMailingByMessageIdRequest {
46466
+ /**
46467
+ * Message id
46468
+ */
46469
+ messageId: number;
46470
+ /**
46471
+ * The new name
46472
+ */
46473
+ name: string;
46474
+ }
46475
+
46476
+ // Void response...
46477
+
46478
+ /**
46479
+ * Reload and send a mailing
46480
+ * Returns boolean
46481
+ */
46482
+ export interface Marketing_ReloadAndSendMailingRequest {
46483
+ /**
46484
+ * Mailing id
46485
+ */
46486
+ mailingId: number;
46487
+ }
46488
+
46489
+ // response object: boolean
46490
+
46491
+
45969
46492
  /**
45970
46493
  * Methods for calculating mailing statistics
45971
46494
  */
@@ -46409,22 +46932,6 @@ export interface ShipmentMessageEntity extends Carrier {
46409
46932
 
46410
46933
 
46411
46934
 
46412
- /**
46413
- * Change the mailing name (shipment description) that the given message (MessageId) belongs to
46414
- */
46415
- export interface Marketing_RenameMailingByMessageIdRequest {
46416
- /**
46417
- * Message id
46418
- */
46419
- messageId: number;
46420
- /**
46421
- * The new name
46422
- */
46423
- name: string;
46424
- }
46425
-
46426
- // Void response...
46427
-
46428
46935
  /**
46429
46936
  * Delete the message and the shipment the message (MessageId) belongs to
46430
46937
  */
@@ -54706,6 +55213,282 @@ export interface WorkflowWaitForAction extends Carrier {
54706
55213
 
54707
55214
 
54708
55215
 
55216
+ /**
55217
+ * News feed CTAs are created by agents or other services for display on the start page and other relevant places in the UI.
55218
+ */
55219
+ export interface NewsFeedCTA {
55220
+
55221
+
55222
+ /**
55223
+ * An identifier for the CTA, which will be sent back to the application when the user clicks the CTA button. E.g. 'approve_button/234', 'reject/53fw1', '5235faq143='. Where to route is determined by the ApplicationId on the NewsFeedItem
55224
+ */
55225
+ identifier?: string;
55226
+
55227
+ /**
55228
+ * The title of the CTA button. E.g. 'Approve', 'Reject', 'View details'. Multi-language string supported: 'US:"english";NO:"norsk"'.
55229
+ */
55230
+ title?: string;
55231
+
55232
+ /**
55233
+ * The type of the CTA, which determines how the CTA button renders. Primary/Secondary/Link
55234
+ */
55235
+ ctaType?: enums.CtaType;
55236
+
55237
+ /**
55238
+ * The flavor of the CTA, which determines the style/color/icon the CTA button renders with. Info/Warning/Error/Accept/Reject
55239
+ */
55240
+ ctaFlavor?: enums.CtaFlavor;
55241
+
55242
+ }
55243
+
55244
+
55245
+
55246
+
55247
+
55248
+
55249
+
55250
+ /**
55251
+ * News feed items are created by agents or other services for display on the start page and other relevant places in the UI.
55252
+ */
55253
+ export interface NewsFeedItem {
55254
+
55255
+
55256
+ /**
55257
+ * Primary key
55258
+ */
55259
+ newsFeedItemId?: number;
55260
+
55261
+ /**
55262
+ * Short, descriptive headline. Plain text title. Multi-language string supported: 'US:"english";NO:"norsk"'.
55263
+ */
55264
+ title?: string;
55265
+
55266
+ /**
55267
+ * Short, descriptive summary. Plain text summary. Multi-language string supported: 'US:"english";NO:"norsk"'.
55268
+ */
55269
+ summary?: string;
55270
+
55271
+ /**
55272
+ * Multi-language descriptions for the news feed item, where the key is an ISO 2 letter language code (e.g. 'en', 'no', 'de') and the value is the description in that language. Styling via pre-defined CSS classes. No SCRIPT or STYLE tags allowed. The 'current' value is set based on the Accept-Language/SO-Language header.
55273
+ */
55274
+ description?: StringDictionary;
55275
+
55276
+ /**
55277
+ * Call to action items for the news feed item. Each item contains a title, an identifier, a type and flavor.
55278
+ */
55279
+ actions?: NewsFeedCTA[];
55280
+
55281
+ /**
55282
+ * URL Link to an image associated with the news item.
55283
+ */
55284
+ imageLink?: string;
55285
+
55286
+ /**
55287
+ * URL Link to the source of the news item, or an SOProtocol link to a SuperOffice item
55288
+ */
55289
+ sourceLink?: string;
55290
+
55291
+ /**
55292
+ * Preview hint for the news item. e.g. `{contact_id=123}`
55293
+ */
55294
+ previewHint?: string;
55295
+
55296
+ /**
55297
+ * Name of the instance that published this item. e.g. `Pete the prospector`
55298
+ */
55299
+ fromName?: string;
55300
+
55301
+ /**
55302
+ * Type of the instance that published this item. e.g. `Prospector Agent`
55303
+ */
55304
+ fromCategoryName?: string;
55305
+
55306
+ /**
55307
+ * Importance of the news item. Low to High. Higher priority items may be shown more prominently in the feed.
55308
+ */
55309
+ priority?: enums.EMailPriority;
55310
+
55311
+ /**
55312
+ * Registered when
55313
+ */
55314
+ registered?: Date;
55315
+
55316
+ /**
55317
+ * Last updated when
55318
+ */
55319
+ updated?: Date;
55320
+
55321
+ /**
55322
+ * When the news item expires and should no longer be shown in feeds (UTC)
55323
+ */
55324
+ expiresAt?: Date;
55325
+
55326
+ /**
55327
+ * Indicates if the item is being handled by a CTA. (normal, processing, processed)
55328
+ */
55329
+ status?: enums.NewsFeedItemStatus;
55330
+
55331
+ /**
55332
+ * Set to true when the recipient user has read the news feed item.
55333
+ */
55334
+ isRead?: boolean;
55335
+
55336
+ /**
55337
+ * When the recipient user read the news feed item (UTC)
55338
+ */
55339
+ readAt?: Date;
55340
+
55341
+ /**
55342
+ * Company that is mentioned in the news feed item - null if not applicable
55343
+ */
55344
+ contact?: Contact;
55345
+
55346
+ /**
55347
+ * Person that is mentioned in the news feed item - null if not applicable
55348
+ */
55349
+ person?: Person;
55350
+
55351
+ /**
55352
+ * Project that is mentioned in the news feed item - null if not applicable
55353
+ */
55354
+ project?: Project;
55355
+
55356
+ /**
55357
+ * Sale that is mentioned in the news feed item - null if not applicable
55358
+ */
55359
+ sale?: Sale;
55360
+
55361
+ /**
55362
+ * The id of the application that registered this news item. Used to resolve where any CTA should be posted when clicked.
55363
+ */
55364
+ applicationId?: string;
55365
+
55366
+ /**
55367
+ * Place related to news item (city or city + country) (optional)
55368
+ */
55369
+ location?: string;
55370
+
55371
+ /**
55372
+ * Rating as percentage (0-100). 0 = undefined. 1-9 = No stars, 10-30 = One star, Two stars = 31-50, 90-100 = Five stars. Client can render rating as stars, pie chart, thumbs up or down, however they want. Default 0 indicates no rating.
55373
+ */
55374
+ ratingPercent?: number;
55375
+
55376
+ }
55377
+
55378
+
55379
+
55380
+
55381
+
55382
+
55383
+ /**
55384
+ * Saves a new item to the newsfeed, publishing it to the specified users.
55385
+ * Returns NewsFeedItem
55386
+ */
55387
+ export interface NewsFeed_PostNewsFeedItemRequest {
55388
+ /**
55389
+ * The news feed item to post. NewsFeedItemId is ignored, as a new id will be generated when posting to the newsfeed.
55390
+ */
55391
+ newsFeedItem: NewsFeedItem;
55392
+ /**
55393
+ * List of associate ids that this news feed item is sent to.
55394
+ */
55395
+ toAssociateIds: number[];
55396
+ /**
55397
+ * List of group ids that this news feed item is sent to. This gets resolved to associate ids when posted.
55398
+ */
55399
+ toGroupIds: number[];
55400
+ /**
55401
+ * Indicates if this news feed item is sent to all users. Gets resolved into all users when posted.
55402
+ */
55403
+ toAll: boolean;
55404
+ }
55405
+
55406
+ // response object: NewsFeedItem
55407
+
55408
+ /**
55409
+ * Get an array of items from the newsfeed by id. If the current user cannot access a particular item, it will be excluded from the results.
55410
+ * Returns NewsFeedItem[]
55411
+ */
55412
+ export interface NewsFeed_GetNewsFeedItemsByIdRequest {
55413
+ /**
55414
+ * Ids of the news feed items to mark as seen for this user.
55415
+ */
55416
+ newsFeedItemIds: number[];
55417
+ }
55418
+
55419
+ // response object: NewsFeedItem[]
55420
+
55421
+ /**
55422
+ * Get a list of newsfeed items for a particular user between two dates. If the current user cannot access a particular item, it will be excluded from the results.
55423
+ * Returns NewsFeedItem[]
55424
+ */
55425
+ export interface NewsFeed_GetNewsItemsForUserRequest {
55426
+ /**
55427
+ * Id of the associate to fetch news feed items for. 0 = current user
55428
+ */
55429
+ associateId: number;
55430
+ /**
55431
+ * Start date for fetching news feed items.
55432
+ */
55433
+ fromDate: Date;
55434
+ /**
55435
+ * End date for fetching news feed items.
55436
+ */
55437
+ toDate: Date;
55438
+ /**
55439
+ * Maximum number of news feed items to return.
55440
+ */
55441
+ top: number;
55442
+ /**
55443
+ * Number of news feed items to skip for paging.
55444
+ */
55445
+ skip: number;
55446
+ }
55447
+
55448
+ // response object: NewsFeedItem[]
55449
+
55450
+ /**
55451
+ * Marks the news feed item as read, so it can be un-bolded in the current user's feed.
55452
+ */
55453
+ export interface NewsFeed_MarkAsReadRequest {
55454
+ /**
55455
+ * Id of the news feed item to mark as seen for this user.
55456
+ */
55457
+ newsFeedItemId: number;
55458
+ }
55459
+
55460
+ // Void response...
55461
+
55462
+ /**
55463
+ * Marks the news feed item as being handled, that CTA processing has started. i.e. other users should not start handling it also.
55464
+ * Returns boolean
55465
+ */
55466
+ export interface NewsFeed_StartHandlingRequest {
55467
+ /**
55468
+ * Id of the news feed item to mark as handled for all users.
55469
+ */
55470
+ newsFeedItemId: number;
55471
+ }
55472
+
55473
+ // response object: boolean
55474
+
55475
+ /**
55476
+ * Marks the news feed item as handled, so it can be removed from the feed.
55477
+ * Returns boolean
55478
+ */
55479
+ export interface NewsFeed_MarkAsHandledRequest {
55480
+ /**
55481
+ * Id of the news feed item to mark as handled for all users.
55482
+ */
55483
+ newsFeedItemId: number;
55484
+ }
55485
+
55486
+ // response object: boolean
55487
+
55488
+
55489
+
55490
+
55491
+
54709
55492
  // Misc
54710
55493
 
54711
55494
  export interface DSAParameters {