@superoffice/webapi 12.0.342 → 12.2.2072

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 (81) hide show
  1. package/dist/cjs/Carriers.d.ts +486 -5
  2. package/dist/cjs/Carriers.d.ts.map +1 -1
  3. package/dist/cjs/Converters.d.ts +21 -0
  4. package/dist/cjs/Converters.d.ts.map +1 -1
  5. package/dist/cjs/Converters.js +320 -4
  6. package/dist/cjs/Converters.js.map +1 -1
  7. package/dist/cjs/CustomObjectAgent.d.ts +137 -0
  8. package/dist/cjs/CustomObjectAgent.d.ts.map +1 -0
  9. package/dist/cjs/CustomObjectAgent.js +294 -0
  10. package/dist/cjs/CustomObjectAgent.js.map +1 -0
  11. package/dist/cjs/CustomerServiceAgent.d.ts +4 -3
  12. package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
  13. package/dist/cjs/CustomerServiceAgent.js +3 -2
  14. package/dist/cjs/CustomerServiceAgent.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 +92 -1
  20. package/dist/cjs/Enums.d.ts.map +1 -1
  21. package/dist/cjs/Enums.js +97 -2
  22. package/dist/cjs/Enums.js.map +1 -1
  23. package/dist/cjs/ListAgent.d.ts +7 -0
  24. package/dist/cjs/ListAgent.d.ts.map +1 -1
  25. package/dist/cjs/ListAgent.js +24 -0
  26. package/dist/cjs/ListAgent.js.map +1 -1
  27. package/dist/cjs/NewsFeedAgent.d.ts +141 -0
  28. package/dist/cjs/NewsFeedAgent.d.ts.map +1 -0
  29. package/dist/cjs/NewsFeedAgent.js +292 -0
  30. package/dist/cjs/NewsFeedAgent.js.map +1 -0
  31. package/dist/cjs/ProjectAgent.d.ts +3 -3
  32. package/dist/cjs/WebApi.d.ts +12 -0
  33. package/dist/cjs/WebApi.d.ts.map +1 -1
  34. package/dist/cjs/WebApi.js +19 -1
  35. package/dist/cjs/WebApi.js.map +1 -1
  36. package/dist/esm/Carriers.d.ts +486 -5
  37. package/dist/esm/Carriers.d.ts.map +1 -1
  38. package/dist/esm/Converters.d.ts +21 -0
  39. package/dist/esm/Converters.d.ts.map +1 -1
  40. package/dist/esm/Converters.js +294 -0
  41. package/dist/esm/Converters.js.map +1 -1
  42. package/dist/esm/CustomObjectAgent.d.ts +137 -0
  43. package/dist/esm/CustomObjectAgent.d.ts.map +1 -0
  44. package/dist/esm/CustomObjectAgent.js +289 -0
  45. package/dist/esm/CustomObjectAgent.js.map +1 -0
  46. package/dist/esm/CustomerServiceAgent.d.ts +4 -3
  47. package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
  48. package/dist/esm/CustomerServiceAgent.js +3 -2
  49. package/dist/esm/CustomerServiceAgent.js.map +1 -1
  50. package/dist/esm/EMailAgent.d.ts +16 -0
  51. package/dist/esm/EMailAgent.d.ts.map +1 -1
  52. package/dist/esm/EMailAgent.js +48 -0
  53. package/dist/esm/EMailAgent.js.map +1 -1
  54. package/dist/esm/Enums.d.ts +92 -1
  55. package/dist/esm/Enums.d.ts.map +1 -1
  56. package/dist/esm/Enums.js +96 -1
  57. package/dist/esm/Enums.js.map +1 -1
  58. package/dist/esm/ListAgent.d.ts +7 -0
  59. package/dist/esm/ListAgent.d.ts.map +1 -1
  60. package/dist/esm/ListAgent.js +24 -0
  61. package/dist/esm/ListAgent.js.map +1 -1
  62. package/dist/esm/NewsFeedAgent.d.ts +141 -0
  63. package/dist/esm/NewsFeedAgent.d.ts.map +1 -0
  64. package/dist/esm/NewsFeedAgent.js +287 -0
  65. package/dist/esm/NewsFeedAgent.js.map +1 -0
  66. package/dist/esm/ProjectAgent.d.ts +3 -3
  67. package/dist/esm/WebApi.d.ts +12 -0
  68. package/dist/esm/WebApi.d.ts.map +1 -1
  69. package/dist/esm/WebApi.js +18 -0
  70. package/dist/esm/WebApi.js.map +1 -1
  71. package/package.json +4 -4
  72. package/src/Carriers.ts +666 -5
  73. package/src/Converters.ts +354 -0
  74. package/src/CustomObjectAgent.ts +489 -0
  75. package/src/CustomerServiceAgent.ts +7 -5
  76. package/src/EMailAgent.ts +76 -0
  77. package/src/Enums.ts +100 -1
  78. package/src/ListAgent.ts +30 -0
  79. package/src/NewsFeedAgent.ts +481 -0
  80. package/src/ProjectAgent.ts +3 -3
  81. package/src/WebApi.ts +24 -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
  }
@@ -15175,7 +15175,7 @@ export interface ConsentPurpose extends Carrier {
15175
15175
  */
15176
15176
  deleted?: boolean;
15177
15177
  /**
15178
- * Rank of this consent source
15178
+ * Rank order
15179
15179
  */
15180
15180
  rank?: number;
15181
15181
  /**
@@ -15243,7 +15243,7 @@ export interface ConsentSource extends Carrier {
15243
15243
  */
15244
15244
  key?: string;
15245
15245
  /**
15246
- * The mail template to use when automatically sending emails to new persons created with this consent source.
15246
+ * 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
15247
15247
  */
15248
15248
  mailTemplateId?: number;
15249
15249
  /**
@@ -16284,11 +16284,11 @@ export interface LegalBase extends Carrier {
16284
16284
  */
16285
16285
  name?: string;
16286
16286
  /**
16287
- * Tooltip for this consent source
16287
+ * Tooltip for this legal base
16288
16288
  */
16289
16289
  tooltip?: string;
16290
16290
  /**
16291
- * Rank of this consent source
16291
+ * Rank of this legal base
16292
16292
  */
16293
16293
  rank?: number;
16294
16294
  /**
@@ -18536,6 +18536,12 @@ export interface List_ValidateTicketRelationDefinitionRequest {
18536
18536
  */
18537
18537
  relationType: enums.TicketRelationType;
18538
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
+ }
18539
18545
  /**
18540
18546
  * Validation result for a single source/destination ticket type combination in a relation definition.
18541
18547
  */
@@ -23647,6 +23653,20 @@ export interface EMail_RelayMessageRequest {
23647
23653
  */
23648
23654
  recipients: string[];
23649
23655
  }
23656
+ /**
23657
+ * 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.
23658
+ * Returns Blob
23659
+ */
23660
+ export interface EMail_GetEMailAsEmlStreamRequest {
23661
+ /**
23662
+ * The EmailItemId of the e-mail to retrieve as stream
23663
+ */
23664
+ emailItemId: number;
23665
+ /**
23666
+ * Should attachments be included in the stream
23667
+ */
23668
+ includeAttachments: boolean;
23669
+ }
23650
23670
  /**
23651
23671
  * Get en e-mail based on its primary key in the DB
23652
23672
  * Returns EMailEntity
@@ -31803,6 +31823,10 @@ export interface PreviewFaqEntry extends Carrier {
31803
31823
  * The answer for this entry.
31804
31824
  */
31805
31825
  answer?: string;
31826
+ /**
31827
+ * The access level for this entry (enum).
31828
+ */
31829
+ accessLevel?: enums.KbAccessLevel;
31806
31830
  }
31807
31831
  /**
31808
31832
  * Get a faq entry from its faq entry id
@@ -32223,6 +32247,10 @@ export interface CustomerService_CreateTicketFromMailDataRequest {
32223
32247
  * RFC822 formatted data to import as a ticket
32224
32248
  */
32225
32249
  data: string;
32250
+ /**
32251
+ * 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.
32252
+ */
32253
+ personId: number;
32226
32254
  }
32227
32255
  /**
32228
32256
  * 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
@@ -37234,6 +37262,258 @@ export interface DatabaseTable_DeleteRequest {
37234
37262
  */
37235
37263
  ids: number[];
37236
37264
  }
37265
+ /**
37266
+ * A single row in a Custom Object table.
37267
+ */
37268
+ export interface CustomObject extends Carrier {
37269
+ /**
37270
+ * Database table name of the Custom Object Definition this row belongs to, e.g. 'y_equipment'.
37271
+ */
37272
+ definitionName?: string;
37273
+ /**
37274
+ * Primary key of the row.
37275
+ */
37276
+ id?: number;
37277
+ /**
37278
+ * Column values for this row. Keys are database column names; values are formatted with CultureDataFormatter (e.g. '[I:42]' for integers).
37279
+ */
37280
+ values?: StringDictionary;
37281
+ }
37282
+ /**
37283
+ * Returns a new Custom Object row pre-populated with the default values declared by the Custom Object Definition. The row is not yet persisted.
37284
+ * Returns CustomObject
37285
+ */
37286
+ export interface CustomObject_CreateDefaultCustomObjectRequest {
37287
+ /**
37288
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37289
+ */
37290
+ definitionName: string;
37291
+ }
37292
+ /**
37293
+ * Returns a single Custom Object row by definition name and primary key.
37294
+ * Returns CustomObject
37295
+ */
37296
+ export interface CustomObject_GetCustomObjectRequest {
37297
+ /**
37298
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37299
+ */
37300
+ definitionName: string;
37301
+ /**
37302
+ * Primary key of the row to fetch.
37303
+ */
37304
+ id: number;
37305
+ }
37306
+ /**
37307
+ * Saves a Custom Object row. If the row has a primary key set it will be updated, otherwise a new row is inserted.
37308
+ * Returns CustomObject
37309
+ */
37310
+ export interface CustomObject_SaveCustomObjectRequest {
37311
+ /**
37312
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37313
+ */
37314
+ definitionName: string;
37315
+ /**
37316
+ * The Custom Object row to save.
37317
+ */
37318
+ row: CustomObject;
37319
+ }
37320
+ /**
37321
+ * Deletes a single Custom Object row by primary key.
37322
+ */
37323
+ export interface CustomObject_DeleteCustomObjectRequest {
37324
+ /**
37325
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37326
+ */
37327
+ definitionName: string;
37328
+ /**
37329
+ * Primary key of the row to delete.
37330
+ */
37331
+ id: number;
37332
+ }
37333
+ /**
37334
+ * Schema definition for a Custom Object: the underlying table and its fields.
37335
+ */
37336
+ export interface CustomObjectDefinition extends Carrier {
37337
+ /**
37338
+ * Primary key in the extra-tables table.
37339
+ */
37340
+ id?: number;
37341
+ /**
37342
+ * Database table name of the Custom Object, e.g. 'y_equipment'.
37343
+ */
37344
+ name?: string;
37345
+ /**
37346
+ * User-visible title of the Custom Object.
37347
+ */
37348
+ title?: string;
37349
+ /**
37350
+ * Name of the field used to represent a row in lists and previews.
37351
+ */
37352
+ displayField?: string;
37353
+ /**
37354
+ * Description of the Custom Object.
37355
+ */
37356
+ description?: string;
37357
+ /**
37358
+ * Icon binary-object id used in the UI.
37359
+ */
37360
+ iconId?: number;
37361
+ /**
37362
+ * Bitmask of ExtraTableFlag values.
37363
+ */
37364
+ flags?: number;
37365
+ /**
37366
+ * Field definitions for this Custom Object.
37367
+ */
37368
+ fields?: CustomObjectField[];
37369
+ }
37370
+ /**
37371
+ * Returns the schema (table + field definitions) for a Custom Object Definition by its database table name.
37372
+ * Returns CustomObjectDefinition
37373
+ */
37374
+ export interface CustomObject_GetCustomObjectDefinitionRequest {
37375
+ /**
37376
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
37377
+ */
37378
+ definitionName: string;
37379
+ }
37380
+ /**
37381
+ * Returns true if a screen chooser is configured for the given Custom Object Definition and mode.
37382
+ * Returns boolean
37383
+ */
37384
+ export interface CustomObject_HasScreenChooserRequest {
37385
+ /**
37386
+ * Database table name of the Custom Object Definition.
37387
+ */
37388
+ definitionName: string;
37389
+ /**
37390
+ * True to check for a custom edit screen; false to check for a custom view screen.
37391
+ */
37392
+ edit: boolean;
37393
+ }
37394
+ /**
37395
+ * Returns bootstrap metadata for all Custom Object tables.
37396
+ * Returns CustomObjectMetadata[]
37397
+ */
37398
+ export interface CustomObject_GetCustomObjectsMetadataRequest {
37399
+ }
37400
+ /**
37401
+ * Returns SVG icon data for all Custom Object tables, keyed by table name.
37402
+ * Returns StringDictionary
37403
+ */
37404
+ export interface CustomObject_GetCustomObjectsIconsRequest {
37405
+ }
37406
+ /**
37407
+ * Describes one field on a Custom Object Definition.
37408
+ */
37409
+ export interface CustomObjectField {
37410
+ /**
37411
+ * Database column name of the field, e.g. 'x_equipment_type'.
37412
+ */
37413
+ fieldName?: string;
37414
+ /**
37415
+ * Field type, formatted as the string value of ExtraFieldType (e.g. 'string', 'int', 'datetime').
37416
+ */
37417
+ fieldType?: string;
37418
+ /**
37419
+ * User-visible name of the field.
37420
+ */
37421
+ displayName?: string;
37422
+ /**
37423
+ * Description of the field.
37424
+ */
37425
+ description?: string;
37426
+ /**
37427
+ * True if the field has a default value that should be used when creating new rows.
37428
+ */
37429
+ useDefaultValue?: boolean;
37430
+ /**
37431
+ * Default value, formatted with CultureDataFormatter (e.g. '[I:1]' for an integer).
37432
+ */
37433
+ defaultValue?: string;
37434
+ /**
37435
+ * Display order of the field within the Custom Object Definition.
37436
+ */
37437
+ rank?: number;
37438
+ /**
37439
+ * True if the field is shown by default in list views (mirrors the ViewInList extra-field flag).
37440
+ */
37441
+ isDefault?: boolean;
37442
+ }
37443
+ /**
37444
+ * Bootstrap metadata for a Custom Object table.
37445
+ */
37446
+ export interface CustomObjectMetadata {
37447
+ /**
37448
+ * User-visible name of the Custom Object.
37449
+ */
37450
+ name?: string;
37451
+ /**
37452
+ * Database table name, e.g. 'y_equipment'.
37453
+ */
37454
+ tableName?: string;
37455
+ /**
37456
+ * Icon hint string for the UI.
37457
+ */
37458
+ iconHint?: string;
37459
+ /**
37460
+ * True if the primary key field should be hidden in the UI.
37461
+ */
37462
+ flagHideId?: boolean;
37463
+ /**
37464
+ * True if the Custom Object is hidden from the navigator.
37465
+ */
37466
+ flagHidden?: boolean;
37467
+ /**
37468
+ * True if the Custom Object should appear in the Find dialog.
37469
+ */
37470
+ flagShowInFind?: boolean;
37471
+ /**
37472
+ * True if the Custom Object should appear in the navigator.
37473
+ */
37474
+ flagShowInNavigator?: boolean;
37475
+ /**
37476
+ * Relations to other entities.
37477
+ */
37478
+ relations?: CustomObjectRelation[];
37479
+ /**
37480
+ * True if the Custom Object has web panel archives configured.
37481
+ */
37482
+ hasWebPanels?: boolean;
37483
+ }
37484
+ /**
37485
+ * Describes a relation from a Custom Object to another entity.
37486
+ */
37487
+ export interface CustomObjectRelation {
37488
+ /**
37489
+ * Database table name of the related entity.
37490
+ */
37491
+ entityName?: string;
37492
+ /**
37493
+ * Type of the related entity, e.g. 'contact', 'CustomObject'.
37494
+ */
37495
+ entityType?: string;
37496
+ /**
37497
+ * User-visible title of the related entity.
37498
+ */
37499
+ entityTitle?: string;
37500
+ /**
37501
+ * Archive provider name for listing related rows.
37502
+ */
37503
+ providerName?: string;
37504
+ /**
37505
+ * Database column name of the foreign key field.
37506
+ */
37507
+ relationField?: string;
37508
+ /**
37509
+ * Database column name of the display field for the related entity.
37510
+ */
37511
+ displayField?: string;
37512
+ /**
37513
+ * True if the functions (add/edit/delete) should be hidden for this relation.
37514
+ */
37515
+ hideFunctions?: boolean;
37516
+ }
37237
37517
  /**
37238
37518
  * Chat Topic bot settings. Trigger script ids to run on bot events
37239
37519
  */
@@ -40348,6 +40628,207 @@ export interface WorkflowWaitForAction extends Carrier {
40348
40628
  */
40349
40629
  restrictionGroups?: ArchiveRestrictionGroup[];
40350
40630
  }
40631
+ /**
40632
+ * News feed CTAs are created by agents or other services for display on the start page and other relevant places in the UI.
40633
+ */
40634
+ export interface NewsFeedCTA {
40635
+ /**
40636
+ * 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
40637
+ */
40638
+ identifier?: string;
40639
+ /**
40640
+ * The title of the CTA button. E.g. 'Approve', 'Reject', 'View details'. Multi-language string supported: 'US:"english";NO:"norsk"'.
40641
+ */
40642
+ title?: string;
40643
+ /**
40644
+ * The type of the CTA, which determines how the CTA button renders. Primary/Secondary/Link
40645
+ */
40646
+ ctaType?: enums.CtaType;
40647
+ /**
40648
+ * The flavor of the CTA, which determines the style the CTA button renders its type. Info/Warning/Error/Accept/Reject
40649
+ */
40650
+ ctaFlavor?: enums.CtaFlavor;
40651
+ }
40652
+ /**
40653
+ * News feed items are created by agents or other services for display on the start page and other relevant places in the UI.
40654
+ */
40655
+ export interface NewsFeedItem {
40656
+ /**
40657
+ * Primary key
40658
+ */
40659
+ newsFeedItemId?: number;
40660
+ /**
40661
+ * Short, descriptive headline. Plain text title. Multi-language string supported: 'US:"english";NO:"norsk"'.
40662
+ */
40663
+ title?: string;
40664
+ /**
40665
+ * Short, descriptive summary. Plain text summary. Multi-language string supported: 'US:"english";NO:"norsk"'.
40666
+ */
40667
+ summary?: string;
40668
+ /**
40669
+ * 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.
40670
+ */
40671
+ description?: StringDictionary;
40672
+ /**
40673
+ * Call to action items for the news feed item. Each item contains a title, an identifier, a type and flavor.
40674
+ */
40675
+ actions?: NewsFeedCTA[];
40676
+ /**
40677
+ * URL Link to an image associated with the news item.
40678
+ */
40679
+ imageLink?: string;
40680
+ /**
40681
+ * URL Link to the source of the news item, or an SOProtocol link to a SuperOffice item
40682
+ */
40683
+ sourceLink?: string;
40684
+ /**
40685
+ * Preview hint for the news item. e.g. `{contact_id=123}`
40686
+ */
40687
+ previewHint?: string;
40688
+ /**
40689
+ * Name of the instance that published this item. e.g. `Pete the prospector`
40690
+ */
40691
+ fromName?: string;
40692
+ /**
40693
+ * Type of the instance that published this item. e.g. `Prospector Agent`
40694
+ */
40695
+ fromCategoryName?: string;
40696
+ /**
40697
+ * Importance of the news item. Low to High. Higher priority items may be shown more prominently in the feed.
40698
+ */
40699
+ priority?: enums.EMailPriority;
40700
+ /**
40701
+ * Registered when
40702
+ */
40703
+ registered?: Date;
40704
+ /**
40705
+ * Last updated when
40706
+ */
40707
+ updated?: Date;
40708
+ /**
40709
+ * When the news item expires and should no longer be shown in feeds (UTC)
40710
+ */
40711
+ expiresAt?: Date;
40712
+ /**
40713
+ * Indicates if the item is being handled by a CTA. (normal, processing, processed)
40714
+ */
40715
+ status?: enums.NewsFeedItemStatus;
40716
+ /**
40717
+ * Set to true when the recipient user has read the news feed item.
40718
+ */
40719
+ isRead?: boolean;
40720
+ /**
40721
+ * When the recipient user read the news feed item (UTC)
40722
+ */
40723
+ readAt?: Date;
40724
+ /**
40725
+ * Company that is mentioned in the news feed item - null if not applicable
40726
+ */
40727
+ contact?: Contact;
40728
+ /**
40729
+ * Person that is mentioned in the news feed item - null if not applicable
40730
+ */
40731
+ person?: Person;
40732
+ /**
40733
+ * Project that is mentioned in the news feed item - null if not applicable
40734
+ */
40735
+ project?: Project;
40736
+ /**
40737
+ * Sale that is mentioned in the news feed item - null if not applicable
40738
+ */
40739
+ sale?: Sale;
40740
+ /**
40741
+ * The id of the application that registered this news item. Used to resolve where any CTA should be posted when clicked.
40742
+ */
40743
+ applicationId?: string;
40744
+ }
40745
+ /**
40746
+ * Saves a new item to the newsfeed, publishing it to the specified users.
40747
+ * Returns NewsFeedItem
40748
+ */
40749
+ export interface NewsFeed_PostNewsFeedItemRequest {
40750
+ /**
40751
+ * The news feed item to post. NewsFeedItemId is ignored, as a new id will be generated when posting to the newsfeed.
40752
+ */
40753
+ newsFeedItem: NewsFeedItem;
40754
+ /**
40755
+ * List of associate ids that this news feed item is sent to.
40756
+ */
40757
+ toAssociateIds: number[];
40758
+ /**
40759
+ * List of group ids that this news feed item is sent to. This gets resolved to associate ids when posted.
40760
+ */
40761
+ toGroupIds: number[];
40762
+ /**
40763
+ * Indicates if this news feed item is sent to all users. Gets resolved into all users when posted.
40764
+ */
40765
+ toAll: boolean;
40766
+ }
40767
+ /**
40768
+ * 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.
40769
+ * Returns NewsFeedItem[]
40770
+ */
40771
+ export interface NewsFeed_GetNewsFeedItemsByIdRequest {
40772
+ /**
40773
+ * Ids of the news feed items to mark as seen for this user.
40774
+ */
40775
+ newsFeedItemIds: number[];
40776
+ }
40777
+ /**
40778
+ * 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.
40779
+ * Returns NewsFeedItem[]
40780
+ */
40781
+ export interface NewsFeed_GetNewsItemsForUserRequest {
40782
+ /**
40783
+ * Id of the associate to fetch news feed items for. 0 = current user
40784
+ */
40785
+ associateId: number;
40786
+ /**
40787
+ * Start date for fetching news feed items.
40788
+ */
40789
+ fromDate: Date;
40790
+ /**
40791
+ * End date for fetching news feed items.
40792
+ */
40793
+ toDate: Date;
40794
+ /**
40795
+ * Maximum number of news feed items to return.
40796
+ */
40797
+ top: number;
40798
+ /**
40799
+ * Number of news feed items to skip for paging.
40800
+ */
40801
+ skip: number;
40802
+ }
40803
+ /**
40804
+ * Marks the news feed item as read, so it can be un-bolded in the current user's feed.
40805
+ */
40806
+ export interface NewsFeed_MarkAsReadRequest {
40807
+ /**
40808
+ * Id of the news feed item to mark as seen for this user.
40809
+ */
40810
+ newsFeedItemId: number;
40811
+ }
40812
+ /**
40813
+ * Marks the news feed item as being handled, that CTA processing has started. i.e. other users should not start handling it also.
40814
+ * Returns boolean
40815
+ */
40816
+ export interface NewsFeed_StartHandlingRequest {
40817
+ /**
40818
+ * Id of the news feed item to mark as handled for all users.
40819
+ */
40820
+ newsFeedItemId: number;
40821
+ }
40822
+ /**
40823
+ * Marks the news feed item as handled, so it can be removed from the feed.
40824
+ * Returns boolean
40825
+ */
40826
+ export interface NewsFeed_MarkAsHandledRequest {
40827
+ /**
40828
+ * Id of the news feed item to mark as handled for all users.
40829
+ */
40830
+ newsFeedItemId: number;
40831
+ }
40351
40832
  export interface DSAParameters {
40352
40833
  Counter: number;
40353
40834
  G: any;