@superoffice/webapi 11.2.694 → 11.3.1349
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AIAgent.d.ts +32 -0
- package/dist/cjs/AIAgent.d.ts.map +1 -1
- package/dist/cjs/AIAgent.js +70 -0
- package/dist/cjs/AIAgent.js.map +1 -1
- package/dist/cjs/Carriers.d.ts +399 -0
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/Converters.d.ts +21 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +337 -24
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/Enums.d.ts +122 -7
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +125 -7
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +24 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +66 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/PersonAgent.d.ts +15 -0
- package/dist/cjs/PersonAgent.d.ts.map +1 -1
- package/dist/cjs/PersonAgent.js +33 -0
- package/dist/cjs/PersonAgent.js.map +1 -1
- package/dist/cjs/PersonRestApi.d.ts.map +1 -1
- package/dist/cjs/PersonRestApi.js.map +1 -1
- package/dist/cjs/ProjectAgent.d.ts +16 -0
- package/dist/cjs/ProjectAgent.d.ts.map +1 -1
- package/dist/cjs/ProjectAgent.js +34 -0
- package/dist/cjs/ProjectAgent.js.map +1 -1
- package/dist/cjs/SelectionAgent.d.ts +76 -0
- package/dist/cjs/SelectionAgent.d.ts.map +1 -1
- package/dist/cjs/SelectionAgent.js +166 -0
- package/dist/cjs/SelectionAgent.js.map +1 -1
- package/dist/esm/AIAgent.d.ts +32 -0
- package/dist/esm/AIAgent.d.ts.map +1 -1
- package/dist/esm/AIAgent.js +70 -0
- package/dist/esm/AIAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +399 -0
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/Converters.d.ts +21 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +291 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/Enums.d.ts +122 -7
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +122 -4
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +24 -0
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +66 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/PersonAgent.d.ts +15 -0
- package/dist/esm/PersonAgent.d.ts.map +1 -1
- package/dist/esm/PersonAgent.js +33 -0
- package/dist/esm/PersonAgent.js.map +1 -1
- package/dist/esm/PersonRestApi.d.ts.map +1 -1
- package/dist/esm/PersonRestApi.js.map +1 -1
- package/dist/esm/ProjectAgent.d.ts +16 -0
- package/dist/esm/ProjectAgent.d.ts.map +1 -1
- package/dist/esm/ProjectAgent.js +34 -0
- package/dist/esm/ProjectAgent.js.map +1 -1
- package/dist/esm/SelectionAgent.d.ts +76 -0
- package/dist/esm/SelectionAgent.d.ts.map +1 -1
- package/dist/esm/SelectionAgent.js +166 -0
- package/dist/esm/SelectionAgent.js.map +1 -1
- package/package.json +3 -3
- package/src/AIAgent.ts +117 -0
- package/src/Carriers.ts +553 -0
- package/src/Converters.ts +345 -0
- package/src/Enums.ts +125 -4
- package/src/ListAgent.ts +71 -0
- package/src/PersonAgent.ts +56 -0
- package/src/PersonRestApi.ts +2 -0
- package/src/ProjectAgent.ts +58 -0
- package/src/SelectionAgent.ts +282 -0
package/src/ListAgent.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { FromBase64ToString, ToBase64 } from './Base64.js';
|
|
|
29
29
|
export interface IListAgent {
|
|
30
30
|
createDefaultAmountClassEntityAsync(): Promise< carriers.AmountClassEntity >;
|
|
31
31
|
saveAmountClassEntityAsync(entity: carriers.AmountClassEntity) : Promise< carriers.AmountClassEntity >;
|
|
32
|
+
createDefaultCategoryEntityAsync(): Promise< carriers.CategoryEntity >;
|
|
33
|
+
saveCategoryEntityAsync(entity: carriers.CategoryEntity) : Promise< carriers.CategoryEntity >;
|
|
32
34
|
createDefaultTaskMenuAsync(): Promise< carriers.TaskMenu >;
|
|
33
35
|
saveTaskMenuAsync(entity: carriers.TaskMenu) : Promise< carriers.TaskMenu >;
|
|
34
36
|
deleteTaskMenuAsync(TaskMenuId: number) : Promise<void>;
|
|
@@ -77,6 +79,7 @@ export interface IListAgent {
|
|
|
77
79
|
getBusinessListAsync(businessIds: number[]) : Promise< carriers.Business[] >;
|
|
78
80
|
getBusinessesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Business[] >;
|
|
79
81
|
getCategoryAsync(categoryId: number) : Promise< carriers.Category >;
|
|
82
|
+
getCategoryEntityAsync(categoryEntityId: number) : Promise< carriers.CategoryEntity >;
|
|
80
83
|
getCategoryListAsync(categoryIds: number[]) : Promise< carriers.Category[] >;
|
|
81
84
|
getCategoriesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Category[] >;
|
|
82
85
|
getCompetitorAsync(competitorId: number) : Promise< carriers.Competitor >;
|
|
@@ -499,6 +502,51 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
499
502
|
});
|
|
500
503
|
}
|
|
501
504
|
|
|
505
|
+
/**
|
|
506
|
+
* Set default values into a new CategoryEntity.
|
|
507
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
508
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
509
|
+
* @returns A blank entity.
|
|
510
|
+
*/
|
|
511
|
+
public async createDefaultCategoryEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.CategoryEntity > {
|
|
512
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
513
|
+
base.WebApiBase.SetPending(options);
|
|
514
|
+
return new Promise< carriers.CategoryEntity >(async (resolve, reject) => {
|
|
515
|
+
try {
|
|
516
|
+
const response = await this._axios.post("CreateDefaultCategoryEntity", null, config);
|
|
517
|
+
base.WebApiBase.SetCompleted(options);
|
|
518
|
+
const res : carriers.CategoryEntity = converters.Create_CategoryEntity_From( response.data );
|
|
519
|
+
resolve(res);
|
|
520
|
+
}
|
|
521
|
+
catch( err ) {
|
|
522
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
523
|
+
reject(err);
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Replace the existing CategoryEntity or creates a new CategoryEntity if the id parameter is empty
|
|
529
|
+
* @param entity - The CategoryEntity to be saved.
|
|
530
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
531
|
+
* @returns New or updated CategoryEntity
|
|
532
|
+
*/
|
|
533
|
+
public async saveCategoryEntityAsync(entity: carriers.CategoryEntity, options?:base.WebApiRequestOptions) : Promise< carriers.CategoryEntity > {
|
|
534
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
535
|
+
base.WebApiBase.SetPending(options);
|
|
536
|
+
return new Promise< carriers.CategoryEntity >(async (resolve, reject) => {
|
|
537
|
+
try {
|
|
538
|
+
const response = await this._axios.post("SaveCategoryEntity", entity, config);
|
|
539
|
+
base.WebApiBase.SetCompleted(options);
|
|
540
|
+
const res : carriers.CategoryEntity = converters.Create_CategoryEntity_From( response.data );
|
|
541
|
+
resolve(res);
|
|
542
|
+
}
|
|
543
|
+
catch( err ) {
|
|
544
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
545
|
+
reject(err);
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
|
|
502
550
|
/**
|
|
503
551
|
* Set default values into a new TaskMenu.
|
|
504
552
|
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
@@ -1583,6 +1631,29 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
1583
1631
|
});
|
|
1584
1632
|
}
|
|
1585
1633
|
|
|
1634
|
+
/**
|
|
1635
|
+
* Gets a CategoryEntity object.
|
|
1636
|
+
* @param categoryEntityId - The primary key.
|
|
1637
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1638
|
+
* @returns A single CategoryEntity
|
|
1639
|
+
*/
|
|
1640
|
+
public async getCategoryEntityAsync(categoryEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.CategoryEntity > {
|
|
1641
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1642
|
+
base.WebApiBase.SetPending(options);
|
|
1643
|
+
return new Promise< carriers.CategoryEntity >(async (resolve, reject) => {
|
|
1644
|
+
try {
|
|
1645
|
+
const response = await this._axios.post("GetCategoryEntity?categoryEntityId=" + categoryEntityId, null, config);
|
|
1646
|
+
base.WebApiBase.SetCompleted(options);
|
|
1647
|
+
const res = converters.Create_CategoryEntity_From( response.data );
|
|
1648
|
+
resolve(res);
|
|
1649
|
+
}
|
|
1650
|
+
catch( err ) {
|
|
1651
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1652
|
+
reject(err);
|
|
1653
|
+
}
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1586
1657
|
/**
|
|
1587
1658
|
* Gets an array of Category objects.
|
|
1588
1659
|
* @param categoryIds - The primary keys.
|
package/src/PersonAgent.ts
CHANGED
|
@@ -115,6 +115,8 @@ export interface IPersonAgent {
|
|
|
115
115
|
sendEmailAsync(from: string, to: string, subject: string, plainBody: string, htmlBody: string, attachmentIds: number[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
116
116
|
sendEmailWithEventNameAsync(request: carriers.Person_SendEmailWithEventNameRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
117
117
|
sendEmailWithEventNameAsync(from: string, to: string, subject: string, plainBody: string, htmlBody: string, attachmentIds: number[], eventName: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
118
|
+
getUtmParametersAsync(request: carriers.Person_GetUtmParametersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UtmParameters >;
|
|
119
|
+
getUtmParametersAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UtmParameters >;
|
|
118
120
|
getPersonListAsync(personIds: number[]) : Promise< carriers.Person[] >;
|
|
119
121
|
getPersonsFromContactAsync(request: carriers.Person_GetPersonsFromContactRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Person[] >;
|
|
120
122
|
getPersonsFromContactAsync(contactId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Person[] >;
|
|
@@ -2647,6 +2649,60 @@ export class PersonAgent extends base.WebApiBase implements IPersonAgent {
|
|
|
2647
2649
|
return this._sendEmailWithEventNameAsync( _request, _options );
|
|
2648
2650
|
}
|
|
2649
2651
|
|
|
2652
|
+
|
|
2653
|
+
private async _getUtmParametersAsync(request: carriers.Person_GetUtmParametersRequest, options?:base.WebApiRequestOptions) : Promise< carriers.UtmParameters > {
|
|
2654
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2655
|
+
base.WebApiBase.SetPending(options);
|
|
2656
|
+
return new Promise< carriers.UtmParameters >(async (resolve, reject) => {
|
|
2657
|
+
try {
|
|
2658
|
+
config.baseURL = this._options.baseUrl;
|
|
2659
|
+
const response = await this._axios.post("GetUtmParameters", request , config);
|
|
2660
|
+
base.WebApiBase.SetCompleted(options);
|
|
2661
|
+
const res : carriers.UtmParameters = converters.Create_UtmParameters_From( response.data );
|
|
2662
|
+
resolve(res);
|
|
2663
|
+
}
|
|
2664
|
+
catch( err ) {
|
|
2665
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2666
|
+
reject(err);
|
|
2667
|
+
}
|
|
2668
|
+
});
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* Get all UTM parameters for a given person.
|
|
2675
|
+
* @param request - PersonId
|
|
2676
|
+
* @returns UTM parameters recorded on this person
|
|
2677
|
+
*/
|
|
2678
|
+
public async getUtmParametersAsync(request: carriers.Person_GetUtmParametersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UtmParameters >;
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* Get all UTM parameters for a given person.
|
|
2682
|
+
* @param personId - The person id to get UTM parameters for
|
|
2683
|
+
* @returns UTM parameters recorded on this person
|
|
2684
|
+
*/
|
|
2685
|
+
public async getUtmParametersAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UtmParameters >;
|
|
2686
|
+
|
|
2687
|
+
public async getUtmParametersAsync(personId:number|carriers.Person_GetUtmParametersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UtmParameters > {
|
|
2688
|
+
let _request : carriers.Person_GetUtmParametersRequest = null;
|
|
2689
|
+
let _options : base.WebApiRequestOptions = null;
|
|
2690
|
+
const first : any = personId;
|
|
2691
|
+
if( typeof( first ) === "object" && first && ( typeof(first.personId)!='undefined' ) )
|
|
2692
|
+
{
|
|
2693
|
+
_request = personId as carriers.Person_GetUtmParametersRequest;
|
|
2694
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
2695
|
+
}
|
|
2696
|
+
else
|
|
2697
|
+
{
|
|
2698
|
+
_request = {
|
|
2699
|
+
personId: personId as number,
|
|
2700
|
+
};
|
|
2701
|
+
_options = webapi_options;
|
|
2702
|
+
}
|
|
2703
|
+
return this._getUtmParametersAsync( _request, _options );
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2650
2706
|
/**
|
|
2651
2707
|
* Gets an array of Person objects.
|
|
2652
2708
|
* @param personIds - The primary keys.
|
package/src/PersonRestApi.ts
CHANGED
package/src/ProjectAgent.ts
CHANGED
|
@@ -71,6 +71,8 @@ export interface IProjectAgent {
|
|
|
71
71
|
hasGuideActivitiesAsync(projectId: number, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
72
72
|
validateProjectEntityAsync(request: carriers.Project_ValidateProjectEntityRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
73
73
|
validateProjectEntityAsync(projectEntity: carriers.ProjectEntity, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
74
|
+
setCompletedAsync(request: carriers.Project_SetCompletedRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
75
|
+
setCompletedAsync(projectId: number, isCompleted: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
74
76
|
getProjectEventAsync(projectEventId: number) : Promise< carriers.ProjectEvent >;
|
|
75
77
|
getProjectEventOnPersonAsync(request: carriers.Project_GetProjectEventOnPersonRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEvent >;
|
|
76
78
|
getProjectEventOnPersonAsync(projectId: number, personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEvent >;
|
|
@@ -1308,6 +1310,62 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1308
1310
|
return this._validateProjectEntityAsync( _request, _options );
|
|
1309
1311
|
}
|
|
1310
1312
|
|
|
1313
|
+
|
|
1314
|
+
private async _setCompletedAsync(request: carriers.Project_SetCompletedRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1315
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1316
|
+
base.WebApiBase.SetPending(options);
|
|
1317
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
1318
|
+
try {
|
|
1319
|
+
config.baseURL = this._options.baseUrl;
|
|
1320
|
+
const response = await this._axios.post("SetCompleted", request , config);
|
|
1321
|
+
base.WebApiBase.SetCompleted(options);
|
|
1322
|
+
const res = response.data;
|
|
1323
|
+
resolve(res);
|
|
1324
|
+
}
|
|
1325
|
+
catch( err ) {
|
|
1326
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1327
|
+
reject(err);
|
|
1328
|
+
}
|
|
1329
|
+
});
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Set the completed flag on the project
|
|
1336
|
+
* @param request - ProjectId, IsCompleted
|
|
1337
|
+
* @returns This method has no return value
|
|
1338
|
+
*/
|
|
1339
|
+
public async setCompletedAsync(request: carriers.Project_SetCompletedRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Set the completed flag on the project
|
|
1343
|
+
* @param projectId -
|
|
1344
|
+
* @param isCompleted - True if the project is completed, false if it is not
|
|
1345
|
+
* @returns This method has no return value
|
|
1346
|
+
*/
|
|
1347
|
+
public async setCompletedAsync(projectId: number, isCompleted: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1348
|
+
|
|
1349
|
+
public async setCompletedAsync(projectId:number|carriers.Project_SetCompletedRequest, isCompleted?:boolean|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1350
|
+
let _request : carriers.Project_SetCompletedRequest = null;
|
|
1351
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1352
|
+
const first : any = projectId;
|
|
1353
|
+
if( typeof( first ) === "object" && first && ( typeof(first.projectId)!='undefined' || typeof(first.isCompleted)!='undefined' ) )
|
|
1354
|
+
{
|
|
1355
|
+
_request = projectId as carriers.Project_SetCompletedRequest;
|
|
1356
|
+
_options = isCompleted as base.WebApiRequestOptions;
|
|
1357
|
+
}
|
|
1358
|
+
else
|
|
1359
|
+
{
|
|
1360
|
+
_request = {
|
|
1361
|
+
projectId: projectId as number,
|
|
1362
|
+
isCompleted: isCompleted as boolean,
|
|
1363
|
+
};
|
|
1364
|
+
_options = webapi_options;
|
|
1365
|
+
}
|
|
1366
|
+
return this._setCompletedAsync( _request, _options );
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1311
1369
|
/**
|
|
1312
1370
|
* Gets a ProjectEvent object.
|
|
1313
1371
|
* @param projectEventId - The primary key.
|
package/src/SelectionAgent.ts
CHANGED
|
@@ -29,6 +29,16 @@ import { FromBase64ToString, ToBase64 } from './Base64.js';
|
|
|
29
29
|
export interface ISelectionAgent {
|
|
30
30
|
createDefaultSelectionEntityAsync(): Promise< carriers.SelectionEntity >;
|
|
31
31
|
saveSelectionEntityAsync(entity: carriers.SelectionEntity) : Promise< carriers.SelectionEntity >;
|
|
32
|
+
createDefaultBoardViewSettingsFromEntityTypeAsync(request: carriers.Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
33
|
+
createDefaultBoardViewSettingsFromEntityTypeAsync(entityType: enums.BoardViewEntityType, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
34
|
+
getBoardViewSettingsAsync(request: carriers.Selection_GetBoardViewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
35
|
+
getBoardViewSettingsAsync(boardViewSettingsId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
36
|
+
getBoardViewSettingsForSelectionAsync(request: carriers.Selection_GetBoardViewSettingsForSelectionRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
37
|
+
getBoardViewSettingsForSelectionAsync(associateId: number, selectionId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
38
|
+
saveBoardViewSettingsAsync(request: carriers.Selection_SaveBoardViewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
39
|
+
saveBoardViewSettingsAsync(boardViewSettings: carriers.BoardViewSettingsBase, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
40
|
+
deleteBoardViewSettingsAsync(request: carriers.Selection_DeleteBoardViewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
41
|
+
deleteBoardViewSettingsAsync(boardViewSettingsId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
32
42
|
getSelectionEntityAsync(selectionEntityId: number) : Promise< carriers.SelectionEntity >;
|
|
33
43
|
createSelectionEntityAsync(request: carriers.Selection_CreateSelectionEntityRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SelectionEntity >;
|
|
34
44
|
createSelectionEntityAsync(targetTableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SelectionEntity >;
|
|
@@ -197,6 +207,278 @@ export class SelectionAgent extends base.WebApiBase implements ISelectionAgent {
|
|
|
197
207
|
}
|
|
198
208
|
});
|
|
199
209
|
}
|
|
210
|
+
|
|
211
|
+
private async _createDefaultBoardViewSettingsFromEntityTypeAsync(request: carriers.Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest, options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase > {
|
|
212
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
213
|
+
base.WebApiBase.SetPending(options);
|
|
214
|
+
return new Promise< carriers.BoardViewSettingsBase >(async (resolve, reject) => {
|
|
215
|
+
try {
|
|
216
|
+
config.baseURL = this._options.baseUrl;
|
|
217
|
+
const response = await this._axios.post("CreateDefaultBoardViewSettingsFromEntityType", request , config);
|
|
218
|
+
base.WebApiBase.SetCompleted(options);
|
|
219
|
+
const res : carriers.BoardViewSettingsBase = converters.Create_BoardViewSettingsBase_From( response.data );
|
|
220
|
+
resolve(res);
|
|
221
|
+
}
|
|
222
|
+
catch( err ) {
|
|
223
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
224
|
+
reject(err);
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Creates a new carrier from the entity type given, with the right kind of properties, defaults set.
|
|
233
|
+
* @param request - EntityType
|
|
234
|
+
* @returns
|
|
235
|
+
*/
|
|
236
|
+
public async createDefaultBoardViewSettingsFromEntityTypeAsync(request: carriers.Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Creates a new carrier from the entity type given, with the right kind of properties, defaults set.
|
|
240
|
+
* @param entityType - Entity type to create settings for
|
|
241
|
+
* @returns
|
|
242
|
+
*/
|
|
243
|
+
public async createDefaultBoardViewSettingsFromEntityTypeAsync(entityType: enums.BoardViewEntityType, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
244
|
+
|
|
245
|
+
public async createDefaultBoardViewSettingsFromEntityTypeAsync(entityType:enums.BoardViewEntityType|carriers.Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase > {
|
|
246
|
+
let _request : carriers.Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest = null;
|
|
247
|
+
let _options : base.WebApiRequestOptions = null;
|
|
248
|
+
const first : any = entityType;
|
|
249
|
+
if( typeof( first ) === "object" && first && ( typeof(first.entityType)!='undefined' ) )
|
|
250
|
+
{
|
|
251
|
+
_request = entityType as carriers.Selection_CreateDefaultBoardViewSettingsFromEntityTypeRequest;
|
|
252
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
253
|
+
}
|
|
254
|
+
else
|
|
255
|
+
{
|
|
256
|
+
_request = {
|
|
257
|
+
entityType: entityType as enums.BoardViewEntityType,
|
|
258
|
+
};
|
|
259
|
+
_options = webapi_options;
|
|
260
|
+
}
|
|
261
|
+
return this._createDefaultBoardViewSettingsFromEntityTypeAsync( _request, _options );
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
private async _getBoardViewSettingsAsync(request: carriers.Selection_GetBoardViewSettingsRequest, options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase > {
|
|
266
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
267
|
+
base.WebApiBase.SetPending(options);
|
|
268
|
+
return new Promise< carriers.BoardViewSettingsBase >(async (resolve, reject) => {
|
|
269
|
+
try {
|
|
270
|
+
config.baseURL = this._options.baseUrl;
|
|
271
|
+
const response = await this._axios.post("GetBoardViewSettings", request , config);
|
|
272
|
+
base.WebApiBase.SetCompleted(options);
|
|
273
|
+
const res : carriers.BoardViewSettingsBase = converters.Create_BoardViewSettingsBase_From( response.data );
|
|
274
|
+
resolve(res);
|
|
275
|
+
}
|
|
276
|
+
catch( err ) {
|
|
277
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
278
|
+
reject(err);
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Get BoardViewSettings by ID
|
|
287
|
+
* @param request - BoardViewSettingsId
|
|
288
|
+
* @returns The settings, of appropriate sub type
|
|
289
|
+
*/
|
|
290
|
+
public async getBoardViewSettingsAsync(request: carriers.Selection_GetBoardViewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Get BoardViewSettings by ID
|
|
294
|
+
* @param boardViewSettingsId - Primary key of BoardViewSettings
|
|
295
|
+
* @returns The settings, of appropriate sub type
|
|
296
|
+
*/
|
|
297
|
+
public async getBoardViewSettingsAsync(boardViewSettingsId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
298
|
+
|
|
299
|
+
public async getBoardViewSettingsAsync(boardViewSettingsId:number|carriers.Selection_GetBoardViewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase > {
|
|
300
|
+
let _request : carriers.Selection_GetBoardViewSettingsRequest = null;
|
|
301
|
+
let _options : base.WebApiRequestOptions = null;
|
|
302
|
+
const first : any = boardViewSettingsId;
|
|
303
|
+
if( typeof( first ) === "object" && first && ( typeof(first.boardViewSettingsId)!='undefined' ) )
|
|
304
|
+
{
|
|
305
|
+
_request = boardViewSettingsId as carriers.Selection_GetBoardViewSettingsRequest;
|
|
306
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
307
|
+
}
|
|
308
|
+
else
|
|
309
|
+
{
|
|
310
|
+
_request = {
|
|
311
|
+
boardViewSettingsId: boardViewSettingsId as number,
|
|
312
|
+
};
|
|
313
|
+
_options = webapi_options;
|
|
314
|
+
}
|
|
315
|
+
return this._getBoardViewSettingsAsync( _request, _options );
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
private async _getBoardViewSettingsForSelectionAsync(request: carriers.Selection_GetBoardViewSettingsForSelectionRequest, options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase > {
|
|
320
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
321
|
+
base.WebApiBase.SetPending(options);
|
|
322
|
+
return new Promise< carriers.BoardViewSettingsBase >(async (resolve, reject) => {
|
|
323
|
+
try {
|
|
324
|
+
config.baseURL = this._options.baseUrl;
|
|
325
|
+
const response = await this._axios.post("GetBoardViewSettingsForSelection", request , config);
|
|
326
|
+
base.WebApiBase.SetCompleted(options);
|
|
327
|
+
const res : carriers.BoardViewSettingsBase = converters.Create_BoardViewSettingsBase_From( response.data );
|
|
328
|
+
resolve(res);
|
|
329
|
+
}
|
|
330
|
+
catch( err ) {
|
|
331
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
332
|
+
reject(err);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Get BoardViewSettings by selection id, associate id, and settings type
|
|
341
|
+
* @param request - AssociateId, SelectionId
|
|
342
|
+
* @returns The settings, of appropriate sub type
|
|
343
|
+
*/
|
|
344
|
+
public async getBoardViewSettingsForSelectionAsync(request: carriers.Selection_GetBoardViewSettingsForSelectionRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Get BoardViewSettings by selection id, associate id, and settings type
|
|
348
|
+
* @param associateId - Id of associate
|
|
349
|
+
* @param selectionId - Id of selection
|
|
350
|
+
* @returns The settings, of appropriate sub type
|
|
351
|
+
*/
|
|
352
|
+
public async getBoardViewSettingsForSelectionAsync(associateId: number, selectionId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
353
|
+
|
|
354
|
+
public async getBoardViewSettingsForSelectionAsync(associateId:number|carriers.Selection_GetBoardViewSettingsForSelectionRequest, selectionId?:number|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase > {
|
|
355
|
+
let _request : carriers.Selection_GetBoardViewSettingsForSelectionRequest = null;
|
|
356
|
+
let _options : base.WebApiRequestOptions = null;
|
|
357
|
+
const first : any = associateId;
|
|
358
|
+
if( typeof( first ) === "object" && first && ( typeof(first.associateId)!='undefined' || typeof(first.selectionId)!='undefined' ) )
|
|
359
|
+
{
|
|
360
|
+
_request = associateId as carriers.Selection_GetBoardViewSettingsForSelectionRequest;
|
|
361
|
+
_options = selectionId as base.WebApiRequestOptions;
|
|
362
|
+
}
|
|
363
|
+
else
|
|
364
|
+
{
|
|
365
|
+
_request = {
|
|
366
|
+
associateId: associateId as number,
|
|
367
|
+
selectionId: selectionId as number,
|
|
368
|
+
};
|
|
369
|
+
_options = webapi_options;
|
|
370
|
+
}
|
|
371
|
+
return this._getBoardViewSettingsForSelectionAsync( _request, _options );
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
private async _saveBoardViewSettingsAsync(request: carriers.Selection_SaveBoardViewSettingsRequest, options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase > {
|
|
376
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
377
|
+
base.WebApiBase.SetPending(options);
|
|
378
|
+
return new Promise< carriers.BoardViewSettingsBase >(async (resolve, reject) => {
|
|
379
|
+
try {
|
|
380
|
+
config.baseURL = this._options.baseUrl;
|
|
381
|
+
const response = await this._axios.post("SaveBoardViewSettings", request , config);
|
|
382
|
+
base.WebApiBase.SetCompleted(options);
|
|
383
|
+
const res : carriers.BoardViewSettingsBase = converters.Create_BoardViewSettingsBase_From( response.data );
|
|
384
|
+
resolve(res);
|
|
385
|
+
}
|
|
386
|
+
catch( err ) {
|
|
387
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
388
|
+
reject(err);
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Save BoardViewSettings
|
|
397
|
+
* @param request - BoardViewSettings
|
|
398
|
+
* @returns The settings, of appropriate sub type
|
|
399
|
+
*/
|
|
400
|
+
public async saveBoardViewSettingsAsync(request: carriers.Selection_SaveBoardViewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Save BoardViewSettings
|
|
404
|
+
* @param boardViewSettings - Typed BoardViewSettings carrier object
|
|
405
|
+
* @returns The settings, of appropriate sub type
|
|
406
|
+
*/
|
|
407
|
+
public async saveBoardViewSettingsAsync(boardViewSettings: carriers.BoardViewSettingsBase, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase >;
|
|
408
|
+
|
|
409
|
+
public async saveBoardViewSettingsAsync(boardViewSettings:carriers.BoardViewSettingsBase|carriers.Selection_SaveBoardViewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.BoardViewSettingsBase > {
|
|
410
|
+
let _request : carriers.Selection_SaveBoardViewSettingsRequest = null;
|
|
411
|
+
let _options : base.WebApiRequestOptions = null;
|
|
412
|
+
const first : any = boardViewSettings;
|
|
413
|
+
if( typeof( first ) === "object" && first && ( typeof(first.boardViewSettings)!='undefined' ) )
|
|
414
|
+
{
|
|
415
|
+
_request = boardViewSettings as carriers.Selection_SaveBoardViewSettingsRequest;
|
|
416
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
417
|
+
}
|
|
418
|
+
else
|
|
419
|
+
{
|
|
420
|
+
_request = {
|
|
421
|
+
boardViewSettings: boardViewSettings as carriers.BoardViewSettingsBase,
|
|
422
|
+
};
|
|
423
|
+
_options = webapi_options;
|
|
424
|
+
}
|
|
425
|
+
return this._saveBoardViewSettingsAsync( _request, _options );
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
private async _deleteBoardViewSettingsAsync(request: carriers.Selection_DeleteBoardViewSettingsRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
430
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
431
|
+
base.WebApiBase.SetPending(options);
|
|
432
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
433
|
+
try {
|
|
434
|
+
config.baseURL = this._options.baseUrl;
|
|
435
|
+
const response = await this._axios.post("DeleteBoardViewSettings", request , config);
|
|
436
|
+
base.WebApiBase.SetCompleted(options);
|
|
437
|
+
const res = response.data;
|
|
438
|
+
resolve(res);
|
|
439
|
+
}
|
|
440
|
+
catch( err ) {
|
|
441
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
442
|
+
reject(err);
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Delete BoardViewSettings
|
|
451
|
+
* @param request - BoardViewSettingsId
|
|
452
|
+
* @returns This method has no return value
|
|
453
|
+
*/
|
|
454
|
+
public async deleteBoardViewSettingsAsync(request: carriers.Selection_DeleteBoardViewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Delete BoardViewSettings
|
|
458
|
+
* @param boardViewSettingsId - Primary key of BoardViewSettings
|
|
459
|
+
* @returns This method has no return value
|
|
460
|
+
*/
|
|
461
|
+
public async deleteBoardViewSettingsAsync(boardViewSettingsId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
462
|
+
|
|
463
|
+
public async deleteBoardViewSettingsAsync(boardViewSettingsId:number|carriers.Selection_DeleteBoardViewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
464
|
+
let _request : carriers.Selection_DeleteBoardViewSettingsRequest = null;
|
|
465
|
+
let _options : base.WebApiRequestOptions = null;
|
|
466
|
+
const first : any = boardViewSettingsId;
|
|
467
|
+
if( typeof( first ) === "object" && first && ( typeof(first.boardViewSettingsId)!='undefined' ) )
|
|
468
|
+
{
|
|
469
|
+
_request = boardViewSettingsId as carriers.Selection_DeleteBoardViewSettingsRequest;
|
|
470
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
471
|
+
}
|
|
472
|
+
else
|
|
473
|
+
{
|
|
474
|
+
_request = {
|
|
475
|
+
boardViewSettingsId: boardViewSettingsId as number,
|
|
476
|
+
};
|
|
477
|
+
_options = webapi_options;
|
|
478
|
+
}
|
|
479
|
+
return this._deleteBoardViewSettingsAsync( _request, _options );
|
|
480
|
+
}
|
|
481
|
+
|
|
200
482
|
/**
|
|
201
483
|
* Gets a SelectionEntity object.
|
|
202
484
|
* @param selectionEntityId - The primary key.
|