@superoffice/webapi 11.10.721 → 11.12.675

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 (60) hide show
  1. package/dist/cjs/AIAgent.d.ts +48 -0
  2. package/dist/cjs/AIAgent.d.ts.map +1 -1
  3. package/dist/cjs/AIAgent.js +103 -0
  4. package/dist/cjs/AIAgent.js.map +1 -1
  5. package/dist/cjs/Carriers.d.ts +111 -0
  6. package/dist/cjs/Carriers.d.ts.map +1 -1
  7. package/dist/cjs/ConfigurationAgent.d.ts +7 -0
  8. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
  9. package/dist/cjs/ConfigurationAgent.js +24 -0
  10. package/dist/cjs/ConfigurationAgent.js.map +1 -1
  11. package/dist/cjs/Converters.d.ts +6 -0
  12. package/dist/cjs/Converters.d.ts.map +1 -1
  13. package/dist/cjs/Converters.js +83 -7
  14. package/dist/cjs/Converters.js.map +1 -1
  15. package/dist/cjs/Enums.d.ts +31 -1
  16. package/dist/cjs/Enums.d.ts.map +1 -1
  17. package/dist/cjs/Enums.js +32 -1
  18. package/dist/cjs/Enums.js.map +1 -1
  19. package/dist/cjs/MarketingAgent.d.ts +15 -0
  20. package/dist/cjs/MarketingAgent.d.ts.map +1 -1
  21. package/dist/cjs/MarketingAgent.js +33 -0
  22. package/dist/cjs/MarketingAgent.js.map +1 -1
  23. package/dist/cjs/ProjectAgent.d.ts +30 -0
  24. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  25. package/dist/cjs/ProjectAgent.js +66 -0
  26. package/dist/cjs/ProjectAgent.js.map +1 -1
  27. package/dist/esm/AIAgent.d.ts +48 -0
  28. package/dist/esm/AIAgent.d.ts.map +1 -1
  29. package/dist/esm/AIAgent.js +103 -0
  30. package/dist/esm/AIAgent.js.map +1 -1
  31. package/dist/esm/Carriers.d.ts +111 -0
  32. package/dist/esm/Carriers.d.ts.map +1 -1
  33. package/dist/esm/ConfigurationAgent.d.ts +7 -0
  34. package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
  35. package/dist/esm/ConfigurationAgent.js +24 -0
  36. package/dist/esm/ConfigurationAgent.js.map +1 -1
  37. package/dist/esm/Converters.d.ts +6 -0
  38. package/dist/esm/Converters.d.ts.map +1 -1
  39. package/dist/esm/Converters.js +70 -0
  40. package/dist/esm/Converters.js.map +1 -1
  41. package/dist/esm/Enums.d.ts +31 -1
  42. package/dist/esm/Enums.d.ts.map +1 -1
  43. package/dist/esm/Enums.js +31 -0
  44. package/dist/esm/Enums.js.map +1 -1
  45. package/dist/esm/MarketingAgent.d.ts +15 -0
  46. package/dist/esm/MarketingAgent.d.ts.map +1 -1
  47. package/dist/esm/MarketingAgent.js +33 -0
  48. package/dist/esm/MarketingAgent.js.map +1 -1
  49. package/dist/esm/ProjectAgent.d.ts +30 -0
  50. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  51. package/dist/esm/ProjectAgent.js +66 -0
  52. package/dist/esm/ProjectAgent.js.map +1 -1
  53. package/package.json +4 -4
  54. package/src/AIAgent.ts +175 -0
  55. package/src/Carriers.ts +157 -0
  56. package/src/ConfigurationAgent.ts +30 -0
  57. package/src/Converters.ts +86 -0
  58. package/src/Enums.ts +32 -0
  59. package/src/MarketingAgent.ts +56 -0
  60. package/src/ProjectAgent.ts +112 -0
package/src/Carriers.ts CHANGED
@@ -11237,6 +11237,32 @@ export interface Project_SetCompletedRequest {
11237
11237
 
11238
11238
  // Void response...
11239
11239
 
11240
+ /**
11241
+ * Get a project entity with no project members. Project members property is always an empty array.
11242
+ * Returns ProjectEntity
11243
+ */
11244
+ export interface Project_GetProjectEntityWithoutMembersRequest {
11245
+ /**
11246
+ * The project id of the project.
11247
+ */
11248
+ projectId: number;
11249
+ }
11250
+
11251
+ // response object: ProjectEntity
11252
+
11253
+ /**
11254
+ * Save a project entity, the project members are ignored.
11255
+ * Returns ProjectEntity
11256
+ */
11257
+ export interface Project_SaveProjectEntityWithoutMembersRequest {
11258
+ /**
11259
+ * The project entity to save. Any set project members are ignored.
11260
+ */
11261
+ projectEntity: ProjectEntity;
11262
+ }
11263
+
11264
+ // response object: ProjectEntity
11265
+
11240
11266
 
11241
11267
  /**
11242
11268
  * A project that is also an event. Used by Audience
@@ -26673,6 +26699,15 @@ export interface Configuration_GetAllFeatureTogglesRequest {
26673
26699
 
26674
26700
  // response object: StringBoolDictionary
26675
26701
 
26702
+ /**
26703
+ * This method will get the host name for external CS
26704
+ * Returns string
26705
+ */
26706
+ export interface Configuration_GetCsCgiUrlRequest {
26707
+ }
26708
+
26709
+ // response object: string
26710
+
26676
26711
 
26677
26712
  /**
26678
26713
  * Query object to use to fetch configruablescreendeltas matching this object
@@ -45220,6 +45255,47 @@ export interface Marketing_VerifyGoogleRecaptchaRequest {
45220
45255
  // response object: boolean
45221
45256
 
45222
45257
 
45258
+ /**
45259
+ * Carrier for FormFieldRestriction
45260
+ */
45261
+ export interface FormFieldRestriction extends Carrier {
45262
+
45263
+
45264
+ /**
45265
+ * Primary key
45266
+ */
45267
+ formFieldRestrictionId?: number;
45268
+
45269
+ /**
45270
+ * the identifier for the field
45271
+ */
45272
+ fieldIdentifier?: string;
45273
+
45274
+ /**
45275
+ * The restriction set on the field
45276
+ */
45277
+ fieldRestriction?: enums.FormFieldRestrictionType;
45278
+
45279
+ }
45280
+
45281
+
45282
+
45283
+
45284
+
45285
+
45286
+ /**
45287
+ * Sets the list of form field restrictions. Note: This list is the conclusion of what should exist in the table. Restrictions that already exists in the table are edited, new ones are added, and if they are not in this list, they will be deleted
45288
+ */
45289
+ export interface Marketing_SetAllFormFieldRestrictionsRequest {
45290
+ /**
45291
+ * All the restrictions to set. Restrictions not included, will be deleted
45292
+ */
45293
+ formFieldRestrictions: FormFieldRestriction[];
45294
+ }
45295
+
45296
+ // Void response...
45297
+
45298
+
45223
45299
  /**
45224
45300
  * Content of a Form submission
45225
45301
  */
@@ -45757,6 +45833,7 @@ export interface Marketing_DeleteMessageAndShipmentRequest {
45757
45833
 
45758
45834
 
45759
45835
 
45836
+
45760
45837
  /**
45761
45838
  * The Script Service. The service implements all services working with the CRMScript object without reference to primary keys. Primarily used by VSCode integration.
45762
45839
  */
@@ -50767,6 +50844,86 @@ export interface AI_GetFormDesignCssFromUrlRequest {
50767
50844
  // response object: FormDesignCarrier
50768
50845
 
50769
50846
 
50847
+ /**
50848
+ * Forms Design CSS class analysis result. Contains the CSS properties for a single named CSS class.
50849
+ */
50850
+ export interface FormDesignCss {
50851
+
50852
+
50853
+ /**
50854
+ * The CSS Class requested. e.g. '.foo'
50855
+ */
50856
+ cssClass?: string;
50857
+
50858
+ /**
50859
+ * Generated CSS style based on the analyzed design. e.g. 'background: goldenrod; border-width: 12px; '
50860
+ */
50861
+ cssRule?: string;
50862
+
50863
+ /**
50864
+ * Internal state of the AI analyzer. Pass along in the next call to GetNextFormDesignCss. No user-maintainable parts inside. Do not eat.
50865
+ */
50866
+ state?: string;
50867
+
50868
+ }
50869
+
50870
+
50871
+
50872
+
50873
+
50874
+
50875
+ /**
50876
+ * Starts a form design analysis from an image, returning the properties for a single CSS class.
50877
+ * Returns FormDesignCss
50878
+ */
50879
+ export interface AI_GetFirstFormDesignCssFromImageRequest {
50880
+ /**
50881
+ * Image data to analyze for design
50882
+ */
50883
+ image: ArrayBuffer | string;
50884
+ /**
50885
+ * The CSS class to generate styles for.
50886
+ */
50887
+ cssClass: string;
50888
+ }
50889
+
50890
+ // response object: FormDesignCss
50891
+
50892
+ /**
50893
+ * Starts a form design analysis from a URL, returning the properties for a single CSS class.
50894
+ * Returns FormDesignCss
50895
+ */
50896
+ export interface AI_GetFirstFormDesignCssFromUrlRequest {
50897
+ /**
50898
+ * Url of the web page to extract style from.
50899
+ */
50900
+ url: string;
50901
+ /**
50902
+ * The CSS class to generate styles for.
50903
+ */
50904
+ cssClass: string;
50905
+ }
50906
+
50907
+ // response object: FormDesignCss
50908
+
50909
+ /**
50910
+ * Returns another CSS class, continuing the CSS generation, one class at a time.
50911
+ * Returns FormDesignCss
50912
+ */
50913
+ export interface AI_GetNextFormDesignCssRequest {
50914
+ /**
50915
+ * Internal state from the analyzer, from the previous call.
50916
+ */
50917
+ state: string;
50918
+ /**
50919
+ * The CSS class to generate styles for.
50920
+ */
50921
+ cssClass: string;
50922
+ }
50923
+
50924
+ // response object: FormDesignCss
50925
+
50926
+
50770
50927
  /**
50771
50928
  * Sentiment information: Score (-100 to 100) and Confidence (0 to 100)
50772
50929
  */
@@ -87,6 +87,7 @@ export interface IConfigurationAgent {
87
87
  getCustomerUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
88
88
  getSpfDomainAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
89
89
  getAllFeatureTogglesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary >;
90
+ getCsCgiUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
90
91
  getDiaryViewEntityAsync(diaryViewEntityId: number) : Promise< carriers.DiaryViewEntity >;
91
92
  getSystemEventEntityAsync(systemEventEntityId: number) : Promise< carriers.SystemEventEntity >;
92
93
  existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
@@ -1778,6 +1779,35 @@ export class ConfigurationAgent extends base.WebApiBase implements IConfiguratio
1778
1779
  return this._getAllFeatureTogglesAsync(webapi_options);
1779
1780
  }
1780
1781
 
1782
+
1783
+ private async _getCsCgiUrlAsync( options?:base.WebApiRequestOptions) : Promise< string > {
1784
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1785
+ base.WebApiBase.SetPending(options);
1786
+ return new Promise< string >(async (resolve, reject) => {
1787
+ try {
1788
+ config.baseURL = this._options.baseUrl;
1789
+ const response = await this._axios.post("GetCsCgiUrl", undefined , config);
1790
+ base.WebApiBase.SetCompleted(options, response);
1791
+ const res : string = response.data as string;
1792
+ resolve(res);
1793
+ }
1794
+ catch( err ) {
1795
+ base.WebApiBase.HandleError(options, config, err);
1796
+ reject(err);
1797
+ }
1798
+ });
1799
+ }
1800
+
1801
+
1802
+ /**
1803
+ * This method will get the host name for external CS
1804
+ * @returns Will get the host name for where CS Customer Center is installed
1805
+ */
1806
+ public async getCsCgiUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
1807
+ {
1808
+ return this._getCsCgiUrlAsync(webapi_options);
1809
+ }
1810
+
1781
1811
  /**
1782
1812
  * Gets a DiaryViewEntity object.
1783
1813
  * @param diaryViewEntityId - The primary key.
package/src/Converters.ts CHANGED
@@ -16361,6 +16361,40 @@ export function Create_FormEntityArrayArray_From(src:any) : carriers.FormEntity[
16361
16361
 
16362
16362
 
16363
16363
 
16364
+ export function Create_FormFieldRestriction_From(src:any) : carriers.FormFieldRestriction {
16365
+ if( src === null || src === undefined )
16366
+ return null;
16367
+ let res : carriers.FormFieldRestriction = Create_Carrier_From(src) as carriers.FormFieldRestriction;
16368
+
16369
+ res.formFieldRestrictionId= src.FormFieldRestrictionId as number;
16370
+ res.fieldIdentifier= src.FieldIdentifier as string;
16371
+ res.fieldRestriction= enums.FormFieldRestrictionType[src.FieldRestriction];
16372
+ return res as carriers.FormFieldRestriction;
16373
+ }
16374
+
16375
+ export function Create_FormFieldRestrictionArray_From(src:any) : carriers.FormFieldRestriction[] {
16376
+ let res : carriers.FormFieldRestriction[] = [];
16377
+ if( Array.isArray(src) ) {
16378
+ for(let i in src) {
16379
+ res[i] = Create_FormFieldRestriction_From(src[i]);
16380
+ }
16381
+ }
16382
+ return res;
16383
+ }
16384
+
16385
+ export function Create_FormFieldRestrictionArrayArray_From(src:any) : carriers.FormFieldRestriction[][] {
16386
+ let res : carriers.FormFieldRestriction[][] = [];
16387
+ if( Array.isArray(src) ) {
16388
+ for(let i in src) {
16389
+ res[i] = Create_FormFieldRestrictionArray_From(src[i]);
16390
+ }
16391
+ }
16392
+ return res;
16393
+ }
16394
+
16395
+
16396
+
16397
+
16364
16398
  export function Create_FormSubmissionEntity_From(src:any) : carriers.FormSubmissionEntity {
16365
16399
  if( src === null || src === undefined )
16366
16400
  return null;
@@ -16619,6 +16653,7 @@ export function Create_ShipmentMessageEntityArrayArray_From(src:any) : carriers.
16619
16653
 
16620
16654
 
16621
16655
 
16656
+
16622
16657
  export function Create_Script_From(src:any) : carriers.Script {
16623
16658
  if( src === null || src === undefined )
16624
16659
  return null;
@@ -18395,6 +18430,40 @@ export function Create_FormDesignCarrierArrayArray_From(src:any) : carriers.Form
18395
18430
 
18396
18431
 
18397
18432
 
18433
+ export function Create_FormDesignCss_From(src:any) : carriers.FormDesignCss {
18434
+ if( src === null || src === undefined )
18435
+ return null;
18436
+ let res : any = { };
18437
+
18438
+ res.cssClass= src.CssClass as string;
18439
+ res.cssRule= src.CssRule as string;
18440
+ res.state= src.State as string;
18441
+ return res as carriers.FormDesignCss;
18442
+ }
18443
+
18444
+ export function Create_FormDesignCssArray_From(src:any) : carriers.FormDesignCss[] {
18445
+ let res : carriers.FormDesignCss[] = [];
18446
+ if( Array.isArray(src) ) {
18447
+ for(let i in src) {
18448
+ res[i] = Create_FormDesignCss_From(src[i]);
18449
+ }
18450
+ }
18451
+ return res;
18452
+ }
18453
+
18454
+ export function Create_FormDesignCssArrayArray_From(src:any) : carriers.FormDesignCss[][] {
18455
+ let res : carriers.FormDesignCss[][] = [];
18456
+ if( Array.isArray(src) ) {
18457
+ for(let i in src) {
18458
+ res[i] = Create_FormDesignCssArray_From(src[i]);
18459
+ }
18460
+ }
18461
+ return res;
18462
+ }
18463
+
18464
+
18465
+
18466
+
18398
18467
  export function Create_Sentiment_From(src:any) : carriers.Sentiment {
18399
18468
  if( src === null || src === undefined )
18400
18469
  return null;
@@ -22943,6 +23012,23 @@ function Create_ProjectMemberEventParticipantStatus_From(src:any): enums.Project
22943
23012
  }
22944
23013
 
22945
23014
 
23015
+ function Create_FormFieldRestrictionType_From(src:any): enums.FormFieldRestrictionType | enums.FormFieldRestrictionType[] {
23016
+ if (!src) return null;
23017
+
23018
+ if (Array.isArray(src)) {
23019
+ let result: enums.FormFieldRestrictionType[] = Array<enums.FormFieldRestrictionType>();
23020
+ for (const i in (src as enums.FormFieldRestrictionType[])) {
23021
+ let r = enums.FormFieldRestrictionType[src[i]] as enums.FormFieldRestrictionType;
23022
+ result.push(r);
23023
+ }
23024
+ return result;
23025
+ } else {
23026
+ let r = enums.FormFieldRestrictionType[src] as enums.FormFieldRestrictionType;
23027
+ return r;
23028
+ }
23029
+ }
23030
+
23031
+
22946
23032
  function Create_EventHandlerType_From(src:any): enums.EventHandlerType | enums.EventHandlerType[] {
22947
23033
  if (!src) return null;
22948
23034
 
package/src/Enums.ts CHANGED
@@ -1375,6 +1375,14 @@
1375
1375
  * 12: Form submission
1376
1376
  */
1377
1377
  Form = "Form",
1378
+ /**
1379
+ * 13: API
1380
+ */
1381
+ API = "API",
1382
+ /**
1383
+ * 14: Flow
1384
+ */
1385
+ Flow = "Flow",
1378
1386
  }
1379
1387
 
1380
1388
 
@@ -3951,6 +3959,10 @@
3951
3959
  * 5: See message and URL for details. Client should make URL clickable.
3952
3960
  */
3953
3961
  UseCustomMessageAndUrl = "UseCustomMessageAndUrl",
3962
+ /**
3963
+ * 6: New license activated.
3964
+ */
3965
+ NewLicenseActivated = "NewLicenseActivated",
3954
3966
  /**
3955
3967
  * 100: Something seems to be wrong. Cannot fetch new license.
3956
3968
  */
@@ -5652,6 +5664,26 @@
5652
5664
  }
5653
5665
 
5654
5666
 
5667
+ /**
5668
+ * Possible restriction for fields used in forms
5669
+ * This Enum is used by: form_field_restriction.field_restriction
5670
+ */
5671
+ export enum FormFieldRestrictionType {
5672
+ /**
5673
+ * 0: Not set
5674
+ */
5675
+ NotSet = "NotSet",
5676
+ /**
5677
+ * 1: Deny overwrite
5678
+ */
5679
+ ReadOnly = "ReadOnly",
5680
+ /**
5681
+ * 2: Do not show in forms
5682
+ */
5683
+ DoNotShow = "DoNotShow",
5684
+ }
5685
+
5686
+
5655
5687
  /**
5656
5688
  * CrmScript Event triggers - when CRMScript is run based on user or system actions.
5657
5689
  */
@@ -51,6 +51,8 @@ export interface IMarketingAgent {
51
51
  getFormEntityAsync(formEntityId: number) : Promise< carriers.FormEntity >;
52
52
  verifyGoogleRecaptchaAsync(request: carriers.Marketing_VerifyGoogleRecaptchaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
53
53
  verifyGoogleRecaptchaAsync(token: string, optionalSecretKey: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
54
+ setAllFormFieldRestrictionsAsync(request: carriers.Marketing_SetAllFormFieldRestrictionsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
55
+ setAllFormFieldRestrictionsAsync(formFieldRestrictions: carriers.FormFieldRestriction[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
54
56
  getFormSubmissionEntityAsync(formSubmissionEntityId: number) : Promise< carriers.FormSubmissionEntity >;
55
57
  calculateMailingStatisticsAsync(request: carriers.Marketing_CalculateMailingStatisticsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
56
58
  calculateMailingStatisticsAsync(shipmentId: number, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
@@ -690,6 +692,60 @@ export class MarketingAgent extends base.WebApiBase implements IMarketingAgent {
690
692
  return this._verifyGoogleRecaptchaAsync( _request, _options );
691
693
  }
692
694
 
695
+
696
+ private async _setAllFormFieldRestrictionsAsync(request: carriers.Marketing_SetAllFormFieldRestrictionsRequest, options?:base.WebApiRequestOptions) : Promise< void > {
697
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
698
+ base.WebApiBase.SetPending(options);
699
+ return new Promise< void >(async (resolve, reject) => {
700
+ try {
701
+ config.baseURL = this._options.baseUrl;
702
+ const response = await this._axios.post("SetAllFormFieldRestrictions", request , config);
703
+ base.WebApiBase.SetCompleted(options, response);
704
+ const res = response.data;
705
+ resolve(res);
706
+ }
707
+ catch( err ) {
708
+ base.WebApiBase.HandleError(options, config, err);
709
+ reject(err);
710
+ }
711
+ });
712
+ }
713
+
714
+
715
+
716
+ /**
717
+ * Sets the list of form field restrictions. Note: This list is the conclusion of what should exist in the table. Restrictions that already exists in the table are edited, new ones are added, and if they are not in this list, they will be deleted
718
+ * @param request - FormFieldRestrictions
719
+ * @returns
720
+ */
721
+ public async setAllFormFieldRestrictionsAsync(request: carriers.Marketing_SetAllFormFieldRestrictionsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
722
+
723
+ /**
724
+ * Sets the list of form field restrictions. Note: This list is the conclusion of what should exist in the table. Restrictions that already exists in the table are edited, new ones are added, and if they are not in this list, they will be deleted
725
+ * @param formFieldRestrictions - All the restrictions to set. Restrictions not included, will be deleted
726
+ * @returns
727
+ */
728
+ public async setAllFormFieldRestrictionsAsync(formFieldRestrictions: carriers.FormFieldRestriction[], webapi_options?:base.WebApiRequestOptions) : Promise< void >;
729
+
730
+ public async setAllFormFieldRestrictionsAsync(formFieldRestrictions:carriers.FormFieldRestriction[]|carriers.Marketing_SetAllFormFieldRestrictionsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
731
+ let _request : carriers.Marketing_SetAllFormFieldRestrictionsRequest = null;
732
+ let _options : base.WebApiRequestOptions = null;
733
+ const first : any = formFieldRestrictions;
734
+ if( typeof( first ) === "object" && first && ( typeof(first.formFieldRestrictions)!='undefined' ) )
735
+ {
736
+ _request = formFieldRestrictions as carriers.Marketing_SetAllFormFieldRestrictionsRequest;
737
+ _options = webapi_options as base.WebApiRequestOptions;
738
+ }
739
+ else
740
+ {
741
+ _request = {
742
+ formFieldRestrictions: formFieldRestrictions as carriers.FormFieldRestriction[],
743
+ };
744
+ _options = webapi_options;
745
+ }
746
+ return this._setAllFormFieldRestrictionsAsync( _request, _options );
747
+ }
748
+
693
749
  /**
694
750
  * Gets a FormSubmissionEntity object.
695
751
  * @param formSubmissionEntityId - The primary key.
@@ -73,6 +73,10 @@ export interface IProjectAgent {
73
73
  validateProjectEntityAsync(projectEntity: carriers.ProjectEntity, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
74
74
  setCompletedAsync(request: carriers.Project_SetCompletedRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
75
75
  setCompletedAsync(projectId: number, isCompleted: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
76
+ getProjectEntityWithoutMembersAsync(request: carriers.Project_GetProjectEntityWithoutMembersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
77
+ getProjectEntityWithoutMembersAsync(projectId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
78
+ saveProjectEntityWithoutMembersAsync(request: carriers.Project_SaveProjectEntityWithoutMembersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
79
+ saveProjectEntityWithoutMembersAsync(projectEntity: carriers.ProjectEntity, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
76
80
  getProjectEventAsync(projectEventId: number) : Promise< carriers.ProjectEvent >;
77
81
  getProjectEventOnPersonAsync(request: carriers.Project_GetProjectEventOnPersonRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEvent >;
78
82
  getProjectEventOnPersonAsync(projectId: number, personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEvent >;
@@ -1366,6 +1370,114 @@ export class ProjectAgent extends base.WebApiBase implements IProjectAgent {
1366
1370
  return this._setCompletedAsync( _request, _options );
1367
1371
  }
1368
1372
 
1373
+
1374
+ private async _getProjectEntityWithoutMembersAsync(request: carriers.Project_GetProjectEntityWithoutMembersRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity > {
1375
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1376
+ base.WebApiBase.SetPending(options);
1377
+ return new Promise< carriers.ProjectEntity >(async (resolve, reject) => {
1378
+ try {
1379
+ config.baseURL = this._options.baseUrl;
1380
+ const response = await this._axios.post("GetProjectEntityWithoutMembers", request , config);
1381
+ base.WebApiBase.SetCompleted(options, response);
1382
+ const res : carriers.ProjectEntity = converters.Create_ProjectEntity_From( response.data );
1383
+ resolve(res);
1384
+ }
1385
+ catch( err ) {
1386
+ base.WebApiBase.HandleError(options, config, err);
1387
+ reject(err);
1388
+ }
1389
+ });
1390
+ }
1391
+
1392
+
1393
+
1394
+ /**
1395
+ * Get a project entity with no project members. Project members property is always an empty array.
1396
+ * @param request - ProjectId
1397
+ * @returns Project entity with the specified id. The project members property is always an empty array.
1398
+ */
1399
+ public async getProjectEntityWithoutMembersAsync(request: carriers.Project_GetProjectEntityWithoutMembersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
1400
+
1401
+ /**
1402
+ * Get a project entity with no project members. Project members property is always an empty array.
1403
+ * @param projectId - The project id of the project.
1404
+ * @returns Project entity with the specified id. The project members property is always an empty array.
1405
+ */
1406
+ public async getProjectEntityWithoutMembersAsync(projectId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
1407
+
1408
+ public async getProjectEntityWithoutMembersAsync(projectId:number|carriers.Project_GetProjectEntityWithoutMembersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity > {
1409
+ let _request : carriers.Project_GetProjectEntityWithoutMembersRequest = null;
1410
+ let _options : base.WebApiRequestOptions = null;
1411
+ const first : any = projectId;
1412
+ if( typeof( first ) === "object" && first && ( typeof(first.projectId)!='undefined' ) )
1413
+ {
1414
+ _request = projectId as carriers.Project_GetProjectEntityWithoutMembersRequest;
1415
+ _options = webapi_options as base.WebApiRequestOptions;
1416
+ }
1417
+ else
1418
+ {
1419
+ _request = {
1420
+ projectId: projectId as number,
1421
+ };
1422
+ _options = webapi_options;
1423
+ }
1424
+ return this._getProjectEntityWithoutMembersAsync( _request, _options );
1425
+ }
1426
+
1427
+
1428
+ private async _saveProjectEntityWithoutMembersAsync(request: carriers.Project_SaveProjectEntityWithoutMembersRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity > {
1429
+ const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
1430
+ base.WebApiBase.SetPending(options);
1431
+ return new Promise< carriers.ProjectEntity >(async (resolve, reject) => {
1432
+ try {
1433
+ config.baseURL = this._options.baseUrl;
1434
+ const response = await this._axios.post("SaveProjectEntityWithoutMembers", request , config);
1435
+ base.WebApiBase.SetCompleted(options, response);
1436
+ const res : carriers.ProjectEntity = converters.Create_ProjectEntity_From( response.data );
1437
+ resolve(res);
1438
+ }
1439
+ catch( err ) {
1440
+ base.WebApiBase.HandleError(options, config, err);
1441
+ reject(err);
1442
+ }
1443
+ });
1444
+ }
1445
+
1446
+
1447
+
1448
+ /**
1449
+ * Save a project entity, the project members are ignored.
1450
+ * @param request - ProjectEntity
1451
+ * @returns The saved project entity without any project members. The project members property is always an empty array.
1452
+ */
1453
+ public async saveProjectEntityWithoutMembersAsync(request: carriers.Project_SaveProjectEntityWithoutMembersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
1454
+
1455
+ /**
1456
+ * Save a project entity, the project members are ignored.
1457
+ * @param projectEntity - The project entity to save. Any set project members are ignored.
1458
+ * @returns The saved project entity without any project members. The project members property is always an empty array.
1459
+ */
1460
+ public async saveProjectEntityWithoutMembersAsync(projectEntity: carriers.ProjectEntity, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity >;
1461
+
1462
+ public async saveProjectEntityWithoutMembersAsync(projectEntity:carriers.ProjectEntity|carriers.Project_SaveProjectEntityWithoutMembersRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ProjectEntity > {
1463
+ let _request : carriers.Project_SaveProjectEntityWithoutMembersRequest = null;
1464
+ let _options : base.WebApiRequestOptions = null;
1465
+ const first : any = projectEntity;
1466
+ if( typeof( first ) === "object" && first && ( typeof(first.projectEntity)!='undefined' ) )
1467
+ {
1468
+ _request = projectEntity as carriers.Project_SaveProjectEntityWithoutMembersRequest;
1469
+ _options = webapi_options as base.WebApiRequestOptions;
1470
+ }
1471
+ else
1472
+ {
1473
+ _request = {
1474
+ projectEntity: projectEntity as carriers.ProjectEntity,
1475
+ };
1476
+ _options = webapi_options;
1477
+ }
1478
+ return this._saveProjectEntityWithoutMembersAsync( _request, _options );
1479
+ }
1480
+
1369
1481
  /**
1370
1482
  * Gets a ProjectEvent object.
1371
1483
  * @param projectEventId - The primary key.