@superoffice/webapi 10.5.5 → 11.1.447
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/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 +107 -1111
- 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/Converters.d.ts +3 -39
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +34 -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/EMailAgent.d.ts +5 -5
- package/dist/cjs/EMailAgent.js +1 -1
- package/dist/cjs/Enums.d.ts +0 -243
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +4 -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/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 +107 -1111
- 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/Converters.d.ts +3 -39
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +6 -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/EMailAgent.d.ts +5 -5
- package/dist/esm/EMailAgent.js +1 -1
- package/dist/esm/Enums.d.ts +0 -243
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +0 -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/BLOBAgent.ts +0 -114
- package/src/Carriers.ts +94 -1458
- package/src/ConfigurationAgent.ts +60 -0
- package/src/Converters.ts +10 -617
- package/src/CustomerServiceAgent.ts +0 -47
- package/src/EMailAgent.ts +5 -5
- package/src/Enums.ts +0 -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/ViewStateAgent.ts
CHANGED
|
@@ -39,6 +39,9 @@ export interface IViewStateAgent {
|
|
|
39
39
|
getPreviousCurrentAsync(historyName: string, id: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History >;
|
|
40
40
|
deleteHistoryAsync(request: carriers.ViewState_DeleteHistoryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
41
41
|
deleteHistoryAsync(historyName: string, id: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
42
|
+
getHistoryLengthPrefValueAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
43
|
+
setHistoryLengthPrefValueAsync(request: carriers.ViewState_SetHistoryLengthPrefValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
44
|
+
setHistoryLengthPrefValueAsync(length: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
42
45
|
getHistoriesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History[] >;
|
|
43
46
|
getHistoriesByNameAsync(request: carriers.ViewState_GetHistoriesByNameRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History[] >;
|
|
44
47
|
getHistoriesByNameAsync(historyName: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History[] >;
|
|
@@ -46,9 +49,6 @@ export interface IViewStateAgent {
|
|
|
46
49
|
getHistoriesByNamesAsync(historyNames: string[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History[] >;
|
|
47
50
|
saveHistoriesAsync(request: carriers.ViewState_SaveHistoriesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History[] >;
|
|
48
51
|
saveHistoriesAsync(historyName: string, history: carriers.History[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History[] >;
|
|
49
|
-
getHistoryLengthPrefValueAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
50
|
-
setHistoryLengthPrefValueAsync(request: carriers.ViewState_SetHistoryLengthPrefValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
51
|
-
setHistoryLengthPrefValueAsync(length: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
52
52
|
saveCurrentsAsync(request: carriers.ViewState_SaveCurrentsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History[] >;
|
|
53
53
|
saveCurrentsAsync(currents: carriers.History[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History[] >;
|
|
54
54
|
getHistoriesByNamesAndIdsAsync(request: carriers.ViewState_GetHistoriesByNamesAndIdsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.History[] >;
|
|
@@ -412,6 +412,89 @@ export class ViewStateAgent extends base.WebApiBase implements IViewStateAgent {
|
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
|
|
415
|
+
private async _getHistoryLengthPrefValueAsync( options?:base.WebApiRequestOptions) : Promise< number > {
|
|
416
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
417
|
+
base.WebApiBase.SetPending(options);
|
|
418
|
+
return new Promise< number >(async (resolve, reject) => {
|
|
419
|
+
try {
|
|
420
|
+
config.baseURL = this._options.baseUrl;
|
|
421
|
+
const response = await this._axios.post("GetHistoryLengthPrefValue", undefined , config);
|
|
422
|
+
base.WebApiBase.SetCompleted(options);
|
|
423
|
+
const res : number = response.data as number;
|
|
424
|
+
resolve(res);
|
|
425
|
+
}
|
|
426
|
+
catch( err ) {
|
|
427
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
428
|
+
reject(err);
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Get the logged on user's preferred history list length. Will return the system preference if no user preferences are available.
|
|
436
|
+
* @returns The history list lenght
|
|
437
|
+
*/
|
|
438
|
+
public async getHistoryLengthPrefValueAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >
|
|
439
|
+
{
|
|
440
|
+
return this._getHistoryLengthPrefValueAsync(webapi_options);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
private async _setHistoryLengthPrefValueAsync(request: carriers.ViewState_SetHistoryLengthPrefValueRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
445
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
446
|
+
base.WebApiBase.SetPending(options);
|
|
447
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
448
|
+
try {
|
|
449
|
+
config.baseURL = this._options.baseUrl;
|
|
450
|
+
const response = await this._axios.post("SetHistoryLengthPrefValue", request , config);
|
|
451
|
+
base.WebApiBase.SetCompleted(options);
|
|
452
|
+
const res = response.data;
|
|
453
|
+
resolve(res);
|
|
454
|
+
}
|
|
455
|
+
catch( err ) {
|
|
456
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
457
|
+
reject(err);
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Set the logged on user's preferred history list length.
|
|
466
|
+
* @param request - Length
|
|
467
|
+
* @returns
|
|
468
|
+
*/
|
|
469
|
+
public async setHistoryLengthPrefValueAsync(request: carriers.ViewState_SetHistoryLengthPrefValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Set the logged on user's preferred history list length.
|
|
473
|
+
* @param length - The new history list lenght
|
|
474
|
+
* @returns
|
|
475
|
+
*/
|
|
476
|
+
public async setHistoryLengthPrefValueAsync(length: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
477
|
+
|
|
478
|
+
public async setHistoryLengthPrefValueAsync(length:number|carriers.ViewState_SetHistoryLengthPrefValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
479
|
+
let _request : carriers.ViewState_SetHistoryLengthPrefValueRequest = null;
|
|
480
|
+
let _options : base.WebApiRequestOptions = null;
|
|
481
|
+
const first : any = length;
|
|
482
|
+
if( typeof( first ) === "object" && first && ( typeof(first.length)!='undefined' ) )
|
|
483
|
+
{
|
|
484
|
+
_request = length as carriers.ViewState_SetHistoryLengthPrefValueRequest;
|
|
485
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
486
|
+
}
|
|
487
|
+
else
|
|
488
|
+
{
|
|
489
|
+
_request = {
|
|
490
|
+
length: length as number,
|
|
491
|
+
};
|
|
492
|
+
_options = webapi_options;
|
|
493
|
+
}
|
|
494
|
+
return this._setHistoryLengthPrefValueAsync( _request, _options );
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
|
|
415
498
|
private async _getHistoriesAsync( options?:base.WebApiRequestOptions) : Promise< carriers.History[] > {
|
|
416
499
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
417
500
|
base.WebApiBase.SetPending(options);
|
|
@@ -605,89 +688,6 @@ export class ViewStateAgent extends base.WebApiBase implements IViewStateAgent {
|
|
|
605
688
|
}
|
|
606
689
|
|
|
607
690
|
|
|
608
|
-
private async _getHistoryLengthPrefValueAsync( options?:base.WebApiRequestOptions) : Promise< number > {
|
|
609
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
610
|
-
base.WebApiBase.SetPending(options);
|
|
611
|
-
return new Promise< number >(async (resolve, reject) => {
|
|
612
|
-
try {
|
|
613
|
-
config.baseURL = this._options.baseUrl;
|
|
614
|
-
const response = await this._axios.post("GetHistoryLengthPrefValue", undefined , config);
|
|
615
|
-
base.WebApiBase.SetCompleted(options);
|
|
616
|
-
const res : number = response.data as number;
|
|
617
|
-
resolve(res);
|
|
618
|
-
}
|
|
619
|
-
catch( err ) {
|
|
620
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
621
|
-
reject(err);
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* Get the logged on user's preferred history list length. Will return the system preference if no user preferences are available.
|
|
629
|
-
* @returns The history list lenght
|
|
630
|
-
*/
|
|
631
|
-
public async getHistoryLengthPrefValueAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >
|
|
632
|
-
{
|
|
633
|
-
return this._getHistoryLengthPrefValueAsync(webapi_options);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
private async _setHistoryLengthPrefValueAsync(request: carriers.ViewState_SetHistoryLengthPrefValueRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
638
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
639
|
-
base.WebApiBase.SetPending(options);
|
|
640
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
641
|
-
try {
|
|
642
|
-
config.baseURL = this._options.baseUrl;
|
|
643
|
-
const response = await this._axios.post("SetHistoryLengthPrefValue", request , config);
|
|
644
|
-
base.WebApiBase.SetCompleted(options);
|
|
645
|
-
const res = response.data;
|
|
646
|
-
resolve(res);
|
|
647
|
-
}
|
|
648
|
-
catch( err ) {
|
|
649
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
650
|
-
reject(err);
|
|
651
|
-
}
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
/**
|
|
658
|
-
* Set the logged on user's preferred history list length.
|
|
659
|
-
* @param request - Length
|
|
660
|
-
* @returns
|
|
661
|
-
*/
|
|
662
|
-
public async setHistoryLengthPrefValueAsync(request: carriers.ViewState_SetHistoryLengthPrefValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* Set the logged on user's preferred history list length.
|
|
666
|
-
* @param length - The new history list lenght
|
|
667
|
-
* @returns
|
|
668
|
-
*/
|
|
669
|
-
public async setHistoryLengthPrefValueAsync(length: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
670
|
-
|
|
671
|
-
public async setHistoryLengthPrefValueAsync(length:number|carriers.ViewState_SetHistoryLengthPrefValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
672
|
-
let _request : carriers.ViewState_SetHistoryLengthPrefValueRequest = null;
|
|
673
|
-
let _options : base.WebApiRequestOptions = null;
|
|
674
|
-
const first : any = length;
|
|
675
|
-
if( typeof( first ) === "object" && first && ( typeof(first.length)!='undefined' ) )
|
|
676
|
-
{
|
|
677
|
-
_request = length as carriers.ViewState_SetHistoryLengthPrefValueRequest;
|
|
678
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
679
|
-
}
|
|
680
|
-
else
|
|
681
|
-
{
|
|
682
|
-
_request = {
|
|
683
|
-
length: length as number,
|
|
684
|
-
};
|
|
685
|
-
_options = webapi_options;
|
|
686
|
-
}
|
|
687
|
-
return this._setHistoryLengthPrefValueAsync( _request, _options );
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
|
|
691
691
|
private async _saveCurrentsAsync(request: carriers.ViewState_SaveCurrentsRequest, options?:base.WebApiRequestOptions) : Promise< carriers.History[] > {
|
|
692
692
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
693
693
|
base.WebApiBase.SetPending(options);
|
package/src/WebApi.ts
CHANGED
|
@@ -87,16 +87,12 @@ import { IRelationAgent, RelationAgent } from './RelationAgent.js';
|
|
|
87
87
|
export { RelationAgent };
|
|
88
88
|
import { IArchiveAgent, ArchiveAgent } from './ArchiveAgent.js';
|
|
89
89
|
export { ArchiveAgent };
|
|
90
|
-
import { IAudienceAgent, AudienceAgent } from './AudienceAgent.js';
|
|
91
|
-
export { AudienceAgent };
|
|
92
90
|
import { IPreferenceAgent, PreferenceAgent } from './PreferenceAgent.js';
|
|
93
91
|
export { PreferenceAgent };
|
|
94
92
|
import { ILicenseAgent, LicenseAgent } from './LicenseAgent.js';
|
|
95
93
|
export { LicenseAgent };
|
|
96
94
|
import { IUserAgent, UserAgent } from './UserAgent.js';
|
|
97
95
|
export { UserAgent };
|
|
98
|
-
import { IReplicationAgent, ReplicationAgent } from './ReplicationAgent.js';
|
|
99
|
-
export { ReplicationAgent };
|
|
100
96
|
import { ITimeZoneAgent, TimeZoneAgent } from './TimeZoneAgent.js';
|
|
101
97
|
export { TimeZoneAgent };
|
|
102
98
|
import { IMessagingAgent, MessagingAgent } from './MessagingAgent.js';
|
|
@@ -111,8 +107,6 @@ import { ICustomerServiceAgent, CustomerServiceAgent } from './CustomerServiceAg
|
|
|
111
107
|
export { CustomerServiceAgent };
|
|
112
108
|
import { IPocketAgent, PocketAgent } from './PocketAgent.js';
|
|
113
109
|
export { PocketAgent };
|
|
114
|
-
import { IDashboardAgent, DashboardAgent } from './DashboardAgent.js';
|
|
115
|
-
export { DashboardAgent };
|
|
116
110
|
import { IDashAgent, DashAgent } from './DashAgent.js';
|
|
117
111
|
export { DashAgent };
|
|
118
112
|
import { ITargetsAgent, TargetsAgent } from './TargetsAgent.js';
|
|
@@ -257,16 +251,12 @@ export interface IAgentsApi extends base.WebApiBase {
|
|
|
257
251
|
getRelationAgent(resourceParsing?: base.ResourceParsing) : IRelationAgent;
|
|
258
252
|
/** ArchiveList functions of all kinds */
|
|
259
253
|
getArchiveAgent(resourceParsing?: base.ResourceParsing) : IArchiveAgent;
|
|
260
|
-
/** Services specific to the Audience client */
|
|
261
|
-
getAudienceAgent(resourceParsing?: base.ResourceParsing) : IAudienceAgent;
|
|
262
254
|
/** Preferences, user interface tab configuration */
|
|
263
255
|
getPreferenceAgent(resourceParsing?: base.ResourceParsing) : IPreferenceAgent;
|
|
264
256
|
/** License query, download, activation */
|
|
265
257
|
getLicenseAgent(resourceParsing?: base.ResourceParsing) : ILicenseAgent;
|
|
266
258
|
/** User administration */
|
|
267
259
|
getUserAgent(resourceParsing?: base.ResourceParsing) : IUserAgent;
|
|
268
|
-
/** Replication/Travel administration */
|
|
269
|
-
getReplicationAgent(resourceParsing?: base.ResourceParsing) : IReplicationAgent;
|
|
270
260
|
/** TimeZone maintenance */
|
|
271
261
|
getTimeZoneAgent(resourceParsing?: base.ResourceParsing) : ITimeZoneAgent;
|
|
272
262
|
/** SMS and other external messaging systems */
|
|
@@ -281,8 +271,6 @@ export interface IAgentsApi extends base.WebApiBase {
|
|
|
281
271
|
getCustomerServiceAgent(resourceParsing?: base.ResourceParsing) : ICustomerServiceAgent;
|
|
282
272
|
/** Agent with Pocket specific functionality */
|
|
283
273
|
getPocketAgent(resourceParsing?: base.ResourceParsing) : IPocketAgent;
|
|
284
|
-
/** Agent lets you configure dashboard tiles and retrieve dashboard data */
|
|
285
|
-
getDashboardAgent(resourceParsing?: base.ResourceParsing) : IDashboardAgent;
|
|
286
274
|
/** Agent that lets you configure dashboard tiles and retrieve dashboard data */
|
|
287
275
|
getDashAgent(resourceParsing?: base.ResourceParsing) : IDashAgent;
|
|
288
276
|
/** Agent lets you configure targets, and retrieve targets */
|
|
@@ -695,14 +683,6 @@ export class WebApi extends base.WebApiBase implements IAgentsApi, IRestApi {
|
|
|
695
683
|
return new ArchiveAgent( options );
|
|
696
684
|
}
|
|
697
685
|
|
|
698
|
-
/** Services specific to the Audience client */
|
|
699
|
-
public getAudienceAgent(resourceParsing?: base.ResourceParsing) : IAudienceAgent {
|
|
700
|
-
const options = base.WebApiBase.FigureOutOptions(this._options);
|
|
701
|
-
if( typeof(resourceParsing) == "number" )
|
|
702
|
-
options.resourceParsing = resourceParsing;
|
|
703
|
-
return new AudienceAgent( options );
|
|
704
|
-
}
|
|
705
|
-
|
|
706
686
|
/** Preferences, user interface tab configuration */
|
|
707
687
|
public getPreferenceAgent(resourceParsing?: base.ResourceParsing) : IPreferenceAgent {
|
|
708
688
|
const options = base.WebApiBase.FigureOutOptions(this._options);
|
|
@@ -727,14 +707,6 @@ export class WebApi extends base.WebApiBase implements IAgentsApi, IRestApi {
|
|
|
727
707
|
return new UserAgent( options );
|
|
728
708
|
}
|
|
729
709
|
|
|
730
|
-
/** Replication/Travel administration */
|
|
731
|
-
public getReplicationAgent(resourceParsing?: base.ResourceParsing) : IReplicationAgent {
|
|
732
|
-
const options = base.WebApiBase.FigureOutOptions(this._options);
|
|
733
|
-
if( typeof(resourceParsing) == "number" )
|
|
734
|
-
options.resourceParsing = resourceParsing;
|
|
735
|
-
return new ReplicationAgent( options );
|
|
736
|
-
}
|
|
737
|
-
|
|
738
710
|
/** TimeZone maintenance */
|
|
739
711
|
public getTimeZoneAgent(resourceParsing?: base.ResourceParsing) : ITimeZoneAgent {
|
|
740
712
|
const options = base.WebApiBase.FigureOutOptions(this._options);
|
|
@@ -791,14 +763,6 @@ export class WebApi extends base.WebApiBase implements IAgentsApi, IRestApi {
|
|
|
791
763
|
return new PocketAgent( options );
|
|
792
764
|
}
|
|
793
765
|
|
|
794
|
-
/** Agent lets you configure dashboard tiles and retrieve dashboard data */
|
|
795
|
-
public getDashboardAgent(resourceParsing?: base.ResourceParsing) : IDashboardAgent {
|
|
796
|
-
const options = base.WebApiBase.FigureOutOptions(this._options);
|
|
797
|
-
if( typeof(resourceParsing) == "number" )
|
|
798
|
-
options.resourceParsing = resourceParsing;
|
|
799
|
-
return new DashboardAgent( options );
|
|
800
|
-
}
|
|
801
|
-
|
|
802
766
|
/** Agent that lets you configure dashboard tiles and retrieve dashboard data */
|
|
803
767
|
public getDashAgent(resourceParsing?: base.ResourceParsing) : IDashAgent {
|
|
804
768
|
const options = base.WebApiBase.FigureOutOptions(this._options);
|