@superoffice/webapi 12.2.2072 → 12.4.1514
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Carriers.d.ts +405 -23
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +17 -0
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +35 -0
- package/dist/cjs/ConfigurationAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +27 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +350 -33
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/DiagnosticsAgent.d.ts +7 -0
- package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/cjs/DiagnosticsAgent.js +24 -0
- package/dist/cjs/DiagnosticsAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +34 -0
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +37 -1
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +31 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +87 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/MarketingAgent.d.ts +109 -16
- package/dist/cjs/MarketingAgent.d.ts.map +1 -1
- package/dist/cjs/MarketingAgent.js +255 -34
- package/dist/cjs/MarketingAgent.js.map +1 -1
- package/dist/cjs/UserDefinedFieldInfoAgent.d.ts +2 -2
- package/dist/cjs/ViewStateAgent.d.ts +34 -0
- package/dist/cjs/ViewStateAgent.d.ts.map +1 -1
- package/dist/cjs/ViewStateAgent.js +70 -0
- package/dist/cjs/ViewStateAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +405 -23
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +17 -0
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +35 -0
- package/dist/esm/ConfigurationAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +27 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +292 -2
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/DiagnosticsAgent.d.ts +7 -0
- package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/esm/DiagnosticsAgent.js +24 -0
- package/dist/esm/DiagnosticsAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +34 -0
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +35 -0
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +31 -0
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +87 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/MarketingAgent.d.ts +109 -16
- package/dist/esm/MarketingAgent.d.ts.map +1 -1
- package/dist/esm/MarketingAgent.js +255 -34
- package/dist/esm/MarketingAgent.js.map +1 -1
- package/dist/esm/UserDefinedFieldInfoAgent.d.ts +2 -2
- package/dist/esm/ViewStateAgent.d.ts +34 -0
- package/dist/esm/ViewStateAgent.d.ts.map +1 -1
- package/dist/esm/ViewStateAgent.js +70 -0
- package/dist/esm/ViewStateAgent.js.map +1 -1
- package/package.json +3 -3
- package/src/Carriers.ts +646 -2854
- package/src/ConfigurationAgent.ts +60 -0
- package/src/Converters.ts +408 -1243
- package/src/DiagnosticsAgent.ts +30 -0
- package/src/Enums.ts +36 -1
- package/src/ListAgent.ts +94 -0
- package/src/MarketingAgent.ts +380 -58
- package/src/UserDefinedFieldInfoAgent.ts +2 -2
- package/src/ViewStateAgent.ts +120 -0
package/src/DiagnosticsAgent.ts
CHANGED
|
@@ -46,6 +46,7 @@ export interface IDiagnosticsAgent {
|
|
|
46
46
|
trackEventAsync(trackEventName: string, eventProperties: carriers.StringDictionary, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
47
47
|
trackUserAsync(request: carriers.Diagnostics_TrackUserRequest, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
48
48
|
trackUserAsync(userProperties: carriers.StringDictionary, webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
49
|
+
getSystemInfoAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoSystemInfoCarrier >;
|
|
49
50
|
collectDataAdditionsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
50
51
|
collectWinUsageAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
51
52
|
collectWebUsageAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
@@ -642,6 +643,35 @@ export class DiagnosticsAgent extends base.WebApiBase implements IDiagnosticsAge
|
|
|
642
643
|
}
|
|
643
644
|
|
|
644
645
|
|
|
646
|
+
private async _getSystemInfoAsync( options?:base.WebApiRequestOptions) : Promise< carriers.SoSystemInfoCarrier > {
|
|
647
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
648
|
+
base.WebApiBase.SetPending(options);
|
|
649
|
+
return new Promise< carriers.SoSystemInfoCarrier >(async (resolve, reject) => {
|
|
650
|
+
try {
|
|
651
|
+
config.baseURL = this._options.baseUrl;
|
|
652
|
+
const response = await this._axios.post("GetSystemInfo", undefined , config);
|
|
653
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
654
|
+
const res : carriers.SoSystemInfoCarrier = converters.Create_SoSystemInfoCarrier_From( response.data );
|
|
655
|
+
resolve(res);
|
|
656
|
+
}
|
|
657
|
+
catch( err ) {
|
|
658
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
659
|
+
reject(err);
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Get system information
|
|
667
|
+
* @returns License and configuration information.
|
|
668
|
+
*/
|
|
669
|
+
public async getSystemInfoAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.SoSystemInfoCarrier >
|
|
670
|
+
{
|
|
671
|
+
return this._getSystemInfoAsync(webapi_options);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
|
|
645
675
|
private async _collectDataAdditionsAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
646
676
|
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
647
677
|
base.WebApiBase.SetPending(options);
|
package/src/Enums.ts
CHANGED
|
@@ -3916,6 +3916,14 @@
|
|
|
3916
3916
|
* 32: A hint flag used to indicate that some fields may not be updateable, even though the user has update access to the row.
|
|
3917
3917
|
*/
|
|
3918
3918
|
RestrictedUpdate = 32,
|
|
3919
|
+
/**
|
|
3920
|
+
* 34: Update or RestrictedUpdate
|
|
3921
|
+
*/
|
|
3922
|
+
URU = 34,
|
|
3923
|
+
/**
|
|
3924
|
+
* 38: Update/RestrictedUpdate or Insert
|
|
3925
|
+
*/
|
|
3926
|
+
WRITE = 38,
|
|
3919
3927
|
/**
|
|
3920
3928
|
* 64: Unused value only present for serializatrion purposes
|
|
3921
3929
|
*/
|
|
@@ -5806,6 +5814,30 @@
|
|
|
5806
5814
|
}
|
|
5807
5815
|
|
|
5808
5816
|
|
|
5817
|
+
/**
|
|
5818
|
+
* What kind of content a landing page tab shows
|
|
5819
|
+
* This Enum is used by: landing_page_tab.tab_type
|
|
5820
|
+
*/
|
|
5821
|
+
export enum LandingPageTabType {
|
|
5822
|
+
/**
|
|
5823
|
+
* 0: 0: Unknown / not set
|
|
5824
|
+
*/
|
|
5825
|
+
Unknown = "Unknown",
|
|
5826
|
+
/**
|
|
5827
|
+
* 1: 1: A saved selection
|
|
5828
|
+
*/
|
|
5829
|
+
Selection = "Selection",
|
|
5830
|
+
/**
|
|
5831
|
+
* 2: 2: A single entity record (e.g. a request/ticket)
|
|
5832
|
+
*/
|
|
5833
|
+
Entity = "Entity",
|
|
5834
|
+
/**
|
|
5835
|
+
* 3: 3: A hardcoded provider (e.g. LastTickets, FavouriteTickets)
|
|
5836
|
+
*/
|
|
5837
|
+
Provider = "Provider",
|
|
5838
|
+
}
|
|
5839
|
+
|
|
5840
|
+
|
|
5809
5841
|
/**
|
|
5810
5842
|
* CrmScript Event triggers - when CRMScript is run based on user or system actions.
|
|
5811
5843
|
*/
|
|
@@ -6901,6 +6933,10 @@
|
|
|
6901
6933
|
* This Enum consists of flag values that can be combined.
|
|
6902
6934
|
*/
|
|
6903
6935
|
export enum EjScriptVerb {
|
|
6936
|
+
/**
|
|
6937
|
+
* 0: All verbs allowed
|
|
6938
|
+
*/
|
|
6939
|
+
BlockNone = 0,
|
|
6904
6940
|
/**
|
|
6905
6941
|
* 1: Block GET access
|
|
6906
6942
|
*/
|
|
@@ -7231,4 +7267,3 @@
|
|
|
7231
7267
|
*/
|
|
7232
7268
|
Large = "Large",
|
|
7233
7269
|
}
|
|
7234
|
-
|
package/src/ListAgent.ts
CHANGED
|
@@ -49,6 +49,9 @@ export interface IListAgent {
|
|
|
49
49
|
saveListEntityAsync(entity: carriers.ListEntity) : Promise< carriers.ListEntity >;
|
|
50
50
|
deleteListEntityAsync(ListEntityId: number) : Promise<void>;
|
|
51
51
|
createDefaultListItemEntityAsync(): Promise< carriers.ListItemEntity >;
|
|
52
|
+
createDefaultPictureFolderEntityAsync(): Promise< carriers.PictureFolderEntity >;
|
|
53
|
+
savePictureFolderEntityAsync(entity: carriers.PictureFolderEntity) : Promise< carriers.PictureFolderEntity >;
|
|
54
|
+
deletePictureFolderEntityAsync(PictureFolderEntityId: number) : Promise<void>;
|
|
52
55
|
createDefaultProjectTypeEntityAsync(): Promise< carriers.ProjectTypeEntity >;
|
|
53
56
|
saveProjectTypeEntityAsync(entity: carriers.ProjectTypeEntity) : Promise< carriers.ProjectTypeEntity >;
|
|
54
57
|
createDefaultRelationDefinitionEntityAsync(): Promise< carriers.RelationDefinitionEntity >;
|
|
@@ -331,6 +334,7 @@ export interface IListAgent {
|
|
|
331
334
|
getPaymentTermsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PaymentTerm[] >;
|
|
332
335
|
getPaymentTypeAsync(paymentTypeId: number) : Promise< carriers.PaymentType >;
|
|
333
336
|
getPaymentTypesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.PaymentType[] >;
|
|
337
|
+
getPictureFolderEntityAsync(pictureFolderEntityId: number) : Promise< carriers.PictureFolderEntity >;
|
|
334
338
|
getPositionAsync(positionId: number) : Promise< carriers.Position >;
|
|
335
339
|
getPositionListAsync(positionIds: number[]) : Promise< carriers.Position[] >;
|
|
336
340
|
getPositionsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.Position[] >;
|
|
@@ -969,6 +973,73 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
969
973
|
});
|
|
970
974
|
}
|
|
971
975
|
|
|
976
|
+
/**
|
|
977
|
+
* Set default values into a new PictureFolderEntity.
|
|
978
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
979
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
980
|
+
* @returns A blank entity.
|
|
981
|
+
*/
|
|
982
|
+
public async createDefaultPictureFolderEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.PictureFolderEntity > {
|
|
983
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
984
|
+
base.WebApiBase.SetPending(options);
|
|
985
|
+
return new Promise< carriers.PictureFolderEntity >(async (resolve, reject) => {
|
|
986
|
+
try {
|
|
987
|
+
const response = await this._axios.post("CreateDefaultPictureFolderEntity", null, config);
|
|
988
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
989
|
+
const res : carriers.PictureFolderEntity = converters.Create_PictureFolderEntity_From( response.data );
|
|
990
|
+
resolve(res);
|
|
991
|
+
}
|
|
992
|
+
catch( err ) {
|
|
993
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
994
|
+
reject(err);
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Replace the existing PictureFolderEntity or creates a new PictureFolderEntity if the id parameter is empty
|
|
1000
|
+
* @param entity - The PictureFolderEntity to be saved.
|
|
1001
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1002
|
+
* @returns New or updated PictureFolderEntity
|
|
1003
|
+
*/
|
|
1004
|
+
public async savePictureFolderEntityAsync(entity: carriers.PictureFolderEntity, options?:base.WebApiRequestOptions) : Promise< carriers.PictureFolderEntity > {
|
|
1005
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1006
|
+
base.WebApiBase.SetPending(options);
|
|
1007
|
+
return new Promise< carriers.PictureFolderEntity >(async (resolve, reject) => {
|
|
1008
|
+
try {
|
|
1009
|
+
const response = await this._axios.post("SavePictureFolderEntity", entity, config);
|
|
1010
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1011
|
+
const res : carriers.PictureFolderEntity = converters.Create_PictureFolderEntity_From( response.data );
|
|
1012
|
+
resolve(res);
|
|
1013
|
+
}
|
|
1014
|
+
catch( err ) {
|
|
1015
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1016
|
+
reject(err);
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Deletes the PictureFolderEntity
|
|
1023
|
+
* @param PictureFolderEntityId - The id of the PictureFolderEntity to be deleted.
|
|
1024
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1025
|
+
*/
|
|
1026
|
+
public async deletePictureFolderEntityAsync(PictureFolderEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1027
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1028
|
+
base.WebApiBase.SetPending(options);
|
|
1029
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
1030
|
+
try {
|
|
1031
|
+
const response = await this._axios.post("DeletePictureFolderEntity?PictureFolderEntityId=" + PictureFolderEntityId, null, config );
|
|
1032
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1033
|
+
const res = response.data;
|
|
1034
|
+
resolve(res);
|
|
1035
|
+
}
|
|
1036
|
+
catch( err ) {
|
|
1037
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1038
|
+
reject(err);
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
|
|
972
1043
|
/**
|
|
973
1044
|
* Set default values into a new ProjectTypeEntity.
|
|
974
1045
|
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
@@ -8545,6 +8616,29 @@ export class ListAgent extends base.WebApiBase implements IListAgent {
|
|
|
8545
8616
|
return this._getPaymentTypesAsync(webapi_options);
|
|
8546
8617
|
}
|
|
8547
8618
|
|
|
8619
|
+
/**
|
|
8620
|
+
* Gets a PictureFolderEntity object.
|
|
8621
|
+
* @param pictureFolderEntityId - The primary key.
|
|
8622
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
8623
|
+
* @returns A single PictureFolderEntity
|
|
8624
|
+
*/
|
|
8625
|
+
public async getPictureFolderEntityAsync(pictureFolderEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.PictureFolderEntity > {
|
|
8626
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
8627
|
+
base.WebApiBase.SetPending(options);
|
|
8628
|
+
return new Promise< carriers.PictureFolderEntity >(async (resolve, reject) => {
|
|
8629
|
+
try {
|
|
8630
|
+
const response = await this._axios.post("GetPictureFolderEntity?pictureFolderEntityId=" + pictureFolderEntityId, null, config);
|
|
8631
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
8632
|
+
const res = converters.Create_PictureFolderEntity_From( response.data );
|
|
8633
|
+
resolve(res);
|
|
8634
|
+
}
|
|
8635
|
+
catch( err ) {
|
|
8636
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
8637
|
+
reject(err);
|
|
8638
|
+
}
|
|
8639
|
+
});
|
|
8640
|
+
}
|
|
8641
|
+
|
|
8548
8642
|
/**
|
|
8549
8643
|
* Gets a Position object.
|
|
8550
8644
|
* @param positionId - The primary key.
|