@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
|
@@ -97,6 +97,8 @@ export interface IConfigurationAgent {
|
|
|
97
97
|
getLandingPageAsync(associateId: number, tableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
|
|
98
98
|
setLandingPagePinForAssociateAsync(request: carriers.Configuration_SetLandingPagePinForAssociateRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
99
99
|
setLandingPagePinForAssociateAsync(pin: boolean, associateId: number, entityTableName: string, pinTableName: string, recordId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
100
|
+
saveLandingPageTabsAsync(request: carriers.Configuration_SaveLandingPageTabsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
|
|
101
|
+
saveLandingPageTabsAsync(associateId: number, entityTableName: string, tabs: carriers.LandingPageTab[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
|
|
100
102
|
getSystemEventEntityAsync(systemEventEntityId: number) : Promise< carriers.SystemEventEntity >;
|
|
101
103
|
existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
102
104
|
existsSystemEventAsync(key: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
@@ -2047,6 +2049,64 @@ export class ConfigurationAgent extends base.WebApiBase implements IConfiguratio
|
|
|
2047
2049
|
return this._setLandingPagePinForAssociateAsync( _request, _options );
|
|
2048
2050
|
}
|
|
2049
2051
|
|
|
2052
|
+
|
|
2053
|
+
private async _saveLandingPageTabsAsync(request: carriers.Configuration_SaveLandingPageTabsRequest, options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity > {
|
|
2054
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2055
|
+
base.WebApiBase.SetPending(options);
|
|
2056
|
+
return new Promise< carriers.LandingPageEntity >(async (resolve, reject) => {
|
|
2057
|
+
try {
|
|
2058
|
+
config.baseURL = this._options.baseUrl;
|
|
2059
|
+
const response = await this._axios.post("SaveLandingPageTabs", request , config);
|
|
2060
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2061
|
+
const res : carriers.LandingPageEntity = converters.Create_LandingPageEntity_From( response.data );
|
|
2062
|
+
resolve(res);
|
|
2063
|
+
}
|
|
2064
|
+
catch( err ) {
|
|
2065
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2066
|
+
reject(err);
|
|
2067
|
+
}
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
/**
|
|
2074
|
+
* Replace the full ordered set of tabs on the landing page identified by associate and entity table, reconciling against the existing rows. Creates the landing page row if it does not exist.
|
|
2075
|
+
* @param request - AssociateId, EntityTableName, Tabs
|
|
2076
|
+
* @returns The updated landing page.
|
|
2077
|
+
*/
|
|
2078
|
+
public async saveLandingPageTabsAsync(request: carriers.Configuration_SaveLandingPageTabsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
* Replace the full ordered set of tabs on the landing page identified by associate and entity table, reconciling against the existing rows. Creates the landing page row if it does not exist.
|
|
2082
|
+
* @param associateId - Id of the associate that owns the landing page.
|
|
2083
|
+
* @param entityTableName - Entity table name identifying which landing page (contact, person, sale, ...).
|
|
2084
|
+
* @param tabs - The complete ordered set of tabs to persist.
|
|
2085
|
+
* @returns The updated landing page.
|
|
2086
|
+
*/
|
|
2087
|
+
public async saveLandingPageTabsAsync(associateId: number, entityTableName: string, tabs: carriers.LandingPageTab[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
|
|
2088
|
+
|
|
2089
|
+
public async saveLandingPageTabsAsync(associateId:number|carriers.Configuration_SaveLandingPageTabsRequest, entityTableName?:string|base.WebApiRequestOptions, tabs?:carriers.LandingPageTab[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity > {
|
|
2090
|
+
let _request : carriers.Configuration_SaveLandingPageTabsRequest = null;
|
|
2091
|
+
let _options : base.WebApiRequestOptions = null;
|
|
2092
|
+
const first : any = associateId;
|
|
2093
|
+
if( typeof( first ) === "object" && first && ( typeof(first.associateId)!='undefined' || typeof(first.entityTableName)!='undefined' || typeof(first.tabs)!='undefined' ) )
|
|
2094
|
+
{
|
|
2095
|
+
_request = associateId as carriers.Configuration_SaveLandingPageTabsRequest;
|
|
2096
|
+
_options = entityTableName as base.WebApiRequestOptions;
|
|
2097
|
+
}
|
|
2098
|
+
else
|
|
2099
|
+
{
|
|
2100
|
+
_request = {
|
|
2101
|
+
associateId: associateId as number,
|
|
2102
|
+
entityTableName: entityTableName as string,
|
|
2103
|
+
tabs: tabs as carriers.LandingPageTab[],
|
|
2104
|
+
};
|
|
2105
|
+
_options = webapi_options;
|
|
2106
|
+
}
|
|
2107
|
+
return this._saveLandingPageTabsAsync( _request, _options );
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2050
2110
|
/**
|
|
2051
2111
|
* Gets a SystemEventEntity object.
|
|
2052
2112
|
* @param systemEventEntityId - The primary key.
|