@superoffice/webapi 11.1.447 → 11.2.694
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 +83 -0
- package/dist/cjs/AIAgent.d.ts.map +1 -1
- package/dist/cjs/AIAgent.js +173 -0
- package/dist/cjs/AIAgent.js.map +1 -1
- package/dist/cjs/Carriers.d.ts +187 -1
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ContactAgent.d.ts +33 -2
- package/dist/cjs/ContactAgent.d.ts.map +1 -1
- package/dist/cjs/ContactAgent.js +67 -0
- package/dist/cjs/ContactAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +12 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +155 -15
- 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/Enums.d.ts +34 -1
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +36 -2
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/esm/AIAgent.d.ts +83 -0
- package/dist/esm/AIAgent.d.ts.map +1 -1
- package/dist/esm/AIAgent.js +173 -0
- package/dist/esm/AIAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +187 -1
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ContactAgent.d.ts +33 -2
- package/dist/esm/ContactAgent.d.ts.map +1 -1
- package/dist/esm/ContactAgent.js +67 -0
- package/dist/esm/ContactAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +12 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +128 -0
- 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/Enums.d.ts +34 -1
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +34 -0
- package/dist/esm/Enums.js.map +1 -1
- package/package.json +3 -3
- package/src/AIAgent.ts +296 -0
- package/src/Carriers.ts +263 -1
- package/src/ContactAgent.ts +116 -2
- package/src/Converters.ts +160 -0
- package/src/DiagnosticsAgent.ts +30 -0
- package/src/Enums.ts +35 -0
package/src/DiagnosticsAgent.ts
CHANGED
|
@@ -55,6 +55,7 @@ export interface IDiagnosticsAgent {
|
|
|
55
55
|
getSystemMessagesAsync(request: carriers.Diagnostics_GetSystemMessagesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SystemMessage[] >;
|
|
56
56
|
getSystemMessagesAsync(associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SystemMessage[] >;
|
|
57
57
|
removeExpiredSystemMessagesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
58
|
+
getNextTableNumberAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
58
59
|
performTasksAfterUpgradeAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
59
60
|
performTasksAfterCustomObjectTableDeletedAsync(request: carriers.Diagnostics_PerformTasksAfterCustomObjectTableDeletedRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
60
61
|
performTasksAfterCustomObjectTableDeletedAsync(tableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
@@ -897,6 +898,35 @@ export class DiagnosticsAgent extends base.WebApiBase implements IDiagnosticsAge
|
|
|
897
898
|
}
|
|
898
899
|
|
|
899
900
|
|
|
901
|
+
private async _getNextTableNumberAsync( options?:base.WebApiRequestOptions) : Promise< number > {
|
|
902
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
903
|
+
base.WebApiBase.SetPending(options);
|
|
904
|
+
return new Promise< number >(async (resolve, reject) => {
|
|
905
|
+
try {
|
|
906
|
+
config.baseURL = this._options.baseUrl;
|
|
907
|
+
const response = await this._axios.post("GetNextTableNumber", undefined , config);
|
|
908
|
+
base.WebApiBase.SetCompleted(options);
|
|
909
|
+
const res : number = response.data as number;
|
|
910
|
+
resolve(res);
|
|
911
|
+
}
|
|
912
|
+
catch( err ) {
|
|
913
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
914
|
+
reject(err);
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Increment save and return NextTableNumber, to be used when creating new extra table
|
|
922
|
+
* @returns NextTableNumber of DatabaseModel
|
|
923
|
+
*/
|
|
924
|
+
public async getNextTableNumberAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >
|
|
925
|
+
{
|
|
926
|
+
return this._getNextTableNumberAsync(webapi_options);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
|
|
900
930
|
private async _performTasksAfterUpgradeAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
901
931
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
902
932
|
base.WebApiBase.SetPending(options);
|
package/src/Enums.ts
CHANGED
|
@@ -3292,6 +3292,10 @@
|
|
|
3292
3292
|
* 14: RunScript
|
|
3293
3293
|
*/
|
|
3294
3294
|
RunScript = "RunScript",
|
|
3295
|
+
/**
|
|
3296
|
+
* 15: DistributeToOwner
|
|
3297
|
+
*/
|
|
3298
|
+
DistributeToOwner = "DistributeToOwner",
|
|
3295
3299
|
}
|
|
3296
3300
|
|
|
3297
3301
|
|
|
@@ -5301,6 +5305,37 @@
|
|
|
5301
5305
|
}
|
|
5302
5306
|
|
|
5303
5307
|
|
|
5308
|
+
/**
|
|
5309
|
+
* AI RAG Content types
|
|
5310
|
+
*/
|
|
5311
|
+
export enum RagType {
|
|
5312
|
+
/**
|
|
5313
|
+
* 0: None - unknown type
|
|
5314
|
+
*/
|
|
5315
|
+
None = "None",
|
|
5316
|
+
/**
|
|
5317
|
+
* 1: Ticket - request messages
|
|
5318
|
+
*/
|
|
5319
|
+
Ticket = "Ticket",
|
|
5320
|
+
/**
|
|
5321
|
+
* 2: Webpage - one or more web pages
|
|
5322
|
+
*/
|
|
5323
|
+
Webpage = "Webpage",
|
|
5324
|
+
/**
|
|
5325
|
+
* 3: Document - Docx/pptx/rtf/txt documents
|
|
5326
|
+
*/
|
|
5327
|
+
Document = "Document",
|
|
5328
|
+
/**
|
|
5329
|
+
* 4: FAQ - Knowledge base entries
|
|
5330
|
+
*/
|
|
5331
|
+
FAQ = "FAQ",
|
|
5332
|
+
/**
|
|
5333
|
+
* 5: Product - product info from pricelists
|
|
5334
|
+
*/
|
|
5335
|
+
Product = "Product",
|
|
5336
|
+
}
|
|
5337
|
+
|
|
5338
|
+
|
|
5304
5339
|
/**
|
|
5305
5340
|
* HTML sanitizer options
|
|
5306
5341
|
* This Enum consists of flag values that can be combined.
|