@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.
- package/dist/cjs/Carriers.d.ts +585 -23
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +17 -0
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +35 -0
- package/dist/cjs/ConfigurationAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +30 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +445 -32
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/DiagnosticsAgent.d.ts +7 -0
- package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/cjs/DiagnosticsAgent.js +24 -0
- package/dist/cjs/DiagnosticsAgent.js.map +1 -1
- package/dist/cjs/EMailAgent.d.ts +16 -0
- package/dist/cjs/EMailAgent.d.ts.map +1 -1
- package/dist/cjs/EMailAgent.js +48 -0
- package/dist/cjs/EMailAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +93 -1
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +99 -2
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +31 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +87 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/MarketingAgent.d.ts +94 -16
- package/dist/cjs/MarketingAgent.d.ts.map +1 -1
- package/dist/cjs/MarketingAgent.js +222 -34
- package/dist/cjs/MarketingAgent.js.map +1 -1
- package/dist/cjs/NewsFeedAgent.d.ts +141 -0
- package/dist/cjs/NewsFeedAgent.d.ts.map +1 -0
- package/dist/cjs/NewsFeedAgent.js +292 -0
- package/dist/cjs/NewsFeedAgent.js.map +1 -0
- package/dist/cjs/ViewStateAgent.d.ts +34 -0
- package/dist/cjs/ViewStateAgent.d.ts.map +1 -1
- package/dist/cjs/ViewStateAgent.js +70 -0
- package/dist/cjs/ViewStateAgent.js.map +1 -1
- package/dist/cjs/WebApi.d.ts +6 -0
- package/dist/cjs/WebApi.d.ts.map +1 -1
- package/dist/cjs/WebApi.js +10 -1
- package/dist/cjs/WebApi.js.map +1 -1
- package/dist/esm/Carriers.d.ts +585 -23
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +17 -0
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +35 -0
- package/dist/esm/ConfigurationAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +30 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +384 -1
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/DiagnosticsAgent.d.ts +7 -0
- package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/esm/DiagnosticsAgent.js +24 -0
- package/dist/esm/DiagnosticsAgent.js.map +1 -1
- package/dist/esm/EMailAgent.d.ts +16 -0
- package/dist/esm/EMailAgent.d.ts.map +1 -1
- package/dist/esm/EMailAgent.js +48 -0
- package/dist/esm/EMailAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +93 -1
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +97 -1
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +31 -0
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +87 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/MarketingAgent.d.ts +94 -16
- package/dist/esm/MarketingAgent.d.ts.map +1 -1
- package/dist/esm/MarketingAgent.js +222 -34
- package/dist/esm/MarketingAgent.js.map +1 -1
- package/dist/esm/NewsFeedAgent.d.ts +141 -0
- package/dist/esm/NewsFeedAgent.d.ts.map +1 -0
- package/dist/esm/NewsFeedAgent.js +287 -0
- package/dist/esm/NewsFeedAgent.js.map +1 -0
- package/dist/esm/ViewStateAgent.d.ts +34 -0
- package/dist/esm/ViewStateAgent.d.ts.map +1 -1
- package/dist/esm/ViewStateAgent.js +70 -0
- package/dist/esm/ViewStateAgent.js.map +1 -1
- package/dist/esm/WebApi.d.ts +6 -0
- package/dist/esm/WebApi.d.ts.map +1 -1
- package/dist/esm/WebApi.js +9 -0
- package/dist/esm/WebApi.js.map +1 -1
- package/package.json +4 -4
- package/src/Carriers.ts +810 -27
- package/src/ConfigurationAgent.ts +60 -0
- package/src/Converters.ts +468 -1
- package/src/DiagnosticsAgent.ts +30 -0
- package/src/EMailAgent.ts +76 -0
- package/src/Enums.ts +101 -1
- package/src/ListAgent.ts +94 -0
- package/src/MarketingAgent.ts +324 -58
- package/src/NewsFeedAgent.ts +481 -0
- package/src/ViewStateAgent.ts +120 -0
- package/src/WebApi.ts +12 -0
package/dist/cjs/Carriers.d.ts
CHANGED
|
@@ -274,6 +274,19 @@ export interface GrantedModuleLicense extends Carrier {
|
|
|
274
274
|
export interface IntStringDictionary {
|
|
275
275
|
[index: number]: string;
|
|
276
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* The combined answer of one live UI sync call: new UI events, plus the sync state of the tickets the client asked about.
|
|
279
|
+
*/
|
|
280
|
+
export interface LiveUiSyncResult {
|
|
281
|
+
/**
|
|
282
|
+
* New events since the given event id — the same content the PublishAndRetrieveUiEvents operation returns.
|
|
283
|
+
*/
|
|
284
|
+
events?: UiEvent[];
|
|
285
|
+
/**
|
|
286
|
+
* Sync state of each requested ticket the user is allowed to see. Requested tickets the user cannot see are omitted.
|
|
287
|
+
*/
|
|
288
|
+
ticketStates?: TicketStateInfo[];
|
|
289
|
+
}
|
|
277
290
|
/**
|
|
278
291
|
* LocalizedField is used to store localized information such as formatted address data, a formatted phone number, etc.
|
|
279
292
|
*/
|
|
@@ -868,7 +881,7 @@ export interface SoPrincipalCarrier {
|
|
|
868
881
|
databaseContextIdentifier?: string;
|
|
869
882
|
}
|
|
870
883
|
/**
|
|
871
|
-
*
|
|
884
|
+
* System Information - license, version, database type, language
|
|
872
885
|
*/
|
|
873
886
|
export interface SoSystemInfoCarrier extends Carrier {
|
|
874
887
|
/**
|
|
@@ -928,7 +941,7 @@ export interface SoSystemInfoCarrier extends Carrier {
|
|
|
928
941
|
*/
|
|
929
942
|
companyName?: string;
|
|
930
943
|
/**
|
|
931
|
-
* License Info: Company
|
|
944
|
+
* License Info: Company (contact_id) associated with license.
|
|
932
945
|
*/
|
|
933
946
|
companyId?: number;
|
|
934
947
|
/**
|
|
@@ -951,6 +964,10 @@ export interface SoSystemInfoCarrier extends Carrier {
|
|
|
951
964
|
* Is the current database a Satellite
|
|
952
965
|
*/
|
|
953
966
|
isSatellite?: boolean;
|
|
967
|
+
/**
|
|
968
|
+
* 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
|
|
969
|
+
*/
|
|
970
|
+
databaseLanguage?: string;
|
|
954
971
|
}
|
|
955
972
|
/**
|
|
956
973
|
* Serializable dictionary.
|
|
@@ -1066,6 +1083,44 @@ export interface TicketMessageHeader extends Carrier {
|
|
|
1066
1083
|
*/
|
|
1067
1084
|
stdItemCol?: enums.MessageHeaderStdItemCol;
|
|
1068
1085
|
}
|
|
1086
|
+
/**
|
|
1087
|
+
* 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.
|
|
1088
|
+
*/
|
|
1089
|
+
export interface TicketStateInfo {
|
|
1090
|
+
/**
|
|
1091
|
+
* The primary key (auto-incremented)
|
|
1092
|
+
*/
|
|
1093
|
+
ticketId?: number;
|
|
1094
|
+
/**
|
|
1095
|
+
* The ticket's current last-changed value on the server. Clients store this and send it back as the version in later calls.
|
|
1096
|
+
*/
|
|
1097
|
+
lastChanged?: Date;
|
|
1098
|
+
/**
|
|
1099
|
+
* True when the ticket changed after the version the client sent. Always false when the client sent no version (DateTime.MinValue).
|
|
1100
|
+
*/
|
|
1101
|
+
isStale?: boolean;
|
|
1102
|
+
/**
|
|
1103
|
+
* The associate who made the latest change, when the ticket is stale and the change can be attributed; 0 otherwise.
|
|
1104
|
+
*/
|
|
1105
|
+
changedById?: number;
|
|
1106
|
+
/**
|
|
1107
|
+
* Full name of the associate who made the latest change; empty when unknown.
|
|
1108
|
+
*/
|
|
1109
|
+
changedByName?: string;
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* 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.
|
|
1113
|
+
*/
|
|
1114
|
+
export interface TicketVersionInfo {
|
|
1115
|
+
/**
|
|
1116
|
+
* The primary key (auto-incremented)
|
|
1117
|
+
*/
|
|
1118
|
+
ticketId?: number;
|
|
1119
|
+
/**
|
|
1120
|
+
* 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.
|
|
1121
|
+
*/
|
|
1122
|
+
lastChanged?: Date;
|
|
1123
|
+
}
|
|
1069
1124
|
/**
|
|
1070
1125
|
* The UserCandidate carrier is used to represent a Customer Centre User.
|
|
1071
1126
|
*/
|
|
@@ -15175,7 +15230,7 @@ export interface ConsentPurpose extends Carrier {
|
|
|
15175
15230
|
*/
|
|
15176
15231
|
deleted?: boolean;
|
|
15177
15232
|
/**
|
|
15178
|
-
* Rank
|
|
15233
|
+
* Rank order
|
|
15179
15234
|
*/
|
|
15180
15235
|
rank?: number;
|
|
15181
15236
|
/**
|
|
@@ -15243,7 +15298,7 @@ export interface ConsentSource extends Carrier {
|
|
|
15243
15298
|
*/
|
|
15244
15299
|
key?: string;
|
|
15245
15300
|
/**
|
|
15246
|
-
* The
|
|
15301
|
+
* 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
15302
|
*/
|
|
15248
15303
|
mailTemplateId?: number;
|
|
15249
15304
|
/**
|
|
@@ -16284,11 +16339,11 @@ export interface LegalBase extends Carrier {
|
|
|
16284
16339
|
*/
|
|
16285
16340
|
name?: string;
|
|
16286
16341
|
/**
|
|
16287
|
-
* Tooltip for this
|
|
16342
|
+
* Tooltip for this legal base
|
|
16288
16343
|
*/
|
|
16289
16344
|
tooltip?: string;
|
|
16290
16345
|
/**
|
|
16291
|
-
* Rank of this
|
|
16346
|
+
* Rank of this legal base
|
|
16292
16347
|
*/
|
|
16293
16348
|
rank?: number;
|
|
16294
16349
|
/**
|
|
@@ -17326,6 +17381,51 @@ export interface PaymentType extends Carrier {
|
|
|
17326
17381
|
*/
|
|
17327
17382
|
export interface List_GetPaymentTypesRequest {
|
|
17328
17383
|
}
|
|
17384
|
+
/**
|
|
17385
|
+
* Picture/mailing folder (s_picture_folder)
|
|
17386
|
+
*/
|
|
17387
|
+
export interface PictureFolderEntity extends Carrier {
|
|
17388
|
+
/**
|
|
17389
|
+
* Primary key
|
|
17390
|
+
*/
|
|
17391
|
+
sPictureFolderId?: number;
|
|
17392
|
+
/**
|
|
17393
|
+
* Name of folder
|
|
17394
|
+
*/
|
|
17395
|
+
name?: string;
|
|
17396
|
+
/**
|
|
17397
|
+
* The parent id for this folder. -1 for root folders
|
|
17398
|
+
*/
|
|
17399
|
+
parentId?: number;
|
|
17400
|
+
/**
|
|
17401
|
+
* A description of the folder
|
|
17402
|
+
*/
|
|
17403
|
+
description?: string;
|
|
17404
|
+
/**
|
|
17405
|
+
* Indicates which type of folder this is
|
|
17406
|
+
*/
|
|
17407
|
+
folderType?: number;
|
|
17408
|
+
/**
|
|
17409
|
+
* Sub-folders, if any.
|
|
17410
|
+
*/
|
|
17411
|
+
children?: PictureFolderEntity[];
|
|
17412
|
+
/**
|
|
17413
|
+
* Registered when
|
|
17414
|
+
*/
|
|
17415
|
+
registered?: Date;
|
|
17416
|
+
/**
|
|
17417
|
+
* Registered by whom
|
|
17418
|
+
*/
|
|
17419
|
+
registeredAssociateId?: number;
|
|
17420
|
+
/**
|
|
17421
|
+
* Last updated when
|
|
17422
|
+
*/
|
|
17423
|
+
updated?: Date;
|
|
17424
|
+
/**
|
|
17425
|
+
* Last updated by whom
|
|
17426
|
+
*/
|
|
17427
|
+
updatedAssociateId?: number;
|
|
17428
|
+
}
|
|
17329
17429
|
/**
|
|
17330
17430
|
*
|
|
17331
17431
|
*/
|
|
@@ -20219,6 +20319,10 @@ export interface LandingPageEntity extends Carrier {
|
|
|
20219
20319
|
* Entity records pinned on this landing page. Item.Id = recordId, Item.Name = display name, Item.Type = entity table name (contact, person, sale, ...).
|
|
20220
20320
|
*/
|
|
20221
20321
|
pinnedEntities?: MDOListItem[];
|
|
20322
|
+
/**
|
|
20323
|
+
* All tabs on this landing page (pinned and open), ordered by rank. Supersedes PinnedSelections/PinnedEntities and additionally carries open-state and provider tabs.
|
|
20324
|
+
*/
|
|
20325
|
+
tabs?: LandingPageTab[];
|
|
20222
20326
|
}
|
|
20223
20327
|
/**
|
|
20224
20328
|
* Get the landing page configuration for an associate and entity table. Creates the landing page row if it does not exist.
|
|
@@ -20259,6 +20363,57 @@ export interface Configuration_SetLandingPagePinForAssociateRequest {
|
|
|
20259
20363
|
*/
|
|
20260
20364
|
recordId: number;
|
|
20261
20365
|
}
|
|
20366
|
+
/**
|
|
20367
|
+
* 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.
|
|
20368
|
+
* Returns LandingPageEntity
|
|
20369
|
+
*/
|
|
20370
|
+
export interface Configuration_SaveLandingPageTabsRequest {
|
|
20371
|
+
/**
|
|
20372
|
+
* Id of the associate that owns the landing page.
|
|
20373
|
+
*/
|
|
20374
|
+
associateId: number;
|
|
20375
|
+
/**
|
|
20376
|
+
* Entity table name identifying which landing page (contact, person, sale, ...).
|
|
20377
|
+
*/
|
|
20378
|
+
entityTableName: string;
|
|
20379
|
+
/**
|
|
20380
|
+
* The complete ordered set of tabs to persist.
|
|
20381
|
+
*/
|
|
20382
|
+
tabs: LandingPageTab[];
|
|
20383
|
+
}
|
|
20384
|
+
/**
|
|
20385
|
+
* A single tab on a landing page. Depending on TabType it represents a saved selection, an entity record, or a hardcoded provider.
|
|
20386
|
+
*/
|
|
20387
|
+
export interface LandingPageTab extends Carrier {
|
|
20388
|
+
/**
|
|
20389
|
+
* 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.
|
|
20390
|
+
*/
|
|
20391
|
+
id?: number;
|
|
20392
|
+
/**
|
|
20393
|
+
* Display name for the tab. Populated for selection and entity tabs; empty for provider tabs (the client owns provider captions).
|
|
20394
|
+
*/
|
|
20395
|
+
name?: string;
|
|
20396
|
+
/**
|
|
20397
|
+
* Table name of the record the tab points at (selection, contact, person, sale, ...) for a selection or entity tab; empty for a provider tab.
|
|
20398
|
+
*/
|
|
20399
|
+
entityType?: string;
|
|
20400
|
+
/**
|
|
20401
|
+
* What kind of content the tab shows: a saved selection, a single entity record, or a hardcoded provider.
|
|
20402
|
+
*/
|
|
20403
|
+
tabType?: enums.LandingPageTabType;
|
|
20404
|
+
/**
|
|
20405
|
+
* True if the tab is pinned; false if it is only open in the working set.
|
|
20406
|
+
*/
|
|
20407
|
+
pinned?: boolean;
|
|
20408
|
+
/**
|
|
20409
|
+
* Zero-based position of the tab in the landing page's tab order.
|
|
20410
|
+
*/
|
|
20411
|
+
rank?: number;
|
|
20412
|
+
/**
|
|
20413
|
+
* Provider key for a provider tab (e.g. LastTickets, FavouriteTickets); empty for selection and entity tabs.
|
|
20414
|
+
*/
|
|
20415
|
+
providerKey?: string;
|
|
20416
|
+
}
|
|
20262
20417
|
/**
|
|
20263
20418
|
* Entity for system events
|
|
20264
20419
|
*/
|
|
@@ -20623,6 +20778,32 @@ export interface HistoryRequest extends Carrier {
|
|
|
20623
20778
|
*/
|
|
20624
20779
|
requestForNewRecord?: boolean;
|
|
20625
20780
|
}
|
|
20781
|
+
/**
|
|
20782
|
+
* A single navigation entry - a key and its navigation value (soprotocol).
|
|
20783
|
+
*/
|
|
20784
|
+
export interface NavigationElement extends Carrier {
|
|
20785
|
+
/**
|
|
20786
|
+
* Navigation key; identifies the screen/panel for Current, or the entry for Recent
|
|
20787
|
+
*/
|
|
20788
|
+
key?: string;
|
|
20789
|
+
/**
|
|
20790
|
+
* The navigation value (soprotocol string)
|
|
20791
|
+
*/
|
|
20792
|
+
navigationValue?: string;
|
|
20793
|
+
}
|
|
20794
|
+
/**
|
|
20795
|
+
* 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.
|
|
20796
|
+
*/
|
|
20797
|
+
export interface ViewState_UpsertRecentNavigationRequest {
|
|
20798
|
+
/**
|
|
20799
|
+
* The client the entries belong to, e.g. Crm, Admin or Mobile
|
|
20800
|
+
*/
|
|
20801
|
+
client: string;
|
|
20802
|
+
/**
|
|
20803
|
+
* The navigation entries to upsert. The first element becomes the most recent; duplicate keys are collapsed keeping the first occurrence.
|
|
20804
|
+
*/
|
|
20805
|
+
elements: NavigationElement[];
|
|
20806
|
+
}
|
|
20626
20807
|
/**
|
|
20627
20808
|
* 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)
|
|
20628
20809
|
*/
|
|
@@ -20674,6 +20855,28 @@ export interface ViewState_PublishAndRetrieveUiEventsRequest {
|
|
|
20674
20855
|
*/
|
|
20675
20856
|
metrics: MetricPair[];
|
|
20676
20857
|
}
|
|
20858
|
+
/**
|
|
20859
|
+
* 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
|
|
20860
|
+
* Returns LiveUiSyncResult
|
|
20861
|
+
*/
|
|
20862
|
+
export interface ViewState_PublishAndSyncUiEventsRequest {
|
|
20863
|
+
/**
|
|
20864
|
+
* 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
|
|
20865
|
+
*/
|
|
20866
|
+
latestKnownEventId: number;
|
|
20867
|
+
/**
|
|
20868
|
+
* Array of events to publish. This can be empty if the client only wants to retrieve information
|
|
20869
|
+
*/
|
|
20870
|
+
publishEvents: UiEvent[];
|
|
20871
|
+
/**
|
|
20872
|
+
* 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
|
|
20873
|
+
*/
|
|
20874
|
+
metrics: MetricPair[];
|
|
20875
|
+
/**
|
|
20876
|
+
* 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
|
|
20877
|
+
*/
|
|
20878
|
+
ticketVersions: TicketVersionInfo[];
|
|
20879
|
+
}
|
|
20677
20880
|
/**
|
|
20678
20881
|
*
|
|
20679
20882
|
*/
|
|
@@ -21171,6 +21374,17 @@ export interface Diagnostics_TrackUserRequest {
|
|
|
21171
21374
|
*/
|
|
21172
21375
|
userProperties: StringDictionary;
|
|
21173
21376
|
}
|
|
21377
|
+
/**
|
|
21378
|
+
* System information
|
|
21379
|
+
*/
|
|
21380
|
+
export interface SystemInfo extends Carrier {
|
|
21381
|
+
}
|
|
21382
|
+
/**
|
|
21383
|
+
* Get system information
|
|
21384
|
+
* Returns SoSystemInfoCarrier
|
|
21385
|
+
*/
|
|
21386
|
+
export interface Diagnostics_GetSystemInfoRequest {
|
|
21387
|
+
}
|
|
21174
21388
|
/**
|
|
21175
21389
|
*
|
|
21176
21390
|
*/
|
|
@@ -22617,10 +22831,6 @@ export interface EMailAccount extends Carrier {
|
|
|
22617
22831
|
* Sent email folder name if available in the db
|
|
22618
22832
|
*/
|
|
22619
22833
|
sentFolder?: string;
|
|
22620
|
-
/**
|
|
22621
|
-
* Simple mode used for sending and retrieving invitations, accept/decline etc. without the full Inbox GUI experience
|
|
22622
|
-
*/
|
|
22623
|
-
simpleMode?: number;
|
|
22624
22834
|
/**
|
|
22625
22835
|
* When we last fetched email
|
|
22626
22836
|
*/
|
|
@@ -23653,6 +23863,20 @@ export interface EMail_RelayMessageRequest {
|
|
|
23653
23863
|
*/
|
|
23654
23864
|
recipients: string[];
|
|
23655
23865
|
}
|
|
23866
|
+
/**
|
|
23867
|
+
* 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.
|
|
23868
|
+
* Returns Blob
|
|
23869
|
+
*/
|
|
23870
|
+
export interface EMail_GetEMailAsEmlStreamRequest {
|
|
23871
|
+
/**
|
|
23872
|
+
* The EmailItemId of the e-mail to retrieve as stream
|
|
23873
|
+
*/
|
|
23874
|
+
emailItemId: number;
|
|
23875
|
+
/**
|
|
23876
|
+
* Should attachments be included in the stream
|
|
23877
|
+
*/
|
|
23878
|
+
includeAttachments: boolean;
|
|
23879
|
+
}
|
|
23656
23880
|
/**
|
|
23657
23881
|
* Get en e-mail based on its primary key in the DB
|
|
23658
23882
|
* Returns EMailEntity
|
|
@@ -34144,6 +34368,19 @@ export interface FormEntity extends Carrier {
|
|
|
34144
34368
|
*/
|
|
34145
34369
|
folderName?: string;
|
|
34146
34370
|
}
|
|
34371
|
+
/**
|
|
34372
|
+
* 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).
|
|
34373
|
+
*/
|
|
34374
|
+
export interface Marketing_MoveFormsToFolderRequest {
|
|
34375
|
+
/**
|
|
34376
|
+
* Ids of the forms to move (form.form_id)
|
|
34377
|
+
*/
|
|
34378
|
+
formIds: number[];
|
|
34379
|
+
/**
|
|
34380
|
+
* Target folder id (s_picture_folder.id, formFolder type); -1 = root
|
|
34381
|
+
*/
|
|
34382
|
+
folderId: number;
|
|
34383
|
+
}
|
|
34147
34384
|
/**
|
|
34148
34385
|
* This method will try to verify a Google recaptcha token. The token is gained from the recaptcha frontend component
|
|
34149
34386
|
* Returns boolean
|
|
@@ -34229,6 +34466,135 @@ export interface FormSubmissionEntity extends Carrier {
|
|
|
34229
34466
|
*/
|
|
34230
34467
|
processingLog?: string;
|
|
34231
34468
|
}
|
|
34469
|
+
/**
|
|
34470
|
+
* A mailing (shipment) — the run that sends a message to a set of recipients
|
|
34471
|
+
*/
|
|
34472
|
+
export interface MailingEntity extends Carrier {
|
|
34473
|
+
/**
|
|
34474
|
+
* Primary key
|
|
34475
|
+
*/
|
|
34476
|
+
mailingId?: number;
|
|
34477
|
+
/**
|
|
34478
|
+
* Describes the shipment
|
|
34479
|
+
*/
|
|
34480
|
+
description?: string;
|
|
34481
|
+
/**
|
|
34482
|
+
* The id of the message that is sent in this shipment
|
|
34483
|
+
*/
|
|
34484
|
+
messageId?: number;
|
|
34485
|
+
/**
|
|
34486
|
+
* The folder which this shipment belongs to. -1 indicates that the shipment is on the root
|
|
34487
|
+
*/
|
|
34488
|
+
folderId?: number;
|
|
34489
|
+
/**
|
|
34490
|
+
* The date and time when to start this shipment
|
|
34491
|
+
*/
|
|
34492
|
+
startDate?: Date;
|
|
34493
|
+
/**
|
|
34494
|
+
* Is set when this shipment is ended
|
|
34495
|
+
*/
|
|
34496
|
+
endDate?: Date;
|
|
34497
|
+
/**
|
|
34498
|
+
* Email address to put in the From header of the messages
|
|
34499
|
+
*/
|
|
34500
|
+
fromAddr?: string;
|
|
34501
|
+
/**
|
|
34502
|
+
* Email address to put in the Reply To: header of the messages
|
|
34503
|
+
*/
|
|
34504
|
+
replyAddr?: string;
|
|
34505
|
+
/**
|
|
34506
|
+
* Email address for the MTA envelope (where bounces are returned)
|
|
34507
|
+
*/
|
|
34508
|
+
envelopeFrom?: string;
|
|
34509
|
+
/**
|
|
34510
|
+
* Sending/stopped/failed etc.
|
|
34511
|
+
*/
|
|
34512
|
+
status?: enums.ShipmentStatus;
|
|
34513
|
+
/**
|
|
34514
|
+
* The total number of recipients to send message to.
|
|
34515
|
+
*/
|
|
34516
|
+
recipients?: number;
|
|
34517
|
+
/**
|
|
34518
|
+
* This field indicates what kind of shipment this is.
|
|
34519
|
+
*/
|
|
34520
|
+
configuration?: number;
|
|
34521
|
+
/**
|
|
34522
|
+
* Set if this shipment should be related to a Selection
|
|
34523
|
+
*/
|
|
34524
|
+
selectionId?: number;
|
|
34525
|
+
/**
|
|
34526
|
+
* Set if this shipment should be related to a Project
|
|
34527
|
+
*/
|
|
34528
|
+
projectId?: number;
|
|
34529
|
+
/**
|
|
34530
|
+
* Id of subscriptionType that this shipment has, so we may check for reservations
|
|
34531
|
+
*/
|
|
34532
|
+
shipmenttypeId?: number;
|
|
34533
|
+
/**
|
|
34534
|
+
* Number of mails sent
|
|
34535
|
+
*/
|
|
34536
|
+
sentNum?: number;
|
|
34537
|
+
/**
|
|
34538
|
+
* Number of mails sent minus bounces
|
|
34539
|
+
*/
|
|
34540
|
+
deliveredNum?: number;
|
|
34541
|
+
/**
|
|
34542
|
+
* Registered when
|
|
34543
|
+
*/
|
|
34544
|
+
registered?: Date;
|
|
34545
|
+
/**
|
|
34546
|
+
* Registered by whom
|
|
34547
|
+
*/
|
|
34548
|
+
registeredAssociateId?: number;
|
|
34549
|
+
/**
|
|
34550
|
+
* Last updated when
|
|
34551
|
+
*/
|
|
34552
|
+
updated?: Date;
|
|
34553
|
+
/**
|
|
34554
|
+
* Last updated by whom
|
|
34555
|
+
*/
|
|
34556
|
+
updatedAssociateId?: number;
|
|
34557
|
+
/**
|
|
34558
|
+
* Number of updates made to this record
|
|
34559
|
+
*/
|
|
34560
|
+
updatedCount?: number;
|
|
34561
|
+
}
|
|
34562
|
+
/**
|
|
34563
|
+
* Move one or more mailings (shipments) into the given folder. FolderId -1 = root.
|
|
34564
|
+
*/
|
|
34565
|
+
export interface Marketing_MoveMailingsToFolderRequest {
|
|
34566
|
+
/**
|
|
34567
|
+
* Shipment ids of the mailings to move (s_shipment.id)
|
|
34568
|
+
*/
|
|
34569
|
+
mailingIds: number[];
|
|
34570
|
+
/**
|
|
34571
|
+
* Target folder id (s_picture_folder.id, shipmentFolder type); -1 = root
|
|
34572
|
+
*/
|
|
34573
|
+
folderId: number;
|
|
34574
|
+
}
|
|
34575
|
+
/**
|
|
34576
|
+
* Change the mailing name (shipment description) that the given message (MessageId) belongs to
|
|
34577
|
+
*/
|
|
34578
|
+
export interface Marketing_RenameMailingByMessageIdRequest {
|
|
34579
|
+
/**
|
|
34580
|
+
* Message id
|
|
34581
|
+
*/
|
|
34582
|
+
messageId: number;
|
|
34583
|
+
/**
|
|
34584
|
+
* The new name
|
|
34585
|
+
*/
|
|
34586
|
+
name: string;
|
|
34587
|
+
}
|
|
34588
|
+
/**
|
|
34589
|
+
* Reload and send a mailing
|
|
34590
|
+
* Returns boolean
|
|
34591
|
+
*/
|
|
34592
|
+
export interface Marketing_ReloadAndSendMailingRequest {
|
|
34593
|
+
/**
|
|
34594
|
+
* Mailing id
|
|
34595
|
+
*/
|
|
34596
|
+
mailingId: number;
|
|
34597
|
+
}
|
|
34232
34598
|
/**
|
|
34233
34599
|
* Methods for calculating mailing statistics
|
|
34234
34600
|
*/
|
|
@@ -34552,19 +34918,6 @@ export interface ShipmentMessageEntity extends Carrier {
|
|
|
34552
34918
|
*/
|
|
34553
34919
|
updatedCount?: number;
|
|
34554
34920
|
}
|
|
34555
|
-
/**
|
|
34556
|
-
* Change the mailing name (shipment description) that the given message (MessageId) belongs to
|
|
34557
|
-
*/
|
|
34558
|
-
export interface Marketing_RenameMailingByMessageIdRequest {
|
|
34559
|
-
/**
|
|
34560
|
-
* Message id
|
|
34561
|
-
*/
|
|
34562
|
-
messageId: number;
|
|
34563
|
-
/**
|
|
34564
|
-
* The new name
|
|
34565
|
-
*/
|
|
34566
|
-
name: string;
|
|
34567
|
-
}
|
|
34568
34921
|
/**
|
|
34569
34922
|
* Delete the message and the shipment the message (MessageId) belongs to
|
|
34570
34923
|
*/
|
|
@@ -40614,6 +40967,215 @@ export interface WorkflowWaitForAction extends Carrier {
|
|
|
40614
40967
|
*/
|
|
40615
40968
|
restrictionGroups?: ArchiveRestrictionGroup[];
|
|
40616
40969
|
}
|
|
40970
|
+
/**
|
|
40971
|
+
* News feed CTAs are created by agents or other services for display on the start page and other relevant places in the UI.
|
|
40972
|
+
*/
|
|
40973
|
+
export interface NewsFeedCTA {
|
|
40974
|
+
/**
|
|
40975
|
+
* 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
|
|
40976
|
+
*/
|
|
40977
|
+
identifier?: string;
|
|
40978
|
+
/**
|
|
40979
|
+
* The title of the CTA button. E.g. 'Approve', 'Reject', 'View details'. Multi-language string supported: 'US:"english";NO:"norsk"'.
|
|
40980
|
+
*/
|
|
40981
|
+
title?: string;
|
|
40982
|
+
/**
|
|
40983
|
+
* The type of the CTA, which determines how the CTA button renders. Primary/Secondary/Link
|
|
40984
|
+
*/
|
|
40985
|
+
ctaType?: enums.CtaType;
|
|
40986
|
+
/**
|
|
40987
|
+
* The flavor of the CTA, which determines the style/color/icon the CTA button renders with. Info/Warning/Error/Accept/Reject
|
|
40988
|
+
*/
|
|
40989
|
+
ctaFlavor?: enums.CtaFlavor;
|
|
40990
|
+
}
|
|
40991
|
+
/**
|
|
40992
|
+
* News feed items are created by agents or other services for display on the start page and other relevant places in the UI.
|
|
40993
|
+
*/
|
|
40994
|
+
export interface NewsFeedItem {
|
|
40995
|
+
/**
|
|
40996
|
+
* Primary key
|
|
40997
|
+
*/
|
|
40998
|
+
newsFeedItemId?: number;
|
|
40999
|
+
/**
|
|
41000
|
+
* Short, descriptive headline. Plain text title. Multi-language string supported: 'US:"english";NO:"norsk"'.
|
|
41001
|
+
*/
|
|
41002
|
+
title?: string;
|
|
41003
|
+
/**
|
|
41004
|
+
* Short, descriptive summary. Plain text summary. Multi-language string supported: 'US:"english";NO:"norsk"'.
|
|
41005
|
+
*/
|
|
41006
|
+
summary?: string;
|
|
41007
|
+
/**
|
|
41008
|
+
* 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.
|
|
41009
|
+
*/
|
|
41010
|
+
description?: StringDictionary;
|
|
41011
|
+
/**
|
|
41012
|
+
* Call to action items for the news feed item. Each item contains a title, an identifier, a type and flavor.
|
|
41013
|
+
*/
|
|
41014
|
+
actions?: NewsFeedCTA[];
|
|
41015
|
+
/**
|
|
41016
|
+
* URL Link to an image associated with the news item.
|
|
41017
|
+
*/
|
|
41018
|
+
imageLink?: string;
|
|
41019
|
+
/**
|
|
41020
|
+
* URL Link to the source of the news item, or an SOProtocol link to a SuperOffice item
|
|
41021
|
+
*/
|
|
41022
|
+
sourceLink?: string;
|
|
41023
|
+
/**
|
|
41024
|
+
* Preview hint for the news item. e.g. `{contact_id=123}`
|
|
41025
|
+
*/
|
|
41026
|
+
previewHint?: string;
|
|
41027
|
+
/**
|
|
41028
|
+
* Name of the instance that published this item. e.g. `Pete the prospector`
|
|
41029
|
+
*/
|
|
41030
|
+
fromName?: string;
|
|
41031
|
+
/**
|
|
41032
|
+
* Type of the instance that published this item. e.g. `Prospector Agent`
|
|
41033
|
+
*/
|
|
41034
|
+
fromCategoryName?: string;
|
|
41035
|
+
/**
|
|
41036
|
+
* Importance of the news item. Low to High. Higher priority items may be shown more prominently in the feed.
|
|
41037
|
+
*/
|
|
41038
|
+
priority?: enums.EMailPriority;
|
|
41039
|
+
/**
|
|
41040
|
+
* Registered when
|
|
41041
|
+
*/
|
|
41042
|
+
registered?: Date;
|
|
41043
|
+
/**
|
|
41044
|
+
* Last updated when
|
|
41045
|
+
*/
|
|
41046
|
+
updated?: Date;
|
|
41047
|
+
/**
|
|
41048
|
+
* When the news item expires and should no longer be shown in feeds (UTC)
|
|
41049
|
+
*/
|
|
41050
|
+
expiresAt?: Date;
|
|
41051
|
+
/**
|
|
41052
|
+
* Indicates if the item is being handled by a CTA. (normal, processing, processed)
|
|
41053
|
+
*/
|
|
41054
|
+
status?: enums.NewsFeedItemStatus;
|
|
41055
|
+
/**
|
|
41056
|
+
* Set to true when the recipient user has read the news feed item.
|
|
41057
|
+
*/
|
|
41058
|
+
isRead?: boolean;
|
|
41059
|
+
/**
|
|
41060
|
+
* When the recipient user read the news feed item (UTC)
|
|
41061
|
+
*/
|
|
41062
|
+
readAt?: Date;
|
|
41063
|
+
/**
|
|
41064
|
+
* Company that is mentioned in the news feed item - null if not applicable
|
|
41065
|
+
*/
|
|
41066
|
+
contact?: Contact;
|
|
41067
|
+
/**
|
|
41068
|
+
* Person that is mentioned in the news feed item - null if not applicable
|
|
41069
|
+
*/
|
|
41070
|
+
person?: Person;
|
|
41071
|
+
/**
|
|
41072
|
+
* Project that is mentioned in the news feed item - null if not applicable
|
|
41073
|
+
*/
|
|
41074
|
+
project?: Project;
|
|
41075
|
+
/**
|
|
41076
|
+
* Sale that is mentioned in the news feed item - null if not applicable
|
|
41077
|
+
*/
|
|
41078
|
+
sale?: Sale;
|
|
41079
|
+
/**
|
|
41080
|
+
* The id of the application that registered this news item. Used to resolve where any CTA should be posted when clicked.
|
|
41081
|
+
*/
|
|
41082
|
+
applicationId?: string;
|
|
41083
|
+
/**
|
|
41084
|
+
* Place related to news item (city or city + country) (optional)
|
|
41085
|
+
*/
|
|
41086
|
+
location?: string;
|
|
41087
|
+
/**
|
|
41088
|
+
* 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.
|
|
41089
|
+
*/
|
|
41090
|
+
ratingPercent?: number;
|
|
41091
|
+
}
|
|
41092
|
+
/**
|
|
41093
|
+
* Saves a new item to the newsfeed, publishing it to the specified users.
|
|
41094
|
+
* Returns NewsFeedItem
|
|
41095
|
+
*/
|
|
41096
|
+
export interface NewsFeed_PostNewsFeedItemRequest {
|
|
41097
|
+
/**
|
|
41098
|
+
* The news feed item to post. NewsFeedItemId is ignored, as a new id will be generated when posting to the newsfeed.
|
|
41099
|
+
*/
|
|
41100
|
+
newsFeedItem: NewsFeedItem;
|
|
41101
|
+
/**
|
|
41102
|
+
* List of associate ids that this news feed item is sent to.
|
|
41103
|
+
*/
|
|
41104
|
+
toAssociateIds: number[];
|
|
41105
|
+
/**
|
|
41106
|
+
* List of group ids that this news feed item is sent to. This gets resolved to associate ids when posted.
|
|
41107
|
+
*/
|
|
41108
|
+
toGroupIds: number[];
|
|
41109
|
+
/**
|
|
41110
|
+
* Indicates if this news feed item is sent to all users. Gets resolved into all users when posted.
|
|
41111
|
+
*/
|
|
41112
|
+
toAll: boolean;
|
|
41113
|
+
}
|
|
41114
|
+
/**
|
|
41115
|
+
* 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.
|
|
41116
|
+
* Returns NewsFeedItem[]
|
|
41117
|
+
*/
|
|
41118
|
+
export interface NewsFeed_GetNewsFeedItemsByIdRequest {
|
|
41119
|
+
/**
|
|
41120
|
+
* Ids of the news feed items to mark as seen for this user.
|
|
41121
|
+
*/
|
|
41122
|
+
newsFeedItemIds: number[];
|
|
41123
|
+
}
|
|
41124
|
+
/**
|
|
41125
|
+
* 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.
|
|
41126
|
+
* Returns NewsFeedItem[]
|
|
41127
|
+
*/
|
|
41128
|
+
export interface NewsFeed_GetNewsItemsForUserRequest {
|
|
41129
|
+
/**
|
|
41130
|
+
* Id of the associate to fetch news feed items for. 0 = current user
|
|
41131
|
+
*/
|
|
41132
|
+
associateId: number;
|
|
41133
|
+
/**
|
|
41134
|
+
* Start date for fetching news feed items.
|
|
41135
|
+
*/
|
|
41136
|
+
fromDate: Date;
|
|
41137
|
+
/**
|
|
41138
|
+
* End date for fetching news feed items.
|
|
41139
|
+
*/
|
|
41140
|
+
toDate: Date;
|
|
41141
|
+
/**
|
|
41142
|
+
* Maximum number of news feed items to return.
|
|
41143
|
+
*/
|
|
41144
|
+
top: number;
|
|
41145
|
+
/**
|
|
41146
|
+
* Number of news feed items to skip for paging.
|
|
41147
|
+
*/
|
|
41148
|
+
skip: number;
|
|
41149
|
+
}
|
|
41150
|
+
/**
|
|
41151
|
+
* Marks the news feed item as read, so it can be un-bolded in the current user's feed.
|
|
41152
|
+
*/
|
|
41153
|
+
export interface NewsFeed_MarkAsReadRequest {
|
|
41154
|
+
/**
|
|
41155
|
+
* Id of the news feed item to mark as seen for this user.
|
|
41156
|
+
*/
|
|
41157
|
+
newsFeedItemId: number;
|
|
41158
|
+
}
|
|
41159
|
+
/**
|
|
41160
|
+
* Marks the news feed item as being handled, that CTA processing has started. i.e. other users should not start handling it also.
|
|
41161
|
+
* Returns boolean
|
|
41162
|
+
*/
|
|
41163
|
+
export interface NewsFeed_StartHandlingRequest {
|
|
41164
|
+
/**
|
|
41165
|
+
* Id of the news feed item to mark as handled for all users.
|
|
41166
|
+
*/
|
|
41167
|
+
newsFeedItemId: number;
|
|
41168
|
+
}
|
|
41169
|
+
/**
|
|
41170
|
+
* Marks the news feed item as handled, so it can be removed from the feed.
|
|
41171
|
+
* Returns boolean
|
|
41172
|
+
*/
|
|
41173
|
+
export interface NewsFeed_MarkAsHandledRequest {
|
|
41174
|
+
/**
|
|
41175
|
+
* Id of the news feed item to mark as handled for all users.
|
|
41176
|
+
*/
|
|
41177
|
+
newsFeedItemId: number;
|
|
41178
|
+
}
|
|
40617
41179
|
export interface DSAParameters {
|
|
40618
41180
|
Counter: number;
|
|
40619
41181
|
G: any;
|