@superoffice/webapi 11.13.921 → 12.1.1412
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/Carriers.d.ts +836 -9
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +66 -0
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +158 -0
- package/dist/cjs/ConfigurationAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +33 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +484 -18
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/CustomObjectAgent.d.ts +137 -0
- package/dist/cjs/CustomObjectAgent.d.ts.map +1 -0
- package/dist/cjs/CustomObjectAgent.js +294 -0
- package/dist/cjs/CustomObjectAgent.js.map +1 -0
- package/dist/cjs/CustomerServiceAgent.d.ts +4 -3
- package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/cjs/CustomerServiceAgent.js +3 -2
- package/dist/cjs/CustomerServiceAgent.js.map +1 -1
- package/dist/cjs/DashAgent.d.ts +7 -0
- package/dist/cjs/DashAgent.d.ts.map +1 -1
- package/dist/cjs/DashAgent.js +24 -0
- package/dist/cjs/DashAgent.js.map +1 -1
- package/dist/cjs/EMailAgent.d.ts +150 -30
- package/dist/cjs/EMailAgent.d.ts.map +1 -1
- package/dist/cjs/EMailAgent.js +260 -0
- package/dist/cjs/EMailAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +76 -0
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +82 -2
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/LicenseAgent.d.ts +7 -0
- package/dist/cjs/LicenseAgent.d.ts.map +1 -1
- package/dist/cjs/LicenseAgent.js +24 -0
- package/dist/cjs/LicenseAgent.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +25 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +60 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/ProjectAgent.d.ts +10 -3
- package/dist/cjs/ProjectAgent.d.ts.map +1 -1
- package/dist/cjs/ProjectAgent.js +24 -0
- package/dist/cjs/ProjectAgent.js.map +1 -1
- package/dist/cjs/TicketAgent.d.ts +99 -0
- package/dist/cjs/TicketAgent.d.ts.map +1 -1
- package/dist/cjs/TicketAgent.js +207 -0
- package/dist/cjs/TicketAgent.js.map +1 -1
- package/dist/cjs/WebApi.d.ts +6 -0
- package/dist/cjs/WebApi.d.ts.map +1 -1
- package/dist/cjs/WebApi.js +10 -1
- package/dist/cjs/WebApi.js.map +1 -1
- package/dist/cjs/WorkflowAgent.d.ts +7 -0
- package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
- package/dist/cjs/WorkflowAgent.js +24 -0
- package/dist/cjs/WorkflowAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +836 -9
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +66 -0
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +158 -0
- package/dist/esm/ConfigurationAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +33 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +432 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/CustomObjectAgent.d.ts +137 -0
- package/dist/esm/CustomObjectAgent.d.ts.map +1 -0
- package/dist/esm/CustomObjectAgent.js +289 -0
- package/dist/esm/CustomObjectAgent.js.map +1 -0
- package/dist/esm/CustomerServiceAgent.d.ts +4 -3
- package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/esm/CustomerServiceAgent.js +3 -2
- package/dist/esm/CustomerServiceAgent.js.map +1 -1
- package/dist/esm/DashAgent.d.ts +7 -0
- package/dist/esm/DashAgent.d.ts.map +1 -1
- package/dist/esm/DashAgent.js +24 -0
- package/dist/esm/DashAgent.js.map +1 -1
- package/dist/esm/EMailAgent.d.ts +150 -30
- package/dist/esm/EMailAgent.d.ts.map +1 -1
- package/dist/esm/EMailAgent.js +260 -0
- package/dist/esm/EMailAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +76 -0
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +80 -0
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/LicenseAgent.d.ts +7 -0
- package/dist/esm/LicenseAgent.d.ts.map +1 -1
- package/dist/esm/LicenseAgent.js +24 -0
- package/dist/esm/LicenseAgent.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +25 -0
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +60 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/ProjectAgent.d.ts +10 -3
- package/dist/esm/ProjectAgent.d.ts.map +1 -1
- package/dist/esm/ProjectAgent.js +24 -0
- package/dist/esm/ProjectAgent.js.map +1 -1
- package/dist/esm/TicketAgent.d.ts +99 -0
- package/dist/esm/TicketAgent.d.ts.map +1 -1
- package/dist/esm/TicketAgent.js +207 -0
- package/dist/esm/TicketAgent.js.map +1 -1
- package/dist/esm/WebApi.d.ts +6 -0
- package/dist/esm/WebApi.d.ts.map +1 -1
- package/dist/esm/WebApi.js +9 -0
- package/dist/esm/WebApi.js.map +1 -1
- package/dist/esm/WorkflowAgent.d.ts +7 -0
- package/dist/esm/WorkflowAgent.d.ts.map +1 -1
- package/dist/esm/WorkflowAgent.js +24 -0
- package/dist/esm/WorkflowAgent.js.map +1 -1
- package/package.json +4 -4
- package/src/Carriers.ts +1119 -3
- package/src/ConfigurationAgent.ts +216 -0
- package/src/Converters.ts +524 -0
- package/src/CustomObjectAgent.ts +489 -0
- package/src/CustomerServiceAgent.ts +7 -5
- package/src/DashAgent.ts +30 -0
- package/src/EMailAgent.ts +470 -30
- package/src/Enums.ts +84 -0
- package/src/LicenseAgent.ts +30 -0
- package/src/ListAgent.ts +92 -0
- package/src/ProjectAgent.ts +33 -3
- package/src/TicketAgent.ts +354 -0
- package/src/WebApi.ts +12 -0
- package/src/WorkflowAgent.ts +30 -0
package/src/Enums.ts
CHANGED
|
@@ -4747,6 +4747,48 @@
|
|
|
4747
4747
|
}
|
|
4748
4748
|
|
|
4749
4749
|
|
|
4750
|
+
/**
|
|
4751
|
+
* How to notify recipients when a webhook changes state
|
|
4752
|
+
* This Enum is used by: Webhook.notify_via
|
|
4753
|
+
* This Enum consists of flag values that can be combined.
|
|
4754
|
+
*/
|
|
4755
|
+
export enum WebhookNotifyVia {
|
|
4756
|
+
/**
|
|
4757
|
+
* 0: 0: No notification channels
|
|
4758
|
+
*/
|
|
4759
|
+
None = 0,
|
|
4760
|
+
/**
|
|
4761
|
+
* 1: 1: Send e-mail notification
|
|
4762
|
+
*/
|
|
4763
|
+
Email = 1,
|
|
4764
|
+
/**
|
|
4765
|
+
* 2: 2: Send in-app notification
|
|
4766
|
+
*/
|
|
4767
|
+
InApp = 2,
|
|
4768
|
+
}
|
|
4769
|
+
|
|
4770
|
+
|
|
4771
|
+
/**
|
|
4772
|
+
* How to notify recipients when a webhook changes state
|
|
4773
|
+
* This Enum is used by: Webhook.notify_when
|
|
4774
|
+
* This Enum consists of flag values that can be combined.
|
|
4775
|
+
*/
|
|
4776
|
+
export enum WebhookNotifyWhen {
|
|
4777
|
+
/**
|
|
4778
|
+
* 0: 0: No notifications
|
|
4779
|
+
*/
|
|
4780
|
+
None = 0,
|
|
4781
|
+
/**
|
|
4782
|
+
* 1: 1: Notify on first failure
|
|
4783
|
+
*/
|
|
4784
|
+
FirstFailure = 1,
|
|
4785
|
+
/**
|
|
4786
|
+
* 2: 2: Notify when webhook is disabled due to too many errors
|
|
4787
|
+
*/
|
|
4788
|
+
Disabling = 2,
|
|
4789
|
+
}
|
|
4790
|
+
|
|
4791
|
+
|
|
4750
4792
|
/**
|
|
4751
4793
|
* Command action
|
|
4752
4794
|
*/
|
|
@@ -6599,6 +6641,29 @@
|
|
|
6599
6641
|
}
|
|
6600
6642
|
|
|
6601
6643
|
|
|
6644
|
+
/**
|
|
6645
|
+
* Describes access level to get FAQs
|
|
6646
|
+
*/
|
|
6647
|
+
export enum KbAccessLevel {
|
|
6648
|
+
/**
|
|
6649
|
+
* 1: Private
|
|
6650
|
+
*/
|
|
6651
|
+
Private = "Private",
|
|
6652
|
+
/**
|
|
6653
|
+
* 2: Accessible to internal users
|
|
6654
|
+
*/
|
|
6655
|
+
Internal = "Internal",
|
|
6656
|
+
/**
|
|
6657
|
+
* 3: Accessible to registered customers
|
|
6658
|
+
*/
|
|
6659
|
+
PublicAuthenticated = "PublicAuthenticated",
|
|
6660
|
+
/**
|
|
6661
|
+
* 4: Accessible to everyone
|
|
6662
|
+
*/
|
|
6663
|
+
Public = "Public",
|
|
6664
|
+
}
|
|
6665
|
+
|
|
6666
|
+
|
|
6602
6667
|
/**
|
|
6603
6668
|
* Value for field 'badge' in table 'ej_message'. Defines the initial source of a message.
|
|
6604
6669
|
* This Enum is used by: ej_message.badge
|
|
@@ -6651,6 +6716,25 @@
|
|
|
6651
6716
|
}
|
|
6652
6717
|
|
|
6653
6718
|
|
|
6719
|
+
/**
|
|
6720
|
+
* Describes why a ticket relation is invalid.
|
|
6721
|
+
*/
|
|
6722
|
+
export enum TicketRelationError {
|
|
6723
|
+
/**
|
|
6724
|
+
* 0: The source ticket already has a parent.
|
|
6725
|
+
*/
|
|
6726
|
+
ParentExists = "ParentExists",
|
|
6727
|
+
/**
|
|
6728
|
+
* 1: A relation between the source and destination tickets already exists.
|
|
6729
|
+
*/
|
|
6730
|
+
RelationExists = "RelationExists",
|
|
6731
|
+
/**
|
|
6732
|
+
* 2: Source and destination tickets are the same.
|
|
6733
|
+
*/
|
|
6734
|
+
SameTicket = "SameTicket",
|
|
6735
|
+
}
|
|
6736
|
+
|
|
6737
|
+
|
|
6654
6738
|
/**
|
|
6655
6739
|
* Value for field 'Type' in table 'notify'. Defines the notification type.
|
|
6656
6740
|
* This Enum consists of flag values that can be combined.
|
package/src/LicenseAgent.ts
CHANGED
|
@@ -68,6 +68,7 @@ export interface ILicenseAgent {
|
|
|
68
68
|
getCentralLicenseAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >;
|
|
69
69
|
saveCentralLicenseAsync(request: carriers.License_SaveCentralLicenseRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >;
|
|
70
70
|
saveCentralLicenseAsync(license: carriers.LicenseOwner[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LicenseOwner[] >;
|
|
71
|
+
getFencingInfoAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FencingInfo >;
|
|
71
72
|
} // interface ILicenseAgent
|
|
72
73
|
|
|
73
74
|
|
|
@@ -1225,6 +1226,35 @@ export class LicenseAgent extends base.WebApiBase implements ILicenseAgent {
|
|
|
1225
1226
|
return this._saveCentralLicenseAsync( _request, _options );
|
|
1226
1227
|
}
|
|
1227
1228
|
|
|
1229
|
+
|
|
1230
|
+
private async _getFencingInfoAsync( options?:base.WebApiRequestOptions) : Promise< carriers.FencingInfo > {
|
|
1231
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1232
|
+
base.WebApiBase.SetPending(options);
|
|
1233
|
+
return new Promise< carriers.FencingInfo >(async (resolve, reject) => {
|
|
1234
|
+
try {
|
|
1235
|
+
config.baseURL = this._options.baseUrl;
|
|
1236
|
+
const response = await this._axios.post("GetFencingInfo", undefined , config);
|
|
1237
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1238
|
+
const res : carriers.FencingInfo = converters.Create_FencingInfo_From( response.data );
|
|
1239
|
+
resolve(res);
|
|
1240
|
+
}
|
|
1241
|
+
catch( err ) {
|
|
1242
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1243
|
+
reject(err);
|
|
1244
|
+
}
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Returns fencinginfo if license fence is near or reached
|
|
1251
|
+
* @returns The info of which license fence that is reached or near
|
|
1252
|
+
*/
|
|
1253
|
+
public async getFencingInfoAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FencingInfo >
|
|
1254
|
+
{
|
|
1255
|
+
return this._getFencingInfoAsync(webapi_options);
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1228
1258
|
} // class v1LicenseAgentController
|
|
1229
1259
|
|
|
1230
1260
|
|
package/src/ListAgent.ts
CHANGED
|
@@ -419,6 +419,9 @@ export interface IListAgent {
|
|
|
419
419
|
getTicketRelationDefinitionEntityAsync(ticketRelationDefinitionEntityId: number) : Promise< carriers.TicketRelationDefinitionEntity >;
|
|
420
420
|
setTicketRelationDefinitionSortOrderAsync(request: carriers.List_SetTicketRelationDefinitionSortOrderRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
421
421
|
setTicketRelationDefinitionSortOrderAsync(ticketRelationDefId: number, sortOrder: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
422
|
+
validateTicketRelationDefinitionAsync(request: carriers.List_ValidateTicketRelationDefinitionRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationDefinitionResult[] >;
|
|
423
|
+
validateTicketRelationDefinitionAsync(ticketRelationDefinitionId: number, sourceTicketTypeIds: number[], destinationTicketTypeIds: number[], relationType: enums.TicketRelationType, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationDefinitionResult[] >;
|
|
424
|
+
getAllTicketRelationDefinitionEntitiesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationDefinitionEntity[] >;
|
|
422
425
|
getTicketStatusEntityAsync(ticketStatusEntityId: number) : Promise< carriers.TicketStatusEntity >;
|
|
423
426
|
globalChangeTicketStatusAsync(request: carriers.List_GlobalChangeTicketStatusRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
424
427
|
globalChangeTicketStatusAsync(fromTicketStatusId: number, toTicketStatusId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
@@ -10798,6 +10801,95 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
10798
10801
|
return this._setTicketRelationDefinitionSortOrderAsync( _request, _options );
|
|
10799
10802
|
}
|
|
10800
10803
|
|
|
10804
|
+
|
|
10805
|
+
private async _validateTicketRelationDefinitionAsync(request: carriers.List_ValidateTicketRelationDefinitionRequest, options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationDefinitionResult[] > {
|
|
10806
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
10807
|
+
base.WebApiBase.SetPending(options);
|
|
10808
|
+
return new Promise< carriers.TicketRelationDefinitionResult[] >(async (resolve, reject) => {
|
|
10809
|
+
try {
|
|
10810
|
+
config.baseURL = this._options.baseUrl;
|
|
10811
|
+
const response = await this._axios.post("ValidateTicketRelationDefinition", request , config);
|
|
10812
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
10813
|
+
const res : carriers.TicketRelationDefinitionResult[] = converters.Create_TicketRelationDefinitionResultArray_From( response.data );
|
|
10814
|
+
resolve(res);
|
|
10815
|
+
}
|
|
10816
|
+
catch( err ) {
|
|
10817
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
10818
|
+
reject(err);
|
|
10819
|
+
}
|
|
10820
|
+
});
|
|
10821
|
+
}
|
|
10822
|
+
|
|
10823
|
+
|
|
10824
|
+
|
|
10825
|
+
/**
|
|
10826
|
+
* Validate a ticket relation definition against combinations of source and destination ticket types. Returns one result per source/destination pair.
|
|
10827
|
+
* @param request - TicketRelationDefinitionId, SourceTicketTypeIds, DestinationTicketTypeIds, RelationType
|
|
10828
|
+
* @returns Validation results, one per source/destination ticket type combination.
|
|
10829
|
+
*/
|
|
10830
|
+
public async validateTicketRelationDefinitionAsync(request: carriers.List_ValidateTicketRelationDefinitionRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationDefinitionResult[] >;
|
|
10831
|
+
|
|
10832
|
+
/**
|
|
10833
|
+
* Validate a ticket relation definition against combinations of source and destination ticket types. Returns one result per source/destination pair.
|
|
10834
|
+
* @param ticketRelationDefinitionId - The id of the relation definition being validated. Pass 0 when creating a new definition.
|
|
10835
|
+
* @param sourceTicketTypeIds - The ticket type ids to use as source in the validation.
|
|
10836
|
+
* @param destinationTicketTypeIds - The ticket type ids to use as destination in the validation.
|
|
10837
|
+
* @param relationType - The relation type to validate.
|
|
10838
|
+
* @returns Validation results, one per source/destination ticket type combination.
|
|
10839
|
+
*/
|
|
10840
|
+
public async validateTicketRelationDefinitionAsync(ticketRelationDefinitionId: number, sourceTicketTypeIds: number[], destinationTicketTypeIds: number[], relationType: enums.TicketRelationType, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationDefinitionResult[] >;
|
|
10841
|
+
|
|
10842
|
+
public async validateTicketRelationDefinitionAsync(ticketRelationDefinitionId:number|carriers.List_ValidateTicketRelationDefinitionRequest, sourceTicketTypeIds?:number[]|base.WebApiRequestOptions, destinationTicketTypeIds?:number[], relationType?:enums.TicketRelationType, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationDefinitionResult[] > {
|
|
10843
|
+
let _request : carriers.List_ValidateTicketRelationDefinitionRequest = null;
|
|
10844
|
+
let _options : base.WebApiRequestOptions = null;
|
|
10845
|
+
const first : any = ticketRelationDefinitionId;
|
|
10846
|
+
if( typeof( first ) === "object" && first && ( typeof(first.ticketRelationDefinitionId)!='undefined' || typeof(first.sourceTicketTypeIds)!='undefined' || typeof(first.destinationTicketTypeIds)!='undefined' || typeof(first.relationType)!='undefined' ) )
|
|
10847
|
+
{
|
|
10848
|
+
_request = ticketRelationDefinitionId as carriers.List_ValidateTicketRelationDefinitionRequest;
|
|
10849
|
+
_options = sourceTicketTypeIds as base.WebApiRequestOptions;
|
|
10850
|
+
}
|
|
10851
|
+
else
|
|
10852
|
+
{
|
|
10853
|
+
_request = {
|
|
10854
|
+
ticketRelationDefinitionId: ticketRelationDefinitionId as number,
|
|
10855
|
+
sourceTicketTypeIds: sourceTicketTypeIds as number[],
|
|
10856
|
+
destinationTicketTypeIds: destinationTicketTypeIds as number[],
|
|
10857
|
+
relationType: relationType as enums.TicketRelationType,
|
|
10858
|
+
};
|
|
10859
|
+
_options = webapi_options;
|
|
10860
|
+
}
|
|
10861
|
+
return this._validateTicketRelationDefinitionAsync( _request, _options );
|
|
10862
|
+
}
|
|
10863
|
+
|
|
10864
|
+
|
|
10865
|
+
private async _getAllTicketRelationDefinitionEntitiesAsync( options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationDefinitionEntity[] > {
|
|
10866
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
10867
|
+
base.WebApiBase.SetPending(options);
|
|
10868
|
+
return new Promise< carriers.TicketRelationDefinitionEntity[] >(async (resolve, reject) => {
|
|
10869
|
+
try {
|
|
10870
|
+
config.baseURL = this._options.baseUrl;
|
|
10871
|
+
const response = await this._axios.post("GetAllTicketRelationDefinitionEntities", undefined , config);
|
|
10872
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
10873
|
+
const res : carriers.TicketRelationDefinitionEntity[] = converters.Create_TicketRelationDefinitionEntityArray_From( response.data );
|
|
10874
|
+
resolve(res);
|
|
10875
|
+
}
|
|
10876
|
+
catch( err ) {
|
|
10877
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
10878
|
+
reject(err);
|
|
10879
|
+
}
|
|
10880
|
+
});
|
|
10881
|
+
}
|
|
10882
|
+
|
|
10883
|
+
|
|
10884
|
+
/**
|
|
10885
|
+
* Returns all non-built-in ticket relation definitions, including their source and destination ticket type associations.
|
|
10886
|
+
* @returns An array of all non-built-in ticket relation definition entities
|
|
10887
|
+
*/
|
|
10888
|
+
public async getAllTicketRelationDefinitionEntitiesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.TicketRelationDefinitionEntity[] >
|
|
10889
|
+
{
|
|
10890
|
+
return this._getAllTicketRelationDefinitionEntitiesAsync(webapi_options);
|
|
10891
|
+
}
|
|
10892
|
+
|
|
10801
10893
|
/**
|
|
10802
10894
|
* Gets a TicketStatusEntity object.
|
|
10803
10895
|
* @param ticketStatusEntityId - The primary key.
|
package/src/ProjectAgent.ts
CHANGED
|
@@ -77,6 +77,7 @@ export interface IProjectAgent {
|
|
|
77
77
|
getProjectEntityWithoutMembersAsync(projectId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
|
|
78
78
|
saveProjectEntityWithoutMembersAsync(request: carriers.Project_SaveProjectEntityWithoutMembersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
|
|
79
79
|
saveProjectEntityWithoutMembersAsync(projectEntity: carriers.ProjectEntity, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
|
|
80
|
+
getProjectFencingInfoAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FencingInfo >;
|
|
80
81
|
getProjectEventAsync(projectEventId: number) : Promise< carriers.ProjectEvent >;
|
|
81
82
|
getProjectEventOnPersonAsync(request: carriers.Project_GetProjectEventOnPersonRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEvent >;
|
|
82
83
|
getProjectEventOnPersonAsync(projectId: number, personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEvent >;
|
|
@@ -544,14 +545,14 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
544
545
|
/**
|
|
545
546
|
* Returns the project image that is displayed in the CRM application.
|
|
546
547
|
* @param request - ProjectId
|
|
547
|
-
* @returns The
|
|
548
|
+
* @returns The project image.
|
|
548
549
|
*/
|
|
549
550
|
public async getProjectImageAsync(request: carriers.Project_GetProjectImageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string >;
|
|
550
551
|
|
|
551
552
|
/**
|
|
552
553
|
* Returns the project image that is displayed in the CRM application.
|
|
553
554
|
* @param projectId - The project id of the project the image belongs to.
|
|
554
|
-
* @returns The
|
|
555
|
+
* @returns The project image.
|
|
555
556
|
*/
|
|
556
557
|
public async getProjectImageAsync(projectId: number, webapi_options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string >;
|
|
557
558
|
|
|
@@ -605,7 +606,7 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
605
606
|
/**
|
|
606
607
|
* Stores the project image that is displayed in the CRM application.
|
|
607
608
|
* @param projectId - The project id of the project the image belongs to.
|
|
608
|
-
* @param image - The
|
|
609
|
+
* @param image - The project image.
|
|
609
610
|
* @returns
|
|
610
611
|
*/
|
|
611
612
|
public async setProjectImageAsync(projectId: number, image: ArrayBuffer|string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
@@ -1478,6 +1479,35 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
|
|
|
1478
1479
|
return this._saveProjectEntityWithoutMembersAsync( _request, _options );
|
|
1479
1480
|
}
|
|
1480
1481
|
|
|
1482
|
+
|
|
1483
|
+
private async _getProjectFencingInfoAsync( options?:base.WebApiRequestOptions) : Promise< carriers.FencingInfo > {
|
|
1484
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1485
|
+
base.WebApiBase.SetPending(options);
|
|
1486
|
+
return new Promise< carriers.FencingInfo >(async (resolve, reject) => {
|
|
1487
|
+
try {
|
|
1488
|
+
config.baseURL = this._options.baseUrl;
|
|
1489
|
+
const response = await this._axios.post("GetProjectFencingInfo", undefined , config);
|
|
1490
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1491
|
+
const res : carriers.FencingInfo = converters.Create_FencingInfo_From( response.data );
|
|
1492
|
+
resolve(res);
|
|
1493
|
+
}
|
|
1494
|
+
catch( err ) {
|
|
1495
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1496
|
+
reject(err);
|
|
1497
|
+
}
|
|
1498
|
+
});
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* Get the current project fencing status for the tenant
|
|
1504
|
+
* @returns Current fencing status including count, maximum, and warning state
|
|
1505
|
+
*/
|
|
1506
|
+
public async getProjectFencingInfoAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.FencingInfo >
|
|
1507
|
+
{
|
|
1508
|
+
return this._getProjectFencingInfoAsync(webapi_options);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1481
1511
|
/**
|
|
1482
1512
|
* Gets a ProjectEvent object.
|
|
1483
1513
|
* @param projectEventId - The primary key.
|