@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.
Files changed (123) hide show
  1. package/dist/cjs/Carriers.d.ts +836 -9
  2. package/dist/cjs/Carriers.d.ts.map +1 -1
  3. package/dist/cjs/ConfigurationAgent.d.ts +66 -0
  4. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
  5. package/dist/cjs/ConfigurationAgent.js +158 -0
  6. package/dist/cjs/ConfigurationAgent.js.map +1 -1
  7. package/dist/cjs/Converters.d.ts +33 -0
  8. package/dist/cjs/Converters.d.ts.map +1 -1
  9. package/dist/cjs/Converters.js +484 -18
  10. package/dist/cjs/Converters.js.map +1 -1
  11. package/dist/cjs/CustomObjectAgent.d.ts +137 -0
  12. package/dist/cjs/CustomObjectAgent.d.ts.map +1 -0
  13. package/dist/cjs/CustomObjectAgent.js +294 -0
  14. package/dist/cjs/CustomObjectAgent.js.map +1 -0
  15. package/dist/cjs/CustomerServiceAgent.d.ts +4 -3
  16. package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
  17. package/dist/cjs/CustomerServiceAgent.js +3 -2
  18. package/dist/cjs/CustomerServiceAgent.js.map +1 -1
  19. package/dist/cjs/DashAgent.d.ts +7 -0
  20. package/dist/cjs/DashAgent.d.ts.map +1 -1
  21. package/dist/cjs/DashAgent.js +24 -0
  22. package/dist/cjs/DashAgent.js.map +1 -1
  23. package/dist/cjs/EMailAgent.d.ts +150 -30
  24. package/dist/cjs/EMailAgent.d.ts.map +1 -1
  25. package/dist/cjs/EMailAgent.js +260 -0
  26. package/dist/cjs/EMailAgent.js.map +1 -1
  27. package/dist/cjs/Enums.d.ts +76 -0
  28. package/dist/cjs/Enums.d.ts.map +1 -1
  29. package/dist/cjs/Enums.js +82 -2
  30. package/dist/cjs/Enums.js.map +1 -1
  31. package/dist/cjs/LicenseAgent.d.ts +7 -0
  32. package/dist/cjs/LicenseAgent.d.ts.map +1 -1
  33. package/dist/cjs/LicenseAgent.js +24 -0
  34. package/dist/cjs/LicenseAgent.js.map +1 -1
  35. package/dist/cjs/ListAgent.d.ts +25 -0
  36. package/dist/cjs/ListAgent.d.ts.map +1 -1
  37. package/dist/cjs/ListAgent.js +60 -0
  38. package/dist/cjs/ListAgent.js.map +1 -1
  39. package/dist/cjs/ProjectAgent.d.ts +10 -3
  40. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  41. package/dist/cjs/ProjectAgent.js +24 -0
  42. package/dist/cjs/ProjectAgent.js.map +1 -1
  43. package/dist/cjs/TicketAgent.d.ts +99 -0
  44. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  45. package/dist/cjs/TicketAgent.js +207 -0
  46. package/dist/cjs/TicketAgent.js.map +1 -1
  47. package/dist/cjs/WebApi.d.ts +6 -0
  48. package/dist/cjs/WebApi.d.ts.map +1 -1
  49. package/dist/cjs/WebApi.js +10 -1
  50. package/dist/cjs/WebApi.js.map +1 -1
  51. package/dist/cjs/WorkflowAgent.d.ts +7 -0
  52. package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
  53. package/dist/cjs/WorkflowAgent.js +24 -0
  54. package/dist/cjs/WorkflowAgent.js.map +1 -1
  55. package/dist/esm/Carriers.d.ts +836 -9
  56. package/dist/esm/Carriers.d.ts.map +1 -1
  57. package/dist/esm/ConfigurationAgent.d.ts +66 -0
  58. package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
  59. package/dist/esm/ConfigurationAgent.js +158 -0
  60. package/dist/esm/ConfigurationAgent.js.map +1 -1
  61. package/dist/esm/Converters.d.ts +33 -0
  62. package/dist/esm/Converters.d.ts.map +1 -1
  63. package/dist/esm/Converters.js +432 -0
  64. package/dist/esm/Converters.js.map +1 -1
  65. package/dist/esm/CustomObjectAgent.d.ts +137 -0
  66. package/dist/esm/CustomObjectAgent.d.ts.map +1 -0
  67. package/dist/esm/CustomObjectAgent.js +289 -0
  68. package/dist/esm/CustomObjectAgent.js.map +1 -0
  69. package/dist/esm/CustomerServiceAgent.d.ts +4 -3
  70. package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
  71. package/dist/esm/CustomerServiceAgent.js +3 -2
  72. package/dist/esm/CustomerServiceAgent.js.map +1 -1
  73. package/dist/esm/DashAgent.d.ts +7 -0
  74. package/dist/esm/DashAgent.d.ts.map +1 -1
  75. package/dist/esm/DashAgent.js +24 -0
  76. package/dist/esm/DashAgent.js.map +1 -1
  77. package/dist/esm/EMailAgent.d.ts +150 -30
  78. package/dist/esm/EMailAgent.d.ts.map +1 -1
  79. package/dist/esm/EMailAgent.js +260 -0
  80. package/dist/esm/EMailAgent.js.map +1 -1
  81. package/dist/esm/Enums.d.ts +76 -0
  82. package/dist/esm/Enums.d.ts.map +1 -1
  83. package/dist/esm/Enums.js +80 -0
  84. package/dist/esm/Enums.js.map +1 -1
  85. package/dist/esm/LicenseAgent.d.ts +7 -0
  86. package/dist/esm/LicenseAgent.d.ts.map +1 -1
  87. package/dist/esm/LicenseAgent.js +24 -0
  88. package/dist/esm/LicenseAgent.js.map +1 -1
  89. package/dist/esm/ListAgent.d.ts +25 -0
  90. package/dist/esm/ListAgent.d.ts.map +1 -1
  91. package/dist/esm/ListAgent.js +60 -0
  92. package/dist/esm/ListAgent.js.map +1 -1
  93. package/dist/esm/ProjectAgent.d.ts +10 -3
  94. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  95. package/dist/esm/ProjectAgent.js +24 -0
  96. package/dist/esm/ProjectAgent.js.map +1 -1
  97. package/dist/esm/TicketAgent.d.ts +99 -0
  98. package/dist/esm/TicketAgent.d.ts.map +1 -1
  99. package/dist/esm/TicketAgent.js +207 -0
  100. package/dist/esm/TicketAgent.js.map +1 -1
  101. package/dist/esm/WebApi.d.ts +6 -0
  102. package/dist/esm/WebApi.d.ts.map +1 -1
  103. package/dist/esm/WebApi.js +9 -0
  104. package/dist/esm/WebApi.js.map +1 -1
  105. package/dist/esm/WorkflowAgent.d.ts +7 -0
  106. package/dist/esm/WorkflowAgent.d.ts.map +1 -1
  107. package/dist/esm/WorkflowAgent.js +24 -0
  108. package/dist/esm/WorkflowAgent.js.map +1 -1
  109. package/package.json +4 -4
  110. package/src/Carriers.ts +1119 -3
  111. package/src/ConfigurationAgent.ts +216 -0
  112. package/src/Converters.ts +524 -0
  113. package/src/CustomObjectAgent.ts +489 -0
  114. package/src/CustomerServiceAgent.ts +7 -5
  115. package/src/DashAgent.ts +30 -0
  116. package/src/EMailAgent.ts +470 -30
  117. package/src/Enums.ts +84 -0
  118. package/src/LicenseAgent.ts +30 -0
  119. package/src/ListAgent.ts +92 -0
  120. package/src/ProjectAgent.ts +33 -3
  121. package/src/TicketAgent.ts +354 -0
  122. package/src/WebApi.ts +12 -0
  123. 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.
@@ -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.
@@ -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 image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
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 image as a System.Drawing.Image. (If the the image is returned over webservices, the stream is returned as a Base64 encoded string.)
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 image that is stored on the project (System.Drawing.Image)
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.