@superoffice/webapi 11.11.589 → 11.13.921
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/AIAgent.d.ts +19 -0
- package/dist/cjs/AIAgent.d.ts.map +1 -1
- package/dist/cjs/AIAgent.js +37 -0
- package/dist/cjs/AIAgent.js.map +1 -1
- package/dist/cjs/Carriers.d.ts +196 -3
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ContactAgent.d.ts +17 -0
- package/dist/cjs/ContactAgent.d.ts.map +1 -1
- package/dist/cjs/ContactAgent.js +35 -0
- package/dist/cjs/ContactAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +9 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +109 -17
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/DiagnosticsAgent.d.ts +15 -0
- package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/cjs/DiagnosticsAgent.js +33 -0
- package/dist/cjs/DiagnosticsAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +4 -0
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +4 -0
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/PersonAgent.d.ts +17 -0
- package/dist/cjs/PersonAgent.d.ts.map +1 -1
- package/dist/cjs/PersonAgent.js +35 -0
- package/dist/cjs/PersonAgent.js.map +1 -1
- package/dist/cjs/PreferenceAgent.d.ts +22 -0
- package/dist/cjs/PreferenceAgent.d.ts.map +1 -1
- package/dist/cjs/PreferenceAgent.js +57 -0
- package/dist/cjs/PreferenceAgent.js.map +1 -1
- package/dist/cjs/TicketAgent.d.ts +31 -0
- package/dist/cjs/TicketAgent.d.ts.map +1 -1
- package/dist/cjs/TicketAgent.js +67 -0
- package/dist/cjs/TicketAgent.js.map +1 -1
- package/dist/cjs/UserAgent.d.ts +19 -0
- package/dist/cjs/UserAgent.d.ts.map +1 -1
- package/dist/cjs/UserAgent.js +37 -0
- package/dist/cjs/UserAgent.js.map +1 -1
- package/dist/esm/AIAgent.d.ts +19 -0
- package/dist/esm/AIAgent.d.ts.map +1 -1
- package/dist/esm/AIAgent.js +37 -0
- package/dist/esm/AIAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +196 -3
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ContactAgent.d.ts +17 -0
- package/dist/esm/ContactAgent.d.ts.map +1 -1
- package/dist/esm/ContactAgent.js +35 -0
- package/dist/esm/ContactAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +9 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +83 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/DiagnosticsAgent.d.ts +15 -0
- package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/esm/DiagnosticsAgent.js +33 -0
- package/dist/esm/DiagnosticsAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +4 -0
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +4 -0
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/PersonAgent.d.ts +17 -0
- package/dist/esm/PersonAgent.d.ts.map +1 -1
- package/dist/esm/PersonAgent.js +35 -0
- package/dist/esm/PersonAgent.js.map +1 -1
- package/dist/esm/PreferenceAgent.d.ts +22 -0
- package/dist/esm/PreferenceAgent.d.ts.map +1 -1
- package/dist/esm/PreferenceAgent.js +57 -0
- package/dist/esm/PreferenceAgent.js.map +1 -1
- package/dist/esm/TicketAgent.d.ts +31 -0
- package/dist/esm/TicketAgent.d.ts.map +1 -1
- package/dist/esm/TicketAgent.js +67 -0
- package/dist/esm/TicketAgent.js.map +1 -1
- package/dist/esm/UserAgent.d.ts +19 -0
- package/dist/esm/UserAgent.d.ts.map +1 -1
- package/dist/esm/UserAgent.js +37 -0
- package/dist/esm/UserAgent.js.map +1 -1
- package/package.json +4 -4
- package/src/AIAgent.ts +64 -0
- package/src/Carriers.ts +262 -3
- package/src/ContactAgent.ts +60 -0
- package/src/Converters.ts +105 -0
- package/src/DiagnosticsAgent.ts +56 -0
- package/src/Enums.ts +4 -0
- package/src/PersonAgent.ts +60 -0
- package/src/PreferenceAgent.ts +86 -0
- package/src/TicketAgent.ts +114 -0
- package/src/UserAgent.ts +64 -0
package/dist/cjs/Carriers.d.ts
CHANGED
|
@@ -5182,6 +5182,23 @@ export interface Contact_EnrichContactEntityRequest {
|
|
|
5182
5182
|
*/
|
|
5183
5183
|
enrichId: string;
|
|
5184
5184
|
}
|
|
5185
|
+
/**
|
|
5186
|
+
* Update interests on contact. Will throw exception if id is in both arrays
|
|
5187
|
+
*/
|
|
5188
|
+
export interface Contact_UpdateInterestsRequest {
|
|
5189
|
+
/**
|
|
5190
|
+
* Contact id to update interests for
|
|
5191
|
+
*/
|
|
5192
|
+
contactId: number;
|
|
5193
|
+
/**
|
|
5194
|
+
* The interest ids to set on the contact. This will set these interests to true and not touch any other interests.
|
|
5195
|
+
*/
|
|
5196
|
+
enableInterestIds: number[];
|
|
5197
|
+
/**
|
|
5198
|
+
* The interest ids to diable on the contact. This will set these interests to false and not touch any other interests.
|
|
5199
|
+
*/
|
|
5200
|
+
disableInterestIds: number[];
|
|
5201
|
+
}
|
|
5185
5202
|
/**
|
|
5186
5203
|
* Getting the contacts where the user currently logged in is set as contact owner.
|
|
5187
5204
|
* Returns Contact[]
|
|
@@ -6512,6 +6529,23 @@ export interface Person_SetUtmCreatedPersonContactForFormSubmissionRequest {
|
|
|
6512
6529
|
*/
|
|
6513
6530
|
contactId: number;
|
|
6514
6531
|
}
|
|
6532
|
+
/**
|
|
6533
|
+
* Update interests on person. Will throw exception if id is in both arrays
|
|
6534
|
+
*/
|
|
6535
|
+
export interface Person_UpdateInterestsRequest {
|
|
6536
|
+
/**
|
|
6537
|
+
* Person id to update interests for
|
|
6538
|
+
*/
|
|
6539
|
+
personId: number;
|
|
6540
|
+
/**
|
|
6541
|
+
* The interest ids to set on the person. This will set these interests to true and not touch any other interests.
|
|
6542
|
+
*/
|
|
6543
|
+
enableInterestIds: number[];
|
|
6544
|
+
/**
|
|
6545
|
+
* The interest ids to diable on the person. This will set these interests to false and not touch any other interests.
|
|
6546
|
+
*/
|
|
6547
|
+
disableInterestIds: number[];
|
|
6548
|
+
}
|
|
6515
6549
|
/**
|
|
6516
6550
|
* Scaled person image
|
|
6517
6551
|
*/
|
|
@@ -21187,6 +21221,20 @@ export interface Diagnostics_PerformTasksAfterCustomObjectTableDeletedRequest {
|
|
|
21187
21221
|
*/
|
|
21188
21222
|
tableName: string;
|
|
21189
21223
|
}
|
|
21224
|
+
/**
|
|
21225
|
+
* Operations related to ticket usage
|
|
21226
|
+
*/
|
|
21227
|
+
export interface TicketUsage extends Carrier {
|
|
21228
|
+
}
|
|
21229
|
+
/**
|
|
21230
|
+
* Logs and registers resolved ticket count to the metering service
|
|
21231
|
+
*/
|
|
21232
|
+
export interface Diagnostics_RegisterClosedTicketsUsageRequest {
|
|
21233
|
+
/**
|
|
21234
|
+
* IDs of closed tickets
|
|
21235
|
+
*/
|
|
21236
|
+
ticketIds: number[];
|
|
21237
|
+
}
|
|
21190
21238
|
/**
|
|
21191
21239
|
*
|
|
21192
21240
|
*/
|
|
@@ -27723,6 +27771,21 @@ export interface Preference_SetXsrfPathsRequest {
|
|
|
27723
27771
|
*/
|
|
27724
27772
|
paths: string[];
|
|
27725
27773
|
}
|
|
27774
|
+
/**
|
|
27775
|
+
* Returns the XSRF token value and last update time for the current user
|
|
27776
|
+
* Returns XsrfValue
|
|
27777
|
+
*/
|
|
27778
|
+
export interface Preference_GetXsrfValueRequest {
|
|
27779
|
+
}
|
|
27780
|
+
/**
|
|
27781
|
+
* Sets the XSRF token value for the current user
|
|
27782
|
+
*/
|
|
27783
|
+
export interface Preference_SetXsrfValueRequest {
|
|
27784
|
+
/**
|
|
27785
|
+
* The XSRF value to store
|
|
27786
|
+
*/
|
|
27787
|
+
xsrfValue: string;
|
|
27788
|
+
}
|
|
27726
27789
|
/**
|
|
27727
27790
|
* Preference description, drives the Preference GUI. Maintenance client - controls all preferences in SuperOffice.
|
|
27728
27791
|
*/
|
|
@@ -28042,6 +28105,19 @@ export interface TabOrder extends Carrier {
|
|
|
28042
28105
|
*/
|
|
28043
28106
|
associateId?: number;
|
|
28044
28107
|
}
|
|
28108
|
+
/**
|
|
28109
|
+
* XSRF token value and last update time
|
|
28110
|
+
*/
|
|
28111
|
+
export interface XsrfValue {
|
|
28112
|
+
/**
|
|
28113
|
+
* The XSRF token value
|
|
28114
|
+
*/
|
|
28115
|
+
value?: string;
|
|
28116
|
+
/**
|
|
28117
|
+
* When the XSRF value was last updated (UTC)
|
|
28118
|
+
*/
|
|
28119
|
+
lastUpdated?: Date;
|
|
28120
|
+
}
|
|
28045
28121
|
/**
|
|
28046
28122
|
* Result of CheckLicenseStatus
|
|
28047
28123
|
*/
|
|
@@ -28706,6 +28782,32 @@ export interface User_RegisterWithAccessGatewayRequest {
|
|
|
28706
28782
|
*/
|
|
28707
28783
|
export interface User_CheckAccessGatewayRegistrationRequest {
|
|
28708
28784
|
}
|
|
28785
|
+
/**
|
|
28786
|
+
* Exchanges an authorization code for tokens.
|
|
28787
|
+
* Returns string
|
|
28788
|
+
*/
|
|
28789
|
+
export interface User_ExchangeCodeAndSaveTokensRequest {
|
|
28790
|
+
/**
|
|
28791
|
+
* The provider of the underlying data.
|
|
28792
|
+
*/
|
|
28793
|
+
provider: string;
|
|
28794
|
+
/**
|
|
28795
|
+
* The authorization code to exchange for a token.
|
|
28796
|
+
*/
|
|
28797
|
+
authorizationCode: string;
|
|
28798
|
+
/**
|
|
28799
|
+
* The nonce to verify against the id_token's nonce if present.
|
|
28800
|
+
*/
|
|
28801
|
+
nonce: string;
|
|
28802
|
+
/**
|
|
28803
|
+
* The cryptographic proof for the client to verify.
|
|
28804
|
+
*/
|
|
28805
|
+
pkceVerifier: string;
|
|
28806
|
+
/**
|
|
28807
|
+
* We need to be able to dynamically inject the redirect based on location(app.superoffice.com vs online2.superoffice.com)
|
|
28808
|
+
*/
|
|
28809
|
+
redirectUri: string;
|
|
28810
|
+
}
|
|
28709
28811
|
/**
|
|
28710
28812
|
* Credentials supported for authentication
|
|
28711
28813
|
*/
|
|
@@ -29209,17 +29311,21 @@ export interface ServiceAuth extends Carrier {
|
|
|
29209
29311
|
*/
|
|
29210
29312
|
export interface TokenManagementInfo extends Carrier {
|
|
29211
29313
|
/**
|
|
29212
|
-
* The provider
|
|
29314
|
+
* The provider the access and refresh token belong to.
|
|
29213
29315
|
*/
|
|
29214
29316
|
provider?: string;
|
|
29215
29317
|
/**
|
|
29216
|
-
* Access token
|
|
29318
|
+
* Access token (Provider)
|
|
29217
29319
|
*/
|
|
29218
29320
|
accessToken?: string;
|
|
29219
29321
|
/**
|
|
29220
|
-
* Refresh token
|
|
29322
|
+
* Refresh token (Provider)
|
|
29221
29323
|
*/
|
|
29222
29324
|
refreshToken?: string;
|
|
29325
|
+
/**
|
|
29326
|
+
* JSON serialized dictionary of claims from the AG id_token
|
|
29327
|
+
*/
|
|
29328
|
+
claims?: string;
|
|
29223
29329
|
}
|
|
29224
29330
|
/**
|
|
29225
29331
|
* Saves the external tokens to the DB and returns a key that can be used to retrieve them
|
|
@@ -35747,6 +35853,30 @@ export interface Ticket_AcceptTicketsRequest {
|
|
|
35747
35853
|
*/
|
|
35748
35854
|
ticketIds: number[];
|
|
35749
35855
|
}
|
|
35856
|
+
/**
|
|
35857
|
+
* Sets tickets' status to SPAM. After a grace period these tickets will be deleted by a background job.
|
|
35858
|
+
* Returns number[]
|
|
35859
|
+
*/
|
|
35860
|
+
export interface Ticket_SetSpamStatusByIdsRequest {
|
|
35861
|
+
/**
|
|
35862
|
+
* Ids of tickets to be set for SPAM.
|
|
35863
|
+
*/
|
|
35864
|
+
ticketIds: number[];
|
|
35865
|
+
}
|
|
35866
|
+
/**
|
|
35867
|
+
* Sets tickets' status to SPAM. After a grace period these tickets will be deleted by a background job.
|
|
35868
|
+
* Returns number[]
|
|
35869
|
+
*/
|
|
35870
|
+
export interface Ticket_SetSpamStatusByProviderRequest {
|
|
35871
|
+
/**
|
|
35872
|
+
* Name of the provider that returns ticket rows.
|
|
35873
|
+
*/
|
|
35874
|
+
providerName: string;
|
|
35875
|
+
/**
|
|
35876
|
+
* Query restrictions to be added to provider. Fixed providers, such as LastTicketsProvider, FavouriteTicketsProvider etc. already have mandatory restrictions setup - in such case extra restrictions will be combined, however for general use case for fixed providers you can pass an empty array and provider will return default results. For selection providers generally you should pass selectionId as a restriction.
|
|
35877
|
+
*/
|
|
35878
|
+
restrictions: ArchiveRestrictionInfo[];
|
|
35879
|
+
}
|
|
35750
35880
|
/**
|
|
35751
35881
|
* The TicketMessage carrier is used for representing a service ticket message
|
|
35752
35882
|
*/
|
|
@@ -38126,6 +38256,69 @@ export interface AI_AnswerAcceptedRequest {
|
|
|
38126
38256
|
*/
|
|
38127
38257
|
trackingId: string;
|
|
38128
38258
|
}
|
|
38259
|
+
/**
|
|
38260
|
+
* Returns an answer based on the query, and provided context.
|
|
38261
|
+
* Returns RagAnswer
|
|
38262
|
+
*/
|
|
38263
|
+
export interface AI_AnswerUsingContextRequest {
|
|
38264
|
+
/**
|
|
38265
|
+
* Defines the search domain used for generating answer. e.g. 'ServiceCopilot'
|
|
38266
|
+
*/
|
|
38267
|
+
namespaceName: string;
|
|
38268
|
+
/**
|
|
38269
|
+
* Question. The search query to answer.
|
|
38270
|
+
*/
|
|
38271
|
+
query: string;
|
|
38272
|
+
/**
|
|
38273
|
+
* The IDs of the current context for contact, person, project, sale, and ticket.
|
|
38274
|
+
*/
|
|
38275
|
+
contextIds: RagContextIds;
|
|
38276
|
+
/**
|
|
38277
|
+
* Filter results based on content type. Default: None = no filtering
|
|
38278
|
+
*/
|
|
38279
|
+
type: enums.RagType;
|
|
38280
|
+
/**
|
|
38281
|
+
* Max Number of results to use in generating answer.
|
|
38282
|
+
*/
|
|
38283
|
+
top: number;
|
|
38284
|
+
}
|
|
38285
|
+
/**
|
|
38286
|
+
* Parameters specifying contact/person/project/sale/ticket ids for populating context.
|
|
38287
|
+
*/
|
|
38288
|
+
export interface RagContextIds {
|
|
38289
|
+
/**
|
|
38290
|
+
* Identifier for a contact
|
|
38291
|
+
*/
|
|
38292
|
+
contactId?: number;
|
|
38293
|
+
/**
|
|
38294
|
+
* Identifier for a person
|
|
38295
|
+
*/
|
|
38296
|
+
personId?: number;
|
|
38297
|
+
/**
|
|
38298
|
+
* Identifier for a project
|
|
38299
|
+
*/
|
|
38300
|
+
projectId?: number;
|
|
38301
|
+
/**
|
|
38302
|
+
* Identifier for a selection
|
|
38303
|
+
*/
|
|
38304
|
+
selectionId?: number;
|
|
38305
|
+
/**
|
|
38306
|
+
* Identifier for an appointment
|
|
38307
|
+
*/
|
|
38308
|
+
appointmentId?: number;
|
|
38309
|
+
/**
|
|
38310
|
+
* Identifier for a document
|
|
38311
|
+
*/
|
|
38312
|
+
documentId?: number;
|
|
38313
|
+
/**
|
|
38314
|
+
* Identifier for a sale
|
|
38315
|
+
*/
|
|
38316
|
+
saleId?: number;
|
|
38317
|
+
/**
|
|
38318
|
+
* Identifier for ticket/request
|
|
38319
|
+
*/
|
|
38320
|
+
ticketId?: number;
|
|
38321
|
+
}
|
|
38129
38322
|
/**
|
|
38130
38323
|
* Contains the result of an AI search, with relevance score, document refernce, relevant text chunk.
|
|
38131
38324
|
*/
|