@superoffice/webapi 10.5.5 → 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/BLOBAgent.d.ts +0 -31
- package/dist/cjs/BLOBAgent.d.ts.map +1 -1
- package/dist/cjs/BLOBAgent.js +0 -67
- package/dist/cjs/BLOBAgent.js.map +1 -1
- package/dist/cjs/Carriers.d.ts +257 -1075
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +14 -0
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +48 -0
- package/dist/cjs/ConfigurationAgent.js.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 +15 -39
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +174 -570
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/CustomerServiceAgent.d.ts +0 -16
- package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/cjs/CustomerServiceAgent.js +0 -44
- package/dist/cjs/CustomerServiceAgent.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 +5 -5
- package/dist/cjs/EMailAgent.js +1 -1
- package/dist/cjs/Enums.d.ts +34 -244
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +38 -254
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/FreeTextAgent.d.ts +0 -67
- package/dist/cjs/FreeTextAgent.d.ts.map +1 -1
- package/dist/cjs/FreeTextAgent.js +0 -156
- package/dist/cjs/FreeTextAgent.js.map +1 -1
- package/dist/cjs/LicenseAgent.d.ts +22 -0
- package/dist/cjs/LicenseAgent.d.ts.map +1 -1
- package/dist/cjs/LicenseAgent.js +57 -0
- package/dist/cjs/LicenseAgent.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +18 -18
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +15 -15
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/NavigatorAgent.d.ts +0 -8
- package/dist/cjs/NavigatorAgent.d.ts.map +1 -1
- package/dist/cjs/NavigatorAgent.js +0 -22
- package/dist/cjs/NavigatorAgent.js.map +1 -1
- package/dist/cjs/PersonAgent.d.ts +18 -0
- package/dist/cjs/PersonAgent.d.ts.map +1 -1
- package/dist/cjs/PersonAgent.js +36 -0
- package/dist/cjs/PersonAgent.js.map +1 -1
- package/dist/cjs/QuoteAgent.d.ts +0 -48
- package/dist/cjs/QuoteAgent.d.ts.map +1 -1
- package/dist/cjs/QuoteAgent.js +0 -118
- package/dist/cjs/QuoteAgent.js.map +1 -1
- package/dist/cjs/ReportAgent.d.ts +0 -121
- package/dist/cjs/ReportAgent.d.ts.map +1 -1
- package/dist/cjs/ReportAgent.js +0 -271
- package/dist/cjs/ReportAgent.js.map +1 -1
- package/dist/cjs/SelectionAgent.d.ts +0 -46
- package/dist/cjs/SelectionAgent.d.ts.map +1 -1
- package/dist/cjs/SelectionAgent.js +0 -110
- package/dist/cjs/SelectionAgent.js.map +1 -1
- package/dist/cjs/ViewStateAgent.d.ts +22 -22
- package/dist/cjs/ViewStateAgent.d.ts.map +1 -1
- package/dist/cjs/ViewStateAgent.js +57 -57
- package/dist/cjs/ViewStateAgent.js.map +1 -1
- package/dist/cjs/WebApi.d.ts +0 -18
- package/dist/cjs/WebApi.d.ts.map +1 -1
- package/dist/cjs/WebApi.js +2 -29
- package/dist/cjs/WebApi.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/BLOBAgent.d.ts +0 -31
- package/dist/esm/BLOBAgent.d.ts.map +1 -1
- package/dist/esm/BLOBAgent.js +0 -67
- package/dist/esm/BLOBAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +257 -1075
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +14 -0
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +48 -0
- package/dist/esm/ConfigurationAgent.js.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 +15 -39
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +134 -505
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/CustomerServiceAgent.d.ts +0 -16
- package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/esm/CustomerServiceAgent.js +0 -44
- package/dist/esm/CustomerServiceAgent.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 +5 -5
- package/dist/esm/EMailAgent.js +1 -1
- package/dist/esm/Enums.d.ts +34 -244
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +34 -250
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/FreeTextAgent.d.ts +0 -67
- package/dist/esm/FreeTextAgent.d.ts.map +1 -1
- package/dist/esm/FreeTextAgent.js +0 -156
- package/dist/esm/FreeTextAgent.js.map +1 -1
- package/dist/esm/LicenseAgent.d.ts +22 -0
- package/dist/esm/LicenseAgent.d.ts.map +1 -1
- package/dist/esm/LicenseAgent.js +57 -0
- package/dist/esm/LicenseAgent.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +18 -18
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +15 -15
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/NavigatorAgent.d.ts +0 -8
- package/dist/esm/NavigatorAgent.d.ts.map +1 -1
- package/dist/esm/NavigatorAgent.js +0 -22
- package/dist/esm/NavigatorAgent.js.map +1 -1
- package/dist/esm/PersonAgent.d.ts +18 -0
- package/dist/esm/PersonAgent.d.ts.map +1 -1
- package/dist/esm/PersonAgent.js +36 -0
- package/dist/esm/PersonAgent.js.map +1 -1
- package/dist/esm/QuoteAgent.d.ts +0 -48
- package/dist/esm/QuoteAgent.d.ts.map +1 -1
- package/dist/esm/QuoteAgent.js +0 -118
- package/dist/esm/QuoteAgent.js.map +1 -1
- package/dist/esm/ReportAgent.d.ts +0 -121
- package/dist/esm/ReportAgent.d.ts.map +1 -1
- package/dist/esm/ReportAgent.js +0 -271
- package/dist/esm/ReportAgent.js.map +1 -1
- package/dist/esm/SelectionAgent.d.ts +0 -46
- package/dist/esm/SelectionAgent.d.ts.map +1 -1
- package/dist/esm/SelectionAgent.js +0 -110
- package/dist/esm/SelectionAgent.js.map +1 -1
- package/dist/esm/ViewStateAgent.d.ts +22 -22
- package/dist/esm/ViewStateAgent.d.ts.map +1 -1
- package/dist/esm/ViewStateAgent.js +57 -57
- package/dist/esm/ViewStateAgent.js.map +1 -1
- package/dist/esm/WebApi.d.ts +0 -18
- package/dist/esm/WebApi.d.ts.map +1 -1
- package/dist/esm/WebApi.js +0 -27
- package/dist/esm/WebApi.js.map +1 -1
- package/package.json +3 -3
- package/src/AIAgent.ts +296 -0
- package/src/BLOBAgent.ts +0 -114
- package/src/Carriers.ts +357 -1459
- package/src/ConfigurationAgent.ts +60 -0
- package/src/ContactAgent.ts +116 -2
- package/src/Converters.ts +175 -622
- package/src/CustomerServiceAgent.ts +0 -47
- package/src/DiagnosticsAgent.ts +30 -0
- package/src/EMailAgent.ts +5 -5
- package/src/Enums.ts +35 -257
- package/src/FreeTextAgent.ts +0 -254
- package/src/LicenseAgent.ts +86 -0
- package/src/ListAgent.ts +34 -34
- package/src/NavigatorAgent.ts +0 -24
- package/src/PersonAgent.ts +62 -0
- package/src/QuoteAgent.ts +0 -193
- package/src/ReportAgent.ts +0 -421
- package/src/SelectionAgent.ts +0 -160
- package/src/ViewStateAgent.ts +86 -86
- package/src/WebApi.ts +0 -36
- package/dist/cjs/AudienceAgent.d.ts +0 -376
- package/dist/cjs/AudienceAgent.d.ts.map +0 -1
- package/dist/cjs/AudienceAgent.js +0 -888
- package/dist/cjs/AudienceAgent.js.map +0 -1
- package/dist/cjs/DashboardAgent.d.ts +0 -197
- package/dist/cjs/DashboardAgent.d.ts.map +0 -1
- package/dist/cjs/DashboardAgent.js +0 -436
- package/dist/cjs/DashboardAgent.js.map +0 -1
- package/dist/cjs/ReplicationAgent.d.ts +0 -101
- package/dist/cjs/ReplicationAgent.d.ts.map +0 -1
- package/dist/cjs/ReplicationAgent.js +0 -223
- package/dist/cjs/ReplicationAgent.js.map +0 -1
- package/dist/esm/AudienceAgent.d.ts +0 -376
- package/dist/esm/AudienceAgent.d.ts.map +0 -1
- package/dist/esm/AudienceAgent.js +0 -883
- package/dist/esm/AudienceAgent.js.map +0 -1
- package/dist/esm/DashboardAgent.d.ts +0 -197
- package/dist/esm/DashboardAgent.d.ts.map +0 -1
- package/dist/esm/DashboardAgent.js +0 -431
- package/dist/esm/DashboardAgent.js.map +0 -1
- package/dist/esm/ReplicationAgent.d.ts +0 -101
- package/dist/esm/ReplicationAgent.d.ts.map +0 -1
- package/dist/esm/ReplicationAgent.js +0 -218
- package/dist/esm/ReplicationAgent.js.map +0 -1
- package/src/AudienceAgent.ts +0 -1430
- package/src/DashboardAgent.ts +0 -658
- package/src/ReplicationAgent.ts +0 -325
package/src/FreeTextAgent.ts
CHANGED
|
@@ -30,19 +30,10 @@ export interface IFreeTextAgent {
|
|
|
30
30
|
getStatusAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FreeText >;
|
|
31
31
|
setEnabledAsync(request: carriers.FreeText_SetEnabledRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
32
32
|
setEnabledAsync(enabled: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
33
|
-
setAutoEnableTravelAreasAsync(request: carriers.FreeText_SetAutoEnableTravelAreasRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
34
|
-
setAutoEnableTravelAreasAsync(autoEnable: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
35
33
|
setSingleWordOperatorAsync(request: carriers.FreeText_SetSingleWordOperatorRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
36
34
|
setSingleWordOperatorAsync(freeTextOperator: enums.FreeTextOperator, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
37
35
|
setMultiWordOperatorAsync(request: carriers.FreeText_SetMultiWordOperatorRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
38
36
|
setMultiWordOperatorAsync(freeTextOperator: enums.FreeTextOperator, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
39
|
-
getStopWordListAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >;
|
|
40
|
-
addWordsAsync(request: carriers.FreeText_AddWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
41
|
-
addWordsAsync(stopWords: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
42
|
-
deleteStopWordsByIdAsync(request: carriers.FreeText_DeleteStopWordsByIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
43
|
-
deleteStopWordsByIdAsync(stopWordIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
44
|
-
getSuggestedStopWordsAsync(request: carriers.FreeText_GetSuggestedStopWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
|
|
45
|
-
getSuggestedStopWordsAsync(countWords: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
|
|
46
37
|
regenerateIndexAsync(request: carriers.FreeText_RegenerateIndexRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BatchTaskInfo >;
|
|
47
38
|
regenerateIndexAsync(runAsBatch: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BatchTaskInfo >;
|
|
48
39
|
freetextIndexRowsAsync(request: carriers.FreeText_FreetextIndexRowsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
@@ -159,60 +150,6 @@ export class FreeTextAgent extends base.WebApiBase implements IFreeTextAgent {
|
|
|
159
150
|
}
|
|
160
151
|
|
|
161
152
|
|
|
162
|
-
private async _setAutoEnableTravelAreasAsync(request: carriers.FreeText_SetAutoEnableTravelAreasRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
163
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
164
|
-
base.WebApiBase.SetPending(options);
|
|
165
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
166
|
-
try {
|
|
167
|
-
config.baseURL = this._options.baseUrl;
|
|
168
|
-
const response = await this._axios.post("SetAutoEnableTravelAreas", request , config);
|
|
169
|
-
base.WebApiBase.SetCompleted(options);
|
|
170
|
-
const res = response.data;
|
|
171
|
-
resolve(res);
|
|
172
|
-
}
|
|
173
|
-
catch( err ) {
|
|
174
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
175
|
-
reject(err);
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Automatically enable freetext search for new travel areas? true or false
|
|
184
|
-
* @param request - AutoEnable
|
|
185
|
-
* @returns This method has no return value
|
|
186
|
-
*/
|
|
187
|
-
public async setAutoEnableTravelAreasAsync(request: carriers.FreeText_SetAutoEnableTravelAreasRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Automatically enable freetext search for new travel areas? true or false
|
|
191
|
-
* @param autoEnable - If true, auto enable
|
|
192
|
-
* @returns This method has no return value
|
|
193
|
-
*/
|
|
194
|
-
public async setAutoEnableTravelAreasAsync(autoEnable: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
195
|
-
|
|
196
|
-
public async setAutoEnableTravelAreasAsync(autoEnable:boolean|carriers.FreeText_SetAutoEnableTravelAreasRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
197
|
-
let _request : carriers.FreeText_SetAutoEnableTravelAreasRequest = null;
|
|
198
|
-
let _options : base.WebApiRequestOptions = null;
|
|
199
|
-
const first : any = autoEnable;
|
|
200
|
-
if( typeof( first ) === "object" && first && ( typeof(first.autoEnable)!='undefined' ) )
|
|
201
|
-
{
|
|
202
|
-
_request = autoEnable as carriers.FreeText_SetAutoEnableTravelAreasRequest;
|
|
203
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
204
|
-
}
|
|
205
|
-
else
|
|
206
|
-
{
|
|
207
|
-
_request = {
|
|
208
|
-
autoEnable: autoEnable as boolean,
|
|
209
|
-
};
|
|
210
|
-
_options = webapi_options;
|
|
211
|
-
}
|
|
212
|
-
return this._setAutoEnableTravelAreasAsync( _request, _options );
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
153
|
private async _setSingleWordOperatorAsync(request: carriers.FreeText_SetSingleWordOperatorRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
217
154
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
218
155
|
base.WebApiBase.SetPending(options);
|
|
@@ -321,197 +258,6 @@ export class FreeTextAgent extends base.WebApiBase implements IFreeTextAgent {
|
|
|
321
258
|
}
|
|
322
259
|
|
|
323
260
|
|
|
324
|
-
private async _getStopWordListAsync( options?:base.WebApiRequestOptions) : Promise< string[] > {
|
|
325
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
326
|
-
base.WebApiBase.SetPending(options);
|
|
327
|
-
return new Promise< string[] >(async (resolve, reject) => {
|
|
328
|
-
try {
|
|
329
|
-
config.baseURL = this._options.baseUrl;
|
|
330
|
-
const response = await this._axios.post("GetStopWordList", undefined , config);
|
|
331
|
-
base.WebApiBase.SetCompleted(options);
|
|
332
|
-
const res : string[] = response.data as string[];
|
|
333
|
-
resolve(res);
|
|
334
|
-
}
|
|
335
|
-
catch( err ) {
|
|
336
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
337
|
-
reject(err);
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Returns the list of stop words
|
|
345
|
-
* @returns The list of stop words
|
|
346
|
-
*/
|
|
347
|
-
public async getStopWordListAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >
|
|
348
|
-
{
|
|
349
|
-
return this._getStopWordListAsync(webapi_options);
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
private async _addWordsAsync(request: carriers.FreeText_AddWordsRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
354
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
355
|
-
base.WebApiBase.SetPending(options);
|
|
356
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
357
|
-
try {
|
|
358
|
-
config.baseURL = this._options.baseUrl;
|
|
359
|
-
const response = await this._axios.post("AddWords", request , config);
|
|
360
|
-
base.WebApiBase.SetCompleted(options);
|
|
361
|
-
const res = response.data;
|
|
362
|
-
resolve(res);
|
|
363
|
-
}
|
|
364
|
-
catch( err ) {
|
|
365
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
366
|
-
reject(err);
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* Adds the words in the string to the stop word list
|
|
375
|
-
* @param request - StopWords
|
|
376
|
-
* @returns This method has no return value
|
|
377
|
-
*/
|
|
378
|
-
public async addWordsAsync(request: carriers.FreeText_AddWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Adds the words in the string to the stop word list
|
|
382
|
-
* @param stopWords - The stop words to add
|
|
383
|
-
* @returns This method has no return value
|
|
384
|
-
*/
|
|
385
|
-
public async addWordsAsync(stopWords: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
386
|
-
|
|
387
|
-
public async addWordsAsync(stopWords:string|carriers.FreeText_AddWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
388
|
-
let _request : carriers.FreeText_AddWordsRequest = null;
|
|
389
|
-
let _options : base.WebApiRequestOptions = null;
|
|
390
|
-
const first : any = stopWords;
|
|
391
|
-
if( typeof( first ) === "object" && first && ( typeof(first.stopWords)!='undefined' ) )
|
|
392
|
-
{
|
|
393
|
-
_request = stopWords as carriers.FreeText_AddWordsRequest;
|
|
394
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
395
|
-
}
|
|
396
|
-
else
|
|
397
|
-
{
|
|
398
|
-
_request = {
|
|
399
|
-
stopWords: stopWords as string,
|
|
400
|
-
};
|
|
401
|
-
_options = webapi_options;
|
|
402
|
-
}
|
|
403
|
-
return this._addWordsAsync( _request, _options );
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
private async _deleteStopWordsByIdAsync(request: carriers.FreeText_DeleteStopWordsByIdRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
408
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
409
|
-
base.WebApiBase.SetPending(options);
|
|
410
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
411
|
-
try {
|
|
412
|
-
config.baseURL = this._options.baseUrl;
|
|
413
|
-
const response = await this._axios.post("DeleteStopWordsById", request , config);
|
|
414
|
-
base.WebApiBase.SetCompleted(options);
|
|
415
|
-
const res = response.data;
|
|
416
|
-
resolve(res);
|
|
417
|
-
}
|
|
418
|
-
catch( err ) {
|
|
419
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
420
|
-
reject(err);
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* Delete the stop words with these ids
|
|
429
|
-
* @param request - StopWordIds
|
|
430
|
-
* @returns This method has no return value
|
|
431
|
-
*/
|
|
432
|
-
public async deleteStopWordsByIdAsync(request: carriers.FreeText_DeleteStopWordsByIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Delete the stop words with these ids
|
|
436
|
-
* @param stopWordIds - The ids of the stopwords to delete
|
|
437
|
-
* @returns This method has no return value
|
|
438
|
-
*/
|
|
439
|
-
public async deleteStopWordsByIdAsync(stopWordIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
440
|
-
|
|
441
|
-
public async deleteStopWordsByIdAsync(stopWordIds:number[]|carriers.FreeText_DeleteStopWordsByIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
442
|
-
let _request : carriers.FreeText_DeleteStopWordsByIdRequest = null;
|
|
443
|
-
let _options : base.WebApiRequestOptions = null;
|
|
444
|
-
const first : any = stopWordIds;
|
|
445
|
-
if( typeof( first ) === "object" && first && ( typeof(first.stopWordIds)!='undefined' ) )
|
|
446
|
-
{
|
|
447
|
-
_request = stopWordIds as carriers.FreeText_DeleteStopWordsByIdRequest;
|
|
448
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
449
|
-
}
|
|
450
|
-
else
|
|
451
|
-
{
|
|
452
|
-
_request = {
|
|
453
|
-
stopWordIds: stopWordIds as number[],
|
|
454
|
-
};
|
|
455
|
-
_options = webapi_options;
|
|
456
|
-
}
|
|
457
|
-
return this._deleteStopWordsByIdAsync( _request, _options );
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
private async _getSuggestedStopWordsAsync(request: carriers.FreeText_GetSuggestedStopWordsRequest, options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] > {
|
|
462
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
463
|
-
base.WebApiBase.SetPending(options);
|
|
464
|
-
return new Promise< carriers.MDOListItem[] >(async (resolve, reject) => {
|
|
465
|
-
try {
|
|
466
|
-
config.baseURL = this._options.baseUrl;
|
|
467
|
-
const response = await this._axios.post("GetSuggestedStopWords", request , config);
|
|
468
|
-
base.WebApiBase.SetCompleted(options);
|
|
469
|
-
const res : carriers.MDOListItem[] = converters.Create_MDOListItemArray_From( response.data );
|
|
470
|
-
resolve(res);
|
|
471
|
-
}
|
|
472
|
-
catch( err ) {
|
|
473
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
474
|
-
reject(err);
|
|
475
|
-
}
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Returns the top used words in the freetext index table, sorted as most used first
|
|
483
|
-
* @param request - CountWords
|
|
484
|
-
* @returns The most used words
|
|
485
|
-
*/
|
|
486
|
-
public async getSuggestedStopWordsAsync(request: carriers.FreeText_GetSuggestedStopWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* Returns the top used words in the freetext index table, sorted as most used first
|
|
490
|
-
* @param countWords - The count of words that will be returned
|
|
491
|
-
* @returns The most used words
|
|
492
|
-
*/
|
|
493
|
-
public async getSuggestedStopWordsAsync(countWords: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] >;
|
|
494
|
-
|
|
495
|
-
public async getSuggestedStopWordsAsync(countWords:number|carriers.FreeText_GetSuggestedStopWordsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.MDOListItem[] > {
|
|
496
|
-
let _request : carriers.FreeText_GetSuggestedStopWordsRequest = null;
|
|
497
|
-
let _options : base.WebApiRequestOptions = null;
|
|
498
|
-
const first : any = countWords;
|
|
499
|
-
if( typeof( first ) === "object" && first && ( typeof(first.countWords)!='undefined' ) )
|
|
500
|
-
{
|
|
501
|
-
_request = countWords as carriers.FreeText_GetSuggestedStopWordsRequest;
|
|
502
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
503
|
-
}
|
|
504
|
-
else
|
|
505
|
-
{
|
|
506
|
-
_request = {
|
|
507
|
-
countWords: countWords as number,
|
|
508
|
-
};
|
|
509
|
-
_options = webapi_options;
|
|
510
|
-
}
|
|
511
|
-
return this._getSuggestedStopWordsAsync( _request, _options );
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
|
|
515
261
|
private async _regenerateIndexAsync(request: carriers.FreeText_RegenerateIndexRequest, options?:base.WebApiRequestOptions) : Promise< carriers.BatchTaskInfo > {
|
|
516
262
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
517
263
|
base.WebApiBase.SetPending(options);
|
package/src/LicenseAgent.ts
CHANGED
|
@@ -65,6 +65,9 @@ export interface ILicenseAgent {
|
|
|
65
65
|
assignThirdPartyLicensesAsync(associateId: number, moduleOwner: string, moduleLicenseNames: string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ModuleLicenseLink[] >;
|
|
66
66
|
unassignThirdPartyLicensesAsync(request: carriers.License_UnassignThirdPartyLicensesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ModuleLicenseLink[] >;
|
|
67
67
|
unassignThirdPartyLicensesAsync(associateId: number, moduleOwner: string, moduleLicenseNames: string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ModuleLicenseLink[] >;
|
|
68
|
+
getCentralLicenseAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >;
|
|
69
|
+
saveCentralLicenseAsync(request: carriers.License_SaveCentralLicenseRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >;
|
|
70
|
+
saveCentralLicenseAsync(license: carriers.LicenseOwner[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >;
|
|
68
71
|
} // interface ILicenseAgent
|
|
69
72
|
|
|
70
73
|
|
|
@@ -1139,6 +1142,89 @@ export class LicenseAgent extends base.WebApiBase implements ILicenseAgent {
|
|
|
1139
1142
|
return this._unassignThirdPartyLicensesAsync( _request, _options );
|
|
1140
1143
|
}
|
|
1141
1144
|
|
|
1145
|
+
|
|
1146
|
+
private async _getCentralLicenseAsync( options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] > {
|
|
1147
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1148
|
+
base.WebApiBase.SetPending(options);
|
|
1149
|
+
return new Promise< carriers.LicenseOwner[] >(async (resolve, reject) => {
|
|
1150
|
+
try {
|
|
1151
|
+
config.baseURL = this._options.baseUrl;
|
|
1152
|
+
const response = await this._axios.post("GetCentralLicense", undefined , config);
|
|
1153
|
+
base.WebApiBase.SetCompleted(options);
|
|
1154
|
+
const res : carriers.LicenseOwner[] = converters.Create_LicenseOwnerArray_From( response.data );
|
|
1155
|
+
resolve(res);
|
|
1156
|
+
}
|
|
1157
|
+
catch( err ) {
|
|
1158
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1159
|
+
reject(err);
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
*
|
|
1167
|
+
* @returns
|
|
1168
|
+
*/
|
|
1169
|
+
public async getCentralLicenseAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >
|
|
1170
|
+
{
|
|
1171
|
+
return this._getCentralLicenseAsync(webapi_options);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
private async _saveCentralLicenseAsync(request: carriers.License_SaveCentralLicenseRequest, options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] > {
|
|
1176
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1177
|
+
base.WebApiBase.SetPending(options);
|
|
1178
|
+
return new Promise< carriers.LicenseOwner[] >(async (resolve, reject) => {
|
|
1179
|
+
try {
|
|
1180
|
+
config.baseURL = this._options.baseUrl;
|
|
1181
|
+
const response = await this._axios.post("SaveCentralLicense", request , config);
|
|
1182
|
+
base.WebApiBase.SetCompleted(options);
|
|
1183
|
+
const res : carriers.LicenseOwner[] = converters.Create_LicenseOwnerArray_From( response.data );
|
|
1184
|
+
resolve(res);
|
|
1185
|
+
}
|
|
1186
|
+
catch( err ) {
|
|
1187
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1188
|
+
reject(err);
|
|
1189
|
+
}
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
*
|
|
1197
|
+
* @param request - License
|
|
1198
|
+
* @returns
|
|
1199
|
+
*/
|
|
1200
|
+
public async saveCentralLicenseAsync(request: carriers.License_SaveCentralLicenseRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @param license -
|
|
1205
|
+
* @returns
|
|
1206
|
+
*/
|
|
1207
|
+
public async saveCentralLicenseAsync(license: carriers.LicenseOwner[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >;
|
|
1208
|
+
|
|
1209
|
+
public async saveCentralLicenseAsync(license:carriers.LicenseOwner[]|carriers.License_SaveCentralLicenseRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] > {
|
|
1210
|
+
let _request : carriers.License_SaveCentralLicenseRequest = null;
|
|
1211
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1212
|
+
const first : any = license;
|
|
1213
|
+
if( typeof( first ) === "object" && first && ( typeof(first.license)!='undefined' ) )
|
|
1214
|
+
{
|
|
1215
|
+
_request = license as carriers.License_SaveCentralLicenseRequest;
|
|
1216
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
1217
|
+
}
|
|
1218
|
+
else
|
|
1219
|
+
{
|
|
1220
|
+
_request = {
|
|
1221
|
+
license: license as carriers.LicenseOwner[],
|
|
1222
|
+
};
|
|
1223
|
+
_options = webapi_options;
|
|
1224
|
+
}
|
|
1225
|
+
return this._saveCentralLicenseAsync( _request, _options );
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1142
1228
|
} // class v1LicenseAgentController
|
|
1143
1229
|
|
|
1144
1230
|
|
package/src/ListAgent.ts
CHANGED
|
@@ -372,12 +372,12 @@ export interface IListAgent {
|
|
|
372
372
|
getSourceAsync(sourceId: number) : Promise< carriers.Source >;
|
|
373
373
|
getSourceListAsync(sourceIds: number[]) : Promise< carriers.Source[] >;
|
|
374
374
|
getSourcesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Source[] >;
|
|
375
|
-
|
|
376
|
-
getDocumentTemplateTaskAsync(request: carriers.List_GetDocumentTemplateTaskRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
377
|
-
getDocumentTemplateTaskAsync(documentTemplateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
378
|
-
getTaskListAsync(
|
|
379
|
-
getTasksAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
380
|
-
getDocumentTemplatesTasksAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
375
|
+
getSoTaskAsync(soTaskId: number) : Promise< carriers.SoTask >;
|
|
376
|
+
getDocumentTemplateTaskAsync(request: carriers.List_GetDocumentTemplateTaskRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoTask >;
|
|
377
|
+
getDocumentTemplateTaskAsync(documentTemplateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoTask >;
|
|
378
|
+
getTaskListAsync(soTaskIds: number[]) : Promise< carriers.SoTask[] >;
|
|
379
|
+
getTasksAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoTask[] >;
|
|
380
|
+
getDocumentTemplatesTasksAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoTask[] >;
|
|
381
381
|
getAllTasksAsync(request: carriers.List_GetAllTasksRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TaskListItem[] >;
|
|
382
382
|
getAllTasksAsync(includeDeleted: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TaskListItem[] >;
|
|
383
383
|
getTicketCategoryAsync(ticketCategoryId: number) : Promise< carriers.TicketCategory >;
|
|
@@ -9531,19 +9531,19 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
9531
9531
|
}
|
|
9532
9532
|
|
|
9533
9533
|
/**
|
|
9534
|
-
* Gets a
|
|
9535
|
-
* @param
|
|
9534
|
+
* Gets a SoTask object.
|
|
9535
|
+
* @param soTaskId - The primary key.
|
|
9536
9536
|
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
9537
|
-
* @returns A single
|
|
9537
|
+
* @returns A single SoTask
|
|
9538
9538
|
*/
|
|
9539
|
-
public async
|
|
9539
|
+
public async getSoTaskAsync(soTaskId: number, options?:base.WebApiRequestOptions) : Promise< carriers.SoTask > {
|
|
9540
9540
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
9541
9541
|
base.WebApiBase.SetPending(options);
|
|
9542
|
-
return new Promise< carriers.
|
|
9542
|
+
return new Promise< carriers.SoTask >(async (resolve, reject) => {
|
|
9543
9543
|
try {
|
|
9544
|
-
const response = await this._axios.post("
|
|
9544
|
+
const response = await this._axios.post("GetSoTask?soTaskId=" + soTaskId, null, config);
|
|
9545
9545
|
base.WebApiBase.SetCompleted(options);
|
|
9546
|
-
const res = converters.
|
|
9546
|
+
const res = converters.Create_SoTask_From( response.data );
|
|
9547
9547
|
resolve(res);
|
|
9548
9548
|
}
|
|
9549
9549
|
catch( err ) {
|
|
@@ -9554,15 +9554,15 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
9554
9554
|
}
|
|
9555
9555
|
|
|
9556
9556
|
|
|
9557
|
-
private async _getDocumentTemplateTaskAsync(request: carriers.List_GetDocumentTemplateTaskRequest, options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
9557
|
+
private async _getDocumentTemplateTaskAsync(request: carriers.List_GetDocumentTemplateTaskRequest, options?:base.WebApiRequestOptions) : Promise< carriers.SoTask > {
|
|
9558
9558
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
9559
9559
|
base.WebApiBase.SetPending(options);
|
|
9560
|
-
return new Promise< carriers.
|
|
9560
|
+
return new Promise< carriers.SoTask >(async (resolve, reject) => {
|
|
9561
9561
|
try {
|
|
9562
9562
|
config.baseURL = this._options.baseUrl;
|
|
9563
9563
|
const response = await this._axios.post("GetDocumentTemplateTask", request , config);
|
|
9564
9564
|
base.WebApiBase.SetCompleted(options);
|
|
9565
|
-
const res : carriers.
|
|
9565
|
+
const res : carriers.SoTask = converters.Create_SoTask_From( response.data );
|
|
9566
9566
|
resolve(res);
|
|
9567
9567
|
}
|
|
9568
9568
|
catch( err ) {
|
|
@@ -9579,16 +9579,16 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
9579
9579
|
* @param request - DocumentTemplateId
|
|
9580
9580
|
* @returns Document Template item as TaskListItem.
|
|
9581
9581
|
*/
|
|
9582
|
-
public async getDocumentTemplateTaskAsync(request: carriers.List_GetDocumentTemplateTaskRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
9582
|
+
public async getDocumentTemplateTaskAsync(request: carriers.List_GetDocumentTemplateTaskRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoTask >;
|
|
9583
9583
|
|
|
9584
9584
|
/**
|
|
9585
9585
|
* Returns a Document Template list item as a TaskListItem. The appointment's task is a Document template item when the appointment is a document.
|
|
9586
9586
|
* @param documentTemplateId - Id of the document template, i.e. the Appointment.TaskIdx
|
|
9587
9587
|
* @returns Document Template item as TaskListItem.
|
|
9588
9588
|
*/
|
|
9589
|
-
public async getDocumentTemplateTaskAsync(documentTemplateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
9589
|
+
public async getDocumentTemplateTaskAsync(documentTemplateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoTask >;
|
|
9590
9590
|
|
|
9591
|
-
public async getDocumentTemplateTaskAsync(documentTemplateId:number|carriers.List_GetDocumentTemplateTaskRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
9591
|
+
public async getDocumentTemplateTaskAsync(documentTemplateId:number|carriers.List_GetDocumentTemplateTaskRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoTask > {
|
|
9592
9592
|
let _request : carriers.List_GetDocumentTemplateTaskRequest = null;
|
|
9593
9593
|
let _options : base.WebApiRequestOptions = null;
|
|
9594
9594
|
const first : any = documentTemplateId;
|
|
@@ -9608,19 +9608,19 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
9608
9608
|
}
|
|
9609
9609
|
|
|
9610
9610
|
/**
|
|
9611
|
-
* Gets an array of
|
|
9612
|
-
* @param
|
|
9611
|
+
* Gets an array of SoTask objects.
|
|
9612
|
+
* @param soTaskIds - The primary keys.
|
|
9613
9613
|
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
9614
|
-
* @returns An array of
|
|
9614
|
+
* @returns An array of SoTask
|
|
9615
9615
|
*/
|
|
9616
|
-
public async getTaskListAsync(
|
|
9616
|
+
public async getTaskListAsync(soTaskIds: number[], options?:base.WebApiRequestOptions) : Promise< carriers.SoTask[] > {
|
|
9617
9617
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
9618
9618
|
base.WebApiBase.SetPending(options);
|
|
9619
|
-
return new Promise< carriers.
|
|
9619
|
+
return new Promise< carriers.SoTask[] >(async (resolve, reject) => {
|
|
9620
9620
|
try {
|
|
9621
|
-
const response = await this._axios.post("GetTaskList",
|
|
9621
|
+
const response = await this._axios.post("GetTaskList", soTaskIds, config);
|
|
9622
9622
|
base.WebApiBase.SetCompleted(options);
|
|
9623
|
-
const res = converters.
|
|
9623
|
+
const res = converters.Create_SoTaskArray_From( response.data );
|
|
9624
9624
|
resolve(res);
|
|
9625
9625
|
}
|
|
9626
9626
|
catch( err ) {
|
|
@@ -9631,15 +9631,15 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
9631
9631
|
}
|
|
9632
9632
|
|
|
9633
9633
|
|
|
9634
|
-
private async _getTasksAsync( options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
9634
|
+
private async _getTasksAsync( options?:base.WebApiRequestOptions) : Promise< carriers.SoTask[] > {
|
|
9635
9635
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
9636
9636
|
base.WebApiBase.SetPending(options);
|
|
9637
|
-
return new Promise< carriers.
|
|
9637
|
+
return new Promise< carriers.SoTask[] >(async (resolve, reject) => {
|
|
9638
9638
|
try {
|
|
9639
9639
|
config.baseURL = this._options.baseUrl;
|
|
9640
9640
|
const response = await this._axios.post("GetTasks", undefined , config);
|
|
9641
9641
|
base.WebApiBase.SetCompleted(options);
|
|
9642
|
-
const res : carriers.
|
|
9642
|
+
const res : carriers.SoTask[] = converters.Create_SoTaskArray_From( response.data );
|
|
9643
9643
|
resolve(res);
|
|
9644
9644
|
}
|
|
9645
9645
|
catch( err ) {
|
|
@@ -9654,21 +9654,21 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
9654
9654
|
* Returns all appointment tasks
|
|
9655
9655
|
* @returns An array of all available tasks
|
|
9656
9656
|
*/
|
|
9657
|
-
public async getTasksAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
9657
|
+
public async getTasksAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoTask[] >
|
|
9658
9658
|
{
|
|
9659
9659
|
return this._getTasksAsync(webapi_options);
|
|
9660
9660
|
}
|
|
9661
9661
|
|
|
9662
9662
|
|
|
9663
|
-
private async _getDocumentTemplatesTasksAsync( options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
9663
|
+
private async _getDocumentTemplatesTasksAsync( options?:base.WebApiRequestOptions) : Promise< carriers.SoTask[] > {
|
|
9664
9664
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
9665
9665
|
base.WebApiBase.SetPending(options);
|
|
9666
|
-
return new Promise< carriers.
|
|
9666
|
+
return new Promise< carriers.SoTask[] >(async (resolve, reject) => {
|
|
9667
9667
|
try {
|
|
9668
9668
|
config.baseURL = this._options.baseUrl;
|
|
9669
9669
|
const response = await this._axios.post("GetDocumentTemplatesTasks", undefined , config);
|
|
9670
9670
|
base.WebApiBase.SetCompleted(options);
|
|
9671
|
-
const res : carriers.
|
|
9671
|
+
const res : carriers.SoTask[] = converters.Create_SoTaskArray_From( response.data );
|
|
9672
9672
|
resolve(res);
|
|
9673
9673
|
}
|
|
9674
9674
|
catch( err ) {
|
|
@@ -9683,7 +9683,7 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
9683
9683
|
* The appointment's task is a Document template item when the appointment is a document.
|
|
9684
9684
|
* @returns Document Template list as a array of Tasks
|
|
9685
9685
|
*/
|
|
9686
|
-
public async getDocumentTemplatesTasksAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.
|
|
9686
|
+
public async getDocumentTemplatesTasksAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoTask[] >
|
|
9687
9687
|
{
|
|
9688
9688
|
return this._getDocumentTemplatesTasksAsync(webapi_options);
|
|
9689
9689
|
}
|
package/src/NavigatorAgent.ts
CHANGED
|
@@ -27,7 +27,6 @@ import { FromBase64ToString, ToBase64 } from './Base64.js';
|
|
|
27
27
|
* Navigator stuff.
|
|
28
28
|
*/
|
|
29
29
|
export interface INavigatorAgent {
|
|
30
|
-
getNavigatorCompanyAsync(navigatorCompanyId: number) : Promise< carriers.NavigatorCompany >;
|
|
31
30
|
getNavigatorCompanyListAsync(navigatorCompanyIds: number[]) : Promise< carriers.NavigatorCompany[] >;
|
|
32
31
|
getNavigatorCompaniesAsync(request: carriers.Navigator_GetNavigatorCompaniesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.NavigatorCompany[] >;
|
|
33
32
|
getNavigatorCompaniesAsync(name: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.NavigatorCompany[] >;
|
|
@@ -59,29 +58,6 @@ export class NavigatorAgent extends base.WebApiBase implements INavigatorAgent {
|
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
|
|
62
|
-
/**
|
|
63
|
-
* Gets a NavigatorCompany object.
|
|
64
|
-
* @param navigatorCompanyId - The primary key.
|
|
65
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
66
|
-
* @returns A single NavigatorCompany
|
|
67
|
-
*/
|
|
68
|
-
public async getNavigatorCompanyAsync(navigatorCompanyId: number, options?:base.WebApiRequestOptions) : Promise< carriers.NavigatorCompany > {
|
|
69
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
70
|
-
base.WebApiBase.SetPending(options);
|
|
71
|
-
return new Promise< carriers.NavigatorCompany >(async (resolve, reject) => {
|
|
72
|
-
try {
|
|
73
|
-
const response = await this._axios.post("GetNavigatorCompany?navigatorCompanyId=" + navigatorCompanyId, null, config);
|
|
74
|
-
base.WebApiBase.SetCompleted(options);
|
|
75
|
-
const res = converters.Create_NavigatorCompany_From( response.data );
|
|
76
|
-
resolve(res);
|
|
77
|
-
}
|
|
78
|
-
catch( err ) {
|
|
79
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
80
|
-
reject(err);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
61
|
/**
|
|
86
62
|
* Gets an array of NavigatorCompany objects.
|
|
87
63
|
* @param navigatorCompanyIds - The primary keys.
|
package/src/PersonAgent.ts
CHANGED
|
@@ -109,6 +109,8 @@ export interface IPersonAgent {
|
|
|
109
109
|
getUserCandidateByPersonAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UserCandidate >;
|
|
110
110
|
getCustomerCentrePasswordReplyTemplateAsync(request: carriers.Person_GetCustomerCentrePasswordReplyTemplateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ReplyTemplateParsed >;
|
|
111
111
|
getCustomerCentrePasswordReplyTemplateAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ReplyTemplateParsed >;
|
|
112
|
+
sendCustomerCentrePasswordEmailAsync(request: carriers.Person_SendCustomerCentrePasswordEmailRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
113
|
+
sendCustomerCentrePasswordEmailAsync(personId: number, from: string, to: string, subject: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
112
114
|
sendEmailAsync(request: carriers.Person_SendEmailRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
113
115
|
sendEmailAsync(from: string, to: string, subject: string, plainBody: string, htmlBody: string, attachmentIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
114
116
|
sendEmailWithEventNameAsync(request: carriers.Person_SendEmailWithEventNameRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
@@ -2456,6 +2458,66 @@ export class PersonAgent extends base.WebApiBase implements IPersonAgent {
|
|
|
2456
2458
|
}
|
|
2457
2459
|
|
|
2458
2460
|
|
|
2461
|
+
private async _sendCustomerCentrePasswordEmailAsync(request: carriers.Person_SendCustomerCentrePasswordEmailRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
2462
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2463
|
+
base.WebApiBase.SetPending(options);
|
|
2464
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
2465
|
+
try {
|
|
2466
|
+
config.baseURL = this._options.baseUrl;
|
|
2467
|
+
const response = await this._axios.post("SendCustomerCentrePasswordEmail", request , config);
|
|
2468
|
+
base.WebApiBase.SetCompleted(options);
|
|
2469
|
+
const res = response.data;
|
|
2470
|
+
resolve(res);
|
|
2471
|
+
}
|
|
2472
|
+
catch( err ) {
|
|
2473
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2474
|
+
reject(err);
|
|
2475
|
+
}
|
|
2476
|
+
});
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* Sends a Customer Centre password email based on the reply template.
|
|
2483
|
+
* @param request - PersonId, From, To, Subject
|
|
2484
|
+
* @returns This method has no return value
|
|
2485
|
+
*/
|
|
2486
|
+
public async sendCustomerCentrePasswordEmailAsync(request: carriers.Person_SendCustomerCentrePasswordEmailRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
2487
|
+
|
|
2488
|
+
/**
|
|
2489
|
+
* Sends a Customer Centre password email based on the reply template.
|
|
2490
|
+
* @param personId - Person id associated to email's reply template.
|
|
2491
|
+
* @param from - Sender's email address.
|
|
2492
|
+
* @param to - Recipient's email address.
|
|
2493
|
+
* @param subject - Email's subject.
|
|
2494
|
+
* @returns This method has no return value
|
|
2495
|
+
*/
|
|
2496
|
+
public async sendCustomerCentrePasswordEmailAsync(personId: number, from: string, to: string, subject: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
2497
|
+
|
|
2498
|
+
public async sendCustomerCentrePasswordEmailAsync(personId:number|carriers.Person_SendCustomerCentrePasswordEmailRequest, from?:string|base.WebApiRequestOptions, to?:string, subject?:string, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
2499
|
+
let _request : carriers.Person_SendCustomerCentrePasswordEmailRequest = null;
|
|
2500
|
+
let _options : base.WebApiRequestOptions = null;
|
|
2501
|
+
const first : any = personId;
|
|
2502
|
+
if( typeof( first ) === "object" && first && ( typeof(first.personId)!='undefined' || typeof(first.from)!='undefined' || typeof(first.to)!='undefined' || typeof(first.subject)!='undefined' ) )
|
|
2503
|
+
{
|
|
2504
|
+
_request = personId as carriers.Person_SendCustomerCentrePasswordEmailRequest;
|
|
2505
|
+
_options = from as base.WebApiRequestOptions;
|
|
2506
|
+
}
|
|
2507
|
+
else
|
|
2508
|
+
{
|
|
2509
|
+
_request = {
|
|
2510
|
+
personId: personId as number,
|
|
2511
|
+
from: from as string,
|
|
2512
|
+
to: to as string,
|
|
2513
|
+
subject: subject as string,
|
|
2514
|
+
};
|
|
2515
|
+
_options = webapi_options;
|
|
2516
|
+
}
|
|
2517
|
+
return this._sendCustomerCentrePasswordEmailAsync( _request, _options );
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
|
|
2459
2521
|
private async _sendEmailAsync(request: carriers.Person_SendEmailRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
2460
2522
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2461
2523
|
base.WebApiBase.SetPending(options);
|