@superoffice/webapi 11.13.921 → 12.1.1412
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 +836 -9
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +66 -0
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +158 -0
- package/dist/cjs/ConfigurationAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +33 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +484 -18
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/CustomObjectAgent.d.ts +137 -0
- package/dist/cjs/CustomObjectAgent.d.ts.map +1 -0
- package/dist/cjs/CustomObjectAgent.js +294 -0
- package/dist/cjs/CustomObjectAgent.js.map +1 -0
- package/dist/cjs/CustomerServiceAgent.d.ts +4 -3
- package/dist/cjs/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/cjs/CustomerServiceAgent.js +3 -2
- package/dist/cjs/CustomerServiceAgent.js.map +1 -1
- package/dist/cjs/DashAgent.d.ts +7 -0
- package/dist/cjs/DashAgent.d.ts.map +1 -1
- package/dist/cjs/DashAgent.js +24 -0
- package/dist/cjs/DashAgent.js.map +1 -1
- package/dist/cjs/EMailAgent.d.ts +150 -30
- package/dist/cjs/EMailAgent.d.ts.map +1 -1
- package/dist/cjs/EMailAgent.js +260 -0
- package/dist/cjs/EMailAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +76 -0
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +82 -2
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/LicenseAgent.d.ts +7 -0
- package/dist/cjs/LicenseAgent.d.ts.map +1 -1
- package/dist/cjs/LicenseAgent.js +24 -0
- package/dist/cjs/LicenseAgent.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +25 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +60 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/ProjectAgent.d.ts +10 -3
- package/dist/cjs/ProjectAgent.d.ts.map +1 -1
- package/dist/cjs/ProjectAgent.js +24 -0
- package/dist/cjs/ProjectAgent.js.map +1 -1
- package/dist/cjs/TicketAgent.d.ts +99 -0
- package/dist/cjs/TicketAgent.d.ts.map +1 -1
- package/dist/cjs/TicketAgent.js +207 -0
- package/dist/cjs/TicketAgent.js.map +1 -1
- package/dist/cjs/WebApi.d.ts +6 -0
- package/dist/cjs/WebApi.d.ts.map +1 -1
- package/dist/cjs/WebApi.js +10 -1
- package/dist/cjs/WebApi.js.map +1 -1
- package/dist/cjs/WorkflowAgent.d.ts +7 -0
- package/dist/cjs/WorkflowAgent.d.ts.map +1 -1
- package/dist/cjs/WorkflowAgent.js +24 -0
- package/dist/cjs/WorkflowAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +836 -9
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +66 -0
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +158 -0
- package/dist/esm/ConfigurationAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +33 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +432 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/CustomObjectAgent.d.ts +137 -0
- package/dist/esm/CustomObjectAgent.d.ts.map +1 -0
- package/dist/esm/CustomObjectAgent.js +289 -0
- package/dist/esm/CustomObjectAgent.js.map +1 -0
- package/dist/esm/CustomerServiceAgent.d.ts +4 -3
- package/dist/esm/CustomerServiceAgent.d.ts.map +1 -1
- package/dist/esm/CustomerServiceAgent.js +3 -2
- package/dist/esm/CustomerServiceAgent.js.map +1 -1
- package/dist/esm/DashAgent.d.ts +7 -0
- package/dist/esm/DashAgent.d.ts.map +1 -1
- package/dist/esm/DashAgent.js +24 -0
- package/dist/esm/DashAgent.js.map +1 -1
- package/dist/esm/EMailAgent.d.ts +150 -30
- package/dist/esm/EMailAgent.d.ts.map +1 -1
- package/dist/esm/EMailAgent.js +260 -0
- package/dist/esm/EMailAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +76 -0
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +80 -0
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/LicenseAgent.d.ts +7 -0
- package/dist/esm/LicenseAgent.d.ts.map +1 -1
- package/dist/esm/LicenseAgent.js +24 -0
- package/dist/esm/LicenseAgent.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +25 -0
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +60 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/ProjectAgent.d.ts +10 -3
- package/dist/esm/ProjectAgent.d.ts.map +1 -1
- package/dist/esm/ProjectAgent.js +24 -0
- package/dist/esm/ProjectAgent.js.map +1 -1
- package/dist/esm/TicketAgent.d.ts +99 -0
- package/dist/esm/TicketAgent.d.ts.map +1 -1
- package/dist/esm/TicketAgent.js +207 -0
- package/dist/esm/TicketAgent.js.map +1 -1
- package/dist/esm/WebApi.d.ts +6 -0
- package/dist/esm/WebApi.d.ts.map +1 -1
- package/dist/esm/WebApi.js +9 -0
- package/dist/esm/WebApi.js.map +1 -1
- package/dist/esm/WorkflowAgent.d.ts +7 -0
- package/dist/esm/WorkflowAgent.d.ts.map +1 -1
- package/dist/esm/WorkflowAgent.js +24 -0
- package/dist/esm/WorkflowAgent.js.map +1 -1
- package/package.json +4 -4
- package/src/Carriers.ts +1119 -3
- package/src/ConfigurationAgent.ts +216 -0
- package/src/Converters.ts +524 -0
- package/src/CustomObjectAgent.ts +489 -0
- package/src/CustomerServiceAgent.ts +7 -5
- package/src/DashAgent.ts +30 -0
- package/src/EMailAgent.ts +470 -30
- package/src/Enums.ts +84 -0
- package/src/LicenseAgent.ts +30 -0
- package/src/ListAgent.ts +92 -0
- package/src/ProjectAgent.ts +33 -3
- package/src/TicketAgent.ts +354 -0
- package/src/WebApi.ts +12 -0
- 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.
|