@superoffice/webapi 11.9.1204 → 11.11.589

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 (69) hide show
  1. package/dist/cjs/AIAgent.d.ts +80 -0
  2. package/dist/cjs/AIAgent.d.ts.map +1 -1
  3. package/dist/cjs/AIAgent.js +172 -0
  4. package/dist/cjs/AIAgent.js.map +1 -1
  5. package/dist/cjs/Carriers.d.ts +171 -4
  6. package/dist/cjs/Carriers.d.ts.map +1 -1
  7. package/dist/cjs/ConfigurationAgent.d.ts +7 -0
  8. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
  9. package/dist/cjs/ConfigurationAgent.js +24 -0
  10. package/dist/cjs/ConfigurationAgent.js.map +1 -1
  11. package/dist/cjs/Converters.d.ts +6 -0
  12. package/dist/cjs/Converters.d.ts.map +1 -1
  13. package/dist/cjs/Converters.js +123 -24
  14. package/dist/cjs/Converters.js.map +1 -1
  15. package/dist/cjs/Enums.d.ts +83 -15
  16. package/dist/cjs/Enums.d.ts.map +1 -1
  17. package/dist/cjs/Enums.js +89 -19
  18. package/dist/cjs/Enums.js.map +1 -1
  19. package/dist/cjs/MarketingAgent.d.ts +15 -0
  20. package/dist/cjs/MarketingAgent.d.ts.map +1 -1
  21. package/dist/cjs/MarketingAgent.js +33 -0
  22. package/dist/cjs/MarketingAgent.js.map +1 -1
  23. package/dist/cjs/ProjectAgent.d.ts +30 -0
  24. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  25. package/dist/cjs/ProjectAgent.js +66 -0
  26. package/dist/cjs/ProjectAgent.js.map +1 -1
  27. package/dist/cjs/TicketAgent.d.ts +8 -0
  28. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  29. package/dist/cjs/TicketAgent.js +22 -0
  30. package/dist/cjs/TicketAgent.js.map +1 -1
  31. package/dist/esm/AIAgent.d.ts +80 -0
  32. package/dist/esm/AIAgent.d.ts.map +1 -1
  33. package/dist/esm/AIAgent.js +172 -0
  34. package/dist/esm/AIAgent.js.map +1 -1
  35. package/dist/esm/Carriers.d.ts +171 -4
  36. package/dist/esm/Carriers.d.ts.map +1 -1
  37. package/dist/esm/ConfigurationAgent.d.ts +7 -0
  38. package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
  39. package/dist/esm/ConfigurationAgent.js +24 -0
  40. package/dist/esm/ConfigurationAgent.js.map +1 -1
  41. package/dist/esm/Converters.d.ts +6 -0
  42. package/dist/esm/Converters.d.ts.map +1 -1
  43. package/dist/esm/Converters.js +110 -17
  44. package/dist/esm/Converters.js.map +1 -1
  45. package/dist/esm/Enums.d.ts +83 -15
  46. package/dist/esm/Enums.d.ts.map +1 -1
  47. package/dist/esm/Enums.js +85 -15
  48. package/dist/esm/Enums.js.map +1 -1
  49. package/dist/esm/MarketingAgent.d.ts +15 -0
  50. package/dist/esm/MarketingAgent.d.ts.map +1 -1
  51. package/dist/esm/MarketingAgent.js +33 -0
  52. package/dist/esm/MarketingAgent.js.map +1 -1
  53. package/dist/esm/ProjectAgent.d.ts +30 -0
  54. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  55. package/dist/esm/ProjectAgent.js +66 -0
  56. package/dist/esm/ProjectAgent.js.map +1 -1
  57. package/dist/esm/TicketAgent.d.ts +8 -0
  58. package/dist/esm/TicketAgent.d.ts.map +1 -1
  59. package/dist/esm/TicketAgent.js +22 -0
  60. package/dist/esm/TicketAgent.js.map +1 -1
  61. package/package.json +4 -4
  62. package/src/AIAgent.ts +292 -0
  63. package/src/Carriers.ts +231 -5
  64. package/src/ConfigurationAgent.ts +30 -0
  65. package/src/Converters.ts +128 -18
  66. package/src/Enums.ts +88 -16
  67. package/src/MarketingAgent.ts +56 -0
  68. package/src/ProjectAgent.ts +112 -0
  69. package/src/TicketAgent.ts +24 -0
package/src/AIAgent.ts CHANGED
@@ -64,6 +64,16 @@ export interface IAIAgent {
64
64
  getFormDesignFromImageAsync(image: ArrayBuffer|string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
65
65
  getFormDesignFromUrlAsync(request: carriers.AI_GetFormDesignFromUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
66
66
  getFormDesignFromUrlAsync(url: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
67
+ getFormDesignCssFromImageAsync(request: carriers.AI_GetFormDesignCssFromImageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier >;
68
+ getFormDesignCssFromImageAsync(image: ArrayBuffer|string, cssClasses: string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier >;
69
+ getFormDesignCssFromUrlAsync(request: carriers.AI_GetFormDesignCssFromUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier >;
70
+ getFormDesignCssFromUrlAsync(url: string, cssClasses: string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier >;
71
+ getFirstFormDesignCssFromImageAsync(request: carriers.AI_GetFirstFormDesignCssFromImageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
72
+ getFirstFormDesignCssFromImageAsync(image: ArrayBuffer|string, cssClass: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
73
+ getFirstFormDesignCssFromUrlAsync(request: carriers.AI_GetFirstFormDesignCssFromUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
74
+ getFirstFormDesignCssFromUrlAsync(url: string, cssClass: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
75
+ getNextFormDesignCssAsync(request: carriers.AI_GetNextFormDesignCssRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
76
+ getNextFormDesignCssAsync(state: string, cssClass: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
67
77
  detectLanguageAsync(request: carriers.AI_DetectLanguageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
68
78
  detectLanguageAsync(text: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
69
79
  detectSentimentAsync(request: carriers.AI_DetectSentimentRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Sentiment >;
@@ -1134,6 +1144,288 @@ export class AIAgent extends base.WebApiBase implements IAIAgent {
1134
1144
  }
1135
1145
 
1136
1146
 
1147
+ private async _getFormDesignCssFromImageAsync(request: carriers.AI_GetFormDesignCssFromImageRequest, options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier > {
1148
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1149
+ base.WebApiBase.SetPending(options);
1150
+ return new Promise< carriers.FormDesignCarrier >(async (resolve, reject) => {
1151
+ try {
1152
+ config.baseURL = this._options.baseUrl;
1153
+ const response = await this._axios.post("GetFormDesignCssFromImage", request , config);
1154
+ base.WebApiBase.SetCompleted(options, response);
1155
+ const res : carriers.FormDesignCarrier = converters.Create_FormDesignCarrier_From( response.data );
1156
+ resolve(res);
1157
+ }
1158
+ catch( err ) {
1159
+ base.WebApiBase.HandleError(options, config, err);
1160
+ reject(err);
1161
+ }
1162
+ });
1163
+ }
1164
+
1165
+
1166
+
1167
+ /**
1168
+ * Returns Form Designer CSS based on the look of a picture
1169
+ * @param request - Image, CssClasses
1170
+ * @returns Returns CSS rules and confidence score.
1171
+ */
1172
+ public async getFormDesignCssFromImageAsync(request: carriers.AI_GetFormDesignCssFromImageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier >;
1173
+
1174
+ /**
1175
+ * Returns Form Designer CSS based on the look of a picture
1176
+ * @param image - Image data to analyze for design
1177
+ * @param cssClasses - List of CSS classes to generate styles for.
1178
+ * @returns Returns CSS rules and confidence score.
1179
+ */
1180
+ public async getFormDesignCssFromImageAsync(image: ArrayBuffer|string, cssClasses: string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier >;
1181
+
1182
+ public async getFormDesignCssFromImageAsync(image:ArrayBuffer|string|carriers.AI_GetFormDesignCssFromImageRequest, cssClasses?:string[]|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier > {
1183
+ let _request : carriers.AI_GetFormDesignCssFromImageRequest = null;
1184
+ let _options : base.WebApiRequestOptions = null;
1185
+ const first : any = image;
1186
+ if( typeof( first ) === "object" && first && ( typeof(first.image)!='undefined' || typeof(first.cssClasses)!='undefined' ) )
1187
+ {
1188
+ _request = image as carriers.AI_GetFormDesignCssFromImageRequest;
1189
+ _options = cssClasses as base.WebApiRequestOptions;
1190
+ }
1191
+ else
1192
+ {
1193
+ _request = {
1194
+ image: image as ArrayBuffer|string,
1195
+ cssClasses: cssClasses as string[],
1196
+ };
1197
+ _options = webapi_options;
1198
+ }
1199
+ _request.image = ToBase64(_request.image);
1200
+ return this._getFormDesignCssFromImageAsync( _request, _options );
1201
+ }
1202
+
1203
+
1204
+ private async _getFormDesignCssFromUrlAsync(request: carriers.AI_GetFormDesignCssFromUrlRequest, options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier > {
1205
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1206
+ base.WebApiBase.SetPending(options);
1207
+ return new Promise< carriers.FormDesignCarrier >(async (resolve, reject) => {
1208
+ try {
1209
+ config.baseURL = this._options.baseUrl;
1210
+ const response = await this._axios.post("GetFormDesignCssFromUrl", request , config);
1211
+ base.WebApiBase.SetCompleted(options, response);
1212
+ const res : carriers.FormDesignCarrier = converters.Create_FormDesignCarrier_From( response.data );
1213
+ resolve(res);
1214
+ }
1215
+ catch( err ) {
1216
+ base.WebApiBase.HandleError(options, config, err);
1217
+ reject(err);
1218
+ }
1219
+ });
1220
+ }
1221
+
1222
+
1223
+
1224
+ /**
1225
+ * Returns Form Designer properties based on the look of a web page
1226
+ * @param request - Url, CssClasses
1227
+ * @returns Returns CSS rules and confidence score.
1228
+ */
1229
+ public async getFormDesignCssFromUrlAsync(request: carriers.AI_GetFormDesignCssFromUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier >;
1230
+
1231
+ /**
1232
+ * Returns Form Designer properties based on the look of a web page
1233
+ * @param url - Url of the web page to extract style from.
1234
+ * @param cssClasses - List of CSS classes to generate styles for.
1235
+ * @returns Returns CSS rules and confidence score.
1236
+ */
1237
+ public async getFormDesignCssFromUrlAsync(url: string, cssClasses: string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier >;
1238
+
1239
+ public async getFormDesignCssFromUrlAsync(url:string|carriers.AI_GetFormDesignCssFromUrlRequest, cssClasses?:string[]|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCarrier > {
1240
+ let _request : carriers.AI_GetFormDesignCssFromUrlRequest = null;
1241
+ let _options : base.WebApiRequestOptions = null;
1242
+ const first : any = url;
1243
+ if( typeof( first ) === "object" && first && ( typeof(first.url)!='undefined' || typeof(first.cssClasses)!='undefined' ) )
1244
+ {
1245
+ _request = url as carriers.AI_GetFormDesignCssFromUrlRequest;
1246
+ _options = cssClasses as base.WebApiRequestOptions;
1247
+ }
1248
+ else
1249
+ {
1250
+ _request = {
1251
+ url: url as string,
1252
+ cssClasses: cssClasses as string[],
1253
+ };
1254
+ _options = webapi_options;
1255
+ }
1256
+ return this._getFormDesignCssFromUrlAsync( _request, _options );
1257
+ }
1258
+
1259
+
1260
+ private async _getFirstFormDesignCssFromImageAsync(request: carriers.AI_GetFirstFormDesignCssFromImageRequest, options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss > {
1261
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1262
+ base.WebApiBase.SetPending(options);
1263
+ return new Promise< carriers.FormDesignCss >(async (resolve, reject) => {
1264
+ try {
1265
+ config.baseURL = this._options.baseUrl;
1266
+ const response = await this._axios.post("GetFirstFormDesignCssFromImage", request , config);
1267
+ base.WebApiBase.SetCompleted(options, response);
1268
+ const res : carriers.FormDesignCss = converters.Create_FormDesignCss_From( response.data );
1269
+ resolve(res);
1270
+ }
1271
+ catch( err ) {
1272
+ base.WebApiBase.HandleError(options, config, err);
1273
+ reject(err);
1274
+ }
1275
+ });
1276
+ }
1277
+
1278
+
1279
+
1280
+ /**
1281
+ * Starts a form design analysis from an image, returning the properties for a single CSS class.
1282
+ * @param request - Image, CssClass
1283
+ * @returns Returns CSS properties for a single CSS class, and the internal state for the analyzer.
1284
+ */
1285
+ public async getFirstFormDesignCssFromImageAsync(request: carriers.AI_GetFirstFormDesignCssFromImageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
1286
+
1287
+ /**
1288
+ * Starts a form design analysis from an image, returning the properties for a single CSS class.
1289
+ * @param image - Image data to analyze for design
1290
+ * @param cssClass - The CSS class to generate styles for.
1291
+ * @returns Returns CSS properties for a single CSS class, and the internal state for the analyzer.
1292
+ */
1293
+ public async getFirstFormDesignCssFromImageAsync(image: ArrayBuffer|string, cssClass: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
1294
+
1295
+ public async getFirstFormDesignCssFromImageAsync(image:ArrayBuffer|string|carriers.AI_GetFirstFormDesignCssFromImageRequest, cssClass?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss > {
1296
+ let _request : carriers.AI_GetFirstFormDesignCssFromImageRequest = null;
1297
+ let _options : base.WebApiRequestOptions = null;
1298
+ const first : any = image;
1299
+ if( typeof( first ) === "object" && first && ( typeof(first.image)!='undefined' || typeof(first.cssClass)!='undefined' ) )
1300
+ {
1301
+ _request = image as carriers.AI_GetFirstFormDesignCssFromImageRequest;
1302
+ _options = cssClass as base.WebApiRequestOptions;
1303
+ }
1304
+ else
1305
+ {
1306
+ _request = {
1307
+ image: image as ArrayBuffer|string,
1308
+ cssClass: cssClass as string,
1309
+ };
1310
+ _options = webapi_options;
1311
+ }
1312
+ _request.image = ToBase64(_request.image);
1313
+ return this._getFirstFormDesignCssFromImageAsync( _request, _options );
1314
+ }
1315
+
1316
+
1317
+ private async _getFirstFormDesignCssFromUrlAsync(request: carriers.AI_GetFirstFormDesignCssFromUrlRequest, options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss > {
1318
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1319
+ base.WebApiBase.SetPending(options);
1320
+ return new Promise< carriers.FormDesignCss >(async (resolve, reject) => {
1321
+ try {
1322
+ config.baseURL = this._options.baseUrl;
1323
+ const response = await this._axios.post("GetFirstFormDesignCssFromUrl", request , config);
1324
+ base.WebApiBase.SetCompleted(options, response);
1325
+ const res : carriers.FormDesignCss = converters.Create_FormDesignCss_From( response.data );
1326
+ resolve(res);
1327
+ }
1328
+ catch( err ) {
1329
+ base.WebApiBase.HandleError(options, config, err);
1330
+ reject(err);
1331
+ }
1332
+ });
1333
+ }
1334
+
1335
+
1336
+
1337
+ /**
1338
+ * Starts a form design analysis from a URL, returning the properties for a single CSS class.
1339
+ * @param request - Url, CssClass
1340
+ * @returns Returns CSS properties for a single CSS class, and the internal state for the analyzer.
1341
+ */
1342
+ public async getFirstFormDesignCssFromUrlAsync(request: carriers.AI_GetFirstFormDesignCssFromUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
1343
+
1344
+ /**
1345
+ * Starts a form design analysis from a URL, returning the properties for a single CSS class.
1346
+ * @param url - Url of the web page to extract style from.
1347
+ * @param cssClass - The CSS class to generate styles for.
1348
+ * @returns Returns CSS properties for a single CSS class, and the internal state for the analyzer.
1349
+ */
1350
+ public async getFirstFormDesignCssFromUrlAsync(url: string, cssClass: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
1351
+
1352
+ public async getFirstFormDesignCssFromUrlAsync(url:string|carriers.AI_GetFirstFormDesignCssFromUrlRequest, cssClass?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss > {
1353
+ let _request : carriers.AI_GetFirstFormDesignCssFromUrlRequest = null;
1354
+ let _options : base.WebApiRequestOptions = null;
1355
+ const first : any = url;
1356
+ if( typeof( first ) === "object" && first && ( typeof(first.url)!='undefined' || typeof(first.cssClass)!='undefined' ) )
1357
+ {
1358
+ _request = url as carriers.AI_GetFirstFormDesignCssFromUrlRequest;
1359
+ _options = cssClass as base.WebApiRequestOptions;
1360
+ }
1361
+ else
1362
+ {
1363
+ _request = {
1364
+ url: url as string,
1365
+ cssClass: cssClass as string,
1366
+ };
1367
+ _options = webapi_options;
1368
+ }
1369
+ return this._getFirstFormDesignCssFromUrlAsync( _request, _options );
1370
+ }
1371
+
1372
+
1373
+ private async _getNextFormDesignCssAsync(request: carriers.AI_GetNextFormDesignCssRequest, options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss > {
1374
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1375
+ base.WebApiBase.SetPending(options);
1376
+ return new Promise< carriers.FormDesignCss >(async (resolve, reject) => {
1377
+ try {
1378
+ config.baseURL = this._options.baseUrl;
1379
+ const response = await this._axios.post("GetNextFormDesignCss", request , config);
1380
+ base.WebApiBase.SetCompleted(options, response);
1381
+ const res : carriers.FormDesignCss = converters.Create_FormDesignCss_From( response.data );
1382
+ resolve(res);
1383
+ }
1384
+ catch( err ) {
1385
+ base.WebApiBase.HandleError(options, config, err);
1386
+ reject(err);
1387
+ }
1388
+ });
1389
+ }
1390
+
1391
+
1392
+
1393
+ /**
1394
+ * Returns another CSS class, continuing the CSS generation, one class at a time.
1395
+ * @param request - State, CssClass
1396
+ * @returns Returns CSS properties for a single CSS class, and the updated internal state for the analyzer.
1397
+ */
1398
+ public async getNextFormDesignCssAsync(request: carriers.AI_GetNextFormDesignCssRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
1399
+
1400
+ /**
1401
+ * Returns another CSS class, continuing the CSS generation, one class at a time.
1402
+ * @param state - Internal state from the analyzer, from the previous call.
1403
+ * @param cssClass - The CSS class to generate styles for.
1404
+ * @returns Returns CSS properties for a single CSS class, and the updated internal state for the analyzer.
1405
+ */
1406
+ public async getNextFormDesignCssAsync(state: string, cssClass: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss >;
1407
+
1408
+ public async getNextFormDesignCssAsync(state:string|carriers.AI_GetNextFormDesignCssRequest, cssClass?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FormDesignCss > {
1409
+ let _request : carriers.AI_GetNextFormDesignCssRequest = null;
1410
+ let _options : base.WebApiRequestOptions = null;
1411
+ const first : any = state;
1412
+ if( typeof( first ) === "object" && first && ( typeof(first.state)!='undefined' || typeof(first.cssClass)!='undefined' ) )
1413
+ {
1414
+ _request = state as carriers.AI_GetNextFormDesignCssRequest;
1415
+ _options = cssClass as base.WebApiRequestOptions;
1416
+ }
1417
+ else
1418
+ {
1419
+ _request = {
1420
+ state: state as string,
1421
+ cssClass: cssClass as string,
1422
+ };
1423
+ _options = webapi_options;
1424
+ }
1425
+ return this._getNextFormDesignCssAsync( _request, _options );
1426
+ }
1427
+
1428
+
1137
1429
  private async _detectLanguageAsync(request: carriers.AI_DetectLanguageRequest, options?:base.WebApiRequestOptions) : Promise< string > {
1138
1430
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1139
1431
  base.WebApiBase.SetPending(options);
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"
@@ -11217,6 +11237,32 @@ export interface Project_SetCompletedRequest {
11217
11237
 
11218
11238
  // Void response...
11219
11239
 
11240
+ /**
11241
+ * Get a project entity with no project members. Project members property is always an empty array.
11242
+ * Returns ProjectEntity
11243
+ */
11244
+ export interface Project_GetProjectEntityWithoutMembersRequest {
11245
+ /**
11246
+ * The project id of the project.
11247
+ */
11248
+ projectId: number;
11249
+ }
11250
+
11251
+ // response object: ProjectEntity
11252
+
11253
+ /**
11254
+ * Save a project entity, the project members are ignored.
11255
+ * Returns ProjectEntity
11256
+ */
11257
+ export interface Project_SaveProjectEntityWithoutMembersRequest {
11258
+ /**
11259
+ * The project entity to save. Any set project members are ignored.
11260
+ */
11261
+ projectEntity: ProjectEntity;
11262
+ }
11263
+
11264
+ // response object: ProjectEntity
11265
+
11220
11266
 
11221
11267
  /**
11222
11268
  * A project that is also an event. Used by Audience
@@ -11790,6 +11836,11 @@ export interface ProjectMember extends Carrier {
11790
11836
  */
11791
11837
  updated?: Date;
11792
11838
 
11839
+ /**
11840
+ * Reserved field for Lyyti event participants.
11841
+ */
11842
+ eventParticipantStatus?: enums.ProjectMemberEventParticipantStatus;
11843
+
11793
11844
  }
11794
11845
 
11795
11846
 
@@ -26648,6 +26699,15 @@ export interface Configuration_GetAllFeatureTogglesRequest {
26648
26699
 
26649
26700
  // response object: StringBoolDictionary
26650
26701
 
26702
+ /**
26703
+ * This method will get the host name for external CS
26704
+ * Returns string
26705
+ */
26706
+ export interface Configuration_GetCsCgiUrlRequest {
26707
+ }
26708
+
26709
+ // response object: string
26710
+
26651
26711
 
26652
26712
  /**
26653
26713
  * Query object to use to fetch configruablescreendeltas matching this object
@@ -45195,6 +45255,47 @@ export interface Marketing_VerifyGoogleRecaptchaRequest {
45195
45255
  // response object: boolean
45196
45256
 
45197
45257
 
45258
+ /**
45259
+ * Carrier for FormFieldRestriction
45260
+ */
45261
+ export interface FormFieldRestriction extends Carrier {
45262
+
45263
+
45264
+ /**
45265
+ * Primary key
45266
+ */
45267
+ formFieldRestrictionId?: number;
45268
+
45269
+ /**
45270
+ * the identifier for the field
45271
+ */
45272
+ fieldIdentifier?: string;
45273
+
45274
+ /**
45275
+ * The restriction set on the field
45276
+ */
45277
+ fieldRestriction?: enums.FormFieldRestrictionType;
45278
+
45279
+ }
45280
+
45281
+
45282
+
45283
+
45284
+
45285
+
45286
+ /**
45287
+ * Sets the list of form field restrictions. Note: This list is the conclusion of what should exist in the table. Restrictions that already exists in the table are edited, new ones are added, and if they are not in this list, they will be deleted
45288
+ */
45289
+ export interface Marketing_SetAllFormFieldRestrictionsRequest {
45290
+ /**
45291
+ * All the restrictions to set. Restrictions not included, will be deleted
45292
+ */
45293
+ formFieldRestrictions: FormFieldRestriction[];
45294
+ }
45295
+
45296
+ // Void response...
45297
+
45298
+
45198
45299
  /**
45199
45300
  * Content of a Form submission
45200
45301
  */
@@ -45732,6 +45833,7 @@ export interface Marketing_DeleteMessageAndShipmentRequest {
45732
45833
 
45733
45834
 
45734
45835
 
45836
+
45735
45837
  /**
45736
45838
  * The Script Service. The service implements all services working with the CRMScript object without reference to primary keys. Primarily used by VSCode integration.
45737
45839
  */
@@ -50659,6 +50761,21 @@ export interface CopilotEntity extends Carrier {
50659
50761
  export interface FormDesignCarrier {
50660
50762
 
50661
50763
 
50764
+ /**
50765
+ * Generated CSS styles based on the analyzed design.
50766
+ */
50767
+ cssStyles?: string;
50768
+
50769
+ /**
50770
+ * Confidence score (0-1) of the design analysis.
50771
+ */
50772
+ confidence?: number;
50773
+
50774
+ /**
50775
+ * Comments on the analysis
50776
+ */
50777
+ notes?: string;
50778
+
50662
50779
  }
50663
50780
 
50664
50781
 
@@ -50692,6 +50809,120 @@ export interface AI_GetFormDesignFromUrlRequest {
50692
50809
 
50693
50810
  // response object: StringDictionary
50694
50811
 
50812
+ /**
50813
+ * Returns Form Designer CSS based on the look of a picture
50814
+ * Returns FormDesignCarrier
50815
+ */
50816
+ export interface AI_GetFormDesignCssFromImageRequest {
50817
+ /**
50818
+ * Image data to analyze for design
50819
+ */
50820
+ image: ArrayBuffer | string;
50821
+ /**
50822
+ * List of CSS classes to generate styles for.
50823
+ */
50824
+ cssClasses: string[];
50825
+ }
50826
+
50827
+ // response object: FormDesignCarrier
50828
+
50829
+ /**
50830
+ * Returns Form Designer properties based on the look of a web page
50831
+ * Returns FormDesignCarrier
50832
+ */
50833
+ export interface AI_GetFormDesignCssFromUrlRequest {
50834
+ /**
50835
+ * Url of the web page to extract style from.
50836
+ */
50837
+ url: string;
50838
+ /**
50839
+ * List of CSS classes to generate styles for.
50840
+ */
50841
+ cssClasses: string[];
50842
+ }
50843
+
50844
+ // response object: FormDesignCarrier
50845
+
50846
+
50847
+ /**
50848
+ * Forms Design CSS class analysis result. Contains the CSS properties for a single named CSS class.
50849
+ */
50850
+ export interface FormDesignCss {
50851
+
50852
+
50853
+ /**
50854
+ * The CSS Class requested. e.g. '.foo'
50855
+ */
50856
+ cssClass?: string;
50857
+
50858
+ /**
50859
+ * Generated CSS style based on the analyzed design. e.g. 'background: goldenrod; border-width: 12px; '
50860
+ */
50861
+ cssRule?: string;
50862
+
50863
+ /**
50864
+ * Internal state of the AI analyzer. Pass along in the next call to GetNextFormDesignCss. No user-maintainable parts inside. Do not eat.
50865
+ */
50866
+ state?: string;
50867
+
50868
+ }
50869
+
50870
+
50871
+
50872
+
50873
+
50874
+
50875
+ /**
50876
+ * Starts a form design analysis from an image, returning the properties for a single CSS class.
50877
+ * Returns FormDesignCss
50878
+ */
50879
+ export interface AI_GetFirstFormDesignCssFromImageRequest {
50880
+ /**
50881
+ * Image data to analyze for design
50882
+ */
50883
+ image: ArrayBuffer | string;
50884
+ /**
50885
+ * The CSS class to generate styles for.
50886
+ */
50887
+ cssClass: string;
50888
+ }
50889
+
50890
+ // response object: FormDesignCss
50891
+
50892
+ /**
50893
+ * Starts a form design analysis from a URL, returning the properties for a single CSS class.
50894
+ * Returns FormDesignCss
50895
+ */
50896
+ export interface AI_GetFirstFormDesignCssFromUrlRequest {
50897
+ /**
50898
+ * Url of the web page to extract style from.
50899
+ */
50900
+ url: string;
50901
+ /**
50902
+ * The CSS class to generate styles for.
50903
+ */
50904
+ cssClass: string;
50905
+ }
50906
+
50907
+ // response object: FormDesignCss
50908
+
50909
+ /**
50910
+ * Returns another CSS class, continuing the CSS generation, one class at a time.
50911
+ * Returns FormDesignCss
50912
+ */
50913
+ export interface AI_GetNextFormDesignCssRequest {
50914
+ /**
50915
+ * Internal state from the analyzer, from the previous call.
50916
+ */
50917
+ state: string;
50918
+ /**
50919
+ * The CSS class to generate styles for.
50920
+ */
50921
+ cssClass: string;
50922
+ }
50923
+
50924
+ // response object: FormDesignCss
50925
+
50695
50926
 
50696
50927
  /**
50697
50928
  * Sentiment information: Score (-100 to 100) and Confidence (0 to 100)
@@ -51117,11 +51348,6 @@ export interface RagStatus {
51117
51348
  */
51118
51349
  statusWebpage?: RagStatusChunks;
51119
51350
 
51120
- /**
51121
- * How many documents/chunks of type Website are in the index
51122
- */
51123
- statusWebsite?: RagStatusChunks;
51124
-
51125
51351
  }
51126
51352
 
51127
51353
 
@@ -87,6 +87,7 @@ export interface IConfigurationAgent {
87
87
  getCustomerUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
88
88
  getSpfDomainAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
89
89
  getAllFeatureTogglesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary >;
90
+ getCsCgiUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
90
91
  getDiaryViewEntityAsync(diaryViewEntityId: number) : Promise< carriers.DiaryViewEntity >;
91
92
  getSystemEventEntityAsync(systemEventEntityId: number) : Promise< carriers.SystemEventEntity >;
92
93
  existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
@@ -1778,6 +1779,35 @@ export class ConfigurationAgent extends base.WebApiBase implements IConfiguratio
1778
1779
  return this._getAllFeatureTogglesAsync(webapi_options);
1779
1780
  }
1780
1781
 
1782
+
1783
+ private async _getCsCgiUrlAsync( options?:base.WebApiRequestOptions) : Promise< string > {
1784
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1785
+ base.WebApiBase.SetPending(options);
1786
+ return new Promise< string >(async (resolve, reject) => {
1787
+ try {
1788
+ config.baseURL = this._options.baseUrl;
1789
+ const response = await this._axios.post("GetCsCgiUrl", undefined , config);
1790
+ base.WebApiBase.SetCompleted(options, response);
1791
+ const res : string = response.data as string;
1792
+ resolve(res);
1793
+ }
1794
+ catch( err ) {
1795
+ base.WebApiBase.HandleError(options, config, err);
1796
+ reject(err);
1797
+ }
1798
+ });
1799
+ }
1800
+
1801
+
1802
+ /**
1803
+ * This method will get the host name for external CS
1804
+ * @returns Will get the host name for where CS Customer Center is installed
1805
+ */
1806
+ public async getCsCgiUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
1807
+ {
1808
+ return this._getCsCgiUrlAsync(webapi_options);
1809
+ }
1810
+
1781
1811
  /**
1782
1812
  * Gets a DiaryViewEntity object.
1783
1813
  * @param diaryViewEntityId - The primary key.