@superoffice/webapi 11.13.921 → 12.0.342

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 (96) hide show
  1. package/dist/cjs/Carriers.d.ts +563 -2
  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 +18 -0
  8. package/dist/cjs/Converters.d.ts.map +1 -1
  9. package/dist/cjs/Converters.js +296 -18
  10. package/dist/cjs/Converters.js.map +1 -1
  11. package/dist/cjs/DashAgent.d.ts +7 -0
  12. package/dist/cjs/DashAgent.d.ts.map +1 -1
  13. package/dist/cjs/DashAgent.js +24 -0
  14. package/dist/cjs/DashAgent.js.map +1 -1
  15. package/dist/cjs/EMailAgent.d.ts +150 -30
  16. package/dist/cjs/EMailAgent.d.ts.map +1 -1
  17. package/dist/cjs/EMailAgent.js +260 -0
  18. package/dist/cjs/EMailAgent.js.map +1 -1
  19. package/dist/cjs/Enums.d.ts +55 -0
  20. package/dist/cjs/Enums.d.ts.map +1 -1
  21. package/dist/cjs/Enums.js +60 -2
  22. package/dist/cjs/Enums.js.map +1 -1
  23. package/dist/cjs/LicenseAgent.d.ts +7 -0
  24. package/dist/cjs/LicenseAgent.d.ts.map +1 -1
  25. package/dist/cjs/LicenseAgent.js +24 -0
  26. package/dist/cjs/LicenseAgent.js.map +1 -1
  27. package/dist/cjs/ListAgent.d.ts +18 -0
  28. package/dist/cjs/ListAgent.d.ts.map +1 -1
  29. package/dist/cjs/ListAgent.js +36 -0
  30. package/dist/cjs/ListAgent.js.map +1 -1
  31. package/dist/cjs/ProjectAgent.d.ts +7 -0
  32. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  33. package/dist/cjs/ProjectAgent.js +24 -0
  34. package/dist/cjs/ProjectAgent.js.map +1 -1
  35. package/dist/cjs/TicketAgent.d.ts +99 -0
  36. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  37. package/dist/cjs/TicketAgent.js +207 -0
  38. package/dist/cjs/TicketAgent.js.map +1 -1
  39. package/dist/cjs/WorkflowAgent.d.ts +7 -0
  40. package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
  41. package/dist/cjs/WorkflowAgent.js +24 -0
  42. package/dist/cjs/WorkflowAgent.js.map +1 -1
  43. package/dist/esm/Carriers.d.ts +563 -2
  44. package/dist/esm/Carriers.d.ts.map +1 -1
  45. package/dist/esm/ConfigurationAgent.d.ts +66 -0
  46. package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
  47. package/dist/esm/ConfigurationAgent.js +158 -0
  48. package/dist/esm/ConfigurationAgent.js.map +1 -1
  49. package/dist/esm/Converters.d.ts +18 -0
  50. package/dist/esm/Converters.d.ts.map +1 -1
  51. package/dist/esm/Converters.js +260 -0
  52. package/dist/esm/Converters.js.map +1 -1
  53. package/dist/esm/DashAgent.d.ts +7 -0
  54. package/dist/esm/DashAgent.d.ts.map +1 -1
  55. package/dist/esm/DashAgent.js +24 -0
  56. package/dist/esm/DashAgent.js.map +1 -1
  57. package/dist/esm/EMailAgent.d.ts +150 -30
  58. package/dist/esm/EMailAgent.d.ts.map +1 -1
  59. package/dist/esm/EMailAgent.js +260 -0
  60. package/dist/esm/EMailAgent.js.map +1 -1
  61. package/dist/esm/Enums.d.ts +55 -0
  62. package/dist/esm/Enums.d.ts.map +1 -1
  63. package/dist/esm/Enums.js +58 -0
  64. package/dist/esm/Enums.js.map +1 -1
  65. package/dist/esm/LicenseAgent.d.ts +7 -0
  66. package/dist/esm/LicenseAgent.d.ts.map +1 -1
  67. package/dist/esm/LicenseAgent.js +24 -0
  68. package/dist/esm/LicenseAgent.js.map +1 -1
  69. package/dist/esm/ListAgent.d.ts +18 -0
  70. package/dist/esm/ListAgent.d.ts.map +1 -1
  71. package/dist/esm/ListAgent.js +36 -0
  72. package/dist/esm/ListAgent.js.map +1 -1
  73. package/dist/esm/ProjectAgent.d.ts +7 -0
  74. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  75. package/dist/esm/ProjectAgent.js +24 -0
  76. package/dist/esm/ProjectAgent.js.map +1 -1
  77. package/dist/esm/TicketAgent.d.ts +99 -0
  78. package/dist/esm/TicketAgent.d.ts.map +1 -1
  79. package/dist/esm/TicketAgent.js +207 -0
  80. package/dist/esm/TicketAgent.js.map +1 -1
  81. package/dist/esm/WorkflowAgent.d.ts +7 -0
  82. package/dist/esm/WorkflowAgent.d.ts.map +1 -1
  83. package/dist/esm/WorkflowAgent.js +24 -0
  84. package/dist/esm/WorkflowAgent.js.map +1 -1
  85. package/package.json +4 -4
  86. package/src/Carriers.ts +740 -2
  87. package/src/ConfigurationAgent.ts +216 -0
  88. package/src/Converters.ts +312 -0
  89. package/src/DashAgent.ts +30 -0
  90. package/src/EMailAgent.ts +470 -30
  91. package/src/Enums.ts +61 -0
  92. package/src/LicenseAgent.ts +30 -0
  93. package/src/ListAgent.ts +62 -0
  94. package/src/ProjectAgent.ts +30 -0
  95. package/src/TicketAgent.ts +354 -0
  96. package/src/WorkflowAgent.ts +30 -0
@@ -33,6 +33,9 @@ export interface IConfigurationAgent {
33
33
  createDefaultDiaryViewEntityAsync(): Promise< carriers.DiaryViewEntity >;
34
34
  saveDiaryViewEntityAsync(entity: carriers.DiaryViewEntity) : Promise< carriers.DiaryViewEntity >;
35
35
  deleteDiaryViewEntityAsync(DiaryViewEntityId: number) : Promise<void>;
36
+ createDefaultLandingPageEntityAsync(): Promise< carriers.LandingPageEntity >;
37
+ saveLandingPageEntityAsync(entity: carriers.LandingPageEntity) : Promise< carriers.LandingPageEntity >;
38
+ deleteLandingPageEntityAsync(LandingPageEntityId: number) : Promise<void>;
36
39
  createDefaultSystemEventEntityAsync(): Promise< carriers.SystemEventEntity >;
37
40
  saveSystemEventEntityAsync(entity: carriers.SystemEventEntity) : Promise< carriers.SystemEventEntity >;
38
41
  deleteSystemEventEntityAsync(SystemEventEntityId: number) : Promise<void>;
@@ -89,6 +92,11 @@ export interface IConfigurationAgent {
89
92
  getAllFeatureTogglesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary >;
90
93
  getCsCgiUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
91
94
  getDiaryViewEntityAsync(diaryViewEntityId: number) : Promise< carriers.DiaryViewEntity >;
95
+ getLandingPageEntityAsync(landingPageEntityId: number) : Promise< carriers.LandingPageEntity >;
96
+ getLandingPageAsync(request: carriers.Configuration_GetLandingPageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
97
+ getLandingPageAsync(associateId: number, tableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
98
+ setLandingPagePinForAssociateAsync(request: carriers.Configuration_SetLandingPagePinForAssociateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
99
+ setLandingPagePinForAssociateAsync(pin: boolean, associateId: number, entityTableName: string, pinTableName: string, recordId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
92
100
  getSystemEventEntityAsync(systemEventEntityId: number) : Promise< carriers.SystemEventEntity >;
93
101
  existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
94
102
  existsSystemEventAsync(key: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
@@ -268,6 +276,73 @@ export class ConfigurationAgent extends base.WebApiBase implements IConfiguratio
268
276
  });
269
277
  }
270
278
 
279
+ /**
280
+ * Set default values into a new LandingPageEntity.
281
+ * NetServer calculates default values on the entity, which is required when creating/storing a new instance
282
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
283
+ * @returns A blank entity.
284
+ */
285
+ public async createDefaultLandingPageEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity > {
286
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
287
+ base.WebApiBase.SetPending(options);
288
+ return new Promise< carriers.LandingPageEntity >(async (resolve, reject) => {
289
+ try {
290
+ const response = await this._axios.post("CreateDefaultLandingPageEntity", null, config);
291
+ base.WebApiBase.SetCompleted(options, response);
292
+ const res : carriers.LandingPageEntity = converters.Create_LandingPageEntity_From( response.data );
293
+ resolve(res);
294
+ }
295
+ catch( err ) {
296
+ base.WebApiBase.HandleError(options, config, err);
297
+ reject(err);
298
+ }
299
+ });
300
+ }
301
+ /**
302
+ * Replace the existing LandingPageEntity or creates a new LandingPageEntity if the id parameter is empty
303
+ * @param entity - The LandingPageEntity to be saved.
304
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
305
+ * @returns New or updated LandingPageEntity
306
+ */
307
+ public async saveLandingPageEntityAsync(entity: carriers.LandingPageEntity, options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity > {
308
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
309
+ base.WebApiBase.SetPending(options);
310
+ return new Promise< carriers.LandingPageEntity >(async (resolve, reject) => {
311
+ try {
312
+ const response = await this._axios.post("SaveLandingPageEntity", entity, config);
313
+ base.WebApiBase.SetCompleted(options, response);
314
+ const res : carriers.LandingPageEntity = converters.Create_LandingPageEntity_From( response.data );
315
+ resolve(res);
316
+ }
317
+ catch( err ) {
318
+ base.WebApiBase.HandleError(options, config, err);
319
+ reject(err);
320
+ }
321
+ });
322
+ }
323
+
324
+ /**
325
+ * Deletes the LandingPageEntity
326
+ * @param LandingPageEntityId - The id of the LandingPageEntity to be deleted.
327
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
328
+ */
329
+ public async deleteLandingPageEntityAsync(LandingPageEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
330
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
331
+ base.WebApiBase.SetPending(options);
332
+ return new Promise< void >(async (resolve, reject) => {
333
+ try {
334
+ const response = await this._axios.post("DeleteLandingPageEntity?LandingPageEntityId=" + LandingPageEntityId, null, config );
335
+ base.WebApiBase.SetCompleted(options, response);
336
+ const res = response.data;
337
+ resolve(res);
338
+ }
339
+ catch( err ) {
340
+ base.WebApiBase.HandleError(options, config, err);
341
+ reject(err);
342
+ }
343
+ });
344
+ }
345
+
271
346
  /**
272
347
  * Set default values into a new SystemEventEntity.
273
348
  * NetServer calculates default values on the entity, which is required when creating/storing a new instance
@@ -1831,6 +1906,147 @@ export class ConfigurationAgent extends base.WebApiBase implements IConfiguratio
1831
1906
  });
1832
1907
  }
1833
1908
 
1909
+ /**
1910
+ * Gets a LandingPageEntity object.
1911
+ * @param landingPageEntityId - The primary key.
1912
+ * @param options - Override language/culture codes on this request. Provide cancellation and request status values.
1913
+ * @returns A single LandingPageEntity
1914
+ */
1915
+ public async getLandingPageEntityAsync(landingPageEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity > {
1916
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1917
+ base.WebApiBase.SetPending(options);
1918
+ return new Promise< carriers.LandingPageEntity >(async (resolve, reject) => {
1919
+ try {
1920
+ const response = await this._axios.post("GetLandingPageEntity?landingPageEntityId=" + landingPageEntityId, null, config);
1921
+ base.WebApiBase.SetCompleted(options, response);
1922
+ const res = converters.Create_LandingPageEntity_From( response.data );
1923
+ resolve(res);
1924
+ }
1925
+ catch( err ) {
1926
+ base.WebApiBase.HandleError(options, config, err);
1927
+ reject(err);
1928
+ }
1929
+ });
1930
+ }
1931
+
1932
+
1933
+ private async _getLandingPageAsync(request: carriers.Configuration_GetLandingPageRequest, options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity > {
1934
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1935
+ base.WebApiBase.SetPending(options);
1936
+ return new Promise< carriers.LandingPageEntity >(async (resolve, reject) => {
1937
+ try {
1938
+ config.baseURL = this._options.baseUrl;
1939
+ const response = await this._axios.post("GetLandingPage", request , config);
1940
+ base.WebApiBase.SetCompleted(options, response);
1941
+ const res : carriers.LandingPageEntity = converters.Create_LandingPageEntity_From( response.data );
1942
+ resolve(res);
1943
+ }
1944
+ catch( err ) {
1945
+ base.WebApiBase.HandleError(options, config, err);
1946
+ reject(err);
1947
+ }
1948
+ });
1949
+ }
1950
+
1951
+
1952
+
1953
+ /**
1954
+ * Get the landing page configuration for an associate and entity table. Creates the landing page row if it does not exist.
1955
+ * @param request - AssociateId, TableName
1956
+ * @returns The landing page for the given associate and entity table.
1957
+ */
1958
+ public async getLandingPageAsync(request: carriers.Configuration_GetLandingPageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
1959
+
1960
+ /**
1961
+ * Get the landing page configuration for an associate and entity table. Creates the landing page row if it does not exist.
1962
+ * @param associateId - Id of the associate.
1963
+ * @param tableName - Entity table name (contact, person, sale, ...), transformed to and from the numeric table number by the service layer.
1964
+ * @returns The landing page for the given associate and entity table.
1965
+ */
1966
+ public async getLandingPageAsync(associateId: number, tableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
1967
+
1968
+ public async getLandingPageAsync(associateId:number|carriers.Configuration_GetLandingPageRequest, tableName?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity > {
1969
+ let _request : carriers.Configuration_GetLandingPageRequest = null;
1970
+ let _options : base.WebApiRequestOptions = null;
1971
+ const first : any = associateId;
1972
+ if( typeof( first ) === "object" && first && ( typeof(first.associateId)!='undefined' || typeof(first.tableName)!='undefined' ) )
1973
+ {
1974
+ _request = associateId as carriers.Configuration_GetLandingPageRequest;
1975
+ _options = tableName as base.WebApiRequestOptions;
1976
+ }
1977
+ else
1978
+ {
1979
+ _request = {
1980
+ associateId: associateId as number,
1981
+ tableName: tableName as string,
1982
+ };
1983
+ _options = webapi_options;
1984
+ }
1985
+ return this._getLandingPageAsync( _request, _options );
1986
+ }
1987
+
1988
+
1989
+ private async _setLandingPagePinForAssociateAsync(request: carriers.Configuration_SetLandingPagePinForAssociateRequest, options?:base.WebApiRequestOptions) : Promise< void > {
1990
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1991
+ base.WebApiBase.SetPending(options);
1992
+ return new Promise< void >(async (resolve, reject) => {
1993
+ try {
1994
+ config.baseURL = this._options.baseUrl;
1995
+ const response = await this._axios.post("SetLandingPagePinForAssociate", request , config);
1996
+ base.WebApiBase.SetCompleted(options, response);
1997
+ const res = response.data;
1998
+ resolve(res);
1999
+ }
2000
+ catch( err ) {
2001
+ base.WebApiBase.HandleError(options, config, err);
2002
+ reject(err);
2003
+ }
2004
+ });
2005
+ }
2006
+
2007
+
2008
+
2009
+ /**
2010
+ * Pin or unpin an entity or selection on the landing page identified by associate and entity table. Creates the landing page row if it does not exist.
2011
+ * @param request - Pin, AssociateId, EntityTableName, PinTableName, RecordId
2012
+ * @returns This method has no return value
2013
+ */
2014
+ public async setLandingPagePinForAssociateAsync(request: carriers.Configuration_SetLandingPagePinForAssociateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
2015
+
2016
+ /**
2017
+ * Pin or unpin an entity or selection on the landing page identified by associate and entity table. Creates the landing page row if it does not exist.
2018
+ * @param pin - True to pin the item, false to unpin it.
2019
+ * @param associateId - Id of the associate that owns the landing page.
2020
+ * @param entityTableName - Entity table name identifying which landing page (contact, person, sale, ...).
2021
+ * @param pinTableName - Table name of the record being pinned (selection, contact, person, sale, ...).
2022
+ * @param recordId - Id of the record to pin or unpin.
2023
+ * @returns This method has no return value
2024
+ */
2025
+ public async setLandingPagePinForAssociateAsync(pin: boolean, associateId: number, entityTableName: string, pinTableName: string, recordId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
2026
+
2027
+ public async setLandingPagePinForAssociateAsync(pin:boolean|carriers.Configuration_SetLandingPagePinForAssociateRequest, associateId?:number|base.WebApiRequestOptions, entityTableName?:string, pinTableName?:string, recordId?:number, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
2028
+ let _request : carriers.Configuration_SetLandingPagePinForAssociateRequest = null;
2029
+ let _options : base.WebApiRequestOptions = null;
2030
+ const first : any = pin;
2031
+ if( typeof( first ) === "object" && first && ( typeof(first.pin)!='undefined' || typeof(first.associateId)!='undefined' || typeof(first.entityTableName)!='undefined' || typeof(first.pinTableName)!='undefined' || typeof(first.recordId)!='undefined' ) )
2032
+ {
2033
+ _request = pin as carriers.Configuration_SetLandingPagePinForAssociateRequest;
2034
+ _options = associateId as base.WebApiRequestOptions;
2035
+ }
2036
+ else
2037
+ {
2038
+ _request = {
2039
+ pin: pin as boolean,
2040
+ associateId: associateId as number,
2041
+ entityTableName: entityTableName as string,
2042
+ pinTableName: pinTableName as string,
2043
+ recordId: recordId as number,
2044
+ };
2045
+ _options = webapi_options;
2046
+ }
2047
+ return this._setLandingPagePinForAssociateAsync( _request, _options );
2048
+ }
2049
+
1834
2050
  /**
1835
2051
  * Gets a SystemEventEntity object.
1836
2052
  * @param systemEventEntityId - The primary key.
package/src/Converters.ts CHANGED
@@ -8635,6 +8635,41 @@ export function Create_TicketRelationDefinitionEntityArrayArray_From(src:any) :
8635
8635
 
8636
8636
 
8637
8637
 
8638
+ export function Create_TicketRelationDefinitionResult_From(src:any) : carriers.TicketRelationDefinitionResult {
8639
+ if( src === null || src === undefined )
8640
+ return null;
8641
+ let res : any = { };
8642
+
8643
+ res.sourceTicketTypeId= src.SourceTicketTypeId as number;
8644
+ res.destinationTicketTypeId= src.DestinationTicketTypeId as number;
8645
+ res.isValid= src.IsValid as boolean;
8646
+ res.existingRelationDefinitionName= src.ExistingRelationDefinitionName as string;
8647
+ return res as carriers.TicketRelationDefinitionResult;
8648
+ }
8649
+
8650
+ export function Create_TicketRelationDefinitionResultArray_From(src:any) : carriers.TicketRelationDefinitionResult[] {
8651
+ let res : carriers.TicketRelationDefinitionResult[] = [];
8652
+ if( Array.isArray(src) ) {
8653
+ for(let i in src) {
8654
+ res[i] = Create_TicketRelationDefinitionResult_From(src[i]);
8655
+ }
8656
+ }
8657
+ return res;
8658
+ }
8659
+
8660
+ export function Create_TicketRelationDefinitionResultArrayArray_From(src:any) : carriers.TicketRelationDefinitionResult[][] {
8661
+ let res : carriers.TicketRelationDefinitionResult[][] = [];
8662
+ if( Array.isArray(src) ) {
8663
+ for(let i in src) {
8664
+ res[i] = Create_TicketRelationDefinitionResultArray_From(src[i]);
8665
+ }
8666
+ }
8667
+ return res;
8668
+ }
8669
+
8670
+
8671
+
8672
+
8638
8673
  export function Create_TicketStatusEntity_From(src:any) : carriers.TicketStatusEntity {
8639
8674
  if( src === null || src === undefined )
8640
8675
  return null;
@@ -8898,6 +8933,7 @@ export function Create_WebPanelEntityArrayArray_From(src:any) : carriers.WebPane
8898
8933
 
8899
8934
 
8900
8935
 
8936
+
8901
8937
 
8902
8938
 
8903
8939
  export function Create_BlobEntity_From(src:any) : carriers.BlobEntity {
@@ -9105,6 +9141,8 @@ export function Create_SelectableMDOListItemArrayArray_From(src:any) : carriers.
9105
9141
 
9106
9142
 
9107
9143
 
9144
+
9145
+
9108
9146
 
9109
9147
 
9110
9148
 
@@ -9257,6 +9295,43 @@ export function Create_DiaryViewEntityArrayArray_From(src:any) : carriers.DiaryV
9257
9295
 
9258
9296
 
9259
9297
 
9298
+ export function Create_LandingPageEntity_From(src:any) : carriers.LandingPageEntity {
9299
+ if( src === null || src === undefined )
9300
+ return null;
9301
+ let res : carriers.LandingPageEntity = Create_Carrier_From(src) as carriers.LandingPageEntity;
9302
+
9303
+ res.landingPageId= src.LandingPageId as number;
9304
+ res.associateId= src.AssociateId as number;
9305
+ res.entityTableName= src.EntityTableName as string;
9306
+ res.selectionId= src.SelectionId as number;
9307
+ res.pinnedSelections= Create_MDOListItemArray_From(src.PinnedSelections);
9308
+ res.pinnedEntities= Create_MDOListItemArray_From(src.PinnedEntities);
9309
+ return res as carriers.LandingPageEntity;
9310
+ }
9311
+
9312
+ export function Create_LandingPageEntityArray_From(src:any) : carriers.LandingPageEntity[] {
9313
+ let res : carriers.LandingPageEntity[] = [];
9314
+ if( Array.isArray(src) ) {
9315
+ for(let i in src) {
9316
+ res[i] = Create_LandingPageEntity_From(src[i]);
9317
+ }
9318
+ }
9319
+ return res;
9320
+ }
9321
+
9322
+ export function Create_LandingPageEntityArrayArray_From(src:any) : carriers.LandingPageEntity[][] {
9323
+ let res : carriers.LandingPageEntity[][] = [];
9324
+ if( Array.isArray(src) ) {
9325
+ for(let i in src) {
9326
+ res[i] = Create_LandingPageEntityArray_From(src[i]);
9327
+ }
9328
+ }
9329
+ return res;
9330
+ }
9331
+
9332
+
9333
+
9334
+
9260
9335
  export function Create_SystemEventEntity_From(src:any) : carriers.SystemEventEntity {
9261
9336
  if( src === null || src === undefined )
9262
9337
  return null;
@@ -10456,6 +10531,7 @@ export function Create_EMailAccount_From(src:any) : carriers.EMailAccount {
10456
10531
  res.sentFolder= src.SentFolder as string;
10457
10532
  res.simpleMode= src.SimpleMode as number;
10458
10533
  res.lastFetch= Create_Date_From(src.LastFetch);
10534
+ res.useGraphApi= src.UseGraphApi as number;
10459
10535
  return res as carriers.EMailAccount;
10460
10536
  }
10461
10537
 
@@ -10611,6 +10687,7 @@ export function Create_EMailConnectionInfo_From(src:any) : carriers.EMailConnect
10611
10687
  res.password= src.Password as string;
10612
10688
  res.folder= src.Folder as string;
10613
10689
  res.useSSL= src.UseSSL as boolean;
10690
+ res.useGraphApi= src.UseGraphApi as boolean;
10614
10691
  return res as carriers.EMailConnectionInfo;
10615
10692
  }
10616
10693
 
@@ -10649,6 +10726,7 @@ export function Create_EMailConnectionInfoExtended_From(src:any) : carriers.EMai
10649
10726
  res.password= src.Password as string;
10650
10727
  res.useSSL= src.UseSSL as boolean;
10651
10728
  res.folder= src.Folder as string;
10729
+ res.useGraphApi= src.UseGraphApi as boolean;
10652
10730
  return res as carriers.EMailConnectionInfoExtended;
10653
10731
  }
10654
10732
 
@@ -10728,6 +10806,7 @@ export function Create_EMailEntity_From(src:any) : carriers.EMailEntity {
10728
10806
  res.isSent= src.IsSent as boolean;
10729
10807
  res.eMailSOInfo= Create_EMailSOInfo_From(src.EMailSOInfo);
10730
10808
  res.serverId= src.ServerId as number;
10809
+ res.serverIdentifier= src.ServerIdentifier as string;
10731
10810
  res.attachments= Create_EMailAttachmentArray_From(src.Attachments);
10732
10811
  res.customHeaderList= Create_EMailCustomHeaderArray_From(src.CustomHeaderList);
10733
10812
  res.folderName= src.FolderName as string;
@@ -10771,6 +10850,7 @@ export function Create_EMailEnvelope_From(src:any) : carriers.EMailEnvelope {
10771
10850
  let res : carriers.EMailEnvelope = Create_Carrier_From(src) as carriers.EMailEnvelope;
10772
10851
 
10773
10852
  res.serverId= src.ServerId as number;
10853
+ res.serverIdentifier= src.ServerIdentifier as string;
10774
10854
  res.messageId= src.MessageId as string;
10775
10855
  res.subject= src.Subject as string;
10776
10856
  res.from= Create_EMailAddress_From(src.From);
@@ -10937,6 +11017,7 @@ export function Create_SyncUserAccountArrayArray_From(src:any) : carriers.SyncUs
10937
11017
 
10938
11018
 
10939
11019
 
11020
+
10940
11021
 
10941
11022
 
10942
11023
  export function Create_CriteriaInformation_From(src:any) : carriers.CriteriaInformation {
@@ -11028,6 +11109,15 @@ export function Create_Webhook_From(src:any) : carriers.Webhook {
11028
11109
  res.updated= Create_Date_From(src.Updated);
11029
11110
  res.updatedAssociate= Create_Associate_From(src.UpdatedAssociate);
11030
11111
  res.errorsEmail= src.ErrorsEmail as string;
11112
+ res.errorEmails= src.ErrorEmails as string[];
11113
+ res.errorAssociates= Create_MDOListItemArray_From(src.ErrorAssociates);
11114
+ res.description= src.Description as string;
11115
+ res.notifyVia= Create_WebhookNotifyVia_From(src.NotifyVia) as enums.WebhookNotifyVia;
11116
+ res.notifyWhen= Create_WebhookNotifyWhen_From(src.NotifyWhen) as enums.WebhookNotifyWhen;
11117
+ res.totalCalls= src.TotalCalls as number;
11118
+ res.totalErrors= src.TotalErrors as number;
11119
+ res.consecutiveErrors= src.ConsecutiveErrors as number;
11120
+ res.lastError= src.LastError as string;
11031
11121
  return res as carriers.Webhook;
11032
11122
  }
11033
11123
 
@@ -12956,6 +13046,43 @@ export function Create_ExtendedModuleLicenseArrayArray_From(src:any) : carriers.
12956
13046
 
12957
13047
 
12958
13048
 
13049
+ export function Create_FencingInfo_From(src:any) : carriers.FencingInfo {
13050
+ if( src === null || src === undefined )
13051
+ return null;
13052
+ let res : carriers.FencingInfo = Create_Carrier_From(src) as carriers.FencingInfo;
13053
+
13054
+ res.activeCount= src.ActiveCount as number;
13055
+ res.maximum= src.Maximum as number;
13056
+ res.isNearingMaximum= src.IsNearingMaximum as boolean;
13057
+ res.hasReachedMaximum= src.HasReachedMaximum as boolean;
13058
+ res.warningMessage= src.WarningMessage as string;
13059
+ res.warningTooltip= src.WarningTooltip as string;
13060
+ return res as carriers.FencingInfo;
13061
+ }
13062
+
13063
+ export function Create_FencingInfoArray_From(src:any) : carriers.FencingInfo[] {
13064
+ let res : carriers.FencingInfo[] = [];
13065
+ if( Array.isArray(src) ) {
13066
+ for(let i in src) {
13067
+ res[i] = Create_FencingInfo_From(src[i]);
13068
+ }
13069
+ }
13070
+ return res;
13071
+ }
13072
+
13073
+ export function Create_FencingInfoArrayArray_From(src:any) : carriers.FencingInfo[][] {
13074
+ let res : carriers.FencingInfo[][] = [];
13075
+ if( Array.isArray(src) ) {
13076
+ for(let i in src) {
13077
+ res[i] = Create_FencingInfoArray_From(src[i]);
13078
+ }
13079
+ }
13080
+ return res;
13081
+ }
13082
+
13083
+
13084
+
13085
+
12959
13086
  export function Create_License_From(src:any) : carriers.License {
12960
13087
  if( src === null || src === undefined )
12961
13088
  return null;
@@ -17521,6 +17648,41 @@ export function Create_TicketMessageEntityArrayArray_From(src:any) : carriers.Ti
17521
17648
 
17522
17649
 
17523
17650
 
17651
+ export function Create_TicketRelationAction_From(src:any) : carriers.TicketRelationAction {
17652
+ if( src === null || src === undefined )
17653
+ return null;
17654
+ let res : any = { };
17655
+
17656
+ res.ticketIdToClose= src.TicketIdToClose as number;
17657
+ res.isParentRequired= src.IsParentRequired as boolean;
17658
+ res.canCloseCurrentTicket= src.CanCloseCurrentTicket as boolean;
17659
+ res.children= src.Children as number[];
17660
+ return res as carriers.TicketRelationAction;
17661
+ }
17662
+
17663
+ export function Create_TicketRelationActionArray_From(src:any) : carriers.TicketRelationAction[] {
17664
+ let res : carriers.TicketRelationAction[] = [];
17665
+ if( Array.isArray(src) ) {
17666
+ for(let i in src) {
17667
+ res[i] = Create_TicketRelationAction_From(src[i]);
17668
+ }
17669
+ }
17670
+ return res;
17671
+ }
17672
+
17673
+ export function Create_TicketRelationActionArrayArray_From(src:any) : carriers.TicketRelationAction[][] {
17674
+ let res : carriers.TicketRelationAction[][] = [];
17675
+ if( Array.isArray(src) ) {
17676
+ for(let i in src) {
17677
+ res[i] = Create_TicketRelationActionArray_From(src[i]);
17678
+ }
17679
+ }
17680
+ return res;
17681
+ }
17682
+
17683
+
17684
+
17685
+
17524
17686
  export function Create_TicketRelationEntity_From(src:any) : carriers.TicketRelationEntity {
17525
17687
  if( src === null || src === undefined )
17526
17688
  return null;
@@ -17557,6 +17719,90 @@ export function Create_TicketRelationEntityArrayArray_From(src:any) : carriers.T
17557
17719
 
17558
17720
 
17559
17721
 
17722
+ export function Create_TicketRelationItem_From(src:any) : carriers.TicketRelationItem {
17723
+ if( src === null || src === undefined )
17724
+ return null;
17725
+ let res : any = { };
17726
+
17727
+ res.ticketRelationId= src.TicketRelationId as number;
17728
+ res.relationType= enums.TicketRelationType[src.RelationType];
17729
+ res.relationComment= src.RelationComment as string;
17730
+ res.hasParent= src.HasParent as boolean;
17731
+ res.childCount= src.ChildCount as number;
17732
+ res.relatedCount= src.RelatedCount as number;
17733
+ res.relationCreatedAt= Create_Date_From(src.RelationCreatedAt);
17734
+ res.ticketId= src.TicketId as number;
17735
+ res.title= src.Title as string;
17736
+ res.iconHint= src.IconHint as string;
17737
+ res.custId= src.CustId as number;
17738
+ res.personFullname= src.PersonFullname as string;
17739
+ res.contactId= src.ContactId as number;
17740
+ res.contactName= src.ContactName as string;
17741
+ res.baseStatus= enums.TicketBaseStatus[src.BaseStatus];
17742
+ res.ticketStatus= src.TicketStatus as number;
17743
+ res.ticketStatusDisplayValue= src.TicketStatusDisplayValue as string;
17744
+ res.ticketCreatedAt= Create_Date_From(src.TicketCreatedAt);
17745
+ return res as carriers.TicketRelationItem;
17746
+ }
17747
+
17748
+ export function Create_TicketRelationItemArray_From(src:any) : carriers.TicketRelationItem[] {
17749
+ let res : carriers.TicketRelationItem[] = [];
17750
+ if( Array.isArray(src) ) {
17751
+ for(let i in src) {
17752
+ res[i] = Create_TicketRelationItem_From(src[i]);
17753
+ }
17754
+ }
17755
+ return res;
17756
+ }
17757
+
17758
+ export function Create_TicketRelationItemArrayArray_From(src:any) : carriers.TicketRelationItem[][] {
17759
+ let res : carriers.TicketRelationItem[][] = [];
17760
+ if( Array.isArray(src) ) {
17761
+ for(let i in src) {
17762
+ res[i] = Create_TicketRelationItemArray_From(src[i]);
17763
+ }
17764
+ }
17765
+ return res;
17766
+ }
17767
+
17768
+
17769
+
17770
+
17771
+ export function Create_TicketRelationResult_From(src:any) : carriers.TicketRelationResult {
17772
+ if( src === null || src === undefined )
17773
+ return null;
17774
+ let res : any = { };
17775
+
17776
+ res.sourceTicketId= src.SourceTicketId as number;
17777
+ res.isValid= src.IsValid as boolean;
17778
+ res.relationError= enums.TicketRelationError[src.RelationError];
17779
+ res.errorMessage= src.ErrorMessage as string;
17780
+ return res as carriers.TicketRelationResult;
17781
+ }
17782
+
17783
+ export function Create_TicketRelationResultArray_From(src:any) : carriers.TicketRelationResult[] {
17784
+ let res : carriers.TicketRelationResult[] = [];
17785
+ if( Array.isArray(src) ) {
17786
+ for(let i in src) {
17787
+ res[i] = Create_TicketRelationResult_From(src[i]);
17788
+ }
17789
+ }
17790
+ return res;
17791
+ }
17792
+
17793
+ export function Create_TicketRelationResultArrayArray_From(src:any) : carriers.TicketRelationResult[][] {
17794
+ let res : carriers.TicketRelationResult[][] = [];
17795
+ if( Array.isArray(src) ) {
17796
+ for(let i in src) {
17797
+ res[i] = Create_TicketRelationResultArray_From(src[i]);
17798
+ }
17799
+ }
17800
+ return res;
17801
+ }
17802
+
17803
+
17804
+
17805
+
17560
17806
  export function Create_TicketSummaryItem_From(src:any) : carriers.TicketSummaryItem {
17561
17807
  if( src === null || src === undefined )
17562
17808
  return null;
@@ -17606,6 +17852,9 @@ export function Create_TicketSummaryItemArrayArray_From(src:any) : carriers.Tick
17606
17852
 
17607
17853
 
17608
17854
 
17855
+
17856
+
17857
+
17609
17858
 
17610
17859
  export function Create_TableRecord_From(src:any) : carriers.TableRecord {
17611
17860
  if( src === null || src === undefined )
@@ -22515,6 +22764,52 @@ function Create_WebhookState_From(src:any): enums.WebhookState | enums.WebhookSt
22515
22764
  }
22516
22765
 
22517
22766
 
22767
+ function Create_WebhookNotifyVia_From(src:any): enums.WebhookNotifyVia | enums.WebhookNotifyVia[] {
22768
+ if (!src) return null;
22769
+
22770
+ if (Array.isArray(src)) {
22771
+ let result: enums.WebhookNotifyVia[] = Array<enums.WebhookNotifyVia>();
22772
+ for (const i in (src as enums.WebhookNotifyVia[])) {
22773
+ let r: enums.WebhookNotifyVia;
22774
+ for (const s of (src[i] as string).split(/,\s*/)) {
22775
+ r |= enums.WebhookNotifyVia[s] as enums.WebhookNotifyVia;
22776
+ }
22777
+ result.push(r);
22778
+ }
22779
+ return result;
22780
+ } else {
22781
+ let r: enums.WebhookNotifyVia;
22782
+ for (const s of (src as string).split(/,\s*/)) {
22783
+ r |= enums.WebhookNotifyVia[s] as enums.WebhookNotifyVia;
22784
+ }
22785
+ return r;
22786
+ }
22787
+ }
22788
+
22789
+
22790
+ function Create_WebhookNotifyWhen_From(src:any): enums.WebhookNotifyWhen | enums.WebhookNotifyWhen[] {
22791
+ if (!src) return null;
22792
+
22793
+ if (Array.isArray(src)) {
22794
+ let result: enums.WebhookNotifyWhen[] = Array<enums.WebhookNotifyWhen>();
22795
+ for (const i in (src as enums.WebhookNotifyWhen[])) {
22796
+ let r: enums.WebhookNotifyWhen;
22797
+ for (const s of (src[i] as string).split(/,\s*/)) {
22798
+ r |= enums.WebhookNotifyWhen[s] as enums.WebhookNotifyWhen;
22799
+ }
22800
+ result.push(r);
22801
+ }
22802
+ return result;
22803
+ } else {
22804
+ let r: enums.WebhookNotifyWhen;
22805
+ for (const s of (src as string).split(/,\s*/)) {
22806
+ r |= enums.WebhookNotifyWhen[s] as enums.WebhookNotifyWhen;
22807
+ }
22808
+ return r;
22809
+ }
22810
+ }
22811
+
22812
+
22518
22813
  function Create_CommandAction_From(src:any): enums.CommandAction | enums.CommandAction[] {
22519
22814
  if (!src) return null;
22520
22815
 
@@ -23481,6 +23776,23 @@ function Create_TicketRelationType_From(src:any): enums.TicketRelationType | enu
23481
23776
  }
23482
23777
 
23483
23778
 
23779
+ function Create_TicketRelationError_From(src:any): enums.TicketRelationError | enums.TicketRelationError[] {
23780
+ if (!src) return null;
23781
+
23782
+ if (Array.isArray(src)) {
23783
+ let result: enums.TicketRelationError[] = Array<enums.TicketRelationError>();
23784
+ for (const i in (src as enums.TicketRelationError[])) {
23785
+ let r = enums.TicketRelationError[src[i]] as enums.TicketRelationError;
23786
+ result.push(r);
23787
+ }
23788
+ return result;
23789
+ } else {
23790
+ let r = enums.TicketRelationError[src] as enums.TicketRelationError;
23791
+ return r;
23792
+ }
23793
+ }
23794
+
23795
+
23484
23796
  function Create_NotifyType_From(src:any): enums.NotifyType | enums.NotifyType[] {
23485
23797
  if (!src) return null;
23486
23798