@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
package/src/Carriers.ts CHANGED
@@ -11080,7 +11080,7 @@ export interface Project_SetProjectImageRequest {
11080
11080
  */
11081
11081
  projectId: number;
11082
11082
  /**
11083
- * The image that is stored on the project (System.Drawing.Image)
11083
+ * The project image.
11084
11084
  */
11085
11085
  image: ArrayBuffer | string;
11086
11086
  }
@@ -19929,7 +19929,7 @@ export interface ConsentPurpose extends Carrier {
19929
19929
  deleted?: boolean;
19930
19930
 
19931
19931
  /**
19932
- * Rank of this consent source
19932
+ * Rank order
19933
19933
  */
19934
19934
  rank?: number;
19935
19935
 
@@ -20027,7 +20027,7 @@ export interface ConsentSource extends Carrier {
20027
20027
  key?: string;
20028
20028
 
20029
20029
  /**
20030
- * The mail template to use when automatically sending emails to new persons created with this consent source.
20030
+ * 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
20031
  */
20032
20032
  mailTemplateId?: number;
20033
20033
 
@@ -21470,12 +21470,12 @@ export interface LegalBase extends Carrier {
21470
21470
  name?: string;
21471
21471
 
21472
21472
  /**
21473
- * Tooltip for this consent source
21473
+ * Tooltip for this legal base
21474
21474
  */
21475
21475
  tooltip?: string;
21476
21476
 
21477
21477
  /**
21478
- * Rank of this consent source
21478
+ * Rank of this legal base
21479
21479
  */
21480
21480
  rank?: number;
21481
21481
 
@@ -24620,6 +24620,15 @@ export interface List_ValidateTicketRelationDefinitionRequest {
24620
24620
 
24621
24621
  // response object: TicketRelationDefinitionResult[]
24622
24622
 
24623
+ /**
24624
+ * Returns all non-built-in ticket relation definitions, including their source and destination ticket type associations.
24625
+ * Returns TicketRelationDefinitionEntity[]
24626
+ */
24627
+ export interface List_GetAllTicketRelationDefinitionEntitiesRequest {
24628
+ }
24629
+
24630
+ // response object: TicketRelationDefinitionEntity[]
24631
+
24623
24632
 
24624
24633
  /**
24625
24634
  * Validation result for a single source/destination ticket type combination in a relation definition.
@@ -25249,6 +25258,7 @@ export interface List_GetWebPanelByProgIdRequest {
25249
25258
 
25250
25259
 
25251
25260
 
25261
+
25252
25262
 
25253
25263
 
25254
25264
  /**
@@ -31555,6 +31565,23 @@ export interface EMail_RelayMessageRequest {
31555
31565
 
31556
31566
  // Void response...
31557
31567
 
31568
+ /**
31569
+ * 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.
31570
+ * Returns Blob
31571
+ */
31572
+ export interface EMail_GetEMailAsEmlStreamRequest {
31573
+ /**
31574
+ * The EmailItemId of the e-mail to retrieve as stream
31575
+ */
31576
+ emailItemId: number;
31577
+ /**
31578
+ * Should attachments be included in the stream
31579
+ */
31580
+ includeAttachments: boolean;
31581
+ }
31582
+
31583
+ // response object: Blob
31584
+
31558
31585
  /**
31559
31586
  * Get en e-mail based on its primary key in the DB
31560
31587
  * Returns EMailEntity
@@ -42584,6 +42611,11 @@ export interface PreviewFaqEntry extends Carrier {
42584
42611
  */
42585
42612
  answer?: string;
42586
42613
 
42614
+ /**
42615
+ * The access level for this entry (enum).
42616
+ */
42617
+ accessLevel?: enums.KbAccessLevel;
42618
+
42587
42619
  }
42588
42620
 
42589
42621
 
@@ -43190,6 +43222,10 @@ export interface CustomerService_CreateTicketFromMailDataRequest {
43190
43222
  * RFC822 formatted data to import as a ticket
43191
43223
  */
43192
43224
  data: string;
43225
+ /**
43226
+ * 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.
43227
+ */
43228
+ personId: number;
43193
43229
  }
43194
43230
 
43195
43231
  // response object: TicketInfo
@@ -49935,6 +49971,365 @@ export interface DatabaseTable_DeleteRequest {
49935
49971
 
49936
49972
 
49937
49973
 
49974
+ /**
49975
+ * A single row in a Custom Object table.
49976
+ */
49977
+ export interface CustomObject extends Carrier {
49978
+
49979
+
49980
+ /**
49981
+ * Database table name of the Custom Object Definition this row belongs to, e.g. 'y_equipment'.
49982
+ */
49983
+ definitionName?: string;
49984
+
49985
+ /**
49986
+ * Primary key of the row.
49987
+ */
49988
+ id?: number;
49989
+
49990
+ /**
49991
+ * Column values for this row. Keys are database column names; values are formatted with CultureDataFormatter (e.g. '[I:42]' for integers).
49992
+ */
49993
+ values?: StringDictionary;
49994
+
49995
+ }
49996
+
49997
+
49998
+
49999
+
50000
+
50001
+
50002
+ /**
50003
+ * Returns a new Custom Object row pre-populated with the default values declared by the Custom Object Definition. The row is not yet persisted.
50004
+ * Returns CustomObject
50005
+ */
50006
+ export interface CustomObject_CreateDefaultCustomObjectRequest {
50007
+ /**
50008
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
50009
+ */
50010
+ definitionName: string;
50011
+ }
50012
+
50013
+ // response object: CustomObject
50014
+
50015
+ /**
50016
+ * Returns a single Custom Object row by definition name and primary key.
50017
+ * Returns CustomObject
50018
+ */
50019
+ export interface CustomObject_GetCustomObjectRequest {
50020
+ /**
50021
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
50022
+ */
50023
+ definitionName: string;
50024
+ /**
50025
+ * Primary key of the row to fetch.
50026
+ */
50027
+ id: number;
50028
+ }
50029
+
50030
+ // response object: CustomObject
50031
+
50032
+ /**
50033
+ * Saves a Custom Object row. If the row has a primary key set it will be updated, otherwise a new row is inserted.
50034
+ * Returns CustomObject
50035
+ */
50036
+ export interface CustomObject_SaveCustomObjectRequest {
50037
+ /**
50038
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
50039
+ */
50040
+ definitionName: string;
50041
+ /**
50042
+ * The Custom Object row to save.
50043
+ */
50044
+ row: CustomObject;
50045
+ }
50046
+
50047
+ // response object: CustomObject
50048
+
50049
+ /**
50050
+ * Deletes a single Custom Object row by primary key.
50051
+ */
50052
+ export interface CustomObject_DeleteCustomObjectRequest {
50053
+ /**
50054
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
50055
+ */
50056
+ definitionName: string;
50057
+ /**
50058
+ * Primary key of the row to delete.
50059
+ */
50060
+ id: number;
50061
+ }
50062
+
50063
+ // Void response...
50064
+
50065
+
50066
+ /**
50067
+ * Schema definition for a Custom Object: the underlying table and its fields.
50068
+ */
50069
+ export interface CustomObjectDefinition extends Carrier {
50070
+
50071
+
50072
+ /**
50073
+ * Primary key in the extra-tables table.
50074
+ */
50075
+ id?: number;
50076
+
50077
+ /**
50078
+ * Database table name of the Custom Object, e.g. 'y_equipment'.
50079
+ */
50080
+ name?: string;
50081
+
50082
+ /**
50083
+ * User-visible title of the Custom Object.
50084
+ */
50085
+ title?: string;
50086
+
50087
+ /**
50088
+ * Name of the field used to represent a row in lists and previews.
50089
+ */
50090
+ displayField?: string;
50091
+
50092
+ /**
50093
+ * Description of the Custom Object.
50094
+ */
50095
+ description?: string;
50096
+
50097
+ /**
50098
+ * Icon binary-object id used in the UI.
50099
+ */
50100
+ iconId?: number;
50101
+
50102
+ /**
50103
+ * Bitmask of ExtraTableFlag values.
50104
+ */
50105
+ flags?: number;
50106
+
50107
+ /**
50108
+ * Field definitions for this Custom Object.
50109
+ */
50110
+ fields?: CustomObjectField[];
50111
+
50112
+ }
50113
+
50114
+
50115
+
50116
+
50117
+
50118
+
50119
+ /**
50120
+ * Returns the schema (table + field definitions) for a Custom Object Definition by its database table name.
50121
+ * Returns CustomObjectDefinition
50122
+ */
50123
+ export interface CustomObject_GetCustomObjectDefinitionRequest {
50124
+ /**
50125
+ * Database table name of the Custom Object Definition, e.g. 'y_equipment'.
50126
+ */
50127
+ definitionName: string;
50128
+ }
50129
+
50130
+ // response object: CustomObjectDefinition
50131
+
50132
+ /**
50133
+ * Returns true if a screen chooser is configured for the given Custom Object Definition and mode.
50134
+ * Returns boolean
50135
+ */
50136
+ export interface CustomObject_HasScreenChooserRequest {
50137
+ /**
50138
+ * Database table name of the Custom Object Definition.
50139
+ */
50140
+ definitionName: string;
50141
+ /**
50142
+ * True to check for a custom edit screen; false to check for a custom view screen.
50143
+ */
50144
+ edit: boolean;
50145
+ }
50146
+
50147
+ // response object: boolean
50148
+
50149
+ /**
50150
+ * Returns bootstrap metadata for all Custom Object tables.
50151
+ * Returns CustomObjectMetadata[]
50152
+ */
50153
+ export interface CustomObject_GetCustomObjectsMetadataRequest {
50154
+ }
50155
+
50156
+ // response object: CustomObjectMetadata[]
50157
+
50158
+ /**
50159
+ * Returns SVG icon data for all Custom Object tables, keyed by table name.
50160
+ * Returns StringDictionary
50161
+ */
50162
+ export interface CustomObject_GetCustomObjectsIconsRequest {
50163
+ }
50164
+
50165
+ // response object: StringDictionary
50166
+
50167
+
50168
+ /**
50169
+ * Describes one field on a Custom Object Definition.
50170
+ */
50171
+ export interface CustomObjectField {
50172
+
50173
+
50174
+ /**
50175
+ * Database column name of the field, e.g. 'x_equipment_type'.
50176
+ */
50177
+ fieldName?: string;
50178
+
50179
+ /**
50180
+ * Field type, formatted as the string value of ExtraFieldType (e.g. 'string', 'int', 'datetime').
50181
+ */
50182
+ fieldType?: string;
50183
+
50184
+ /**
50185
+ * User-visible name of the field.
50186
+ */
50187
+ displayName?: string;
50188
+
50189
+ /**
50190
+ * Description of the field.
50191
+ */
50192
+ description?: string;
50193
+
50194
+ /**
50195
+ * True if the field has a default value that should be used when creating new rows.
50196
+ */
50197
+ useDefaultValue?: boolean;
50198
+
50199
+ /**
50200
+ * Default value, formatted with CultureDataFormatter (e.g. '[I:1]' for an integer).
50201
+ */
50202
+ defaultValue?: string;
50203
+
50204
+ /**
50205
+ * Display order of the field within the Custom Object Definition.
50206
+ */
50207
+ rank?: number;
50208
+
50209
+ /**
50210
+ * True if the field is shown by default in list views (mirrors the ViewInList extra-field flag).
50211
+ */
50212
+ isDefault?: boolean;
50213
+
50214
+ }
50215
+
50216
+
50217
+
50218
+
50219
+
50220
+
50221
+
50222
+ /**
50223
+ * Bootstrap metadata for a Custom Object table.
50224
+ */
50225
+ export interface CustomObjectMetadata {
50226
+
50227
+
50228
+ /**
50229
+ * User-visible name of the Custom Object.
50230
+ */
50231
+ name?: string;
50232
+
50233
+ /**
50234
+ * Database table name, e.g. 'y_equipment'.
50235
+ */
50236
+ tableName?: string;
50237
+
50238
+ /**
50239
+ * Icon hint string for the UI.
50240
+ */
50241
+ iconHint?: string;
50242
+
50243
+ /**
50244
+ * True if the primary key field should be hidden in the UI.
50245
+ */
50246
+ flagHideId?: boolean;
50247
+
50248
+ /**
50249
+ * True if the Custom Object is hidden from the navigator.
50250
+ */
50251
+ flagHidden?: boolean;
50252
+
50253
+ /**
50254
+ * True if the Custom Object should appear in the Find dialog.
50255
+ */
50256
+ flagShowInFind?: boolean;
50257
+
50258
+ /**
50259
+ * True if the Custom Object should appear in the navigator.
50260
+ */
50261
+ flagShowInNavigator?: boolean;
50262
+
50263
+ /**
50264
+ * Relations to other entities.
50265
+ */
50266
+ relations?: CustomObjectRelation[];
50267
+
50268
+ /**
50269
+ * True if the Custom Object has web panel archives configured.
50270
+ */
50271
+ hasWebPanels?: boolean;
50272
+
50273
+ }
50274
+
50275
+
50276
+
50277
+
50278
+
50279
+
50280
+
50281
+ /**
50282
+ * Describes a relation from a Custom Object to another entity.
50283
+ */
50284
+ export interface CustomObjectRelation {
50285
+
50286
+
50287
+ /**
50288
+ * Database table name of the related entity.
50289
+ */
50290
+ entityName?: string;
50291
+
50292
+ /**
50293
+ * Type of the related entity, e.g. 'contact', 'CustomObject'.
50294
+ */
50295
+ entityType?: string;
50296
+
50297
+ /**
50298
+ * User-visible title of the related entity.
50299
+ */
50300
+ entityTitle?: string;
50301
+
50302
+ /**
50303
+ * Archive provider name for listing related rows.
50304
+ */
50305
+ providerName?: string;
50306
+
50307
+ /**
50308
+ * Database column name of the foreign key field.
50309
+ */
50310
+ relationField?: string;
50311
+
50312
+ /**
50313
+ * Database column name of the display field for the related entity.
50314
+ */
50315
+ displayField?: string;
50316
+
50317
+ /**
50318
+ * True if the functions (add/edit/delete) should be hidden for this relation.
50319
+ */
50320
+ hideFunctions?: boolean;
50321
+
50322
+ }
50323
+
50324
+
50325
+
50326
+
50327
+
50328
+
50329
+
50330
+
50331
+
50332
+
49938
50333
  /**
49939
50334
  * Chat Topic bot settings. Trigger script ids to run on bot events
49940
50335
  */
@@ -54328,6 +54723,272 @@ export interface WorkflowWaitForAction extends Carrier {
54328
54723
 
54329
54724
 
54330
54725
 
54726
+ /**
54727
+ * News feed CTAs are created by agents or other services for display on the start page and other relevant places in the UI.
54728
+ */
54729
+ export interface NewsFeedCTA {
54730
+
54731
+
54732
+ /**
54733
+ * 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
54734
+ */
54735
+ identifier?: string;
54736
+
54737
+ /**
54738
+ * The title of the CTA button. E.g. 'Approve', 'Reject', 'View details'. Multi-language string supported: 'US:"english";NO:"norsk"'.
54739
+ */
54740
+ title?: string;
54741
+
54742
+ /**
54743
+ * The type of the CTA, which determines how the CTA button renders. Primary/Secondary/Link
54744
+ */
54745
+ ctaType?: enums.CtaType;
54746
+
54747
+ /**
54748
+ * The flavor of the CTA, which determines the style the CTA button renders its type. Info/Warning/Error/Accept/Reject
54749
+ */
54750
+ ctaFlavor?: enums.CtaFlavor;
54751
+
54752
+ }
54753
+
54754
+
54755
+
54756
+
54757
+
54758
+
54759
+
54760
+ /**
54761
+ * News feed items are created by agents or other services for display on the start page and other relevant places in the UI.
54762
+ */
54763
+ export interface NewsFeedItem {
54764
+
54765
+
54766
+ /**
54767
+ * Primary key
54768
+ */
54769
+ newsFeedItemId?: number;
54770
+
54771
+ /**
54772
+ * Short, descriptive headline. Plain text title. Multi-language string supported: 'US:"english";NO:"norsk"'.
54773
+ */
54774
+ title?: string;
54775
+
54776
+ /**
54777
+ * Short, descriptive summary. Plain text summary. Multi-language string supported: 'US:"english";NO:"norsk"'.
54778
+ */
54779
+ summary?: string;
54780
+
54781
+ /**
54782
+ * 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.
54783
+ */
54784
+ description?: StringDictionary;
54785
+
54786
+ /**
54787
+ * Call to action items for the news feed item. Each item contains a title, an identifier, a type and flavor.
54788
+ */
54789
+ actions?: NewsFeedCTA[];
54790
+
54791
+ /**
54792
+ * URL Link to an image associated with the news item.
54793
+ */
54794
+ imageLink?: string;
54795
+
54796
+ /**
54797
+ * URL Link to the source of the news item, or an SOProtocol link to a SuperOffice item
54798
+ */
54799
+ sourceLink?: string;
54800
+
54801
+ /**
54802
+ * Preview hint for the news item. e.g. `{contact_id=123}`
54803
+ */
54804
+ previewHint?: string;
54805
+
54806
+ /**
54807
+ * Name of the instance that published this item. e.g. `Pete the prospector`
54808
+ */
54809
+ fromName?: string;
54810
+
54811
+ /**
54812
+ * Type of the instance that published this item. e.g. `Prospector Agent`
54813
+ */
54814
+ fromCategoryName?: string;
54815
+
54816
+ /**
54817
+ * Importance of the news item. Low to High. Higher priority items may be shown more prominently in the feed.
54818
+ */
54819
+ priority?: enums.EMailPriority;
54820
+
54821
+ /**
54822
+ * Registered when
54823
+ */
54824
+ registered?: Date;
54825
+
54826
+ /**
54827
+ * Last updated when
54828
+ */
54829
+ updated?: Date;
54830
+
54831
+ /**
54832
+ * When the news item expires and should no longer be shown in feeds (UTC)
54833
+ */
54834
+ expiresAt?: Date;
54835
+
54836
+ /**
54837
+ * Indicates if the item is being handled by a CTA. (normal, processing, processed)
54838
+ */
54839
+ status?: enums.NewsFeedItemStatus;
54840
+
54841
+ /**
54842
+ * Set to true when the recipient user has read the news feed item.
54843
+ */
54844
+ isRead?: boolean;
54845
+
54846
+ /**
54847
+ * When the recipient user read the news feed item (UTC)
54848
+ */
54849
+ readAt?: Date;
54850
+
54851
+ /**
54852
+ * Company that is mentioned in the news feed item - null if not applicable
54853
+ */
54854
+ contact?: Contact;
54855
+
54856
+ /**
54857
+ * Person that is mentioned in the news feed item - null if not applicable
54858
+ */
54859
+ person?: Person;
54860
+
54861
+ /**
54862
+ * Project that is mentioned in the news feed item - null if not applicable
54863
+ */
54864
+ project?: Project;
54865
+
54866
+ /**
54867
+ * Sale that is mentioned in the news feed item - null if not applicable
54868
+ */
54869
+ sale?: Sale;
54870
+
54871
+ /**
54872
+ * The id of the application that registered this news item. Used to resolve where any CTA should be posted when clicked.
54873
+ */
54874
+ applicationId?: string;
54875
+
54876
+ }
54877
+
54878
+
54879
+
54880
+
54881
+
54882
+
54883
+ /**
54884
+ * Saves a new item to the newsfeed, publishing it to the specified users.
54885
+ * Returns NewsFeedItem
54886
+ */
54887
+ export interface NewsFeed_PostNewsFeedItemRequest {
54888
+ /**
54889
+ * The news feed item to post. NewsFeedItemId is ignored, as a new id will be generated when posting to the newsfeed.
54890
+ */
54891
+ newsFeedItem: NewsFeedItem;
54892
+ /**
54893
+ * List of associate ids that this news feed item is sent to.
54894
+ */
54895
+ toAssociateIds: number[];
54896
+ /**
54897
+ * List of group ids that this news feed item is sent to. This gets resolved to associate ids when posted.
54898
+ */
54899
+ toGroupIds: number[];
54900
+ /**
54901
+ * Indicates if this news feed item is sent to all users. Gets resolved into all users when posted.
54902
+ */
54903
+ toAll: boolean;
54904
+ }
54905
+
54906
+ // response object: NewsFeedItem
54907
+
54908
+ /**
54909
+ * 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.
54910
+ * Returns NewsFeedItem[]
54911
+ */
54912
+ export interface NewsFeed_GetNewsFeedItemsByIdRequest {
54913
+ /**
54914
+ * Ids of the news feed items to mark as seen for this user.
54915
+ */
54916
+ newsFeedItemIds: number[];
54917
+ }
54918
+
54919
+ // response object: NewsFeedItem[]
54920
+
54921
+ /**
54922
+ * 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.
54923
+ * Returns NewsFeedItem[]
54924
+ */
54925
+ export interface NewsFeed_GetNewsItemsForUserRequest {
54926
+ /**
54927
+ * Id of the associate to fetch news feed items for. 0 = current user
54928
+ */
54929
+ associateId: number;
54930
+ /**
54931
+ * Start date for fetching news feed items.
54932
+ */
54933
+ fromDate: Date;
54934
+ /**
54935
+ * End date for fetching news feed items.
54936
+ */
54937
+ toDate: Date;
54938
+ /**
54939
+ * Maximum number of news feed items to return.
54940
+ */
54941
+ top: number;
54942
+ /**
54943
+ * Number of news feed items to skip for paging.
54944
+ */
54945
+ skip: number;
54946
+ }
54947
+
54948
+ // response object: NewsFeedItem[]
54949
+
54950
+ /**
54951
+ * Marks the news feed item as read, so it can be un-bolded in the current user's feed.
54952
+ */
54953
+ export interface NewsFeed_MarkAsReadRequest {
54954
+ /**
54955
+ * Id of the news feed item to mark as seen for this user.
54956
+ */
54957
+ newsFeedItemId: number;
54958
+ }
54959
+
54960
+ // Void response...
54961
+
54962
+ /**
54963
+ * Marks the news feed item as being handled, that CTA processing has started. i.e. other users should not start handling it also.
54964
+ * Returns boolean
54965
+ */
54966
+ export interface NewsFeed_StartHandlingRequest {
54967
+ /**
54968
+ * Id of the news feed item to mark as handled for all users.
54969
+ */
54970
+ newsFeedItemId: number;
54971
+ }
54972
+
54973
+ // response object: boolean
54974
+
54975
+ /**
54976
+ * Marks the news feed item as handled, so it can be removed from the feed.
54977
+ * Returns boolean
54978
+ */
54979
+ export interface NewsFeed_MarkAsHandledRequest {
54980
+ /**
54981
+ * Id of the news feed item to mark as handled for all users.
54982
+ */
54983
+ newsFeedItemId: number;
54984
+ }
54985
+
54986
+ // response object: boolean
54987
+
54988
+
54989
+
54990
+
54991
+
54331
54992
  // Misc
54332
54993
 
54333
54994
  export interface DSAParameters {