@superoffice/webapi 11.9.1204 → 11.10.721
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 +32 -0
- package/dist/cjs/AIAgent.d.ts.map +1 -1
- package/dist/cjs/AIAgent.js +69 -0
- package/dist/cjs/AIAgent.js.map +1 -1
- package/dist/cjs/Carriers.d.ts +60 -4
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +40 -17
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/Enums.d.ts +52 -14
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +58 -19
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/TicketAgent.d.ts +8 -0
- package/dist/cjs/TicketAgent.d.ts.map +1 -1
- package/dist/cjs/TicketAgent.js +22 -0
- package/dist/cjs/TicketAgent.js.map +1 -1
- package/dist/esm/AIAgent.d.ts +32 -0
- package/dist/esm/AIAgent.d.ts.map +1 -1
- package/dist/esm/AIAgent.js +69 -0
- package/dist/esm/AIAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +60 -4
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +40 -17
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/Enums.d.ts +52 -14
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +54 -15
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/TicketAgent.d.ts +8 -0
- package/dist/esm/TicketAgent.d.ts.map +1 -1
- package/dist/esm/TicketAgent.js +22 -0
- package/dist/esm/TicketAgent.js.map +1 -1
- package/package.json +3 -3
- package/src/AIAgent.ts +117 -0
- package/src/Carriers.ts +74 -5
- package/src/Converters.ts +42 -18
- package/src/Enums.ts +56 -16
- package/src/TicketAgent.ts +24 -0
package/src/Carriers.ts
CHANGED
|
@@ -10785,6 +10785,16 @@ export interface Project extends Carrier {
|
|
|
10785
10785
|
*/
|
|
10786
10786
|
activeErpLinks?: number;
|
|
10787
10787
|
|
|
10788
|
+
/**
|
|
10789
|
+
* Reserved field for Lyyti event when project is linked to an event.
|
|
10790
|
+
*/
|
|
10791
|
+
eventId?: number;
|
|
10792
|
+
|
|
10793
|
+
/**
|
|
10794
|
+
* Reserved field for Lyyti event when project is linked to an event, is the event start date.
|
|
10795
|
+
*/
|
|
10796
|
+
startDate?: Date;
|
|
10797
|
+
|
|
10788
10798
|
}
|
|
10789
10799
|
|
|
10790
10800
|
|
|
@@ -10922,6 +10932,16 @@ export interface ProjectEntity extends Carrier {
|
|
|
10922
10932
|
*/
|
|
10923
10933
|
activeErpLinks?: number;
|
|
10924
10934
|
|
|
10935
|
+
/**
|
|
10936
|
+
* Reserved field for Lyyti event when project is linked to an event.
|
|
10937
|
+
*/
|
|
10938
|
+
eventId?: number;
|
|
10939
|
+
|
|
10940
|
+
/**
|
|
10941
|
+
* Reserved field for Lyyti event when project is linked to an event, is the event start date.
|
|
10942
|
+
*/
|
|
10943
|
+
startDate?: Date;
|
|
10944
|
+
|
|
10925
10945
|
/**
|
|
10926
10946
|
* Dictionary of user defined field data.
|
|
10927
10947
|
* The key string is the ProgId of the UdefField, or if the ProgId is empty it is a string of the format "SuperOffice:[UdefFieldIdentity]", e.g. "SuperOffice:1234"
|
|
@@ -11790,6 +11810,11 @@ export interface ProjectMember extends Carrier {
|
|
|
11790
11810
|
*/
|
|
11791
11811
|
updated?: Date;
|
|
11792
11812
|
|
|
11813
|
+
/**
|
|
11814
|
+
* Reserved field for Lyyti event participants.
|
|
11815
|
+
*/
|
|
11816
|
+
eventParticipantStatus?: enums.ProjectMemberEventParticipantStatus;
|
|
11817
|
+
|
|
11793
11818
|
}
|
|
11794
11819
|
|
|
11795
11820
|
|
|
@@ -50659,6 +50684,21 @@ export interface CopilotEntity extends Carrier {
|
|
|
50659
50684
|
export interface FormDesignCarrier {
|
|
50660
50685
|
|
|
50661
50686
|
|
|
50687
|
+
/**
|
|
50688
|
+
* Generated CSS styles based on the analyzed design.
|
|
50689
|
+
*/
|
|
50690
|
+
cssStyles?: string;
|
|
50691
|
+
|
|
50692
|
+
/**
|
|
50693
|
+
* Confidence score (0-1) of the design analysis.
|
|
50694
|
+
*/
|
|
50695
|
+
confidence?: number;
|
|
50696
|
+
|
|
50697
|
+
/**
|
|
50698
|
+
* Comments on the analysis
|
|
50699
|
+
*/
|
|
50700
|
+
notes?: string;
|
|
50701
|
+
|
|
50662
50702
|
}
|
|
50663
50703
|
|
|
50664
50704
|
|
|
@@ -50692,6 +50732,40 @@ export interface AI_GetFormDesignFromUrlRequest {
|
|
|
50692
50732
|
|
|
50693
50733
|
// response object: StringDictionary
|
|
50694
50734
|
|
|
50735
|
+
/**
|
|
50736
|
+
* Returns Form Designer CSS based on the look of a picture
|
|
50737
|
+
* Returns FormDesignCarrier
|
|
50738
|
+
*/
|
|
50739
|
+
export interface AI_GetFormDesignCssFromImageRequest {
|
|
50740
|
+
/**
|
|
50741
|
+
* Image data to analyze for design
|
|
50742
|
+
*/
|
|
50743
|
+
image: ArrayBuffer | string;
|
|
50744
|
+
/**
|
|
50745
|
+
* List of CSS classes to generate styles for.
|
|
50746
|
+
*/
|
|
50747
|
+
cssClasses: string[];
|
|
50748
|
+
}
|
|
50749
|
+
|
|
50750
|
+
// response object: FormDesignCarrier
|
|
50751
|
+
|
|
50752
|
+
/**
|
|
50753
|
+
* Returns Form Designer properties based on the look of a web page
|
|
50754
|
+
* Returns FormDesignCarrier
|
|
50755
|
+
*/
|
|
50756
|
+
export interface AI_GetFormDesignCssFromUrlRequest {
|
|
50757
|
+
/**
|
|
50758
|
+
* Url of the web page to extract style from.
|
|
50759
|
+
*/
|
|
50760
|
+
url: string;
|
|
50761
|
+
/**
|
|
50762
|
+
* List of CSS classes to generate styles for.
|
|
50763
|
+
*/
|
|
50764
|
+
cssClasses: string[];
|
|
50765
|
+
}
|
|
50766
|
+
|
|
50767
|
+
// response object: FormDesignCarrier
|
|
50768
|
+
|
|
50695
50769
|
|
|
50696
50770
|
/**
|
|
50697
50771
|
* Sentiment information: Score (-100 to 100) and Confidence (0 to 100)
|
|
@@ -51117,11 +51191,6 @@ export interface RagStatus {
|
|
|
51117
51191
|
*/
|
|
51118
51192
|
statusWebpage?: RagStatusChunks;
|
|
51119
51193
|
|
|
51120
|
-
/**
|
|
51121
|
-
* How many documents/chunks of type Website are in the index
|
|
51122
|
-
*/
|
|
51123
|
-
statusWebsite?: RagStatusChunks;
|
|
51124
|
-
|
|
51125
51194
|
}
|
|
51126
51195
|
|
|
51127
51196
|
|
package/src/Converters.ts
CHANGED
|
@@ -4202,6 +4202,8 @@ export function Create_Project_From(src:any) : carriers.Project {
|
|
|
4202
4202
|
res.uRLName= src.URLName as string;
|
|
4203
4203
|
res.projectNumber= src.ProjectNumber as string;
|
|
4204
4204
|
res.activeErpLinks= src.ActiveErpLinks as number;
|
|
4205
|
+
res.eventId= src.EventId as number;
|
|
4206
|
+
res.startDate= Create_Date_From(src.StartDate);
|
|
4205
4207
|
return res as carriers.Project;
|
|
4206
4208
|
}
|
|
4207
4209
|
|
|
@@ -4257,6 +4259,8 @@ export function Create_ProjectEntity_From(src:any) : carriers.ProjectEntity {
|
|
|
4257
4259
|
res.nmdAppointmentId= src.NmdAppointmentId as number;
|
|
4258
4260
|
res.endDate= Create_Date_From(src.EndDate);
|
|
4259
4261
|
res.activeErpLinks= src.ActiveErpLinks as number;
|
|
4262
|
+
res.eventId= src.EventId as number;
|
|
4263
|
+
res.startDate= Create_Date_From(src.StartDate);
|
|
4260
4264
|
res.userDefinedFields= src.UserDefinedFields as carriers.StringDictionary;
|
|
4261
4265
|
res.extraFields= src.ExtraFields as carriers.StringDictionary;
|
|
4262
4266
|
res.customFields= src.CustomFields as carriers.StringDictionary;
|
|
@@ -4434,6 +4438,7 @@ export function Create_ProjectMember_From(src:any) : carriers.ProjectMember {
|
|
|
4434
4438
|
res.fullName= src.FullName as string;
|
|
4435
4439
|
res.registered= Create_Date_From(src.Registered);
|
|
4436
4440
|
res.updated= Create_Date_From(src.Updated);
|
|
4441
|
+
res.eventParticipantStatus= enums.ProjectMemberEventParticipantStatus[src.EventParticipantStatus];
|
|
4437
4442
|
return res as carriers.ProjectMember;
|
|
4438
4443
|
}
|
|
4439
4444
|
|
|
@@ -18361,6 +18366,9 @@ export function Create_FormDesignCarrier_From(src:any) : carriers.FormDesignCarr
|
|
|
18361
18366
|
return null;
|
|
18362
18367
|
let res : any = { };
|
|
18363
18368
|
|
|
18369
|
+
res.cssStyles= src.CssStyles as string;
|
|
18370
|
+
res.confidence= src.Confidence as number;
|
|
18371
|
+
res.notes= src.Notes as string;
|
|
18364
18372
|
return res as carriers.FormDesignCarrier;
|
|
18365
18373
|
}
|
|
18366
18374
|
|
|
@@ -18578,7 +18586,6 @@ export function Create_RagStatus_From(src:any) : carriers.RagStatus {
|
|
|
18578
18586
|
res.statusProduct= Create_RagStatusChunks_From(src.StatusProduct);
|
|
18579
18587
|
res.statusTicket= Create_RagStatusChunks_From(src.StatusTicket);
|
|
18580
18588
|
res.statusWebpage= Create_RagStatusChunks_From(src.StatusWebpage);
|
|
18581
|
-
res.statusWebsite= Create_RagStatusChunks_From(src.StatusWebsite);
|
|
18582
18589
|
return res as carriers.RagStatus;
|
|
18583
18590
|
}
|
|
18584
18591
|
|
|
@@ -20125,6 +20132,23 @@ function Create_AppointmentExternalOwner_From(src:any): enums.AppointmentExterna
|
|
|
20125
20132
|
}
|
|
20126
20133
|
|
|
20127
20134
|
|
|
20135
|
+
function Create_ConfigType_From(src:any): enums.ConfigType | enums.ConfigType[] {
|
|
20136
|
+
if (!src) return null;
|
|
20137
|
+
|
|
20138
|
+
if (Array.isArray(src)) {
|
|
20139
|
+
let result: enums.ConfigType[] = Array<enums.ConfigType>();
|
|
20140
|
+
for (const i in (src as enums.ConfigType[])) {
|
|
20141
|
+
let r = enums.ConfigType[src[i]] as enums.ConfigType;
|
|
20142
|
+
result.push(r);
|
|
20143
|
+
}
|
|
20144
|
+
return result;
|
|
20145
|
+
} else {
|
|
20146
|
+
let r = enums.ConfigType[src] as enums.ConfigType;
|
|
20147
|
+
return r;
|
|
20148
|
+
}
|
|
20149
|
+
}
|
|
20150
|
+
|
|
20151
|
+
|
|
20128
20152
|
function Create_ExternallyOwnedType_From(src:any): enums.ExternallyOwnedType | enums.ExternallyOwnedType[] {
|
|
20129
20153
|
if (!src) return null;
|
|
20130
20154
|
|
|
@@ -22902,6 +22926,23 @@ function Create_CategoryUpdateTrigger_From(src:any): enums.CategoryUpdateTrigger
|
|
|
22902
22926
|
}
|
|
22903
22927
|
|
|
22904
22928
|
|
|
22929
|
+
function Create_ProjectMemberEventParticipantStatus_From(src:any): enums.ProjectMemberEventParticipantStatus | enums.ProjectMemberEventParticipantStatus[] {
|
|
22930
|
+
if (!src) return null;
|
|
22931
|
+
|
|
22932
|
+
if (Array.isArray(src)) {
|
|
22933
|
+
let result: enums.ProjectMemberEventParticipantStatus[] = Array<enums.ProjectMemberEventParticipantStatus>();
|
|
22934
|
+
for (const i in (src as enums.ProjectMemberEventParticipantStatus[])) {
|
|
22935
|
+
let r = enums.ProjectMemberEventParticipantStatus[src[i]] as enums.ProjectMemberEventParticipantStatus;
|
|
22936
|
+
result.push(r);
|
|
22937
|
+
}
|
|
22938
|
+
return result;
|
|
22939
|
+
} else {
|
|
22940
|
+
let r = enums.ProjectMemberEventParticipantStatus[src] as enums.ProjectMemberEventParticipantStatus;
|
|
22941
|
+
return r;
|
|
22942
|
+
}
|
|
22943
|
+
}
|
|
22944
|
+
|
|
22945
|
+
|
|
22905
22946
|
function Create_EventHandlerType_From(src:any): enums.EventHandlerType | enums.EventHandlerType[] {
|
|
22906
22947
|
if (!src) return null;
|
|
22907
22948
|
|
|
@@ -23392,23 +23433,6 @@ function Create_ChatSessionFlags_From(src:any): enums.ChatSessionFlags | enums.C
|
|
|
23392
23433
|
}
|
|
23393
23434
|
|
|
23394
23435
|
|
|
23395
|
-
function Create_ConfigType_From(src:any): enums.ConfigType | enums.ConfigType[] {
|
|
23396
|
-
if (!src) return null;
|
|
23397
|
-
|
|
23398
|
-
if (Array.isArray(src)) {
|
|
23399
|
-
let result: enums.ConfigType[] = Array<enums.ConfigType>();
|
|
23400
|
-
for (const i in (src as enums.ConfigType[])) {
|
|
23401
|
-
let r = enums.ConfigType[src[i]] as enums.ConfigType;
|
|
23402
|
-
result.push(r);
|
|
23403
|
-
}
|
|
23404
|
-
return result;
|
|
23405
|
-
} else {
|
|
23406
|
-
let r = enums.ConfigType[src] as enums.ConfigType;
|
|
23407
|
-
return r;
|
|
23408
|
-
}
|
|
23409
|
-
}
|
|
23410
|
-
|
|
23411
|
-
|
|
23412
23436
|
function Create_FormType_From(src:any): enums.FormType | enums.FormType[] {
|
|
23413
23437
|
if (!src) return null;
|
|
23414
23438
|
|
package/src/Enums.ts
CHANGED
|
@@ -67,6 +67,30 @@
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Value for field 'type' in table 'cust_config'.
|
|
72
|
+
* This Enum is used by: cust_config.type
|
|
73
|
+
*/
|
|
74
|
+
export enum ConfigType {
|
|
75
|
+
/**
|
|
76
|
+
* 0: The row contains customer center style data
|
|
77
|
+
*/
|
|
78
|
+
Style = "Style",
|
|
79
|
+
/**
|
|
80
|
+
* 1: The row contains customer center options data
|
|
81
|
+
*/
|
|
82
|
+
Options = "Options",
|
|
83
|
+
/**
|
|
84
|
+
* 10: The row contains subscriptions style data
|
|
85
|
+
*/
|
|
86
|
+
SubscriptionsStyle = "SubscriptionsStyle",
|
|
87
|
+
/**
|
|
88
|
+
* 11: The row contains subscriptions options data
|
|
89
|
+
*/
|
|
90
|
+
SubscriptionsOptions = "SubscriptionsOptions",
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
70
94
|
/**
|
|
71
95
|
* Type of participant of an externally owned appointment
|
|
72
96
|
*/
|
|
@@ -5596,6 +5620,38 @@
|
|
|
5596
5620
|
}
|
|
5597
5621
|
|
|
5598
5622
|
|
|
5623
|
+
/**
|
|
5624
|
+
* Enum for project member event participant status from Lyyti.
|
|
5625
|
+
* This Enum is used by: projectmember.event_participant_status
|
|
5626
|
+
*/
|
|
5627
|
+
export enum ProjectMemberEventParticipantStatus {
|
|
5628
|
+
/**
|
|
5629
|
+
* 0: Not an event
|
|
5630
|
+
*/
|
|
5631
|
+
NotAnEvent = "NotAnEvent",
|
|
5632
|
+
/**
|
|
5633
|
+
* 1: Not reacted yet
|
|
5634
|
+
*/
|
|
5635
|
+
NotReacted = "NotReacted",
|
|
5636
|
+
/**
|
|
5637
|
+
* 2: Declined
|
|
5638
|
+
*/
|
|
5639
|
+
ReactedNo = "ReactedNo",
|
|
5640
|
+
/**
|
|
5641
|
+
* 3: Registered
|
|
5642
|
+
*/
|
|
5643
|
+
ReactedYes = "ReactedYes",
|
|
5644
|
+
/**
|
|
5645
|
+
* 4: Attended
|
|
5646
|
+
*/
|
|
5647
|
+
Show = "Show",
|
|
5648
|
+
/**
|
|
5649
|
+
* 5: No show
|
|
5650
|
+
*/
|
|
5651
|
+
NoShow = "NoShow",
|
|
5652
|
+
}
|
|
5653
|
+
|
|
5654
|
+
|
|
5599
5655
|
/**
|
|
5600
5656
|
* CrmScript Event triggers - when CRMScript is run based on user or system actions.
|
|
5601
5657
|
*/
|
|
@@ -6790,22 +6846,6 @@
|
|
|
6790
6846
|
}
|
|
6791
6847
|
|
|
6792
6848
|
|
|
6793
|
-
/**
|
|
6794
|
-
* Value for field 'type' in table 'cust_config'.
|
|
6795
|
-
* This Enum is used by: cust_config.type
|
|
6796
|
-
*/
|
|
6797
|
-
export enum ConfigType {
|
|
6798
|
-
/**
|
|
6799
|
-
* 0: The row contains style data
|
|
6800
|
-
*/
|
|
6801
|
-
Style = "Style",
|
|
6802
|
-
/**
|
|
6803
|
-
* 1: The row contains options data
|
|
6804
|
-
*/
|
|
6805
|
-
Options = "Options",
|
|
6806
|
-
}
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
6849
|
/**
|
|
6810
6850
|
* What kind of form is this
|
|
6811
6851
|
* This Enum is used by: form.type
|
package/src/TicketAgent.ts
CHANGED
|
@@ -152,6 +152,7 @@ export interface ITicketAgent {
|
|
|
152
152
|
deleteMessageHeadersAsync(headerIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
153
153
|
getTicketMessageWithOptionsAsync(request: carriers.Ticket_GetTicketMessageWithOptionsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketMessageEntity >;
|
|
154
154
|
getTicketMessageWithOptionsAsync(ticketMessageEntityId: number, includeNonInlineAttachmentsInfo: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketMessageEntity >;
|
|
155
|
+
getTicketRelationEntityAsync(ticketRelationEntityId: number) : Promise< carriers.TicketRelationEntity >;
|
|
155
156
|
getTicketSummariesAsync(request: carriers.Ticket_GetTicketSummariesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketSummaryItem[] >;
|
|
156
157
|
getTicketSummariesAsync(ticketIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketSummaryItem[] >;
|
|
157
158
|
} // interface ITicketAgent
|
|
@@ -3649,6 +3650,29 @@ export class TicketAgent extends base.WebApiBase implements ITicketAgent {
|
|
|
3649
3650
|
return this._getTicketMessageWithOptionsAsync( _request, _options );
|
|
3650
3651
|
}
|
|
3651
3652
|
|
|
3653
|
+
/**
|
|
3654
|
+
* Gets a TicketRelationEntity object.
|
|
3655
|
+
* @param ticketRelationEntityId - The primary key.
|
|
3656
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
3657
|
+
* @returns A single TicketRelationEntity
|
|
3658
|
+
*/
|
|
3659
|
+
public async getTicketRelationEntityAsync(ticketRelationEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationEntity > {
|
|
3660
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
3661
|
+
base.WebApiBase.SetPending(options);
|
|
3662
|
+
return new Promise< carriers.TicketRelationEntity >(async (resolve, reject) => {
|
|
3663
|
+
try {
|
|
3664
|
+
const response = await this._axios.post("GetTicketRelationEntity?ticketRelationEntityId=" + ticketRelationEntityId, null, config);
|
|
3665
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
3666
|
+
const res = converters.Create_TicketRelationEntity_From( response.data );
|
|
3667
|
+
resolve(res);
|
|
3668
|
+
}
|
|
3669
|
+
catch( err ) {
|
|
3670
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
3671
|
+
reject(err);
|
|
3672
|
+
}
|
|
3673
|
+
});
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3652
3676
|
|
|
3653
3677
|
private async _getTicketSummariesAsync(request: carriers.Ticket_GetTicketSummariesRequest, options?:base.WebApiRequestOptions) : Promise< carriers.TicketSummaryItem[] > {
|
|
3654
3678
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|