@superoffice/webapi 11.3.1349 → 11.5.755

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 (90) hide show
  1. package/dist/cjs/AppointmentAgent.d.ts +7 -0
  2. package/dist/cjs/AppointmentAgent.d.ts.map +1 -1
  3. package/dist/cjs/AppointmentAgent.js +24 -0
  4. package/dist/cjs/AppointmentAgent.js.map +1 -1
  5. package/dist/cjs/BLOBAgent.d.ts +41 -41
  6. package/dist/cjs/Carriers.d.ts +238 -57
  7. package/dist/cjs/Carriers.d.ts.map +1 -1
  8. package/dist/cjs/Converters.d.ts +9 -3
  9. package/dist/cjs/Converters.d.ts.map +1 -1
  10. package/dist/cjs/Converters.js +147 -61
  11. package/dist/cjs/Converters.js.map +1 -1
  12. package/dist/cjs/DashAgent.d.ts +46 -0
  13. package/dist/cjs/DashAgent.d.ts.map +1 -1
  14. package/dist/cjs/DashAgent.js +100 -0
  15. package/dist/cjs/DashAgent.js.map +1 -1
  16. package/dist/cjs/DiagnosticsAgent.d.ts +15 -0
  17. package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
  18. package/dist/cjs/DiagnosticsAgent.js +33 -0
  19. package/dist/cjs/DiagnosticsAgent.js.map +1 -1
  20. package/dist/cjs/Enums.d.ts +17 -0
  21. package/dist/cjs/Enums.d.ts.map +1 -1
  22. package/dist/cjs/Enums.js +21 -3
  23. package/dist/cjs/Enums.js.map +1 -1
  24. package/dist/cjs/PersonAgent.d.ts +20 -3
  25. package/dist/cjs/PersonAgent.d.ts.map +1 -1
  26. package/dist/cjs/PersonAgent.js +35 -0
  27. package/dist/cjs/PersonAgent.js.map +1 -1
  28. package/dist/cjs/SelectionAgent.d.ts +19 -2
  29. package/dist/cjs/SelectionAgent.d.ts.map +1 -1
  30. package/dist/cjs/SelectionAgent.js +35 -0
  31. package/dist/cjs/SelectionAgent.js.map +1 -1
  32. package/dist/cjs/TicketAgent.d.ts +15 -0
  33. package/dist/cjs/TicketAgent.d.ts.map +1 -1
  34. package/dist/cjs/TicketAgent.js +33 -0
  35. package/dist/cjs/TicketAgent.js.map +1 -1
  36. package/dist/cjs/UserAgent.d.ts +16 -0
  37. package/dist/cjs/UserAgent.d.ts.map +1 -1
  38. package/dist/cjs/UserAgent.js +34 -0
  39. package/dist/cjs/UserAgent.js.map +1 -1
  40. package/dist/esm/AppointmentAgent.d.ts +7 -0
  41. package/dist/esm/AppointmentAgent.d.ts.map +1 -1
  42. package/dist/esm/AppointmentAgent.js +24 -0
  43. package/dist/esm/AppointmentAgent.js.map +1 -1
  44. package/dist/esm/BLOBAgent.d.ts +41 -41
  45. package/dist/esm/Carriers.d.ts +238 -57
  46. package/dist/esm/Carriers.d.ts.map +1 -1
  47. package/dist/esm/Converters.d.ts +9 -3
  48. package/dist/esm/Converters.d.ts.map +1 -1
  49. package/dist/esm/Converters.js +114 -34
  50. package/dist/esm/Converters.js.map +1 -1
  51. package/dist/esm/DashAgent.d.ts +46 -0
  52. package/dist/esm/DashAgent.d.ts.map +1 -1
  53. package/dist/esm/DashAgent.js +100 -0
  54. package/dist/esm/DashAgent.js.map +1 -1
  55. package/dist/esm/DiagnosticsAgent.d.ts +15 -0
  56. package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
  57. package/dist/esm/DiagnosticsAgent.js +33 -0
  58. package/dist/esm/DiagnosticsAgent.js.map +1 -1
  59. package/dist/esm/Enums.d.ts +17 -0
  60. package/dist/esm/Enums.d.ts.map +1 -1
  61. package/dist/esm/Enums.js +18 -0
  62. package/dist/esm/Enums.js.map +1 -1
  63. package/dist/esm/PersonAgent.d.ts +20 -3
  64. package/dist/esm/PersonAgent.d.ts.map +1 -1
  65. package/dist/esm/PersonAgent.js +35 -0
  66. package/dist/esm/PersonAgent.js.map +1 -1
  67. package/dist/esm/SelectionAgent.d.ts +19 -2
  68. package/dist/esm/SelectionAgent.d.ts.map +1 -1
  69. package/dist/esm/SelectionAgent.js +35 -0
  70. package/dist/esm/SelectionAgent.js.map +1 -1
  71. package/dist/esm/TicketAgent.d.ts +15 -0
  72. package/dist/esm/TicketAgent.d.ts.map +1 -1
  73. package/dist/esm/TicketAgent.js +33 -0
  74. package/dist/esm/TicketAgent.js.map +1 -1
  75. package/dist/esm/UserAgent.d.ts +16 -0
  76. package/dist/esm/UserAgent.d.ts.map +1 -1
  77. package/dist/esm/UserAgent.js +34 -0
  78. package/dist/esm/UserAgent.js.map +1 -1
  79. package/package.json +3 -3
  80. package/src/AppointmentAgent.ts +30 -0
  81. package/src/BLOBAgent.ts +41 -41
  82. package/src/Carriers.ts +319 -73
  83. package/src/Converters.ts +140 -41
  84. package/src/DashAgent.ts +170 -0
  85. package/src/DiagnosticsAgent.ts +56 -0
  86. package/src/Enums.ts +19 -0
  87. package/src/PersonAgent.ts +63 -3
  88. package/src/SelectionAgent.ts +62 -2
  89. package/src/TicketAgent.ts +56 -0
  90. package/src/UserAgent.ts +58 -0
package/src/Converters.ts CHANGED
@@ -3179,7 +3179,7 @@ export function Create_ContactEntity_From(src:any) : carriers.ContactEntity {
3179
3179
  res.activeErpLinks= src.ActiveErpLinks as number;
3180
3180
  res.bounceEmails= src.BounceEmails as string[];
3181
3181
  res.domains= src.Domains as string[];
3182
- res.initialUtmParameters= Create_InitalUtmParameters_From(src.InitialUtmParameters);
3182
+ res.utmParameters= Create_SavedUtmParameters_From(src.UtmParameters);
3183
3183
  res.userDefinedFields= src.UserDefinedFields as carriers.StringDictionary;
3184
3184
  res.extraFields= src.ExtraFields as carriers.StringDictionary;
3185
3185
  res.customFields= src.CustomFields as carriers.StringDictionary;
@@ -3376,44 +3376,6 @@ export function Create_ConsentPersonArrayArray_From(src:any) : carriers.ConsentP
3376
3376
 
3377
3377
 
3378
3378
 
3379
- export function Create_InitalUtmParameters_From(src:any) : carriers.InitalUtmParameters {
3380
- if( src === null || src === undefined )
3381
- return null;
3382
- let res : carriers.InitalUtmParameters = Create_Carrier_From(src) as carriers.InitalUtmParameters;
3383
-
3384
- res.formName= src.FormName as string;
3385
- res.source= src.Source as string;
3386
- res.medium= src.Medium as string;
3387
- res.campaign= src.Campaign as string;
3388
- res.term= src.Term as string;
3389
- res.content= src.Content as string;
3390
- res.referrerDomain= src.ReferrerDomain as string;
3391
- return res as carriers.InitalUtmParameters;
3392
- }
3393
-
3394
- export function Create_InitalUtmParametersArray_From(src:any) : carriers.InitalUtmParameters[] {
3395
- let res : carriers.InitalUtmParameters[] = [];
3396
- if( Array.isArray(src) ) {
3397
- for(let i in src) {
3398
- res[i] = Create_InitalUtmParameters_From(src[i]);
3399
- }
3400
- }
3401
- return res;
3402
- }
3403
-
3404
- export function Create_InitalUtmParametersArrayArray_From(src:any) : carriers.InitalUtmParameters[][] {
3405
- let res : carriers.InitalUtmParameters[][] = [];
3406
- if( Array.isArray(src) ) {
3407
- for(let i in src) {
3408
- res[i] = Create_InitalUtmParametersArray_From(src[i]);
3409
- }
3410
- }
3411
- return res;
3412
- }
3413
-
3414
-
3415
-
3416
-
3417
3379
  export function Create_Person_From(src:any) : carriers.Person {
3418
3380
  if( src === null || src === undefined )
3419
3381
  return null;
@@ -3552,7 +3514,8 @@ export function Create_PersonEntity_From(src:any) : carriers.PersonEntity {
3552
3514
  res.bounceEmails= src.BounceEmails as string[];
3553
3515
  res.activeStatusMonitorId= src.ActiveStatusMonitorId as number;
3554
3516
  res.createdByFormId= src.CreatedByFormId as number;
3555
- res.initialUtmParameters= Create_InitalUtmParameters_From(src.InitialUtmParameters);
3517
+ res.utmParameters= Create_SavedUtmParameters_From(src.UtmParameters);
3518
+ res.leadstatusId= src.LeadstatusId as number;
3556
3519
  res.userDefinedFields= src.UserDefinedFields as carriers.StringDictionary;
3557
3520
  res.extraFields= src.ExtraFields as carriers.StringDictionary;
3558
3521
  res.customFields= src.CustomFields as carriers.StringDictionary;
@@ -3686,6 +3649,50 @@ export function Create_ResolvedPersonArrayArray_From(src:any) : carriers.Resolve
3686
3649
 
3687
3650
 
3688
3651
 
3652
+ export function Create_SavedUtmParameters_From(src:any) : carriers.SavedUtmParameters {
3653
+ if( src === null || src === undefined )
3654
+ return null;
3655
+ let res : carriers.SavedUtmParameters = Create_Carrier_From(src) as carriers.SavedUtmParameters;
3656
+
3657
+ res.formName= src.FormName as string;
3658
+ res.firsttouchSource= src.FirsttouchSource as string;
3659
+ res.firsttouchMedium= src.FirsttouchMedium as string;
3660
+ res.firsttouchCampaign= src.FirsttouchCampaign as string;
3661
+ res.firsttouchTerm= src.FirsttouchTerm as string;
3662
+ res.firsttouchContent= src.FirsttouchContent as string;
3663
+ res.firsttouchReferrerDomain= src.FirsttouchReferrerDomain as string;
3664
+ res.source= src.Source as string;
3665
+ res.medium= src.Medium as string;
3666
+ res.campaign= src.Campaign as string;
3667
+ res.term= src.Term as string;
3668
+ res.content= src.Content as string;
3669
+ res.referrerDomain= src.ReferrerDomain as string;
3670
+ return res as carriers.SavedUtmParameters;
3671
+ }
3672
+
3673
+ export function Create_SavedUtmParametersArray_From(src:any) : carriers.SavedUtmParameters[] {
3674
+ let res : carriers.SavedUtmParameters[] = [];
3675
+ if( Array.isArray(src) ) {
3676
+ for(let i in src) {
3677
+ res[i] = Create_SavedUtmParameters_From(src[i]);
3678
+ }
3679
+ }
3680
+ return res;
3681
+ }
3682
+
3683
+ export function Create_SavedUtmParametersArrayArray_From(src:any) : carriers.SavedUtmParameters[][] {
3684
+ let res : carriers.SavedUtmParameters[][] = [];
3685
+ if( Array.isArray(src) ) {
3686
+ for(let i in src) {
3687
+ res[i] = Create_SavedUtmParametersArray_From(src[i]);
3688
+ }
3689
+ }
3690
+ return res;
3691
+ }
3692
+
3693
+
3694
+
3695
+
3689
3696
  export function Create_TemporaryKeyInfo_From(src:any) : carriers.TemporaryKeyInfo {
3690
3697
  if( src === null || src === undefined )
3691
3698
  return null;
@@ -4424,6 +4431,8 @@ export function Create_ProjectMember_From(src:any) : carriers.ProjectMember {
4424
4431
  res.emailAddressName= src.EmailAddressName as string;
4425
4432
  res.comment= src.Comment as string;
4426
4433
  res.fullName= src.FullName as string;
4434
+ res.registered= Create_Date_From(src.Registered);
4435
+ res.updated= Create_Date_From(src.Updated);
4427
4436
  return res as carriers.ProjectMember;
4428
4437
  }
4429
4438
 
@@ -5507,10 +5516,44 @@ export function Create_TaskListItemArrayArray_From(src:any) : carriers.TaskListI
5507
5516
 
5508
5517
 
5509
5518
 
5519
+ export function Create_UserConnectedState_From(src:any) : carriers.UserConnectedState {
5520
+ if( src === null || src === undefined )
5521
+ return null;
5522
+ let res : any = { };
5523
+
5524
+ res.isConnected= src.IsConnected as boolean;
5525
+ res.providerId= src.ProviderId as string;
5526
+ res.loginUrl= src.LoginUrl as string;
5527
+ return res as carriers.UserConnectedState;
5528
+ }
5529
+
5530
+ export function Create_UserConnectedStateArray_From(src:any) : carriers.UserConnectedState[] {
5531
+ let res : carriers.UserConnectedState[] = [];
5532
+ if( Array.isArray(src) ) {
5533
+ for(let i in src) {
5534
+ res[i] = Create_UserConnectedState_From(src[i]);
5535
+ }
5536
+ }
5537
+ return res;
5538
+ }
5539
+
5540
+ export function Create_UserConnectedStateArrayArray_From(src:any) : carriers.UserConnectedState[][] {
5541
+ let res : carriers.UserConnectedState[][] = [];
5542
+ if( Array.isArray(src) ) {
5543
+ for(let i in src) {
5544
+ res[i] = Create_UserConnectedStateArray_From(src[i]);
5545
+ }
5546
+ }
5547
+ return res;
5548
+ }
5549
+
5550
+
5551
+
5552
+
5510
5553
  export function Create_VideoMeetingReservation_From(src:any) : carriers.VideoMeetingReservation {
5511
5554
  if( src === null || src === undefined )
5512
5555
  return null;
5513
- let res : carriers.VideoMeetingReservation = Create_Carrier_From(src) as carriers.VideoMeetingReservation;
5556
+ let res : any = { };
5514
5557
 
5515
5558
  res.videoMeetingId= src.VideoMeetingId as string;
5516
5559
  res.videoMeetingUrl= src.VideoMeetingUrl as string;
@@ -9864,6 +9907,7 @@ export function Create_SaleBoardViewSettings_From(src:any) : carriers.SaleBoardV
9864
9907
  let res : carriers.SaleBoardViewSettings = src as carriers.SaleBoardViewSettings;
9865
9908
 
9866
9909
  res.hideClosedSales= src.HideClosedSales as boolean;
9910
+ res.badgeType= enums.BoardViewBadgeType[src.BadgeType];
9867
9911
  return res as carriers.SaleBoardViewSettings;
9868
9912
  }
9869
9913
 
@@ -15534,6 +15578,44 @@ export function Create_PreviewDashTileArrayArray_From(src:any) : carriers.Previe
15534
15578
 
15535
15579
 
15536
15580
 
15581
+ export function Create_QuickFilterInfo_From(src:any) : carriers.QuickFilterInfo {
15582
+ if( src === null || src === undefined )
15583
+ return null;
15584
+ let res : any = { };
15585
+
15586
+ res.restriction= Create_ArchiveRestrictionInfo_From(src.Restriction);
15587
+ res.provider= src.Provider as string;
15588
+ res.dashboardId= src.DashboardId as number;
15589
+ return res as carriers.QuickFilterInfo;
15590
+ }
15591
+
15592
+ export function Create_QuickFilterInfoArray_From(src:any) : carriers.QuickFilterInfo[] {
15593
+ let res : carriers.QuickFilterInfo[] = [];
15594
+ if( Array.isArray(src) ) {
15595
+ for(let i in src) {
15596
+ res[i] = Create_QuickFilterInfo_From(src[i]);
15597
+ }
15598
+ }
15599
+ return res;
15600
+ }
15601
+
15602
+ export function Create_QuickFilterInfoArrayArray_From(src:any) : carriers.QuickFilterInfo[][] {
15603
+ let res : carriers.QuickFilterInfo[][] = [];
15604
+ if( Array.isArray(src) ) {
15605
+ for(let i in src) {
15606
+ res[i] = Create_QuickFilterInfoArray_From(src[i]);
15607
+ }
15608
+ }
15609
+ return res;
15610
+ }
15611
+
15612
+
15613
+
15614
+
15615
+
15616
+
15617
+
15618
+
15537
15619
 
15538
15620
 
15539
15621
 
@@ -20911,6 +20993,23 @@ function Create_BoardViewEntityType_From(src:any): enums.BoardViewEntityType | e
20911
20993
  }
20912
20994
 
20913
20995
 
20996
+ function Create_BoardViewBadgeType_From(src:any): enums.BoardViewBadgeType | enums.BoardViewBadgeType[] {
20997
+ if (!src) return null;
20998
+
20999
+ if (Array.isArray(src)) {
21000
+ let result: enums.BoardViewBadgeType[] = Array<enums.BoardViewBadgeType>();
21001
+ for (const i in (src as enums.BoardViewBadgeType[])) {
21002
+ let r = enums.BoardViewBadgeType[src[i]] as enums.BoardViewBadgeType;
21003
+ result.push(r);
21004
+ }
21005
+ return result;
21006
+ } else {
21007
+ let r = enums.BoardViewBadgeType[src] as enums.BoardViewBadgeType;
21008
+ return r;
21009
+ }
21010
+ }
21011
+
21012
+
20914
21013
  function Create_WorkflowGoalType_From(src:any): enums.WorkflowGoalType | enums.WorkflowGoalType[] {
20915
21014
  if (!src) return null;
20916
21015
 
package/src/DashAgent.ts CHANGED
@@ -51,6 +51,12 @@ export interface IDashAgent {
51
51
  duplicateDashboardAsync(dashboardId: number, name: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Dash >;
52
52
  getDashListAsync(request: carriers.Dash_GetDashListRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Dash[] >;
53
53
  getDashListAsync(dashboards: number[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Dash[] >;
54
+ getDashQuickFiltersAsync(request: carriers.Dash_GetDashQuickFiltersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
55
+ getDashQuickFiltersAsync(dashboardId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
56
+ saveDashQuickFiltersAsync(request: carriers.Dash_SaveDashQuickFiltersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
57
+ saveDashQuickFiltersAsync(dashboardId: number, quickFilters: carriers.QuickFilterInfo[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
58
+ getPossibleDashQuickFiltersAsync(request: carriers.Dash_GetPossibleDashQuickFiltersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
59
+ getPossibleDashQuickFiltersAsync(dashboardId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
54
60
  getDashCollectionAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.DashCollection >;
55
61
  getDashThemeAsync(dashThemeId: number) : Promise< carriers.DashTheme >;
56
62
  getDashTileAsync(dashTileId: number) : Promise< carriers.DashTile >;
@@ -692,6 +698,170 @@ export class DashAgent extends base.WebApiBase implements IDashAgent {
692
698
  }
693
699
 
694
700
 
701
+ private async _getDashQuickFiltersAsync(request: carriers.Dash_GetDashQuickFiltersRequest, options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] > {
702
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
703
+ base.WebApiBase.SetPending(options);
704
+ return new Promise< carriers.QuickFilterInfo[] >(async (resolve, reject) => {
705
+ try {
706
+ config.baseURL = this._options.baseUrl;
707
+ const response = await this._axios.post("GetDashQuickFilters", request , config);
708
+ base.WebApiBase.SetCompleted(options);
709
+ const res : carriers.QuickFilterInfo[] = converters.Create_QuickFilterInfoArray_From( response.data );
710
+ resolve(res);
711
+ }
712
+ catch( err ) {
713
+ base.WebApiBase.HandleError(options, config, err);
714
+ reject(err);
715
+ }
716
+ });
717
+ }
718
+
719
+
720
+
721
+ /**
722
+ * Gets the quick filters for this dashboard
723
+ * @param request - DashboardId
724
+ * @returns List of quick filters for the given dashboard
725
+ */
726
+ public async getDashQuickFiltersAsync(request: carriers.Dash_GetDashQuickFiltersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
727
+
728
+ /**
729
+ * Gets the quick filters for this dashboard
730
+ * @param dashboardId - The id of the dashboard to get the quick filters for
731
+ * @returns List of quick filters for the given dashboard
732
+ */
733
+ public async getDashQuickFiltersAsync(dashboardId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
734
+
735
+ public async getDashQuickFiltersAsync(dashboardId:number|carriers.Dash_GetDashQuickFiltersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] > {
736
+ let _request : carriers.Dash_GetDashQuickFiltersRequest = null;
737
+ let _options : base.WebApiRequestOptions = null;
738
+ const first : any = dashboardId;
739
+ if( typeof( first ) === "object" && first && ( typeof(first.dashboardId)!='undefined' ) )
740
+ {
741
+ _request = dashboardId as carriers.Dash_GetDashQuickFiltersRequest;
742
+ _options = webapi_options as base.WebApiRequestOptions;
743
+ }
744
+ else
745
+ {
746
+ _request = {
747
+ dashboardId: dashboardId as number,
748
+ };
749
+ _options = webapi_options;
750
+ }
751
+ return this._getDashQuickFiltersAsync( _request, _options );
752
+ }
753
+
754
+
755
+ private async _saveDashQuickFiltersAsync(request: carriers.Dash_SaveDashQuickFiltersRequest, options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] > {
756
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
757
+ base.WebApiBase.SetPending(options);
758
+ return new Promise< carriers.QuickFilterInfo[] >(async (resolve, reject) => {
759
+ try {
760
+ config.baseURL = this._options.baseUrl;
761
+ const response = await this._axios.post("SaveDashQuickFilters", request , config);
762
+ base.WebApiBase.SetCompleted(options);
763
+ const res : carriers.QuickFilterInfo[] = converters.Create_QuickFilterInfoArray_From( response.data );
764
+ resolve(res);
765
+ }
766
+ catch( err ) {
767
+ base.WebApiBase.HandleError(options, config, err);
768
+ reject(err);
769
+ }
770
+ });
771
+ }
772
+
773
+
774
+
775
+ /**
776
+ * Saves the quick filters for this dashboard
777
+ * @param request - DashboardId, QuickFilters
778
+ * @returns List of saved quick filters for the given dashboard
779
+ */
780
+ public async saveDashQuickFiltersAsync(request: carriers.Dash_SaveDashQuickFiltersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
781
+
782
+ /**
783
+ * Saves the quick filters for this dashboard
784
+ * @param dashboardId - The id of the dashboard these quick filters are associated with
785
+ * @param quickFilters - Complete list of quick filters for the given dashboard, overwriting the existing list
786
+ * @returns List of saved quick filters for the given dashboard
787
+ */
788
+ public async saveDashQuickFiltersAsync(dashboardId: number, quickFilters: carriers.QuickFilterInfo[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
789
+
790
+ public async saveDashQuickFiltersAsync(dashboardId:number|carriers.Dash_SaveDashQuickFiltersRequest, quickFilters?:carriers.QuickFilterInfo[]|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] > {
791
+ let _request : carriers.Dash_SaveDashQuickFiltersRequest = null;
792
+ let _options : base.WebApiRequestOptions = null;
793
+ const first : any = dashboardId;
794
+ if( typeof( first ) === "object" && first && ( typeof(first.dashboardId)!='undefined' || typeof(first.quickFilters)!='undefined' ) )
795
+ {
796
+ _request = dashboardId as carriers.Dash_SaveDashQuickFiltersRequest;
797
+ _options = quickFilters as base.WebApiRequestOptions;
798
+ }
799
+ else
800
+ {
801
+ _request = {
802
+ dashboardId: dashboardId as number,
803
+ quickFilters: quickFilters as carriers.QuickFilterInfo[],
804
+ };
805
+ _options = webapi_options;
806
+ }
807
+ return this._saveDashQuickFiltersAsync( _request, _options );
808
+ }
809
+
810
+
811
+ private async _getPossibleDashQuickFiltersAsync(request: carriers.Dash_GetPossibleDashQuickFiltersRequest, options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] > {
812
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
813
+ base.WebApiBase.SetPending(options);
814
+ return new Promise< carriers.QuickFilterInfo[] >(async (resolve, reject) => {
815
+ try {
816
+ config.baseURL = this._options.baseUrl;
817
+ const response = await this._axios.post("GetPossibleDashQuickFilters", request , config);
818
+ base.WebApiBase.SetCompleted(options);
819
+ const res : carriers.QuickFilterInfo[] = converters.Create_QuickFilterInfoArray_From( response.data );
820
+ resolve(res);
821
+ }
822
+ catch( err ) {
823
+ base.WebApiBase.HandleError(options, config, err);
824
+ reject(err);
825
+ }
826
+ });
827
+ }
828
+
829
+
830
+
831
+ /**
832
+ * Gets the possible (not stored/selected) quick filters for this dashboard
833
+ * @param request - DashboardId
834
+ * @returns List of possible quick filters for the given dashboard
835
+ */
836
+ public async getPossibleDashQuickFiltersAsync(request: carriers.Dash_GetPossibleDashQuickFiltersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
837
+
838
+ /**
839
+ * Gets the possible (not stored/selected) quick filters for this dashboard
840
+ * @param dashboardId - The id of the dashboard to get the possible quick filters for
841
+ * @returns List of possible quick filters for the given dashboard
842
+ */
843
+ public async getPossibleDashQuickFiltersAsync(dashboardId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] >;
844
+
845
+ public async getPossibleDashQuickFiltersAsync(dashboardId:number|carriers.Dash_GetPossibleDashQuickFiltersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.QuickFilterInfo[] > {
846
+ let _request : carriers.Dash_GetPossibleDashQuickFiltersRequest = null;
847
+ let _options : base.WebApiRequestOptions = null;
848
+ const first : any = dashboardId;
849
+ if( typeof( first ) === "object" && first && ( typeof(first.dashboardId)!='undefined' ) )
850
+ {
851
+ _request = dashboardId as carriers.Dash_GetPossibleDashQuickFiltersRequest;
852
+ _options = webapi_options as base.WebApiRequestOptions;
853
+ }
854
+ else
855
+ {
856
+ _request = {
857
+ dashboardId: dashboardId as number,
858
+ };
859
+ _options = webapi_options;
860
+ }
861
+ return this._getPossibleDashQuickFiltersAsync( _request, _options );
862
+ }
863
+
864
+
695
865
  private async _getDashCollectionAsync( options?:base.WebApiRequestOptions) : Promise< carriers.DashCollection > {
696
866
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
697
867
  base.WebApiBase.SetPending(options);
@@ -57,6 +57,8 @@ export interface IDiagnosticsAgent {
57
57
  removeExpiredSystemMessagesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
58
58
  getNextTableNumberAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >;
59
59
  performTasksAfterUpgradeAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
60
+ performTasksAfterCustomObjectTableCreatedAsync(request: carriers.Diagnostics_PerformTasksAfterCustomObjectTableCreatedRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
61
+ performTasksAfterCustomObjectTableCreatedAsync(tableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
60
62
  performTasksAfterCustomObjectTableDeletedAsync(request: carriers.Diagnostics_PerformTasksAfterCustomObjectTableDeletedRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
61
63
  performTasksAfterCustomObjectTableDeletedAsync(tableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
62
64
  addWebAppUsageAsync(request: carriers.Diagnostics_AddWebAppUsageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
@@ -956,6 +958,60 @@ export class DiagnosticsAgent extends base.WebApiBase implements IDiagnosticsAge
956
958
  }
957
959
 
958
960
 
961
+ private async _performTasksAfterCustomObjectTableCreatedAsync(request: carriers.Diagnostics_PerformTasksAfterCustomObjectTableCreatedRequest, options?:base.WebApiRequestOptions) : Promise< void > {
962
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
963
+ base.WebApiBase.SetPending(options);
964
+ return new Promise< void >(async (resolve, reject) => {
965
+ try {
966
+ config.baseURL = this._options.baseUrl;
967
+ const response = await this._axios.post("PerformTasksAfterCustomObjectTableCreated", request , config);
968
+ base.WebApiBase.SetCompleted(options);
969
+ const res = response.data;
970
+ resolve(res);
971
+ }
972
+ catch( err ) {
973
+ base.WebApiBase.HandleError(options, config, err);
974
+ reject(err);
975
+ }
976
+ });
977
+ }
978
+
979
+
980
+
981
+ /**
982
+ * A temporary method to be used from c++ until CustomObjectsAgent.CreateTable implemented in NetServer
983
+ * @param request - TableName
984
+ * @returns This method has no return value
985
+ */
986
+ public async performTasksAfterCustomObjectTableCreatedAsync(request: carriers.Diagnostics_PerformTasksAfterCustomObjectTableCreatedRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
987
+
988
+ /**
989
+ * A temporary method to be used from c++ until CustomObjectsAgent.CreateTable implemented in NetServer
990
+ * @param tableName - Name of DB table of the custom object that was created. E.g., 'y_car'
991
+ * @returns This method has no return value
992
+ */
993
+ public async performTasksAfterCustomObjectTableCreatedAsync(tableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
994
+
995
+ public async performTasksAfterCustomObjectTableCreatedAsync(tableName:string|carriers.Diagnostics_PerformTasksAfterCustomObjectTableCreatedRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
996
+ let _request : carriers.Diagnostics_PerformTasksAfterCustomObjectTableCreatedRequest = null;
997
+ let _options : base.WebApiRequestOptions = null;
998
+ const first : any = tableName;
999
+ if( typeof( first ) === "object" && first && ( typeof(first.tableName)!='undefined' ) )
1000
+ {
1001
+ _request = tableName as carriers.Diagnostics_PerformTasksAfterCustomObjectTableCreatedRequest;
1002
+ _options = webapi_options as base.WebApiRequestOptions;
1003
+ }
1004
+ else
1005
+ {
1006
+ _request = {
1007
+ tableName: tableName as string,
1008
+ };
1009
+ _options = webapi_options;
1010
+ }
1011
+ return this._performTasksAfterCustomObjectTableCreatedAsync( _request, _options );
1012
+ }
1013
+
1014
+
959
1015
  private async _performTasksAfterCustomObjectTableDeletedAsync(request: carriers.Diagnostics_PerformTasksAfterCustomObjectTableDeletedRequest, options?:base.WebApiRequestOptions) : Promise< void > {
960
1016
  const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
961
1017
  base.WebApiBase.SetPending(options);
package/src/Enums.ts CHANGED
@@ -3199,6 +3199,25 @@
3199
3199
  }
3200
3200
 
3201
3201
 
3202
+ /**
3203
+ * Board view badge type
3204
+ */
3205
+ export enum BoardViewBadgeType {
3206
+ /**
3207
+ * 0: None
3208
+ */
3209
+ None = "None",
3210
+ /**
3211
+ * 1: DaysSinceRegistered
3212
+ */
3213
+ DaysSinceRegistered = "DaysSinceRegistered",
3214
+ /**
3215
+ * 2: DaysInStage
3216
+ */
3217
+ DaysInStage = "DaysInStage",
3218
+ }
3219
+
3220
+
3202
3221
  /**
3203
3222
  * Workflow Goal Type
3204
3223
  * This Enum is used by: workflow_goal.goal_type
@@ -117,6 +117,8 @@ export interface IPersonAgent {
117
117
  sendEmailWithEventNameAsync(from: string, to: string, subject: string, plainBody: string, htmlBody: string, attachmentIds: number[], eventName: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
118
118
  getUtmParametersAsync(request: carriers.Person_GetUtmParametersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UtmParameters >;
119
119
  getUtmParametersAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.UtmParameters >;
120
+ setUtmCreatedPersonContactForFormSubmissionAsync(request: carriers.Person_SetUtmCreatedPersonContactForFormSubmissionRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
121
+ setUtmCreatedPersonContactForFormSubmissionAsync(formSubmissionId: number, personId: number, contactId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
120
122
  getPersonListAsync(personIds: number[]) : Promise< carriers.Person[] >;
121
123
  getPersonsFromContactAsync(request: carriers.Person_GetPersonsFromContactRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Person[] >;
122
124
  getPersonsFromContactAsync(contactId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Person[] >;
@@ -853,14 +855,14 @@ export class PersonAgent extends base.WebApiBase implements IPersonAgent {
853
855
  /**
854
856
  * Returns the person image that is displayed in the CRM application.
855
857
  * @param request - PersonId
856
- * @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.)
858
+ * @returns The person image.
857
859
  */
858
860
  public async getPersonImageAsync(request: carriers.Person_GetPersonImageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string >;
859
861
 
860
862
  /**
861
863
  * Returns the person image that is displayed in the CRM application.
862
864
  * @param personId - The person id of the person the image belongs to.
863
- * @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.)
865
+ * @returns The person image.
864
866
  */
865
867
  public async getPersonImageAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< ArrayBuffer|string >;
866
868
 
@@ -914,7 +916,7 @@ export class PersonAgent extends base.WebApiBase implements IPersonAgent {
914
916
  /**
915
917
  * Stores the person image that is displayed in the CRM application.
916
918
  * @param personId - The person id of the person the image belongs to.
917
- * @param image - The image that is stored on the person (System.Drawing.Image)
919
+ * @param image - The person image.
918
920
  * @returns
919
921
  */
920
922
  public async setPersonImageAsync(personId: number, image: ArrayBuffer|string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
@@ -2703,6 +2705,64 @@ export class PersonAgent extends base.WebApiBase implements IPersonAgent {
2703
2705
  return this._getUtmParametersAsync( _request, _options );
2704
2706
  }
2705
2707
 
2708
+
2709
+ private async _setUtmCreatedPersonContactForFormSubmissionAsync(request: carriers.Person_SetUtmCreatedPersonContactForFormSubmissionRequest, options?:base.WebApiRequestOptions) : Promise< void > {
2710
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
2711
+ base.WebApiBase.SetPending(options);
2712
+ return new Promise< void >(async (resolve, reject) => {
2713
+ try {
2714
+ config.baseURL = this._options.baseUrl;
2715
+ const response = await this._axios.post("SetUtmCreatedPersonContactForFormSubmission", request , config);
2716
+ base.WebApiBase.SetCompleted(options);
2717
+ const res = response.data;
2718
+ resolve(res);
2719
+ }
2720
+ catch( err ) {
2721
+ base.WebApiBase.HandleError(options, config, err);
2722
+ reject(err);
2723
+ }
2724
+ });
2725
+ }
2726
+
2727
+
2728
+
2729
+ /**
2730
+ * Set created person and optinally contact on an UTM Parameters row related to a form submission.
2731
+ * @param request - FormSubmissionId, PersonId, ContactId
2732
+ * @returns This method has no return value
2733
+ */
2734
+ public async setUtmCreatedPersonContactForFormSubmissionAsync(request: carriers.Person_SetUtmCreatedPersonContactForFormSubmissionRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
2735
+
2736
+ /**
2737
+ * Set created person and optinally contact on an UTM Parameters row related to a form submission.
2738
+ * @param formSubmissionId - Id of Form submission row related to UTM Parameters row
2739
+ * @param personId - Person id to set
2740
+ * @param contactId - Contact id to set. Can be 0.
2741
+ * @returns This method has no return value
2742
+ */
2743
+ public async setUtmCreatedPersonContactForFormSubmissionAsync(formSubmissionId: number, personId: number, contactId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
2744
+
2745
+ public async setUtmCreatedPersonContactForFormSubmissionAsync(formSubmissionId:number|carriers.Person_SetUtmCreatedPersonContactForFormSubmissionRequest, personId?:number|base.WebApiRequestOptions, contactId?:number, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
2746
+ let _request : carriers.Person_SetUtmCreatedPersonContactForFormSubmissionRequest = null;
2747
+ let _options : base.WebApiRequestOptions = null;
2748
+ const first : any = formSubmissionId;
2749
+ if( typeof( first ) === "object" && first && ( typeof(first.formSubmissionId)!='undefined' || typeof(first.personId)!='undefined' || typeof(first.contactId)!='undefined' ) )
2750
+ {
2751
+ _request = formSubmissionId as carriers.Person_SetUtmCreatedPersonContactForFormSubmissionRequest;
2752
+ _options = personId as base.WebApiRequestOptions;
2753
+ }
2754
+ else
2755
+ {
2756
+ _request = {
2757
+ formSubmissionId: formSubmissionId as number,
2758
+ personId: personId as number,
2759
+ contactId: contactId as number,
2760
+ };
2761
+ _options = webapi_options;
2762
+ }
2763
+ return this._setUtmCreatedPersonContactForFormSubmissionAsync( _request, _options );
2764
+ }
2765
+
2706
2766
  /**
2707
2767
  * Gets an array of Person objects.
2708
2768
  * @param personIds - The primary keys.