@superoffice/webapi 11.7.727 → 11.8.788
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/LICENSE.md +15 -15
- package/README.md +184 -184
- package/__tests__/Appointment63-notz.json +1925 -1925
- package/__tests__/Appointment63-utctz.json +1925 -1925
- package/__tests__/Appointment63.json +1925 -1925
- package/__tests__/AppointmentTzTest.ts +115 -115
- package/__tests__/AxiosNockTest.ts +28 -28
- package/__tests__/ContactDefault.json +699 -699
- package/__tests__/ContactEntity.json +272 -272
- package/__tests__/ContactRestTest.ts +144 -144
- package/__tests__/ContactTest.ts +395 -395
- package/__tests__/ConvertersTest.ts +97 -97
- package/__tests__/DocumentTest.ts +101 -101
- package/__tests__/Person210-notz.json +1932 -1932
- package/__tests__/Person210-utctz.json +1932 -1932
- package/__tests__/Person210.json +1932 -1932
- package/__tests__/PersonImageData.nock +22 -22
- package/__tests__/PersonTest.ts +41 -41
- package/__tests__/PersonTzTest.ts +113 -113
- package/__tests__/RecurrenceInfo.json +55 -55
- package/__tests__/ResponseCallbackTest.ts +23 -23
- package/__tests__/TableRights.json +441 -441
- package/__tests__/WebapiTest.ts +264 -264
- package/__tests__/Webhook.json +16 -16
- package/__tests__/WebhookTest.ts +209 -209
- package/dist/cjs/Carriers.d.ts +367 -4
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/Converters.d.ts +9 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +185 -17
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/DiagnosticsAgent.d.ts +38 -0
- package/dist/cjs/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/cjs/DiagnosticsAgent.js +91 -0
- package/dist/cjs/DiagnosticsAgent.js.map +1 -1
- package/dist/cjs/Enums.d.ts +18 -0
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +20 -1
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/ListAgent.d.ts +71 -6
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +157 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/TicketAgent.d.ts +23 -0
- package/dist/cjs/TicketAgent.d.ts.map +1 -1
- package/dist/cjs/TicketAgent.js +65 -0
- package/dist/cjs/TicketAgent.js.map +1 -1
- package/dist/esm/Carriers.d.ts +367 -4
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/Converters.d.ts +9 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +159 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/DiagnosticsAgent.d.ts +38 -0
- package/dist/esm/DiagnosticsAgent.d.ts.map +1 -1
- package/dist/esm/DiagnosticsAgent.js +91 -0
- package/dist/esm/DiagnosticsAgent.js.map +1 -1
- package/dist/esm/Enums.d.ts +18 -0
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +19 -0
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/ListAgent.d.ts +71 -6
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +157 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/TicketAgent.d.ts +23 -0
- package/dist/esm/TicketAgent.d.ts.map +1 -1
- package/dist/esm/TicketAgent.js +65 -0
- package/dist/esm/TicketAgent.js.map +1 -1
- package/examples-js/hello.js +12 -12
- package/examples-ts/hello.ts +8 -8
- package/package.json +93 -93
- package/scripts/postbuild.js +22 -22
- package/scripts/setVersion.js +44 -44
- package/src/AIAgent.ts +1992 -1992
- package/src/AppointmentAgent.ts +6263 -6263
- package/src/AppointmentRestApi.ts +225 -225
- package/src/ArchiveAgent.ts +1950 -1950
- package/src/AssociateAgent.ts +422 -422
- package/src/AxiosCacheHandler.ts +74 -74
- package/src/BLOBAgent.ts +2100 -2100
- package/src/Base64.ts +285 -285
- package/src/BatchAgent.ts +910 -910
- package/src/BulkUpdateAgent.ts +504 -504
- package/src/CRMScriptAgent.ts +1390 -1390
- package/src/Carriers.ts +52750 -52274
- package/src/ChatAgent.ts +1422 -1422
- package/src/ConfigurationAgent.ts +2228 -2228
- package/src/ContactAgent.ts +1756 -1756
- package/src/ContactRestApi.ts +237 -237
- package/src/Converters.ts +23271 -23090
- package/src/CustomerServiceAgent.ts +1799 -1799
- package/src/DashAgent.ts +1674 -1674
- package/src/DatabaseAgent.ts +120 -120
- package/src/DatabaseTableAgent.ts +534 -534
- package/src/Day_js.ts +41 -41
- package/src/DiagnosticsAgent.ts +1384 -1240
- package/src/DocumentAgent.ts +5079 -5079
- package/src/DocumentMigrationAgent.ts +524 -524
- package/src/DocumentRestApi.ts +259 -259
- package/src/EMailAgent.ts +5328 -5328
- package/src/Enums.ts +6936 -6916
- package/src/ErpSyncAgent.ts +2658 -2658
- package/src/FavouriteAgent.ts +720 -720
- package/src/FindAgent.ts +2330 -2330
- package/src/ForeignSystemAgent.ts +1710 -1710
- package/src/FreeTextAgent.ts +372 -372
- package/src/ImportAgent.ts +304 -304
- package/src/LicenseAgent.ts +1230 -1230
- package/src/ListAgent.ts +11451 -11237
- package/src/MDOAgent.ts +748 -748
- package/src/MarketingAgent.ts +890 -890
- package/src/MessagingAgent.ts +384 -384
- package/src/NavigatorAgent.ts +140 -140
- package/src/NumberAllocationAgent.ts +296 -296
- package/src/PersonAgent.ts +3287 -3287
- package/src/PersonRestApi.ts +241 -241
- package/src/PhoneListAgent.ts +458 -458
- package/src/PocketAgent.ts +780 -780
- package/src/PreferenceAgent.ts +1900 -1900
- package/src/PreviewsAgent.ts +116 -116
- package/src/ProjectAgent.ts +2391 -2391
- package/src/ProjectRestApi.ts +239 -239
- package/src/QuoteAgent.ts +5159 -5159
- package/src/RelationAgent.ts +220 -220
- package/src/ReportAgent.ts +154 -154
- package/src/ResourceAgent.ts +358 -358
- package/src/SaintAgent.ts +601 -601
- package/src/SaleAgent.ts +2034 -2034
- package/src/SaleRestApi.ts +233 -233
- package/src/SelectionAgent.ts +3195 -3195
- package/src/SentryAgent.ts +462 -462
- package/src/SoApiConstants.ts +8 -8
- package/src/TargetsAgent.ts +1104 -1104
- package/src/TicketAgent.ts +3708 -3638
- package/src/TimeZoneAgent.ts +528 -528
- package/src/TooltipsAgent.ts +116 -116
- package/src/UserAgent.ts +4856 -4856
- package/src/UserDefinedFieldInfoAgent.ts +1764 -1764
- package/src/ViewStateAgent.ts +858 -858
- package/src/WebApi.ts +872 -872
- package/src/WebApiBase.ts +565 -565
- package/src/WebhookAgent.ts +388 -388
- package/src/WorkflowAgent.ts +1338 -1338
- package/tsconfig.esm.json +8 -8
- package/tsconfig.jest.json +8 -8
- package/tsconfig.json +34 -34
|
@@ -1,2228 +1,2228 @@
|
|
|
1
|
-
// <auto-generated>
|
|
2
|
-
// SuperOffice Code Generator
|
|
3
|
-
// modelling\templates\servicestswebapi\tswebapiagents.tt
|
|
4
|
-
// </auto-generated>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/* tslint:disable */
|
|
8
|
-
//----------------------------------------------------------------------------
|
|
9
|
-
// G E N E R A T E D F I L E ! D O N O T E D I T !
|
|
10
|
-
//----------------------------------------------------------------------------
|
|
11
|
-
//
|
|
12
|
-
// File: WebApi/ConfigurationAgent.ts
|
|
13
|
-
//
|
|
14
|
-
//----------------------------------------------------------------------------
|
|
15
|
-
// Copyright (C) SuperOffice AS
|
|
16
|
-
//----------------------------------------------------------------------------
|
|
17
|
-
|
|
18
|
-
import { AxiosRequestConfig } from 'axios';
|
|
19
|
-
import { Duration } from 'dayjs/plugin/duration';
|
|
20
|
-
import * as enums from './Enums';
|
|
21
|
-
import * as base from './WebApiBase';
|
|
22
|
-
import * as carriers from './Carriers';
|
|
23
|
-
import * as converters from './Converters';
|
|
24
|
-
import { FromBase64ToString, ToBase64 } from './Base64';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* User interface configuration - XMLs and other elements such as inter-client URLs
|
|
28
|
-
*/
|
|
29
|
-
export interface IConfigurationAgent {
|
|
30
|
-
createDefaultConfigurableScreenDeltaAsync(): Promise< carriers.ConfigurableScreenDelta >;
|
|
31
|
-
saveConfigurableScreenDeltaAsync(entity: carriers.ConfigurableScreenDelta) : Promise< carriers.ConfigurableScreenDelta >;
|
|
32
|
-
deleteConfigurableScreenDeltaAsync(ConfigurableScreenDeltaId: number) : Promise<void>;
|
|
33
|
-
createDefaultDiaryViewEntityAsync(): Promise< carriers.DiaryViewEntity >;
|
|
34
|
-
saveDiaryViewEntityAsync(entity: carriers.DiaryViewEntity) : Promise< carriers.DiaryViewEntity >;
|
|
35
|
-
deleteDiaryViewEntityAsync(DiaryViewEntityId: number) : Promise<void>;
|
|
36
|
-
createDefaultSystemEventEntityAsync(): Promise< carriers.SystemEventEntity >;
|
|
37
|
-
saveSystemEventEntityAsync(entity: carriers.SystemEventEntity) : Promise< carriers.SystemEventEntity >;
|
|
38
|
-
deleteSystemEventEntityAsync(SystemEventEntityId: number) : Promise<void>;
|
|
39
|
-
getConfigurableScreenDeltaAsync(configurableScreenDeltaId: number) : Promise< carriers.ConfigurableScreenDelta >;
|
|
40
|
-
getScreenConfigurationDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
41
|
-
getScreenConfigurationDeltaAsync(request: carriers.Configuration_GetScreenConfigurationDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
42
|
-
getScreenConfigurationDeltaAsync(deltaType: enums.DeltaType, deltaState: enums.DeltaState, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
43
|
-
getConfigurableScreenDeltasByDeltaAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
44
|
-
getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
45
|
-
getConfigurableScreenDeltasByQueryAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
46
|
-
getConfigurableScreenDeltasByQueryAsync(deltaQuery: carriers.DeltaQuery, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
47
|
-
rebuildUdefDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
48
|
-
rebuildWebpanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
49
|
-
saveAndPublishAsync(request: carriers.Configuration_SaveAndPublishRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
|
|
50
|
-
saveAndPublishAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
|
|
51
|
-
setAppliesToKeyAsync(request: carriers.Configuration_SetAppliesToKeyRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
52
|
-
setAppliesToKeyAsync(recipeId: string, appliesToKey: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
53
|
-
getRecipeAppliesToMappingsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
54
|
-
rebuildCustomObjectArchivePanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
55
|
-
rebuildTaskMenuDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
56
|
-
getApplicationConfigurationAsync(request: carriers.Configuration_GetApplicationConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
57
|
-
getApplicationConfigurationAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
58
|
-
getPageConfigurationAsync(request: carriers.Configuration_GetPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
59
|
-
getPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
60
|
-
getObjectMappingAsync(request: carriers.Configuration_GetObjectMappingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
61
|
-
getObjectMappingAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
62
|
-
getFilterListAsync(request: carriers.Configuration_GetFilterListRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
63
|
-
getFilterListAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
64
|
-
clearConfigurationCacheAsync(request: carriers.Configuration_ClearConfigurationCacheRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
65
|
-
clearConfigurationCacheAsync(application: string, instance: string, forAllAssociates: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
66
|
-
getAnyConfigurationAsync(request: carriers.Configuration_GetAnyConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
67
|
-
getAnyConfigurationAsync(application: string, instance: string, item: string, type: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
68
|
-
getEMarketingUrlAsync(request: carriers.Configuration_GetEMarketingUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
69
|
-
getEMarketingUrlAsync(language: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
70
|
-
getCsProgramUrlAsync(request: carriers.Configuration_GetCsProgramUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
71
|
-
getCsProgramUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
72
|
-
getCSAuthUrlAsync(request: carriers.Configuration_GetCSAuthUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
73
|
-
getCSAuthUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
74
|
-
getCSRegistryValueAsync(request: carriers.Configuration_GetCSRegistryValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
75
|
-
getCSRegistryValueAsync(entry: number, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
76
|
-
getCSWwwFolderAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
77
|
-
getRefreshedPageConfigurationAsync(request: carriers.Configuration_GetRefreshedPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
78
|
-
getRefreshedPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
79
|
-
getWwwUrlAsync(request: carriers.Configuration_GetWwwUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
80
|
-
getWwwUrlAsync(client: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
81
|
-
getHelpDispatcherUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
82
|
-
getWwwUrlForSMWebAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
83
|
-
getCsCgiUrlInternalAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
84
|
-
getCRMUrlAsync(request: carriers.Configuration_GetCRMUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
85
|
-
getCRMUrlAsync(soProtocol: string, currents: string, frameless: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
86
|
-
getEmailNumberOfDaysAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
87
|
-
getCustomerUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
88
|
-
getSpfDomainAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
89
|
-
getAllFeatureTogglesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary >;
|
|
90
|
-
getDiaryViewEntityAsync(diaryViewEntityId: number) : Promise< carriers.DiaryViewEntity >;
|
|
91
|
-
getSystemEventEntityAsync(systemEventEntityId: number) : Promise< carriers.SystemEventEntity >;
|
|
92
|
-
existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
93
|
-
existsSystemEventAsync(key: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
94
|
-
getWindowPosSizeAsync(windowPosSizeId: number) : Promise< carriers.WindowPosSize >;
|
|
95
|
-
saveWindowPosSizeAsync(request: carriers.Configuration_SaveWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
|
|
96
|
-
saveWindowPosSizeAsync(windowPosSize: carriers.WindowPosSize, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
|
|
97
|
-
deleteWindowPosSizeAsync(request: carriers.Configuration_DeleteWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
98
|
-
deleteWindowPosSizeAsync(windowPosSizeId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
99
|
-
getWindowPosSizeListAsync(windowPosSizeIds: number[]) : Promise< carriers.WindowPosSize[] >;
|
|
100
|
-
getMyWindowPosSizesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
101
|
-
getWindowPosSizesOnPersonIdAsync(request: carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
102
|
-
getWindowPosSizesOnPersonIdAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
103
|
-
getWindowPosSizesOnAssociateIdAsync(request: carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
104
|
-
getWindowPosSizesOnAssociateIdAsync(associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
105
|
-
saveWindowPosSizesAsync(request: carriers.Configuration_SaveWindowPosSizesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
106
|
-
saveWindowPosSizesAsync(windowPosSizes: carriers.WindowPosSize[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
107
|
-
} // interface IConfigurationAgent
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* User interface configuration - XMLs and other elements such as inter-client URLs
|
|
114
|
-
*/
|
|
115
|
-
export class ConfigurationAgent extends base.WebApiBase implements IConfigurationAgent {
|
|
116
|
-
constructor(baseUrl?: string, languageCode?:string, cultureCode?: string);
|
|
117
|
-
constructor(baseUrl?: string, resourceParsing?: base.ResourceParsing);
|
|
118
|
-
constructor(baseUrl: string, resourceManager:any);
|
|
119
|
-
constructor(baseUrl: string, config:AxiosRequestConfig, resourceManager:any);
|
|
120
|
-
constructor(baseUrl: string, config:AxiosRequestConfig, resourceParsing?: base.ResourceParsing);
|
|
121
|
-
constructor(baseUrl: string, config:AxiosRequestConfig, languageCode?:string, cultureCode?: string);
|
|
122
|
-
constructor(options: base.WebApiOptions);
|
|
123
|
-
|
|
124
|
-
constructor(baseUrlOrOptions: string|base.WebApiOptions|undefined,
|
|
125
|
-
langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
|
|
126
|
-
langOrResourceOrRM?:string|base.ResourceParsing|any,
|
|
127
|
-
cultureCode?: string,
|
|
128
|
-
) {
|
|
129
|
-
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
130
|
-
options.basePath = "v1/Agents/Configuration/";
|
|
131
|
-
super(options);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Set default values into a new ConfigurableScreenDelta.
|
|
138
|
-
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
139
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
140
|
-
* @returns A blank entity.
|
|
141
|
-
*/
|
|
142
|
-
public async createDefaultConfigurableScreenDeltaAsync(options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
143
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
144
|
-
base.WebApiBase.SetPending(options);
|
|
145
|
-
return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
|
|
146
|
-
try {
|
|
147
|
-
const response = await this._axios.post("CreateDefaultConfigurableScreenDelta", null, config);
|
|
148
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
149
|
-
const res : carriers.ConfigurableScreenDelta = converters.Create_ConfigurableScreenDelta_From( response.data );
|
|
150
|
-
resolve(res);
|
|
151
|
-
}
|
|
152
|
-
catch( err ) {
|
|
153
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
154
|
-
reject(err);
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Replace the existing ConfigurableScreenDelta or creates a new ConfigurableScreenDelta if the id parameter is empty
|
|
160
|
-
* @param entity - The ConfigurableScreenDelta to be saved.
|
|
161
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
162
|
-
* @returns New or updated ConfigurableScreenDelta
|
|
163
|
-
*/
|
|
164
|
-
public async saveConfigurableScreenDeltaAsync(entity: carriers.ConfigurableScreenDelta, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
165
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
166
|
-
base.WebApiBase.SetPending(options);
|
|
167
|
-
return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
|
|
168
|
-
try {
|
|
169
|
-
const response = await this._axios.post("SaveConfigurableScreenDelta", entity, config);
|
|
170
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
171
|
-
const res : carriers.ConfigurableScreenDelta = converters.Create_ConfigurableScreenDelta_From( response.data );
|
|
172
|
-
resolve(res);
|
|
173
|
-
}
|
|
174
|
-
catch( err ) {
|
|
175
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
176
|
-
reject(err);
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Deletes the ConfigurableScreenDelta
|
|
183
|
-
* @param ConfigurableScreenDeltaId - The id of the ConfigurableScreenDelta to be deleted.
|
|
184
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
185
|
-
*/
|
|
186
|
-
public async deleteConfigurableScreenDeltaAsync(ConfigurableScreenDeltaId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
187
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
188
|
-
base.WebApiBase.SetPending(options);
|
|
189
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
190
|
-
try {
|
|
191
|
-
const response = await this._axios.post("DeleteConfigurableScreenDelta?ConfigurableScreenDeltaId=" + ConfigurableScreenDeltaId, null, config );
|
|
192
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
193
|
-
const res = response.data;
|
|
194
|
-
resolve(res);
|
|
195
|
-
}
|
|
196
|
-
catch( err ) {
|
|
197
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
198
|
-
reject(err);
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Set default values into a new DiaryViewEntity.
|
|
205
|
-
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
206
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
207
|
-
* @returns A blank entity.
|
|
208
|
-
*/
|
|
209
|
-
public async createDefaultDiaryViewEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.DiaryViewEntity > {
|
|
210
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
211
|
-
base.WebApiBase.SetPending(options);
|
|
212
|
-
return new Promise< carriers.DiaryViewEntity >(async (resolve, reject) => {
|
|
213
|
-
try {
|
|
214
|
-
const response = await this._axios.post("CreateDefaultDiaryViewEntity", null, config);
|
|
215
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
216
|
-
const res : carriers.DiaryViewEntity = converters.Create_DiaryViewEntity_From( response.data );
|
|
217
|
-
resolve(res);
|
|
218
|
-
}
|
|
219
|
-
catch( err ) {
|
|
220
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
221
|
-
reject(err);
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Replace the existing DiaryViewEntity or creates a new DiaryViewEntity if the id parameter is empty
|
|
227
|
-
* @param entity - The DiaryViewEntity to be saved.
|
|
228
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
229
|
-
* @returns New or updated DiaryViewEntity
|
|
230
|
-
*/
|
|
231
|
-
public async saveDiaryViewEntityAsync(entity: carriers.DiaryViewEntity, options?:base.WebApiRequestOptions) : Promise< carriers.DiaryViewEntity > {
|
|
232
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
233
|
-
base.WebApiBase.SetPending(options);
|
|
234
|
-
return new Promise< carriers.DiaryViewEntity >(async (resolve, reject) => {
|
|
235
|
-
try {
|
|
236
|
-
const response = await this._axios.post("SaveDiaryViewEntity", entity, config);
|
|
237
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
238
|
-
const res : carriers.DiaryViewEntity = converters.Create_DiaryViewEntity_From( response.data );
|
|
239
|
-
resolve(res);
|
|
240
|
-
}
|
|
241
|
-
catch( err ) {
|
|
242
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
243
|
-
reject(err);
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Deletes the DiaryViewEntity
|
|
250
|
-
* @param DiaryViewEntityId - The id of the DiaryViewEntity to be deleted.
|
|
251
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
252
|
-
*/
|
|
253
|
-
public async deleteDiaryViewEntityAsync(DiaryViewEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
254
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
255
|
-
base.WebApiBase.SetPending(options);
|
|
256
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
257
|
-
try {
|
|
258
|
-
const response = await this._axios.post("DeleteDiaryViewEntity?DiaryViewEntityId=" + DiaryViewEntityId, null, config );
|
|
259
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
260
|
-
const res = response.data;
|
|
261
|
-
resolve(res);
|
|
262
|
-
}
|
|
263
|
-
catch( err ) {
|
|
264
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
265
|
-
reject(err);
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Set default values into a new SystemEventEntity.
|
|
272
|
-
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
273
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
274
|
-
* @returns A blank entity.
|
|
275
|
-
*/
|
|
276
|
-
public async createDefaultSystemEventEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.SystemEventEntity > {
|
|
277
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
278
|
-
base.WebApiBase.SetPending(options);
|
|
279
|
-
return new Promise< carriers.SystemEventEntity >(async (resolve, reject) => {
|
|
280
|
-
try {
|
|
281
|
-
const response = await this._axios.post("CreateDefaultSystemEventEntity", null, config);
|
|
282
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
283
|
-
const res : carriers.SystemEventEntity = converters.Create_SystemEventEntity_From( response.data );
|
|
284
|
-
resolve(res);
|
|
285
|
-
}
|
|
286
|
-
catch( err ) {
|
|
287
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
288
|
-
reject(err);
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Replace the existing SystemEventEntity or creates a new SystemEventEntity if the id parameter is empty
|
|
294
|
-
* @param entity - The SystemEventEntity to be saved.
|
|
295
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
296
|
-
* @returns New or updated SystemEventEntity
|
|
297
|
-
*/
|
|
298
|
-
public async saveSystemEventEntityAsync(entity: carriers.SystemEventEntity, options?:base.WebApiRequestOptions) : Promise< carriers.SystemEventEntity > {
|
|
299
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
300
|
-
base.WebApiBase.SetPending(options);
|
|
301
|
-
return new Promise< carriers.SystemEventEntity >(async (resolve, reject) => {
|
|
302
|
-
try {
|
|
303
|
-
const response = await this._axios.post("SaveSystemEventEntity", entity, config);
|
|
304
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
305
|
-
const res : carriers.SystemEventEntity = converters.Create_SystemEventEntity_From( response.data );
|
|
306
|
-
resolve(res);
|
|
307
|
-
}
|
|
308
|
-
catch( err ) {
|
|
309
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
310
|
-
reject(err);
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Deletes the SystemEventEntity
|
|
317
|
-
* @param SystemEventEntityId - The id of the SystemEventEntity to be deleted.
|
|
318
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
319
|
-
*/
|
|
320
|
-
public async deleteSystemEventEntityAsync(SystemEventEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
321
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
322
|
-
base.WebApiBase.SetPending(options);
|
|
323
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
324
|
-
try {
|
|
325
|
-
const response = await this._axios.post("DeleteSystemEventEntity?SystemEventEntityId=" + SystemEventEntityId, null, config );
|
|
326
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
327
|
-
const res = response.data;
|
|
328
|
-
resolve(res);
|
|
329
|
-
}
|
|
330
|
-
catch( err ) {
|
|
331
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
332
|
-
reject(err);
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Gets a ConfigurableScreenDelta object.
|
|
338
|
-
* @param configurableScreenDeltaId - The primary key.
|
|
339
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
340
|
-
* @returns A single ConfigurableScreenDelta
|
|
341
|
-
*/
|
|
342
|
-
public async getConfigurableScreenDeltaAsync(configurableScreenDeltaId: number, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
343
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
344
|
-
base.WebApiBase.SetPending(options);
|
|
345
|
-
return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
|
|
346
|
-
try {
|
|
347
|
-
const response = await this._axios.post("GetConfigurableScreenDelta?configurableScreenDeltaId=" + configurableScreenDeltaId, null, config);
|
|
348
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
349
|
-
const res = converters.Create_ConfigurableScreenDelta_From( response.data );
|
|
350
|
-
resolve(res);
|
|
351
|
-
}
|
|
352
|
-
catch( err ) {
|
|
353
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
354
|
-
reject(err);
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
private async _getScreenConfigurationDeltasAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
361
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
362
|
-
base.WebApiBase.SetPending(options);
|
|
363
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
364
|
-
try {
|
|
365
|
-
config.baseURL = this._options.baseUrl;
|
|
366
|
-
const response = await this._axios.post("GetScreenConfigurationDeltas", undefined , config);
|
|
367
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
368
|
-
const res : string = response.data as string;
|
|
369
|
-
resolve(res);
|
|
370
|
-
}
|
|
371
|
-
catch( err ) {
|
|
372
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
373
|
-
reject(err);
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* This method will return a json with all deltas for screen
|
|
381
|
-
* @returns A string with all recipe deltas in json for logged in associate
|
|
382
|
-
*/
|
|
383
|
-
public async getScreenConfigurationDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
384
|
-
{
|
|
385
|
-
return this._getScreenConfigurationDeltasAsync(webapi_options);
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
private async _getScreenConfigurationDeltaAsync(request: carriers.Configuration_GetScreenConfigurationDeltaRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
390
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
391
|
-
base.WebApiBase.SetPending(options);
|
|
392
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
393
|
-
try {
|
|
394
|
-
config.baseURL = this._options.baseUrl;
|
|
395
|
-
const response = await this._axios.post("GetScreenConfigurationDelta", request , config);
|
|
396
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
397
|
-
const res : string = response.data as string;
|
|
398
|
-
resolve(res);
|
|
399
|
-
}
|
|
400
|
-
catch( err ) {
|
|
401
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
402
|
-
reject(err);
|
|
403
|
-
}
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* This method will return a json with all deltas for screen
|
|
411
|
-
* @param request - DeltaType, DeltaState
|
|
412
|
-
* @returns A string with recipe delta in json for logged in associate of given deltatype
|
|
413
|
-
*/
|
|
414
|
-
public async getScreenConfigurationDeltaAsync(request: carriers.Configuration_GetScreenConfigurationDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* This method will return a json with all deltas for screen
|
|
418
|
-
* @param deltaType - The recipe in json for this DeltaType: System, WebPanel, CustomFields, Custom...
|
|
419
|
-
* @param deltaState - Draft or published or None
|
|
420
|
-
* @returns A string with recipe delta in json for logged in associate of given deltatype
|
|
421
|
-
*/
|
|
422
|
-
public async getScreenConfigurationDeltaAsync(deltaType: enums.DeltaType, deltaState: enums.DeltaState, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
423
|
-
|
|
424
|
-
public async getScreenConfigurationDeltaAsync(deltaType:enums.DeltaType|carriers.Configuration_GetScreenConfigurationDeltaRequest, deltaState?:enums.DeltaState|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
425
|
-
let _request : carriers.Configuration_GetScreenConfigurationDeltaRequest = null;
|
|
426
|
-
let _options : base.WebApiRequestOptions = null;
|
|
427
|
-
const first : any = deltaType;
|
|
428
|
-
if( typeof( first ) === "object" && first && ( typeof(first.deltaType)!='undefined' || typeof(first.deltaState)!='undefined' ) )
|
|
429
|
-
{
|
|
430
|
-
_request = deltaType as carriers.Configuration_GetScreenConfigurationDeltaRequest;
|
|
431
|
-
_options = deltaState as base.WebApiRequestOptions;
|
|
432
|
-
}
|
|
433
|
-
else
|
|
434
|
-
{
|
|
435
|
-
_request = {
|
|
436
|
-
deltaType: deltaType as enums.DeltaType,
|
|
437
|
-
deltaState: deltaState as enums.DeltaState,
|
|
438
|
-
};
|
|
439
|
-
_options = webapi_options;
|
|
440
|
-
}
|
|
441
|
-
return this._getScreenConfigurationDeltaAsync( _request, _options );
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
private async _getConfigurableScreenDeltasByDeltaAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
|
|
446
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
447
|
-
base.WebApiBase.SetPending(options);
|
|
448
|
-
return new Promise< carriers.ConfigurableScreenDelta[] >(async (resolve, reject) => {
|
|
449
|
-
try {
|
|
450
|
-
config.baseURL = this._options.baseUrl;
|
|
451
|
-
const response = await this._axios.post("GetConfigurableScreenDeltasByDelta", request , config);
|
|
452
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
453
|
-
const res : carriers.ConfigurableScreenDelta[] = converters.Create_ConfigurableScreenDeltaArray_From( response.data );
|
|
454
|
-
resolve(res);
|
|
455
|
-
}
|
|
456
|
-
catch( err ) {
|
|
457
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
458
|
-
reject(err);
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* This method will return a configurablescreen delta matching the properties received from the incomming delta
|
|
467
|
-
* @param request - ConfigurableScreenDelta
|
|
468
|
-
* @returns An array of deltas matching the values of the incomming parameter-delta
|
|
469
|
-
*/
|
|
470
|
-
public async getConfigurableScreenDeltasByDeltaAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* This method will return a configurablescreen delta matching the properties received from the incomming delta
|
|
474
|
-
* @param configurableScreenDelta - A delta populated with wanted properties
|
|
475
|
-
* @returns An array of deltas matching the values of the incomming parameter-delta
|
|
476
|
-
*/
|
|
477
|
-
public async getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
478
|
-
|
|
479
|
-
public async getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta:carriers.ConfigurableScreenDelta|carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
|
|
480
|
-
let _request : carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest = null;
|
|
481
|
-
let _options : base.WebApiRequestOptions = null;
|
|
482
|
-
const first : any = configurableScreenDelta;
|
|
483
|
-
if( typeof( first ) === "object" && first && ( typeof(first.configurableScreenDelta)!='undefined' ) )
|
|
484
|
-
{
|
|
485
|
-
_request = configurableScreenDelta as carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest;
|
|
486
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
487
|
-
}
|
|
488
|
-
else
|
|
489
|
-
{
|
|
490
|
-
_request = {
|
|
491
|
-
configurableScreenDelta: configurableScreenDelta as carriers.ConfigurableScreenDelta,
|
|
492
|
-
};
|
|
493
|
-
_options = webapi_options;
|
|
494
|
-
}
|
|
495
|
-
return this._getConfigurableScreenDeltasByDeltaAsync( _request, _options );
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
private async _getConfigurableScreenDeltasByQueryAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
|
|
500
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
501
|
-
base.WebApiBase.SetPending(options);
|
|
502
|
-
return new Promise< carriers.ConfigurableScreenDelta[] >(async (resolve, reject) => {
|
|
503
|
-
try {
|
|
504
|
-
config.baseURL = this._options.baseUrl;
|
|
505
|
-
const response = await this._axios.post("GetConfigurableScreenDeltasByQuery", request , config);
|
|
506
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
507
|
-
const res : carriers.ConfigurableScreenDelta[] = converters.Create_ConfigurableScreenDeltaArray_From( response.data );
|
|
508
|
-
resolve(res);
|
|
509
|
-
}
|
|
510
|
-
catch( err ) {
|
|
511
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
512
|
-
reject(err);
|
|
513
|
-
}
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* This method will return a configurablescreen delta matching the properties received from the incomming query
|
|
521
|
-
* @param request - DeltaQuery
|
|
522
|
-
* @returns An array of deltas matching the values of the incomming query
|
|
523
|
-
*/
|
|
524
|
-
public async getConfigurableScreenDeltasByQueryAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* This method will return a configurablescreen delta matching the properties received from the incomming query
|
|
528
|
-
* @param deltaQuery - An object populated with wanted properties for the deltas to return
|
|
529
|
-
* @returns An array of deltas matching the values of the incomming query
|
|
530
|
-
*/
|
|
531
|
-
public async getConfigurableScreenDeltasByQueryAsync(deltaQuery: carriers.DeltaQuery, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
532
|
-
|
|
533
|
-
public async getConfigurableScreenDeltasByQueryAsync(deltaQuery:carriers.DeltaQuery|carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
|
|
534
|
-
let _request : carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest = null;
|
|
535
|
-
let _options : base.WebApiRequestOptions = null;
|
|
536
|
-
const first : any = deltaQuery;
|
|
537
|
-
if( typeof( first ) === "object" && first && ( typeof(first.deltaQuery)!='undefined' ) )
|
|
538
|
-
{
|
|
539
|
-
_request = deltaQuery as carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest;
|
|
540
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
541
|
-
}
|
|
542
|
-
else
|
|
543
|
-
{
|
|
544
|
-
_request = {
|
|
545
|
-
deltaQuery: deltaQuery as carriers.DeltaQuery,
|
|
546
|
-
};
|
|
547
|
-
_options = webapi_options;
|
|
548
|
-
}
|
|
549
|
-
return this._getConfigurableScreenDeltasByQueryAsync( _request, _options );
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
private async _rebuildUdefDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
554
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
555
|
-
base.WebApiBase.SetPending(options);
|
|
556
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
557
|
-
try {
|
|
558
|
-
config.baseURL = this._options.baseUrl;
|
|
559
|
-
const response = await this._axios.post("RebuildUdefDeltas", undefined , config);
|
|
560
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
561
|
-
const res = response.data;
|
|
562
|
-
resolve(res);
|
|
563
|
-
}
|
|
564
|
-
catch( err ) {
|
|
565
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
566
|
-
reject(err);
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* Flush and rebuild userdefined field deltas. Mostly used after publishing udefs or adding/editing Customer Service extrafields
|
|
574
|
-
* @returns No return value
|
|
575
|
-
*/
|
|
576
|
-
public async rebuildUdefDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
577
|
-
{
|
|
578
|
-
return this._rebuildUdefDeltasAsync(webapi_options);
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
private async _rebuildWebpanelDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
583
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
584
|
-
base.WebApiBase.SetPending(options);
|
|
585
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
586
|
-
try {
|
|
587
|
-
config.baseURL = this._options.baseUrl;
|
|
588
|
-
const response = await this._axios.post("RebuildWebpanelDeltas", undefined , config);
|
|
589
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
590
|
-
const res = response.data;
|
|
591
|
-
resolve(res);
|
|
592
|
-
}
|
|
593
|
-
catch( err ) {
|
|
594
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
595
|
-
reject(err);
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
/**
|
|
602
|
-
* Flush and rebuild webpanel deltas. Mostly used after adding/editing webpanels or change group visibility of them
|
|
603
|
-
* @returns No return value
|
|
604
|
-
*/
|
|
605
|
-
public async rebuildWebpanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
606
|
-
{
|
|
607
|
-
return this._rebuildWebpanelDeltasAsync(webapi_options);
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
private async _saveAndPublishAsync(request: carriers.Configuration_SaveAndPublishRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
612
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
613
|
-
base.WebApiBase.SetPending(options);
|
|
614
|
-
return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
|
|
615
|
-
try {
|
|
616
|
-
config.baseURL = this._options.baseUrl;
|
|
617
|
-
const response = await this._axios.post("SaveAndPublish", request , config);
|
|
618
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
619
|
-
const res : carriers.ConfigurableScreenDelta = converters.Create_ConfigurableScreenDelta_From( response.data );
|
|
620
|
-
resolve(res);
|
|
621
|
-
}
|
|
622
|
-
catch( err ) {
|
|
623
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
624
|
-
reject(err);
|
|
625
|
-
}
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
* Save the incomming draft and publish
|
|
633
|
-
* @param request - ConfigurableScreenDelta
|
|
634
|
-
* @returns The newly published version of the ConfigurbleScreenDelta
|
|
635
|
-
*/
|
|
636
|
-
public async saveAndPublishAsync(request: carriers.Configuration_SaveAndPublishRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Save the incomming draft and publish
|
|
640
|
-
* @param configurableScreenDelta - The ConfigurableScreenDelta draft that is going to be published
|
|
641
|
-
* @returns The newly published version of the ConfigurbleScreenDelta
|
|
642
|
-
*/
|
|
643
|
-
public async saveAndPublishAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
|
|
644
|
-
|
|
645
|
-
public async saveAndPublishAsync(configurableScreenDelta:carriers.ConfigurableScreenDelta|carriers.Configuration_SaveAndPublishRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
646
|
-
let _request : carriers.Configuration_SaveAndPublishRequest = null;
|
|
647
|
-
let _options : base.WebApiRequestOptions = null;
|
|
648
|
-
const first : any = configurableScreenDelta;
|
|
649
|
-
if( typeof( first ) === "object" && first && ( typeof(first.configurableScreenDelta)!='undefined' ) )
|
|
650
|
-
{
|
|
651
|
-
_request = configurableScreenDelta as carriers.Configuration_SaveAndPublishRequest;
|
|
652
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
653
|
-
}
|
|
654
|
-
else
|
|
655
|
-
{
|
|
656
|
-
_request = {
|
|
657
|
-
configurableScreenDelta: configurableScreenDelta as carriers.ConfigurableScreenDelta,
|
|
658
|
-
};
|
|
659
|
-
_options = webapi_options;
|
|
660
|
-
}
|
|
661
|
-
return this._saveAndPublishAsync( _request, _options );
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
private async _setAppliesToKeyAsync(request: carriers.Configuration_SetAppliesToKeyRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
666
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
667
|
-
base.WebApiBase.SetPending(options);
|
|
668
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
669
|
-
try {
|
|
670
|
-
config.baseURL = this._options.baseUrl;
|
|
671
|
-
const response = await this._axios.post("SetAppliesToKey", request , config);
|
|
672
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
673
|
-
const res = response.data;
|
|
674
|
-
resolve(res);
|
|
675
|
-
}
|
|
676
|
-
catch( err ) {
|
|
677
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
678
|
-
reject(err);
|
|
679
|
-
}
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* Set the type of assignTo the deltas of the given recipe should have
|
|
687
|
-
* @param request - RecipeId, AppliesToKey
|
|
688
|
-
* @returns Returns nothing
|
|
689
|
-
*/
|
|
690
|
-
public async setAppliesToKeyAsync(request: carriers.Configuration_SetAppliesToKeyRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
691
|
-
|
|
692
|
-
/**
|
|
693
|
-
* Set the type of assignTo the deltas of the given recipe should have
|
|
694
|
-
* @param recipeId - The recipeId that will use this apply to type
|
|
695
|
-
* @param appliesToKey - The type we should use for differencing between delta layout. Like usergroup or project type. Saved in table ConfigurableScreenAppliesTo
|
|
696
|
-
* @returns Returns nothing
|
|
697
|
-
*/
|
|
698
|
-
public async setAppliesToKeyAsync(recipeId: string, appliesToKey: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
699
|
-
|
|
700
|
-
public async setAppliesToKeyAsync(recipeId:string|carriers.Configuration_SetAppliesToKeyRequest, appliesToKey?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
701
|
-
let _request : carriers.Configuration_SetAppliesToKeyRequest = null;
|
|
702
|
-
let _options : base.WebApiRequestOptions = null;
|
|
703
|
-
const first : any = recipeId;
|
|
704
|
-
if( typeof( first ) === "object" && first && ( typeof(first.recipeId)!='undefined' || typeof(first.appliesToKey)!='undefined' ) )
|
|
705
|
-
{
|
|
706
|
-
_request = recipeId as carriers.Configuration_SetAppliesToKeyRequest;
|
|
707
|
-
_options = appliesToKey as base.WebApiRequestOptions;
|
|
708
|
-
}
|
|
709
|
-
else
|
|
710
|
-
{
|
|
711
|
-
_request = {
|
|
712
|
-
recipeId: recipeId as string,
|
|
713
|
-
appliesToKey: appliesToKey as string,
|
|
714
|
-
};
|
|
715
|
-
_options = webapi_options;
|
|
716
|
-
}
|
|
717
|
-
return this._setAppliesToKeyAsync( _request, _options );
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
private async _getRecipeAppliesToMappingsAsync( options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary > {
|
|
722
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
723
|
-
base.WebApiBase.SetPending(options);
|
|
724
|
-
return new Promise< carriers.StringDictionary >(async (resolve, reject) => {
|
|
725
|
-
try {
|
|
726
|
-
config.baseURL = this._options.baseUrl;
|
|
727
|
-
const response = await this._axios.post("GetRecipeAppliesToMappings", undefined , config);
|
|
728
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
729
|
-
const res : carriers.StringDictionary = converters.Create_StringDictionary_From( response.data );
|
|
730
|
-
resolve(res);
|
|
731
|
-
}
|
|
732
|
-
catch( err ) {
|
|
733
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
734
|
-
reject(err);
|
|
735
|
-
}
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* Return the a dictionary with recipeId as key, and chosen appliesTo for that recipe, Like projecttype for projectcardrecipe
|
|
742
|
-
* @returns Mapping of recipeId and selected appliesToKey
|
|
743
|
-
*/
|
|
744
|
-
public async getRecipeAppliesToMappingsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >
|
|
745
|
-
{
|
|
746
|
-
return this._getRecipeAppliesToMappingsAsync(webapi_options);
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
private async _rebuildCustomObjectArchivePanelDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
751
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
752
|
-
base.WebApiBase.SetPending(options);
|
|
753
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
754
|
-
try {
|
|
755
|
-
config.baseURL = this._options.baseUrl;
|
|
756
|
-
const response = await this._axios.post("RebuildCustomObjectArchivePanelDeltas", undefined , config);
|
|
757
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
758
|
-
const res = response.data;
|
|
759
|
-
resolve(res);
|
|
760
|
-
}
|
|
761
|
-
catch( err ) {
|
|
762
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
763
|
-
reject(err);
|
|
764
|
-
}
|
|
765
|
-
});
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
/**
|
|
770
|
-
* Flush and rebuild CustomObjectArchivePanel deltas.
|
|
771
|
-
* @returns No return value
|
|
772
|
-
*/
|
|
773
|
-
public async rebuildCustomObjectArchivePanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
774
|
-
{
|
|
775
|
-
return this._rebuildCustomObjectArchivePanelDeltasAsync(webapi_options);
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
private async _rebuildTaskMenuDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
780
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
781
|
-
base.WebApiBase.SetPending(options);
|
|
782
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
783
|
-
try {
|
|
784
|
-
config.baseURL = this._options.baseUrl;
|
|
785
|
-
const response = await this._axios.post("RebuildTaskMenuDeltas", undefined , config);
|
|
786
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
787
|
-
const res = response.data;
|
|
788
|
-
resolve(res);
|
|
789
|
-
}
|
|
790
|
-
catch( err ) {
|
|
791
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
792
|
-
reject(err);
|
|
793
|
-
}
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* Flush and rebuild TaskMenu deltas.
|
|
800
|
-
* @returns No return value
|
|
801
|
-
*/
|
|
802
|
-
public async rebuildTaskMenuDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
803
|
-
{
|
|
804
|
-
return this._rebuildTaskMenuDeltasAsync(webapi_options);
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
private async _getApplicationConfigurationAsync(request: carriers.Configuration_GetApplicationConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
809
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
810
|
-
base.WebApiBase.SetPending(options);
|
|
811
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
812
|
-
try {
|
|
813
|
-
config.baseURL = this._options.baseUrl;
|
|
814
|
-
const response = await this._axios.post("GetApplicationConfiguration", request , config);
|
|
815
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
816
|
-
const res : string = response.data as string;
|
|
817
|
-
resolve(res);
|
|
818
|
-
}
|
|
819
|
-
catch( err ) {
|
|
820
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
821
|
-
reject(err);
|
|
822
|
-
}
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* Return the application configuration. This is a list of pages, with information about the name, main panel and preference mappings of each page.
|
|
830
|
-
* @param request - Application, Instance
|
|
831
|
-
* @returns XML structure containing the application configuration
|
|
832
|
-
*/
|
|
833
|
-
public async getApplicationConfigurationAsync(request: carriers.Configuration_GetApplicationConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* Return the application configuration. This is a list of pages, with information about the name, main panel and preference mappings of each page.
|
|
837
|
-
* @param application - The application name, for instance 'SixWeb'
|
|
838
|
-
* @param instance - The instance name for the application, like 'MainInstance'
|
|
839
|
-
* @returns XML structure containing the application configuration
|
|
840
|
-
*/
|
|
841
|
-
public async getApplicationConfigurationAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
842
|
-
|
|
843
|
-
public async getApplicationConfigurationAsync(application:string|carriers.Configuration_GetApplicationConfigurationRequest, instance?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
844
|
-
let _request : carriers.Configuration_GetApplicationConfigurationRequest = null;
|
|
845
|
-
let _options : base.WebApiRequestOptions = null;
|
|
846
|
-
const first : any = application;
|
|
847
|
-
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' ) )
|
|
848
|
-
{
|
|
849
|
-
_request = application as carriers.Configuration_GetApplicationConfigurationRequest;
|
|
850
|
-
_options = instance as base.WebApiRequestOptions;
|
|
851
|
-
}
|
|
852
|
-
else
|
|
853
|
-
{
|
|
854
|
-
_request = {
|
|
855
|
-
application: application as string,
|
|
856
|
-
instance: instance as string,
|
|
857
|
-
};
|
|
858
|
-
_options = webapi_options;
|
|
859
|
-
}
|
|
860
|
-
return this._getApplicationConfigurationAsync( _request, _options );
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
private async _getPageConfigurationAsync(request: carriers.Configuration_GetPageConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
865
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
866
|
-
base.WebApiBase.SetPending(options);
|
|
867
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
868
|
-
try {
|
|
869
|
-
config.baseURL = this._options.baseUrl;
|
|
870
|
-
const response = await this._axios.post("GetPageConfiguration", request , config);
|
|
871
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
872
|
-
const res : string = response.data as string;
|
|
873
|
-
resolve(res);
|
|
874
|
-
}
|
|
875
|
-
catch( err ) {
|
|
876
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
877
|
-
reject(err);
|
|
878
|
-
}
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied.
|
|
886
|
-
* @param request - Application, Instance, Page
|
|
887
|
-
* @returns XML containing the configuration for the given page, from the page down to the control level.
|
|
888
|
-
*/
|
|
889
|
-
public async getPageConfigurationAsync(request: carriers.Configuration_GetPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
* Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied.
|
|
893
|
-
* @param application - The application name, for instance 'SixWeb
|
|
894
|
-
* @param instance - The instance name for the application, like 'MainInstance'
|
|
895
|
-
* @param page - Page name, must correspond to one of the pages in the Application Configuration
|
|
896
|
-
* @returns XML containing the configuration for the given page, from the page down to the control level.
|
|
897
|
-
*/
|
|
898
|
-
public async getPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
899
|
-
|
|
900
|
-
public async getPageConfigurationAsync(application:string|carriers.Configuration_GetPageConfigurationRequest, instance?:string|base.WebApiRequestOptions, page?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
901
|
-
let _request : carriers.Configuration_GetPageConfigurationRequest = null;
|
|
902
|
-
let _options : base.WebApiRequestOptions = null;
|
|
903
|
-
const first : any = application;
|
|
904
|
-
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.page)!='undefined' ) )
|
|
905
|
-
{
|
|
906
|
-
_request = application as carriers.Configuration_GetPageConfigurationRequest;
|
|
907
|
-
_options = instance as base.WebApiRequestOptions;
|
|
908
|
-
}
|
|
909
|
-
else
|
|
910
|
-
{
|
|
911
|
-
_request = {
|
|
912
|
-
application: application as string,
|
|
913
|
-
instance: instance as string,
|
|
914
|
-
page: page as string,
|
|
915
|
-
};
|
|
916
|
-
_options = webapi_options;
|
|
917
|
-
}
|
|
918
|
-
return this._getPageConfigurationAsync( _request, _options );
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
private async _getObjectMappingAsync(request: carriers.Configuration_GetObjectMappingRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
923
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
924
|
-
base.WebApiBase.SetPending(options);
|
|
925
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
926
|
-
try {
|
|
927
|
-
config.baseURL = this._options.baseUrl;
|
|
928
|
-
const response = await this._axios.post("GetObjectMapping", request , config);
|
|
929
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
930
|
-
const res : string = response.data as string;
|
|
931
|
-
resolve(res);
|
|
932
|
-
}
|
|
933
|
-
catch( err ) {
|
|
934
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
935
|
-
reject(err);
|
|
936
|
-
}
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* Get the object mappings, i.e., the what code objects should be instantiated to handle the entities of the client configuration.
|
|
944
|
-
* @param request - Application, Instance
|
|
945
|
-
* @returns XML containing the object mappings, including assembly and class names
|
|
946
|
-
*/
|
|
947
|
-
public async getObjectMappingAsync(request: carriers.Configuration_GetObjectMappingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
948
|
-
|
|
949
|
-
/**
|
|
950
|
-
* Get the object mappings, i.e., the what code objects should be instantiated to handle the entities of the client configuration.
|
|
951
|
-
* @param application - The application name, for instance 'SixWeb'
|
|
952
|
-
* @param instance - The instance name for the application, like 'MainInstance'
|
|
953
|
-
* @returns XML containing the object mappings, including assembly and class names
|
|
954
|
-
*/
|
|
955
|
-
public async getObjectMappingAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
956
|
-
|
|
957
|
-
public async getObjectMappingAsync(application:string|carriers.Configuration_GetObjectMappingRequest, instance?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
958
|
-
let _request : carriers.Configuration_GetObjectMappingRequest = null;
|
|
959
|
-
let _options : base.WebApiRequestOptions = null;
|
|
960
|
-
const first : any = application;
|
|
961
|
-
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' ) )
|
|
962
|
-
{
|
|
963
|
-
_request = application as carriers.Configuration_GetObjectMappingRequest;
|
|
964
|
-
_options = instance as base.WebApiRequestOptions;
|
|
965
|
-
}
|
|
966
|
-
else
|
|
967
|
-
{
|
|
968
|
-
_request = {
|
|
969
|
-
application: application as string,
|
|
970
|
-
instance: instance as string,
|
|
971
|
-
};
|
|
972
|
-
_options = webapi_options;
|
|
973
|
-
}
|
|
974
|
-
return this._getObjectMappingAsync( _request, _options );
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
private async _getFilterListAsync(request: carriers.Configuration_GetFilterListRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
979
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
980
|
-
base.WebApiBase.SetPending(options);
|
|
981
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
982
|
-
try {
|
|
983
|
-
config.baseURL = this._options.baseUrl;
|
|
984
|
-
const response = await this._axios.post("GetFilterList", request , config);
|
|
985
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
986
|
-
const res : string = response.data as string;
|
|
987
|
-
resolve(res);
|
|
988
|
-
}
|
|
989
|
-
catch( err ) {
|
|
990
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
991
|
-
reject(err);
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Get the list of filters to be used for processing the configuration data for this application.
|
|
1000
|
-
* @param request - Application, Instance
|
|
1001
|
-
* @returns XML representing the list of filters and any configuration data they may need.
|
|
1002
|
-
*/
|
|
1003
|
-
public async getFilterListAsync(request: carriers.Configuration_GetFilterListRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1004
|
-
|
|
1005
|
-
/**
|
|
1006
|
-
* Get the list of filters to be used for processing the configuration data for this application.
|
|
1007
|
-
* @param application - The application name, for instance 'SixWeb'
|
|
1008
|
-
* @param instance - The instance name for the application, like 'MainInstance'
|
|
1009
|
-
* @returns XML representing the list of filters and any configuration data they may need.
|
|
1010
|
-
*/
|
|
1011
|
-
public async getFilterListAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1012
|
-
|
|
1013
|
-
public async getFilterListAsync(application:string|carriers.Configuration_GetFilterListRequest, instance?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1014
|
-
let _request : carriers.Configuration_GetFilterListRequest = null;
|
|
1015
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1016
|
-
const first : any = application;
|
|
1017
|
-
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' ) )
|
|
1018
|
-
{
|
|
1019
|
-
_request = application as carriers.Configuration_GetFilterListRequest;
|
|
1020
|
-
_options = instance as base.WebApiRequestOptions;
|
|
1021
|
-
}
|
|
1022
|
-
else
|
|
1023
|
-
{
|
|
1024
|
-
_request = {
|
|
1025
|
-
application: application as string,
|
|
1026
|
-
instance: instance as string,
|
|
1027
|
-
};
|
|
1028
|
-
_options = webapi_options;
|
|
1029
|
-
}
|
|
1030
|
-
return this._getFilterListAsync( _request, _options );
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
private async _clearConfigurationCacheAsync(request: carriers.Configuration_ClearConfigurationCacheRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1035
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1036
|
-
base.WebApiBase.SetPending(options);
|
|
1037
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
1038
|
-
try {
|
|
1039
|
-
config.baseURL = this._options.baseUrl;
|
|
1040
|
-
const response = await this._axios.post("ClearConfigurationCache", request , config);
|
|
1041
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1042
|
-
const res = response.data;
|
|
1043
|
-
resolve(res);
|
|
1044
|
-
}
|
|
1045
|
-
catch( err ) {
|
|
1046
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1047
|
-
reject(err);
|
|
1048
|
-
}
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
/**
|
|
1055
|
-
* Configuration XML's may be expensive to build and parse, and are therefore cached to the database. <para/>Cahcing is per application/instance/associate, and can be turned off through the config file. <para/>If caching is on, and the configuration is changed, it is necessary to clear the cached configurations from the database, through this call.<para/>Note that changes to the externalapplication table require cache invalidation. SoAdmin will do so automatically.
|
|
1056
|
-
* @param request - Application, Instance, ForAllAssociates
|
|
1057
|
-
* @returns There is no return value.
|
|
1058
|
-
*/
|
|
1059
|
-
public async clearConfigurationCacheAsync(request: carriers.Configuration_ClearConfigurationCacheRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1060
|
-
|
|
1061
|
-
/**
|
|
1062
|
-
* Configuration XML's may be expensive to build and parse, and are therefore cached to the database. <para/>Cahcing is per application/instance/associate, and can be turned off through the config file. <para/>If caching is on, and the configuration is changed, it is necessary to clear the cached configurations from the database, through this call.<para/>Note that changes to the externalapplication table require cache invalidation. SoAdmin will do so automatically.
|
|
1063
|
-
* @param application - The application name, for instance 'SixWeb'
|
|
1064
|
-
* @param instance - The instance name for the application, like 'MainInstance'
|
|
1065
|
-
* @param forAllAssociates - If false, only the current associate's configuration is cleared. If true, configurations are cleared for all associates.
|
|
1066
|
-
* @returns There is no return value.
|
|
1067
|
-
*/
|
|
1068
|
-
public async clearConfigurationCacheAsync(application: string, instance: string, forAllAssociates: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1069
|
-
|
|
1070
|
-
public async clearConfigurationCacheAsync(application:string|carriers.Configuration_ClearConfigurationCacheRequest, instance?:string|base.WebApiRequestOptions, forAllAssociates?:boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1071
|
-
let _request : carriers.Configuration_ClearConfigurationCacheRequest = null;
|
|
1072
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1073
|
-
const first : any = application;
|
|
1074
|
-
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.forAllAssociates)!='undefined' ) )
|
|
1075
|
-
{
|
|
1076
|
-
_request = application as carriers.Configuration_ClearConfigurationCacheRequest;
|
|
1077
|
-
_options = instance as base.WebApiRequestOptions;
|
|
1078
|
-
}
|
|
1079
|
-
else
|
|
1080
|
-
{
|
|
1081
|
-
_request = {
|
|
1082
|
-
application: application as string,
|
|
1083
|
-
instance: instance as string,
|
|
1084
|
-
forAllAssociates: forAllAssociates as boolean,
|
|
1085
|
-
};
|
|
1086
|
-
_options = webapi_options;
|
|
1087
|
-
}
|
|
1088
|
-
return this._clearConfigurationCacheAsync( _request, _options );
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
private async _getAnyConfigurationAsync(request: carriers.Configuration_GetAnyConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1093
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1094
|
-
base.WebApiBase.SetPending(options);
|
|
1095
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1096
|
-
try {
|
|
1097
|
-
config.baseURL = this._options.baseUrl;
|
|
1098
|
-
const response = await this._axios.post("GetAnyConfiguration", request , config);
|
|
1099
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1100
|
-
const res : string = response.data as string;
|
|
1101
|
-
resolve(res);
|
|
1102
|
-
}
|
|
1103
|
-
catch( err ) {
|
|
1104
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1105
|
-
reject(err);
|
|
1106
|
-
}
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
/**
|
|
1113
|
-
* Get one defined configuration fragment, with full reference resolution and parsing applied. This is essentially the same service as the GetPageConfiguration, except that this service is not locked to objects of type Page.
|
|
1114
|
-
* @param request - Application, Instance, Item, Type
|
|
1115
|
-
* @returns Fully resolved and parsed configuration XML, as string.
|
|
1116
|
-
*/
|
|
1117
|
-
public async getAnyConfigurationAsync(request: carriers.Configuration_GetAnyConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1118
|
-
|
|
1119
|
-
/**
|
|
1120
|
-
* Get one defined configuration fragment, with full reference resolution and parsing applied. This is essentially the same service as the GetPageConfiguration, except that this service is not locked to objects of type Page.
|
|
1121
|
-
* @param application - The application name, for instance Six.Web
|
|
1122
|
-
* @param instance - The instance name, for instance Main
|
|
1123
|
-
* @param item - The configuration item name (first component of file name)
|
|
1124
|
-
* @param type - The configuration item type (second component of file name)
|
|
1125
|
-
* @returns Fully resolved and parsed configuration XML, as string.
|
|
1126
|
-
*/
|
|
1127
|
-
public async getAnyConfigurationAsync(application: string, instance: string, item: string, type: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1128
|
-
|
|
1129
|
-
public async getAnyConfigurationAsync(application:string|carriers.Configuration_GetAnyConfigurationRequest, instance?:string|base.WebApiRequestOptions, item?:string, type?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1130
|
-
let _request : carriers.Configuration_GetAnyConfigurationRequest = null;
|
|
1131
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1132
|
-
const first : any = application;
|
|
1133
|
-
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.item)!='undefined' || typeof(first.type)!='undefined' ) )
|
|
1134
|
-
{
|
|
1135
|
-
_request = application as carriers.Configuration_GetAnyConfigurationRequest;
|
|
1136
|
-
_options = instance as base.WebApiRequestOptions;
|
|
1137
|
-
}
|
|
1138
|
-
else
|
|
1139
|
-
{
|
|
1140
|
-
_request = {
|
|
1141
|
-
application: application as string,
|
|
1142
|
-
instance: instance as string,
|
|
1143
|
-
item: item as string,
|
|
1144
|
-
type: type as string,
|
|
1145
|
-
};
|
|
1146
|
-
_options = webapi_options;
|
|
1147
|
-
}
|
|
1148
|
-
return this._getAnyConfigurationAsync( _request, _options );
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
private async _getEMarketingUrlAsync(request: carriers.Configuration_GetEMarketingUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1153
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1154
|
-
base.WebApiBase.SetPending(options);
|
|
1155
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1156
|
-
try {
|
|
1157
|
-
config.baseURL = this._options.baseUrl;
|
|
1158
|
-
const response = await this._axios.post("GetEMarketingUrl", request , config);
|
|
1159
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1160
|
-
const res : string = response.data as string;
|
|
1161
|
-
resolve(res);
|
|
1162
|
-
}
|
|
1163
|
-
catch( err ) {
|
|
1164
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1165
|
-
reject(err);
|
|
1166
|
-
}
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
*
|
|
1174
|
-
* @param request - Language
|
|
1175
|
-
* @returns
|
|
1176
|
-
*/
|
|
1177
|
-
public async getEMarketingUrlAsync(request: carriers.Configuration_GetEMarketingUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1178
|
-
|
|
1179
|
-
/**
|
|
1180
|
-
*
|
|
1181
|
-
* @param language -
|
|
1182
|
-
* @returns
|
|
1183
|
-
*/
|
|
1184
|
-
public async getEMarketingUrlAsync(language: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1185
|
-
|
|
1186
|
-
public async getEMarketingUrlAsync(language:string|carriers.Configuration_GetEMarketingUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1187
|
-
let _request : carriers.Configuration_GetEMarketingUrlRequest = null;
|
|
1188
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1189
|
-
const first : any = language;
|
|
1190
|
-
if( typeof( first ) === "object" && first && ( typeof(first.language)!='undefined' ) )
|
|
1191
|
-
{
|
|
1192
|
-
_request = language as carriers.Configuration_GetEMarketingUrlRequest;
|
|
1193
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
1194
|
-
}
|
|
1195
|
-
else
|
|
1196
|
-
{
|
|
1197
|
-
_request = {
|
|
1198
|
-
language: language as string,
|
|
1199
|
-
};
|
|
1200
|
-
_options = webapi_options;
|
|
1201
|
-
}
|
|
1202
|
-
return this._getEMarketingUrlAsync( _request, _options );
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
private async _getCsProgramUrlAsync(request: carriers.Configuration_GetCsProgramUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1207
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1208
|
-
base.WebApiBase.SetPending(options);
|
|
1209
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1210
|
-
try {
|
|
1211
|
-
config.baseURL = this._options.baseUrl;
|
|
1212
|
-
const response = await this._axios.post("GetCsProgramUrl", request , config);
|
|
1213
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1214
|
-
const res : string = response.data as string;
|
|
1215
|
-
resolve(res);
|
|
1216
|
-
}
|
|
1217
|
-
catch( err ) {
|
|
1218
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1219
|
-
reject(err);
|
|
1220
|
-
}
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
/**
|
|
1227
|
-
* This method will convert a module name into a CS URL.
|
|
1228
|
-
* @param request - Language, ProgramName, Action, ExtraParameters
|
|
1229
|
-
* @returns Returns a valid CS URL composed of the give parameters.
|
|
1230
|
-
*/
|
|
1231
|
-
public async getCsProgramUrlAsync(request: carriers.Configuration_GetCsProgramUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1232
|
-
|
|
1233
|
-
/**
|
|
1234
|
-
* This method will convert a module name into a CS URL.
|
|
1235
|
-
* @param language - By setting this parameter, you can change the CS language for the current user.
|
|
1236
|
-
* @param programName - In this parameter you must specify which CS program you want to create an URL for. Valid examples are "ticket", "rms", "spm" etc.
|
|
1237
|
-
* @param action - Here you can optionally specify the action for the current program. This will enable you to go to a specific screen.
|
|
1238
|
-
* @param extraParameters - If an action is specified, you can specify extra parameters here. This can be used to set specific behaviour for the chosen screen/action. If an empty action is supplied, this parameter will be ignored.
|
|
1239
|
-
* @returns Returns a valid CS URL composed of the give parameters.
|
|
1240
|
-
*/
|
|
1241
|
-
public async getCsProgramUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1242
|
-
|
|
1243
|
-
public async getCsProgramUrlAsync(language:string|carriers.Configuration_GetCsProgramUrlRequest, programName?:string|base.WebApiRequestOptions, action?:string, extraParameters?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1244
|
-
let _request : carriers.Configuration_GetCsProgramUrlRequest = null;
|
|
1245
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1246
|
-
const first : any = language;
|
|
1247
|
-
if( typeof( first ) === "object" && first && ( typeof(first.language)!='undefined' || typeof(first.programName)!='undefined' || typeof(first.action)!='undefined' || typeof(first.extraParameters)!='undefined' ) )
|
|
1248
|
-
{
|
|
1249
|
-
_request = language as carriers.Configuration_GetCsProgramUrlRequest;
|
|
1250
|
-
_options = programName as base.WebApiRequestOptions;
|
|
1251
|
-
}
|
|
1252
|
-
else
|
|
1253
|
-
{
|
|
1254
|
-
_request = {
|
|
1255
|
-
language: language as string,
|
|
1256
|
-
programName: programName as string,
|
|
1257
|
-
action: action as string,
|
|
1258
|
-
extraParameters: extraParameters as string,
|
|
1259
|
-
};
|
|
1260
|
-
_options = webapi_options;
|
|
1261
|
-
}
|
|
1262
|
-
return this._getCsProgramUrlAsync( _request, _options );
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
private async _getCSAuthUrlAsync(request: carriers.Configuration_GetCSAuthUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1267
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1268
|
-
base.WebApiBase.SetPending(options);
|
|
1269
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1270
|
-
try {
|
|
1271
|
-
config.baseURL = this._options.baseUrl;
|
|
1272
|
-
const response = await this._axios.post("GetCSAuthUrl", request , config);
|
|
1273
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1274
|
-
const res : string = response.data as string;
|
|
1275
|
-
resolve(res);
|
|
1276
|
-
}
|
|
1277
|
-
catch( err ) {
|
|
1278
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1279
|
-
reject(err);
|
|
1280
|
-
}
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
/**
|
|
1287
|
-
* Will generate an url to the emarketing module
|
|
1288
|
-
* @param request - Language, ProgramName, Action, ExtraParameters
|
|
1289
|
-
* @returns Returns a valid CS URL composed of the give parameters.
|
|
1290
|
-
*/
|
|
1291
|
-
public async getCSAuthUrlAsync(request: carriers.Configuration_GetCSAuthUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1292
|
-
|
|
1293
|
-
/**
|
|
1294
|
-
* Will generate an url to the emarketing module
|
|
1295
|
-
* @param language - By setting this parameter, you can change the CS language for the current user.
|
|
1296
|
-
* @param programName - In this parameter you must specify which CS program you want to create an URL for. Valid examples are "ticket", "rms", "spm" etc.
|
|
1297
|
-
* @param action - Here you can optionally specify the action for the current program. This will enable you to go to a specific screen.
|
|
1298
|
-
* @param extraParameters - If an action is specified, you can specify extra parameters here. This can be used to set specific behaviour for the chosen screen/action. If an empty action is supplied, this parameter will be ignored.
|
|
1299
|
-
* @returns Returns a valid CS URL composed of the give parameters.
|
|
1300
|
-
*/
|
|
1301
|
-
public async getCSAuthUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1302
|
-
|
|
1303
|
-
public async getCSAuthUrlAsync(language:string|carriers.Configuration_GetCSAuthUrlRequest, programName?:string|base.WebApiRequestOptions, action?:string, extraParameters?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1304
|
-
let _request : carriers.Configuration_GetCSAuthUrlRequest = null;
|
|
1305
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1306
|
-
const first : any = language;
|
|
1307
|
-
if( typeof( first ) === "object" && first && ( typeof(first.language)!='undefined' || typeof(first.programName)!='undefined' || typeof(first.action)!='undefined' || typeof(first.extraParameters)!='undefined' ) )
|
|
1308
|
-
{
|
|
1309
|
-
_request = language as carriers.Configuration_GetCSAuthUrlRequest;
|
|
1310
|
-
_options = programName as base.WebApiRequestOptions;
|
|
1311
|
-
}
|
|
1312
|
-
else
|
|
1313
|
-
{
|
|
1314
|
-
_request = {
|
|
1315
|
-
language: language as string,
|
|
1316
|
-
programName: programName as string,
|
|
1317
|
-
action: action as string,
|
|
1318
|
-
extraParameters: extraParameters as string,
|
|
1319
|
-
};
|
|
1320
|
-
_options = webapi_options;
|
|
1321
|
-
}
|
|
1322
|
-
return this._getCSAuthUrlAsync( _request, _options );
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
private async _getCSRegistryValueAsync(request: carriers.Configuration_GetCSRegistryValueRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1327
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1328
|
-
base.WebApiBase.SetPending(options);
|
|
1329
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1330
|
-
try {
|
|
1331
|
-
config.baseURL = this._options.baseUrl;
|
|
1332
|
-
const response = await this._axios.post("GetCSRegistryValue", request , config);
|
|
1333
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1334
|
-
const res : string = response.data as string;
|
|
1335
|
-
resolve(res);
|
|
1336
|
-
}
|
|
1337
|
-
catch( err ) {
|
|
1338
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1339
|
-
reject(err);
|
|
1340
|
-
}
|
|
1341
|
-
});
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
/**
|
|
1347
|
-
* This method will get a value from the CS Registry table.
|
|
1348
|
-
* @param request - Entry
|
|
1349
|
-
* @returns The value of the specified Registry entry
|
|
1350
|
-
*/
|
|
1351
|
-
public async getCSRegistryValueAsync(request: carriers.Configuration_GetCSRegistryValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* This method will get a value from the CS Registry table.
|
|
1355
|
-
* @param entry - The Registry entry to get
|
|
1356
|
-
* @returns The value of the specified Registry entry
|
|
1357
|
-
*/
|
|
1358
|
-
public async getCSRegistryValueAsync(entry: number, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1359
|
-
|
|
1360
|
-
public async getCSRegistryValueAsync(entry:number|carriers.Configuration_GetCSRegistryValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1361
|
-
let _request : carriers.Configuration_GetCSRegistryValueRequest = null;
|
|
1362
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1363
|
-
const first : any = entry;
|
|
1364
|
-
if( typeof( first ) === "object" && first && ( typeof(first.entry)!='undefined' ) )
|
|
1365
|
-
{
|
|
1366
|
-
_request = entry as carriers.Configuration_GetCSRegistryValueRequest;
|
|
1367
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
1368
|
-
}
|
|
1369
|
-
else
|
|
1370
|
-
{
|
|
1371
|
-
_request = {
|
|
1372
|
-
entry: entry as number,
|
|
1373
|
-
};
|
|
1374
|
-
_options = webapi_options;
|
|
1375
|
-
}
|
|
1376
|
-
return this._getCSRegistryValueAsync( _request, _options );
|
|
1377
|
-
}
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
private async _getCSWwwFolderAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1381
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1382
|
-
base.WebApiBase.SetPending(options);
|
|
1383
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1384
|
-
try {
|
|
1385
|
-
config.baseURL = this._options.baseUrl;
|
|
1386
|
-
const response = await this._axios.post("GetCSWwwFolder", undefined , config);
|
|
1387
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1388
|
-
const res : string = response.data as string;
|
|
1389
|
-
resolve(res);
|
|
1390
|
-
}
|
|
1391
|
-
catch( err ) {
|
|
1392
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1393
|
-
reject(err);
|
|
1394
|
-
}
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
/**
|
|
1400
|
-
* This method will get the www folder for CS
|
|
1401
|
-
* @returns The www folder for CS
|
|
1402
|
-
*/
|
|
1403
|
-
public async getCSWwwFolderAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1404
|
-
{
|
|
1405
|
-
return this._getCSWwwFolderAsync(webapi_options);
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
private async _getRefreshedPageConfigurationAsync(request: carriers.Configuration_GetRefreshedPageConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1410
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1411
|
-
base.WebApiBase.SetPending(options);
|
|
1412
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1413
|
-
try {
|
|
1414
|
-
config.baseURL = this._options.baseUrl;
|
|
1415
|
-
const response = await this._axios.post("GetRefreshedPageConfiguration", request , config);
|
|
1416
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1417
|
-
const res : string = response.data as string;
|
|
1418
|
-
resolve(res);
|
|
1419
|
-
}
|
|
1420
|
-
catch( err ) {
|
|
1421
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1422
|
-
reject(err);
|
|
1423
|
-
}
|
|
1424
|
-
});
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
/**
|
|
1430
|
-
* Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied. Does not use cache for fetching, but updates the cache with refreshed configuration.
|
|
1431
|
-
* @param request - Application, Instance, Page
|
|
1432
|
-
* @returns XML containing the configuration for the given page, from the page down to the control level.
|
|
1433
|
-
*/
|
|
1434
|
-
public async getRefreshedPageConfigurationAsync(request: carriers.Configuration_GetRefreshedPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1435
|
-
|
|
1436
|
-
/**
|
|
1437
|
-
* Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied. Does not use cache for fetching, but updates the cache with refreshed configuration.
|
|
1438
|
-
* @param application - The application name, for instance 'SixWeb
|
|
1439
|
-
* @param instance - The instance name for the application, like 'MainInstance'
|
|
1440
|
-
* @param page - Page name, must correspond to one of the pages in the Application Configuration
|
|
1441
|
-
* @returns XML containing the configuration for the given page, from the page down to the control level.
|
|
1442
|
-
*/
|
|
1443
|
-
public async getRefreshedPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1444
|
-
|
|
1445
|
-
public async getRefreshedPageConfigurationAsync(application:string|carriers.Configuration_GetRefreshedPageConfigurationRequest, instance?:string|base.WebApiRequestOptions, page?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1446
|
-
let _request : carriers.Configuration_GetRefreshedPageConfigurationRequest = null;
|
|
1447
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1448
|
-
const first : any = application;
|
|
1449
|
-
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.page)!='undefined' ) )
|
|
1450
|
-
{
|
|
1451
|
-
_request = application as carriers.Configuration_GetRefreshedPageConfigurationRequest;
|
|
1452
|
-
_options = instance as base.WebApiRequestOptions;
|
|
1453
|
-
}
|
|
1454
|
-
else
|
|
1455
|
-
{
|
|
1456
|
-
_request = {
|
|
1457
|
-
application: application as string,
|
|
1458
|
-
instance: instance as string,
|
|
1459
|
-
page: page as string,
|
|
1460
|
-
};
|
|
1461
|
-
_options = webapi_options;
|
|
1462
|
-
}
|
|
1463
|
-
return this._getRefreshedPageConfigurationAsync( _request, _options );
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
private async _getWwwUrlAsync(request: carriers.Configuration_GetWwwUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1468
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1469
|
-
base.WebApiBase.SetPending(options);
|
|
1470
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1471
|
-
try {
|
|
1472
|
-
config.baseURL = this._options.baseUrl;
|
|
1473
|
-
const response = await this._axios.post("GetWwwUrl", request , config);
|
|
1474
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1475
|
-
const res : string = response.data as string;
|
|
1476
|
-
resolve(res);
|
|
1477
|
-
}
|
|
1478
|
-
catch( err ) {
|
|
1479
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1480
|
-
reject(err);
|
|
1481
|
-
}
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
/**
|
|
1488
|
-
* Will get the default URL used for the logo, from the [NetServices] PageUrl preferencec, with tags substituted.
|
|
1489
|
-
* @param request - Client
|
|
1490
|
-
* @returns URL to be used when clicking the logo
|
|
1491
|
-
*/
|
|
1492
|
-
public async getWwwUrlAsync(request: carriers.Configuration_GetWwwUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1493
|
-
|
|
1494
|
-
/**
|
|
1495
|
-
* Will get the default URL used for the logo, from the [NetServices] PageUrl preferencec, with tags substituted.
|
|
1496
|
-
* @param client - The name for the client application, like 'CS' or 'SM.web', used for the <clie> variable
|
|
1497
|
-
* @returns URL to be used when clicking the logo
|
|
1498
|
-
*/
|
|
1499
|
-
public async getWwwUrlAsync(client: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1500
|
-
|
|
1501
|
-
public async getWwwUrlAsync(client:string|carriers.Configuration_GetWwwUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1502
|
-
let _request : carriers.Configuration_GetWwwUrlRequest = null;
|
|
1503
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1504
|
-
const first : any = client;
|
|
1505
|
-
if( typeof( first ) === "object" && first && ( typeof(first.client)!='undefined' ) )
|
|
1506
|
-
{
|
|
1507
|
-
_request = client as carriers.Configuration_GetWwwUrlRequest;
|
|
1508
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
1509
|
-
}
|
|
1510
|
-
else
|
|
1511
|
-
{
|
|
1512
|
-
_request = {
|
|
1513
|
-
client: client as string,
|
|
1514
|
-
};
|
|
1515
|
-
_options = webapi_options;
|
|
1516
|
-
}
|
|
1517
|
-
return this._getWwwUrlAsync( _request, _options );
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
private async _getHelpDispatcherUrlAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1522
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1523
|
-
base.WebApiBase.SetPending(options);
|
|
1524
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1525
|
-
try {
|
|
1526
|
-
config.baseURL = this._options.baseUrl;
|
|
1527
|
-
const response = await this._axios.post("GetHelpDispatcherUrl", undefined , config);
|
|
1528
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1529
|
-
const res : string = response.data as string;
|
|
1530
|
-
resolve(res);
|
|
1531
|
-
}
|
|
1532
|
-
catch( err ) {
|
|
1533
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1534
|
-
reject(err);
|
|
1535
|
-
}
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
/**
|
|
1541
|
-
* Will get the GetHelpDispatcherUrl used by the help system
|
|
1542
|
-
* @returns URL to be used by the help system
|
|
1543
|
-
*/
|
|
1544
|
-
public async getHelpDispatcherUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1545
|
-
{
|
|
1546
|
-
return this._getHelpDispatcherUrlAsync(webapi_options);
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
private async _getWwwUrlForSMWebAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1551
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1552
|
-
base.WebApiBase.SetPending(options);
|
|
1553
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1554
|
-
try {
|
|
1555
|
-
config.baseURL = this._options.baseUrl;
|
|
1556
|
-
const response = await this._axios.post("GetWwwUrlForSMWeb", undefined , config);
|
|
1557
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1558
|
-
const res : string = response.data as string;
|
|
1559
|
-
resolve(res);
|
|
1560
|
-
}
|
|
1561
|
-
catch( err ) {
|
|
1562
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1563
|
-
reject(err);
|
|
1564
|
-
}
|
|
1565
|
-
});
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
/**
|
|
1570
|
-
* Returns the URL used for the logo by the SM.web client. Uses urldispatch.aspx
|
|
1571
|
-
* @returns Link to urldispatch.aspx tagged with [SOSITEURL]
|
|
1572
|
-
*/
|
|
1573
|
-
public async getWwwUrlForSMWebAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1574
|
-
{
|
|
1575
|
-
return this._getWwwUrlForSMWebAsync(webapi_options);
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
private async _getCsCgiUrlInternalAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1580
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1581
|
-
base.WebApiBase.SetPending(options);
|
|
1582
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1583
|
-
try {
|
|
1584
|
-
config.baseURL = this._options.baseUrl;
|
|
1585
|
-
const response = await this._axios.post("GetCsCgiUrlInternal", undefined , config);
|
|
1586
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1587
|
-
const res : string = response.data as string;
|
|
1588
|
-
resolve(res);
|
|
1589
|
-
}
|
|
1590
|
-
catch( err ) {
|
|
1591
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1592
|
-
reject(err);
|
|
1593
|
-
}
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
/**
|
|
1599
|
-
* This method will get the host name for CS
|
|
1600
|
-
* @returns Will get the host name for where CS is installed
|
|
1601
|
-
*/
|
|
1602
|
-
public async getCsCgiUrlInternalAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1603
|
-
{
|
|
1604
|
-
return this._getCsCgiUrlInternalAsync(webapi_options);
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
private async _getCRMUrlAsync(request: carriers.Configuration_GetCRMUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1609
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1610
|
-
base.WebApiBase.SetPending(options);
|
|
1611
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1612
|
-
try {
|
|
1613
|
-
config.baseURL = this._options.baseUrl;
|
|
1614
|
-
const response = await this._axios.post("GetCRMUrl", request , config);
|
|
1615
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1616
|
-
const res : string = response.data as string;
|
|
1617
|
-
resolve(res);
|
|
1618
|
-
}
|
|
1619
|
-
catch( err ) {
|
|
1620
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1621
|
-
reject(err);
|
|
1622
|
-
}
|
|
1623
|
-
});
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
/**
|
|
1629
|
-
* Returns a valid url based in the soprotocol provided
|
|
1630
|
-
* @param request - SoProtocol, Currents, Frameless
|
|
1631
|
-
* @returns Url with soprotocol
|
|
1632
|
-
*/
|
|
1633
|
-
public async getCRMUrlAsync(request: carriers.Configuration_GetCRMUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1634
|
-
|
|
1635
|
-
/**
|
|
1636
|
-
* Returns a valid url based in the soprotocol provided
|
|
1637
|
-
* @param soProtocol - SoProtocol to display. Eg. contact.activityarchive.minipreview
|
|
1638
|
-
* @param currents - currents to set. Eg. contact_id=100&person_id=299
|
|
1639
|
-
* @param frameless - If true frame is not rendered( Navigationbar, buttonbar and menu )
|
|
1640
|
-
* @returns Url with soprotocol
|
|
1641
|
-
*/
|
|
1642
|
-
public async getCRMUrlAsync(soProtocol: string, currents: string, frameless: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1643
|
-
|
|
1644
|
-
public async getCRMUrlAsync(soProtocol:string|carriers.Configuration_GetCRMUrlRequest, currents?:string|base.WebApiRequestOptions, frameless?:boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1645
|
-
let _request : carriers.Configuration_GetCRMUrlRequest = null;
|
|
1646
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1647
|
-
const first : any = soProtocol;
|
|
1648
|
-
if( typeof( first ) === "object" && first && ( typeof(first.soProtocol)!='undefined' || typeof(first.currents)!='undefined' || typeof(first.frameless)!='undefined' ) )
|
|
1649
|
-
{
|
|
1650
|
-
_request = soProtocol as carriers.Configuration_GetCRMUrlRequest;
|
|
1651
|
-
_options = currents as base.WebApiRequestOptions;
|
|
1652
|
-
}
|
|
1653
|
-
else
|
|
1654
|
-
{
|
|
1655
|
-
_request = {
|
|
1656
|
-
soProtocol: soProtocol as string,
|
|
1657
|
-
currents: currents as string,
|
|
1658
|
-
frameless: frameless as boolean,
|
|
1659
|
-
};
|
|
1660
|
-
_options = webapi_options;
|
|
1661
|
-
}
|
|
1662
|
-
return this._getCRMUrlAsync( _request, _options );
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
private async _getEmailNumberOfDaysAsync( options?:base.WebApiRequestOptions) : Promise< number > {
|
|
1667
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1668
|
-
base.WebApiBase.SetPending(options);
|
|
1669
|
-
return new Promise< number >(async (resolve, reject) => {
|
|
1670
|
-
try {
|
|
1671
|
-
config.baseURL = this._options.baseUrl;
|
|
1672
|
-
const response = await this._axios.post("GetEmailNumberOfDays", undefined , config);
|
|
1673
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1674
|
-
const res : number = response.data as number;
|
|
1675
|
-
resolve(res);
|
|
1676
|
-
}
|
|
1677
|
-
catch( err ) {
|
|
1678
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1679
|
-
reject(err);
|
|
1680
|
-
}
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
/**
|
|
1686
|
-
*
|
|
1687
|
-
* @returns Number of days in the past for which we are fetching email
|
|
1688
|
-
*/
|
|
1689
|
-
public async getEmailNumberOfDaysAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >
|
|
1690
|
-
{
|
|
1691
|
-
return this._getEmailNumberOfDaysAsync(webapi_options);
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
private async _getCustomerUrlAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1696
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1697
|
-
base.WebApiBase.SetPending(options);
|
|
1698
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1699
|
-
try {
|
|
1700
|
-
config.baseURL = this._options.baseUrl;
|
|
1701
|
-
const response = await this._axios.post("GetCustomerUrl", undefined , config);
|
|
1702
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1703
|
-
const res : string = response.data as string;
|
|
1704
|
-
resolve(res);
|
|
1705
|
-
}
|
|
1706
|
-
catch( err ) {
|
|
1707
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1708
|
-
reject(err);
|
|
1709
|
-
}
|
|
1710
|
-
});
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
/**
|
|
1715
|
-
* This method will get the URL for the external access to the customer center
|
|
1716
|
-
* @returns The URL to the customer center, without any actions
|
|
1717
|
-
*/
|
|
1718
|
-
public async getCustomerUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1719
|
-
{
|
|
1720
|
-
return this._getCustomerUrlAsync(webapi_options);
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
private async _getSpfDomainAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1725
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1726
|
-
base.WebApiBase.SetPending(options);
|
|
1727
|
-
return new Promise< string >(async (resolve, reject) => {
|
|
1728
|
-
try {
|
|
1729
|
-
config.baseURL = this._options.baseUrl;
|
|
1730
|
-
const response = await this._axios.post("GetSpfDomain", undefined , config);
|
|
1731
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1732
|
-
const res : string = response.data as string;
|
|
1733
|
-
resolve(res);
|
|
1734
|
-
}
|
|
1735
|
-
catch( err ) {
|
|
1736
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1737
|
-
reject(err);
|
|
1738
|
-
}
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
/**
|
|
1744
|
-
* Get the SPF domain defined for the mail cluster for this tenant (Online only)
|
|
1745
|
-
* @returns The configured SPF domain. Will return empty for Onsite installations or tenants in Online using custom SMTP
|
|
1746
|
-
*/
|
|
1747
|
-
public async getSpfDomainAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1748
|
-
{
|
|
1749
|
-
return this._getSpfDomainAsync(webapi_options);
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
private async _getAllFeatureTogglesAsync( options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary > {
|
|
1754
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1755
|
-
base.WebApiBase.SetPending(options);
|
|
1756
|
-
return new Promise< carriers.StringBoolDictionary >(async (resolve, reject) => {
|
|
1757
|
-
try {
|
|
1758
|
-
config.baseURL = this._options.baseUrl;
|
|
1759
|
-
const response = await this._axios.post("GetAllFeatureToggles", undefined , config);
|
|
1760
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1761
|
-
const res : carriers.StringBoolDictionary = converters.Create_StringBoolDictionary_From( response.data );
|
|
1762
|
-
resolve(res);
|
|
1763
|
-
}
|
|
1764
|
-
catch( err ) {
|
|
1765
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1766
|
-
reject(err);
|
|
1767
|
-
}
|
|
1768
|
-
});
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
/**
|
|
1773
|
-
* Get all the feature toggles with their state (on/off)
|
|
1774
|
-
* @returns The feature toggles with their state (on/off)
|
|
1775
|
-
*/
|
|
1776
|
-
public async getAllFeatureTogglesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary >
|
|
1777
|
-
{
|
|
1778
|
-
return this._getAllFeatureTogglesAsync(webapi_options);
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
/**
|
|
1782
|
-
* Gets a DiaryViewEntity object.
|
|
1783
|
-
* @param diaryViewEntityId - The primary key.
|
|
1784
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1785
|
-
* @returns A single DiaryViewEntity
|
|
1786
|
-
*/
|
|
1787
|
-
public async getDiaryViewEntityAsync(diaryViewEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.DiaryViewEntity > {
|
|
1788
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1789
|
-
base.WebApiBase.SetPending(options);
|
|
1790
|
-
return new Promise< carriers.DiaryViewEntity >(async (resolve, reject) => {
|
|
1791
|
-
try {
|
|
1792
|
-
const response = await this._axios.post("GetDiaryViewEntity?diaryViewEntityId=" + diaryViewEntityId, null, config);
|
|
1793
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1794
|
-
const res = converters.Create_DiaryViewEntity_From( response.data );
|
|
1795
|
-
resolve(res);
|
|
1796
|
-
}
|
|
1797
|
-
catch( err ) {
|
|
1798
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1799
|
-
reject(err);
|
|
1800
|
-
}
|
|
1801
|
-
});
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
/**
|
|
1805
|
-
* Gets a SystemEventEntity object.
|
|
1806
|
-
* @param systemEventEntityId - The primary key.
|
|
1807
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1808
|
-
* @returns A single SystemEventEntity
|
|
1809
|
-
*/
|
|
1810
|
-
public async getSystemEventEntityAsync(systemEventEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.SystemEventEntity > {
|
|
1811
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1812
|
-
base.WebApiBase.SetPending(options);
|
|
1813
|
-
return new Promise< carriers.SystemEventEntity >(async (resolve, reject) => {
|
|
1814
|
-
try {
|
|
1815
|
-
const response = await this._axios.post("GetSystemEventEntity?systemEventEntityId=" + systemEventEntityId, null, config);
|
|
1816
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1817
|
-
const res = converters.Create_SystemEventEntity_From( response.data );
|
|
1818
|
-
resolve(res);
|
|
1819
|
-
}
|
|
1820
|
-
catch( err ) {
|
|
1821
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1822
|
-
reject(err);
|
|
1823
|
-
}
|
|
1824
|
-
});
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
private async _existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, options?:base.WebApiRequestOptions) : Promise< boolean > {
|
|
1829
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1830
|
-
base.WebApiBase.SetPending(options);
|
|
1831
|
-
return new Promise< boolean >(async (resolve, reject) => {
|
|
1832
|
-
try {
|
|
1833
|
-
config.baseURL = this._options.baseUrl;
|
|
1834
|
-
const response = await this._axios.post("ExistsSystemEvent", request , config);
|
|
1835
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1836
|
-
const res : boolean = response.data as boolean;
|
|
1837
|
-
resolve(res);
|
|
1838
|
-
}
|
|
1839
|
-
catch( err ) {
|
|
1840
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1841
|
-
reject(err);
|
|
1842
|
-
}
|
|
1843
|
-
});
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
/**
|
|
1849
|
-
* Is there a system event with the given key?
|
|
1850
|
-
* @param request - Key
|
|
1851
|
-
* @returns The system event
|
|
1852
|
-
*/
|
|
1853
|
-
public async existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
1854
|
-
|
|
1855
|
-
/**
|
|
1856
|
-
* Is there a system event with the given key?
|
|
1857
|
-
* @param key - The key to match on
|
|
1858
|
-
* @returns The system event
|
|
1859
|
-
*/
|
|
1860
|
-
public async existsSystemEventAsync(key: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
1861
|
-
|
|
1862
|
-
public async existsSystemEventAsync(key:string|carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean > {
|
|
1863
|
-
let _request : carriers.Configuration_ExistsSystemEventRequest = null;
|
|
1864
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1865
|
-
const first : any = key;
|
|
1866
|
-
if( typeof( first ) === "object" && first && ( typeof(first.key)!='undefined' ) )
|
|
1867
|
-
{
|
|
1868
|
-
_request = key as carriers.Configuration_ExistsSystemEventRequest;
|
|
1869
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
1870
|
-
}
|
|
1871
|
-
else
|
|
1872
|
-
{
|
|
1873
|
-
_request = {
|
|
1874
|
-
key: key as string,
|
|
1875
|
-
};
|
|
1876
|
-
_options = webapi_options;
|
|
1877
|
-
}
|
|
1878
|
-
return this._existsSystemEventAsync( _request, _options );
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
/**
|
|
1882
|
-
* Gets a WindowPosSize object.
|
|
1883
|
-
* @param windowPosSizeId - The primary key.
|
|
1884
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1885
|
-
* @returns A single WindowPosSize
|
|
1886
|
-
*/
|
|
1887
|
-
public async getWindowPosSizeAsync(windowPosSizeId: number, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize > {
|
|
1888
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1889
|
-
base.WebApiBase.SetPending(options);
|
|
1890
|
-
return new Promise< carriers.WindowPosSize >(async (resolve, reject) => {
|
|
1891
|
-
try {
|
|
1892
|
-
const response = await this._axios.post("GetWindowPosSize?windowPosSizeId=" + windowPosSizeId, null, config);
|
|
1893
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1894
|
-
const res = converters.Create_WindowPosSize_From( response.data );
|
|
1895
|
-
resolve(res);
|
|
1896
|
-
}
|
|
1897
|
-
catch( err ) {
|
|
1898
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1899
|
-
reject(err);
|
|
1900
|
-
}
|
|
1901
|
-
});
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
private async _saveWindowPosSizeAsync(request: carriers.Configuration_SaveWindowPosSizeRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize > {
|
|
1906
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1907
|
-
base.WebApiBase.SetPending(options);
|
|
1908
|
-
return new Promise< carriers.WindowPosSize >(async (resolve, reject) => {
|
|
1909
|
-
try {
|
|
1910
|
-
config.baseURL = this._options.baseUrl;
|
|
1911
|
-
const response = await this._axios.post("SaveWindowPosSize", request , config);
|
|
1912
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1913
|
-
const res : carriers.WindowPosSize = converters.Create_WindowPosSize_From( response.data );
|
|
1914
|
-
resolve(res);
|
|
1915
|
-
}
|
|
1916
|
-
catch( err ) {
|
|
1917
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1918
|
-
reject(err);
|
|
1919
|
-
}
|
|
1920
|
-
});
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
/**
|
|
1926
|
-
* Saves a window and dialog position and size setting.
|
|
1927
|
-
* @param request - WindowPosSize
|
|
1928
|
-
* @returns The saved item
|
|
1929
|
-
*/
|
|
1930
|
-
public async saveWindowPosSizeAsync(request: carriers.Configuration_SaveWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
|
|
1931
|
-
|
|
1932
|
-
/**
|
|
1933
|
-
* Saves a window and dialog position and size setting.
|
|
1934
|
-
* @param windowPosSize - The item that is saved
|
|
1935
|
-
* @returns The saved item
|
|
1936
|
-
*/
|
|
1937
|
-
public async saveWindowPosSizeAsync(windowPosSize: carriers.WindowPosSize, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
|
|
1938
|
-
|
|
1939
|
-
public async saveWindowPosSizeAsync(windowPosSize:carriers.WindowPosSize|carriers.Configuration_SaveWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize > {
|
|
1940
|
-
let _request : carriers.Configuration_SaveWindowPosSizeRequest = null;
|
|
1941
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1942
|
-
const first : any = windowPosSize;
|
|
1943
|
-
if( typeof( first ) === "object" && first && ( typeof(first.windowPosSize)!='undefined' ) )
|
|
1944
|
-
{
|
|
1945
|
-
_request = windowPosSize as carriers.Configuration_SaveWindowPosSizeRequest;
|
|
1946
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
1947
|
-
}
|
|
1948
|
-
else
|
|
1949
|
-
{
|
|
1950
|
-
_request = {
|
|
1951
|
-
windowPosSize: windowPosSize as carriers.WindowPosSize,
|
|
1952
|
-
};
|
|
1953
|
-
_options = webapi_options;
|
|
1954
|
-
}
|
|
1955
|
-
return this._saveWindowPosSizeAsync( _request, _options );
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
private async _deleteWindowPosSizeAsync(request: carriers.Configuration_DeleteWindowPosSizeRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1960
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1961
|
-
base.WebApiBase.SetPending(options);
|
|
1962
|
-
return new Promise< void >(async (resolve, reject) => {
|
|
1963
|
-
try {
|
|
1964
|
-
config.baseURL = this._options.baseUrl;
|
|
1965
|
-
const response = await this._axios.post("DeleteWindowPosSize", request , config);
|
|
1966
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
1967
|
-
const res = response.data;
|
|
1968
|
-
resolve(res);
|
|
1969
|
-
}
|
|
1970
|
-
catch( err ) {
|
|
1971
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
1972
|
-
reject(err);
|
|
1973
|
-
}
|
|
1974
|
-
});
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
/**
|
|
1980
|
-
* Deletes a window and dialog position and size setting.
|
|
1981
|
-
* @param request - WindowPosSizeId
|
|
1982
|
-
* @returns
|
|
1983
|
-
*/
|
|
1984
|
-
public async deleteWindowPosSizeAsync(request: carriers.Configuration_DeleteWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1985
|
-
|
|
1986
|
-
/**
|
|
1987
|
-
* Deletes a window and dialog position and size setting.
|
|
1988
|
-
* @param windowPosSizeId - Id of the window and dialog position and size settings item.
|
|
1989
|
-
* @returns
|
|
1990
|
-
*/
|
|
1991
|
-
public async deleteWindowPosSizeAsync(windowPosSizeId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1992
|
-
|
|
1993
|
-
public async deleteWindowPosSizeAsync(windowPosSizeId:number|carriers.Configuration_DeleteWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1994
|
-
let _request : carriers.Configuration_DeleteWindowPosSizeRequest = null;
|
|
1995
|
-
let _options : base.WebApiRequestOptions = null;
|
|
1996
|
-
const first : any = windowPosSizeId;
|
|
1997
|
-
if( typeof( first ) === "object" && first && ( typeof(first.windowPosSizeId)!='undefined' ) )
|
|
1998
|
-
{
|
|
1999
|
-
_request = windowPosSizeId as carriers.Configuration_DeleteWindowPosSizeRequest;
|
|
2000
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
2001
|
-
}
|
|
2002
|
-
else
|
|
2003
|
-
{
|
|
2004
|
-
_request = {
|
|
2005
|
-
windowPosSizeId: windowPosSizeId as number,
|
|
2006
|
-
};
|
|
2007
|
-
_options = webapi_options;
|
|
2008
|
-
}
|
|
2009
|
-
return this._deleteWindowPosSizeAsync( _request, _options );
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
/**
|
|
2013
|
-
* Gets an array of WindowPosSize objects.
|
|
2014
|
-
* @param windowPosSizeIds - The primary keys.
|
|
2015
|
-
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
2016
|
-
* @returns An array of WindowPosSize
|
|
2017
|
-
*/
|
|
2018
|
-
public async getWindowPosSizeListAsync(windowPosSizeIds: number[], options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2019
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2020
|
-
base.WebApiBase.SetPending(options);
|
|
2021
|
-
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2022
|
-
try {
|
|
2023
|
-
const response = await this._axios.post("GetWindowPosSizeList", windowPosSizeIds, config);
|
|
2024
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
2025
|
-
const res = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2026
|
-
resolve(res);
|
|
2027
|
-
}
|
|
2028
|
-
catch( err ) {
|
|
2029
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
2030
|
-
reject(err);
|
|
2031
|
-
}
|
|
2032
|
-
});
|
|
2033
|
-
}
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
private async _getMyWindowPosSizesAsync( options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2037
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2038
|
-
base.WebApiBase.SetPending(options);
|
|
2039
|
-
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2040
|
-
try {
|
|
2041
|
-
config.baseURL = this._options.baseUrl;
|
|
2042
|
-
const response = await this._axios.post("GetMyWindowPosSizes", undefined , config);
|
|
2043
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
2044
|
-
const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2045
|
-
resolve(res);
|
|
2046
|
-
}
|
|
2047
|
-
catch( err ) {
|
|
2048
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
2049
|
-
reject(err);
|
|
2050
|
-
}
|
|
2051
|
-
});
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
/**
|
|
2056
|
-
* Gets the window and dialog position and size settings belonging to the currently logged on user
|
|
2057
|
-
* @returns Array of window and dialog position and size settings
|
|
2058
|
-
*/
|
|
2059
|
-
public async getMyWindowPosSizesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >
|
|
2060
|
-
{
|
|
2061
|
-
return this._getMyWindowPosSizesAsync(webapi_options);
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
private async _getWindowPosSizesOnPersonIdAsync(request: carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2066
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2067
|
-
base.WebApiBase.SetPending(options);
|
|
2068
|
-
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2069
|
-
try {
|
|
2070
|
-
config.baseURL = this._options.baseUrl;
|
|
2071
|
-
const response = await this._axios.post("GetWindowPosSizesOnPersonId", request , config);
|
|
2072
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
2073
|
-
const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2074
|
-
resolve(res);
|
|
2075
|
-
}
|
|
2076
|
-
catch( err ) {
|
|
2077
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
2078
|
-
reject(err);
|
|
2079
|
-
}
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
/**
|
|
2086
|
-
* Gets the window and dialog position and size settings belonging to the specified person
|
|
2087
|
-
* @param request - PersonId
|
|
2088
|
-
* @returns Array of window and dialog position and size settings
|
|
2089
|
-
*/
|
|
2090
|
-
public async getWindowPosSizesOnPersonIdAsync(request: carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2091
|
-
|
|
2092
|
-
/**
|
|
2093
|
-
* Gets the window and dialog position and size settings belonging to the specified person
|
|
2094
|
-
* @param personId - Person id of the associate owning these window settings
|
|
2095
|
-
* @returns Array of window and dialog position and size settings
|
|
2096
|
-
*/
|
|
2097
|
-
public async getWindowPosSizesOnPersonIdAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2098
|
-
|
|
2099
|
-
public async getWindowPosSizesOnPersonIdAsync(personId:number|carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2100
|
-
let _request : carriers.Configuration_GetWindowPosSizesOnPersonIdRequest = null;
|
|
2101
|
-
let _options : base.WebApiRequestOptions = null;
|
|
2102
|
-
const first : any = personId;
|
|
2103
|
-
if( typeof( first ) === "object" && first && ( typeof(first.personId)!='undefined' ) )
|
|
2104
|
-
{
|
|
2105
|
-
_request = personId as carriers.Configuration_GetWindowPosSizesOnPersonIdRequest;
|
|
2106
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
2107
|
-
}
|
|
2108
|
-
else
|
|
2109
|
-
{
|
|
2110
|
-
_request = {
|
|
2111
|
-
personId: personId as number,
|
|
2112
|
-
};
|
|
2113
|
-
_options = webapi_options;
|
|
2114
|
-
}
|
|
2115
|
-
return this._getWindowPosSizesOnPersonIdAsync( _request, _options );
|
|
2116
|
-
}
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
private async _getWindowPosSizesOnAssociateIdAsync(request: carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2120
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2121
|
-
base.WebApiBase.SetPending(options);
|
|
2122
|
-
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2123
|
-
try {
|
|
2124
|
-
config.baseURL = this._options.baseUrl;
|
|
2125
|
-
const response = await this._axios.post("GetWindowPosSizesOnAssociateId", request , config);
|
|
2126
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
2127
|
-
const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2128
|
-
resolve(res);
|
|
2129
|
-
}
|
|
2130
|
-
catch( err ) {
|
|
2131
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
2132
|
-
reject(err);
|
|
2133
|
-
}
|
|
2134
|
-
});
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
/**
|
|
2140
|
-
* Gets the window and dialog position and size settings belonging to the specified associate
|
|
2141
|
-
* @param request - AssociateId
|
|
2142
|
-
* @returns Array of window and dialog position and size settings
|
|
2143
|
-
*/
|
|
2144
|
-
public async getWindowPosSizesOnAssociateIdAsync(request: carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2145
|
-
|
|
2146
|
-
/**
|
|
2147
|
-
* Gets the window and dialog position and size settings belonging to the specified associate
|
|
2148
|
-
* @param associateId - Associate id of the Associate/Person owning these window settings
|
|
2149
|
-
* @returns Array of window and dialog position and size settings
|
|
2150
|
-
*/
|
|
2151
|
-
public async getWindowPosSizesOnAssociateIdAsync(associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2152
|
-
|
|
2153
|
-
public async getWindowPosSizesOnAssociateIdAsync(associateId:number|carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2154
|
-
let _request : carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest = null;
|
|
2155
|
-
let _options : base.WebApiRequestOptions = null;
|
|
2156
|
-
const first : any = associateId;
|
|
2157
|
-
if( typeof( first ) === "object" && first && ( typeof(first.associateId)!='undefined' ) )
|
|
2158
|
-
{
|
|
2159
|
-
_request = associateId as carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest;
|
|
2160
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
2161
|
-
}
|
|
2162
|
-
else
|
|
2163
|
-
{
|
|
2164
|
-
_request = {
|
|
2165
|
-
associateId: associateId as number,
|
|
2166
|
-
};
|
|
2167
|
-
_options = webapi_options;
|
|
2168
|
-
}
|
|
2169
|
-
return this._getWindowPosSizesOnAssociateIdAsync( _request, _options );
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
private async _saveWindowPosSizesAsync(request: carriers.Configuration_SaveWindowPosSizesRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2174
|
-
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2175
|
-
base.WebApiBase.SetPending(options);
|
|
2176
|
-
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2177
|
-
try {
|
|
2178
|
-
config.baseURL = this._options.baseUrl;
|
|
2179
|
-
const response = await this._axios.post("SaveWindowPosSizes", request , config);
|
|
2180
|
-
base.WebApiBase.SetCompleted(options, response);
|
|
2181
|
-
const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2182
|
-
resolve(res);
|
|
2183
|
-
}
|
|
2184
|
-
catch( err ) {
|
|
2185
|
-
base.WebApiBase.HandleError(options, config, err);
|
|
2186
|
-
reject(err);
|
|
2187
|
-
}
|
|
2188
|
-
});
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
/**
|
|
2194
|
-
* Saves a set of window and dialog position and size settings.
|
|
2195
|
-
* @param request - WindowPosSizes
|
|
2196
|
-
* @returns The saved items
|
|
2197
|
-
*/
|
|
2198
|
-
public async saveWindowPosSizesAsync(request: carriers.Configuration_SaveWindowPosSizesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2199
|
-
|
|
2200
|
-
/**
|
|
2201
|
-
* Saves a set of window and dialog position and size settings.
|
|
2202
|
-
* @param windowPosSizes - The items that are saved
|
|
2203
|
-
* @returns The saved items
|
|
2204
|
-
*/
|
|
2205
|
-
public async saveWindowPosSizesAsync(windowPosSizes: carriers.WindowPosSize[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2206
|
-
|
|
2207
|
-
public async saveWindowPosSizesAsync(windowPosSizes:carriers.WindowPosSize[]|carriers.Configuration_SaveWindowPosSizesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2208
|
-
let _request : carriers.Configuration_SaveWindowPosSizesRequest = null;
|
|
2209
|
-
let _options : base.WebApiRequestOptions = null;
|
|
2210
|
-
const first : any = windowPosSizes;
|
|
2211
|
-
if( typeof( first ) === "object" && first && ( typeof(first.windowPosSizes)!='undefined' ) )
|
|
2212
|
-
{
|
|
2213
|
-
_request = windowPosSizes as carriers.Configuration_SaveWindowPosSizesRequest;
|
|
2214
|
-
_options = webapi_options as base.WebApiRequestOptions;
|
|
2215
|
-
}
|
|
2216
|
-
else
|
|
2217
|
-
{
|
|
2218
|
-
_request = {
|
|
2219
|
-
windowPosSizes: windowPosSizes as carriers.WindowPosSize[],
|
|
2220
|
-
};
|
|
2221
|
-
_options = webapi_options;
|
|
2222
|
-
}
|
|
2223
|
-
return this._saveWindowPosSizesAsync( _request, _options );
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
} // class v1ConfigurationAgentController
|
|
2227
|
-
|
|
2228
|
-
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// SuperOffice Code Generator
|
|
3
|
+
// modelling\templates\servicestswebapi\tswebapiagents.tt
|
|
4
|
+
// </auto-generated>
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
//----------------------------------------------------------------------------
|
|
9
|
+
// G E N E R A T E D F I L E ! D O N O T E D I T !
|
|
10
|
+
//----------------------------------------------------------------------------
|
|
11
|
+
//
|
|
12
|
+
// File: WebApi/ConfigurationAgent.ts
|
|
13
|
+
//
|
|
14
|
+
//----------------------------------------------------------------------------
|
|
15
|
+
// Copyright (C) SuperOffice AS
|
|
16
|
+
//----------------------------------------------------------------------------
|
|
17
|
+
|
|
18
|
+
import { AxiosRequestConfig } from 'axios';
|
|
19
|
+
import { Duration } from 'dayjs/plugin/duration';
|
|
20
|
+
import * as enums from './Enums';
|
|
21
|
+
import * as base from './WebApiBase';
|
|
22
|
+
import * as carriers from './Carriers';
|
|
23
|
+
import * as converters from './Converters';
|
|
24
|
+
import { FromBase64ToString, ToBase64 } from './Base64';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* User interface configuration - XMLs and other elements such as inter-client URLs
|
|
28
|
+
*/
|
|
29
|
+
export interface IConfigurationAgent {
|
|
30
|
+
createDefaultConfigurableScreenDeltaAsync(): Promise< carriers.ConfigurableScreenDelta >;
|
|
31
|
+
saveConfigurableScreenDeltaAsync(entity: carriers.ConfigurableScreenDelta) : Promise< carriers.ConfigurableScreenDelta >;
|
|
32
|
+
deleteConfigurableScreenDeltaAsync(ConfigurableScreenDeltaId: number) : Promise<void>;
|
|
33
|
+
createDefaultDiaryViewEntityAsync(): Promise< carriers.DiaryViewEntity >;
|
|
34
|
+
saveDiaryViewEntityAsync(entity: carriers.DiaryViewEntity) : Promise< carriers.DiaryViewEntity >;
|
|
35
|
+
deleteDiaryViewEntityAsync(DiaryViewEntityId: number) : Promise<void>;
|
|
36
|
+
createDefaultSystemEventEntityAsync(): Promise< carriers.SystemEventEntity >;
|
|
37
|
+
saveSystemEventEntityAsync(entity: carriers.SystemEventEntity) : Promise< carriers.SystemEventEntity >;
|
|
38
|
+
deleteSystemEventEntityAsync(SystemEventEntityId: number) : Promise<void>;
|
|
39
|
+
getConfigurableScreenDeltaAsync(configurableScreenDeltaId: number) : Promise< carriers.ConfigurableScreenDelta >;
|
|
40
|
+
getScreenConfigurationDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
41
|
+
getScreenConfigurationDeltaAsync(request: carriers.Configuration_GetScreenConfigurationDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
42
|
+
getScreenConfigurationDeltaAsync(deltaType: enums.DeltaType, deltaState: enums.DeltaState, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
43
|
+
getConfigurableScreenDeltasByDeltaAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
44
|
+
getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
45
|
+
getConfigurableScreenDeltasByQueryAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
46
|
+
getConfigurableScreenDeltasByQueryAsync(deltaQuery: carriers.DeltaQuery, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
47
|
+
rebuildUdefDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
48
|
+
rebuildWebpanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
49
|
+
saveAndPublishAsync(request: carriers.Configuration_SaveAndPublishRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
|
|
50
|
+
saveAndPublishAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
|
|
51
|
+
setAppliesToKeyAsync(request: carriers.Configuration_SetAppliesToKeyRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
52
|
+
setAppliesToKeyAsync(recipeId: string, appliesToKey: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
53
|
+
getRecipeAppliesToMappingsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >;
|
|
54
|
+
rebuildCustomObjectArchivePanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
55
|
+
rebuildTaskMenuDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
56
|
+
getApplicationConfigurationAsync(request: carriers.Configuration_GetApplicationConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
57
|
+
getApplicationConfigurationAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
58
|
+
getPageConfigurationAsync(request: carriers.Configuration_GetPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
59
|
+
getPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
60
|
+
getObjectMappingAsync(request: carriers.Configuration_GetObjectMappingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
61
|
+
getObjectMappingAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
62
|
+
getFilterListAsync(request: carriers.Configuration_GetFilterListRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
63
|
+
getFilterListAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
64
|
+
clearConfigurationCacheAsync(request: carriers.Configuration_ClearConfigurationCacheRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
65
|
+
clearConfigurationCacheAsync(application: string, instance: string, forAllAssociates: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
66
|
+
getAnyConfigurationAsync(request: carriers.Configuration_GetAnyConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
67
|
+
getAnyConfigurationAsync(application: string, instance: string, item: string, type: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
68
|
+
getEMarketingUrlAsync(request: carriers.Configuration_GetEMarketingUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
69
|
+
getEMarketingUrlAsync(language: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
70
|
+
getCsProgramUrlAsync(request: carriers.Configuration_GetCsProgramUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
71
|
+
getCsProgramUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
72
|
+
getCSAuthUrlAsync(request: carriers.Configuration_GetCSAuthUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
73
|
+
getCSAuthUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
74
|
+
getCSRegistryValueAsync(request: carriers.Configuration_GetCSRegistryValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
75
|
+
getCSRegistryValueAsync(entry: number, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
76
|
+
getCSWwwFolderAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
77
|
+
getRefreshedPageConfigurationAsync(request: carriers.Configuration_GetRefreshedPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
78
|
+
getRefreshedPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
79
|
+
getWwwUrlAsync(request: carriers.Configuration_GetWwwUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
80
|
+
getWwwUrlAsync(client: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
81
|
+
getHelpDispatcherUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
82
|
+
getWwwUrlForSMWebAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
83
|
+
getCsCgiUrlInternalAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
84
|
+
getCRMUrlAsync(request: carriers.Configuration_GetCRMUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
85
|
+
getCRMUrlAsync(soProtocol: string, currents: string, frameless: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
86
|
+
getEmailNumberOfDaysAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >;
|
|
87
|
+
getCustomerUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
88
|
+
getSpfDomainAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
89
|
+
getAllFeatureTogglesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary >;
|
|
90
|
+
getDiaryViewEntityAsync(diaryViewEntityId: number) : Promise< carriers.DiaryViewEntity >;
|
|
91
|
+
getSystemEventEntityAsync(systemEventEntityId: number) : Promise< carriers.SystemEventEntity >;
|
|
92
|
+
existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
93
|
+
existsSystemEventAsync(key: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
94
|
+
getWindowPosSizeAsync(windowPosSizeId: number) : Promise< carriers.WindowPosSize >;
|
|
95
|
+
saveWindowPosSizeAsync(request: carriers.Configuration_SaveWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
|
|
96
|
+
saveWindowPosSizeAsync(windowPosSize: carriers.WindowPosSize, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
|
|
97
|
+
deleteWindowPosSizeAsync(request: carriers.Configuration_DeleteWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
98
|
+
deleteWindowPosSizeAsync(windowPosSizeId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
99
|
+
getWindowPosSizeListAsync(windowPosSizeIds: number[]) : Promise< carriers.WindowPosSize[] >;
|
|
100
|
+
getMyWindowPosSizesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
101
|
+
getWindowPosSizesOnPersonIdAsync(request: carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
102
|
+
getWindowPosSizesOnPersonIdAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
103
|
+
getWindowPosSizesOnAssociateIdAsync(request: carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
104
|
+
getWindowPosSizesOnAssociateIdAsync(associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
105
|
+
saveWindowPosSizesAsync(request: carriers.Configuration_SaveWindowPosSizesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
106
|
+
saveWindowPosSizesAsync(windowPosSizes: carriers.WindowPosSize[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
107
|
+
} // interface IConfigurationAgent
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* User interface configuration - XMLs and other elements such as inter-client URLs
|
|
114
|
+
*/
|
|
115
|
+
export class ConfigurationAgent extends base.WebApiBase implements IConfigurationAgent {
|
|
116
|
+
constructor(baseUrl?: string, languageCode?:string, cultureCode?: string);
|
|
117
|
+
constructor(baseUrl?: string, resourceParsing?: base.ResourceParsing);
|
|
118
|
+
constructor(baseUrl: string, resourceManager:any);
|
|
119
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, resourceManager:any);
|
|
120
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, resourceParsing?: base.ResourceParsing);
|
|
121
|
+
constructor(baseUrl: string, config:AxiosRequestConfig, languageCode?:string, cultureCode?: string);
|
|
122
|
+
constructor(options: base.WebApiOptions);
|
|
123
|
+
|
|
124
|
+
constructor(baseUrlOrOptions: string|base.WebApiOptions|undefined,
|
|
125
|
+
langOrconfigOrRM?: string|base.ResourceParsing|AxiosRequestConfig|any,
|
|
126
|
+
langOrResourceOrRM?:string|base.ResourceParsing|any,
|
|
127
|
+
cultureCode?: string,
|
|
128
|
+
) {
|
|
129
|
+
const options = base.WebApiBase.FigureOutOptions(baseUrlOrOptions, langOrconfigOrRM, langOrResourceOrRM, cultureCode);
|
|
130
|
+
options.basePath = "v1/Agents/Configuration/";
|
|
131
|
+
super(options);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Set default values into a new ConfigurableScreenDelta.
|
|
138
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
139
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
140
|
+
* @returns A blank entity.
|
|
141
|
+
*/
|
|
142
|
+
public async createDefaultConfigurableScreenDeltaAsync(options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
143
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
144
|
+
base.WebApiBase.SetPending(options);
|
|
145
|
+
return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
|
|
146
|
+
try {
|
|
147
|
+
const response = await this._axios.post("CreateDefaultConfigurableScreenDelta", null, config);
|
|
148
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
149
|
+
const res : carriers.ConfigurableScreenDelta = converters.Create_ConfigurableScreenDelta_From( response.data );
|
|
150
|
+
resolve(res);
|
|
151
|
+
}
|
|
152
|
+
catch( err ) {
|
|
153
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
154
|
+
reject(err);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Replace the existing ConfigurableScreenDelta or creates a new ConfigurableScreenDelta if the id parameter is empty
|
|
160
|
+
* @param entity - The ConfigurableScreenDelta to be saved.
|
|
161
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
162
|
+
* @returns New or updated ConfigurableScreenDelta
|
|
163
|
+
*/
|
|
164
|
+
public async saveConfigurableScreenDeltaAsync(entity: carriers.ConfigurableScreenDelta, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
165
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
166
|
+
base.WebApiBase.SetPending(options);
|
|
167
|
+
return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
|
|
168
|
+
try {
|
|
169
|
+
const response = await this._axios.post("SaveConfigurableScreenDelta", entity, config);
|
|
170
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
171
|
+
const res : carriers.ConfigurableScreenDelta = converters.Create_ConfigurableScreenDelta_From( response.data );
|
|
172
|
+
resolve(res);
|
|
173
|
+
}
|
|
174
|
+
catch( err ) {
|
|
175
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
176
|
+
reject(err);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Deletes the ConfigurableScreenDelta
|
|
183
|
+
* @param ConfigurableScreenDeltaId - The id of the ConfigurableScreenDelta to be deleted.
|
|
184
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
185
|
+
*/
|
|
186
|
+
public async deleteConfigurableScreenDeltaAsync(ConfigurableScreenDeltaId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
187
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
188
|
+
base.WebApiBase.SetPending(options);
|
|
189
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
190
|
+
try {
|
|
191
|
+
const response = await this._axios.post("DeleteConfigurableScreenDelta?ConfigurableScreenDeltaId=" + ConfigurableScreenDeltaId, null, config );
|
|
192
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
193
|
+
const res = response.data;
|
|
194
|
+
resolve(res);
|
|
195
|
+
}
|
|
196
|
+
catch( err ) {
|
|
197
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
198
|
+
reject(err);
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Set default values into a new DiaryViewEntity.
|
|
205
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
206
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
207
|
+
* @returns A blank entity.
|
|
208
|
+
*/
|
|
209
|
+
public async createDefaultDiaryViewEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.DiaryViewEntity > {
|
|
210
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
211
|
+
base.WebApiBase.SetPending(options);
|
|
212
|
+
return new Promise< carriers.DiaryViewEntity >(async (resolve, reject) => {
|
|
213
|
+
try {
|
|
214
|
+
const response = await this._axios.post("CreateDefaultDiaryViewEntity", null, config);
|
|
215
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
216
|
+
const res : carriers.DiaryViewEntity = converters.Create_DiaryViewEntity_From( response.data );
|
|
217
|
+
resolve(res);
|
|
218
|
+
}
|
|
219
|
+
catch( err ) {
|
|
220
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
221
|
+
reject(err);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Replace the existing DiaryViewEntity or creates a new DiaryViewEntity if the id parameter is empty
|
|
227
|
+
* @param entity - The DiaryViewEntity to be saved.
|
|
228
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
229
|
+
* @returns New or updated DiaryViewEntity
|
|
230
|
+
*/
|
|
231
|
+
public async saveDiaryViewEntityAsync(entity: carriers.DiaryViewEntity, options?:base.WebApiRequestOptions) : Promise< carriers.DiaryViewEntity > {
|
|
232
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
233
|
+
base.WebApiBase.SetPending(options);
|
|
234
|
+
return new Promise< carriers.DiaryViewEntity >(async (resolve, reject) => {
|
|
235
|
+
try {
|
|
236
|
+
const response = await this._axios.post("SaveDiaryViewEntity", entity, config);
|
|
237
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
238
|
+
const res : carriers.DiaryViewEntity = converters.Create_DiaryViewEntity_From( response.data );
|
|
239
|
+
resolve(res);
|
|
240
|
+
}
|
|
241
|
+
catch( err ) {
|
|
242
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
243
|
+
reject(err);
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Deletes the DiaryViewEntity
|
|
250
|
+
* @param DiaryViewEntityId - The id of the DiaryViewEntity to be deleted.
|
|
251
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
252
|
+
*/
|
|
253
|
+
public async deleteDiaryViewEntityAsync(DiaryViewEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
254
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
255
|
+
base.WebApiBase.SetPending(options);
|
|
256
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
257
|
+
try {
|
|
258
|
+
const response = await this._axios.post("DeleteDiaryViewEntity?DiaryViewEntityId=" + DiaryViewEntityId, null, config );
|
|
259
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
260
|
+
const res = response.data;
|
|
261
|
+
resolve(res);
|
|
262
|
+
}
|
|
263
|
+
catch( err ) {
|
|
264
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
265
|
+
reject(err);
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Set default values into a new SystemEventEntity.
|
|
272
|
+
* NetServer calculates default values on the entity, which is required when creating/storing a new instance
|
|
273
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
274
|
+
* @returns A blank entity.
|
|
275
|
+
*/
|
|
276
|
+
public async createDefaultSystemEventEntityAsync(options?:base.WebApiRequestOptions) : Promise< carriers.SystemEventEntity > {
|
|
277
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
278
|
+
base.WebApiBase.SetPending(options);
|
|
279
|
+
return new Promise< carriers.SystemEventEntity >(async (resolve, reject) => {
|
|
280
|
+
try {
|
|
281
|
+
const response = await this._axios.post("CreateDefaultSystemEventEntity", null, config);
|
|
282
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
283
|
+
const res : carriers.SystemEventEntity = converters.Create_SystemEventEntity_From( response.data );
|
|
284
|
+
resolve(res);
|
|
285
|
+
}
|
|
286
|
+
catch( err ) {
|
|
287
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
288
|
+
reject(err);
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Replace the existing SystemEventEntity or creates a new SystemEventEntity if the id parameter is empty
|
|
294
|
+
* @param entity - The SystemEventEntity to be saved.
|
|
295
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
296
|
+
* @returns New or updated SystemEventEntity
|
|
297
|
+
*/
|
|
298
|
+
public async saveSystemEventEntityAsync(entity: carriers.SystemEventEntity, options?:base.WebApiRequestOptions) : Promise< carriers.SystemEventEntity > {
|
|
299
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
300
|
+
base.WebApiBase.SetPending(options);
|
|
301
|
+
return new Promise< carriers.SystemEventEntity >(async (resolve, reject) => {
|
|
302
|
+
try {
|
|
303
|
+
const response = await this._axios.post("SaveSystemEventEntity", entity, config);
|
|
304
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
305
|
+
const res : carriers.SystemEventEntity = converters.Create_SystemEventEntity_From( response.data );
|
|
306
|
+
resolve(res);
|
|
307
|
+
}
|
|
308
|
+
catch( err ) {
|
|
309
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
310
|
+
reject(err);
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Deletes the SystemEventEntity
|
|
317
|
+
* @param SystemEventEntityId - The id of the SystemEventEntity to be deleted.
|
|
318
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
319
|
+
*/
|
|
320
|
+
public async deleteSystemEventEntityAsync(SystemEventEntityId: number, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
321
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
322
|
+
base.WebApiBase.SetPending(options);
|
|
323
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
324
|
+
try {
|
|
325
|
+
const response = await this._axios.post("DeleteSystemEventEntity?SystemEventEntityId=" + SystemEventEntityId, null, config );
|
|
326
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
327
|
+
const res = response.data;
|
|
328
|
+
resolve(res);
|
|
329
|
+
}
|
|
330
|
+
catch( err ) {
|
|
331
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
332
|
+
reject(err);
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Gets a ConfigurableScreenDelta object.
|
|
338
|
+
* @param configurableScreenDeltaId - The primary key.
|
|
339
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
340
|
+
* @returns A single ConfigurableScreenDelta
|
|
341
|
+
*/
|
|
342
|
+
public async getConfigurableScreenDeltaAsync(configurableScreenDeltaId: number, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
343
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
344
|
+
base.WebApiBase.SetPending(options);
|
|
345
|
+
return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
|
|
346
|
+
try {
|
|
347
|
+
const response = await this._axios.post("GetConfigurableScreenDelta?configurableScreenDeltaId=" + configurableScreenDeltaId, null, config);
|
|
348
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
349
|
+
const res = converters.Create_ConfigurableScreenDelta_From( response.data );
|
|
350
|
+
resolve(res);
|
|
351
|
+
}
|
|
352
|
+
catch( err ) {
|
|
353
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
354
|
+
reject(err);
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
private async _getScreenConfigurationDeltasAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
361
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
362
|
+
base.WebApiBase.SetPending(options);
|
|
363
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
364
|
+
try {
|
|
365
|
+
config.baseURL = this._options.baseUrl;
|
|
366
|
+
const response = await this._axios.post("GetScreenConfigurationDeltas", undefined , config);
|
|
367
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
368
|
+
const res : string = response.data as string;
|
|
369
|
+
resolve(res);
|
|
370
|
+
}
|
|
371
|
+
catch( err ) {
|
|
372
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
373
|
+
reject(err);
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* This method will return a json with all deltas for screen
|
|
381
|
+
* @returns A string with all recipe deltas in json for logged in associate
|
|
382
|
+
*/
|
|
383
|
+
public async getScreenConfigurationDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
384
|
+
{
|
|
385
|
+
return this._getScreenConfigurationDeltasAsync(webapi_options);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
private async _getScreenConfigurationDeltaAsync(request: carriers.Configuration_GetScreenConfigurationDeltaRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
390
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
391
|
+
base.WebApiBase.SetPending(options);
|
|
392
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
393
|
+
try {
|
|
394
|
+
config.baseURL = this._options.baseUrl;
|
|
395
|
+
const response = await this._axios.post("GetScreenConfigurationDelta", request , config);
|
|
396
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
397
|
+
const res : string = response.data as string;
|
|
398
|
+
resolve(res);
|
|
399
|
+
}
|
|
400
|
+
catch( err ) {
|
|
401
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
402
|
+
reject(err);
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* This method will return a json with all deltas for screen
|
|
411
|
+
* @param request - DeltaType, DeltaState
|
|
412
|
+
* @returns A string with recipe delta in json for logged in associate of given deltatype
|
|
413
|
+
*/
|
|
414
|
+
public async getScreenConfigurationDeltaAsync(request: carriers.Configuration_GetScreenConfigurationDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* This method will return a json with all deltas for screen
|
|
418
|
+
* @param deltaType - The recipe in json for this DeltaType: System, WebPanel, CustomFields, Custom...
|
|
419
|
+
* @param deltaState - Draft or published or None
|
|
420
|
+
* @returns A string with recipe delta in json for logged in associate of given deltatype
|
|
421
|
+
*/
|
|
422
|
+
public async getScreenConfigurationDeltaAsync(deltaType: enums.DeltaType, deltaState: enums.DeltaState, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
423
|
+
|
|
424
|
+
public async getScreenConfigurationDeltaAsync(deltaType:enums.DeltaType|carriers.Configuration_GetScreenConfigurationDeltaRequest, deltaState?:enums.DeltaState|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
425
|
+
let _request : carriers.Configuration_GetScreenConfigurationDeltaRequest = null;
|
|
426
|
+
let _options : base.WebApiRequestOptions = null;
|
|
427
|
+
const first : any = deltaType;
|
|
428
|
+
if( typeof( first ) === "object" && first && ( typeof(first.deltaType)!='undefined' || typeof(first.deltaState)!='undefined' ) )
|
|
429
|
+
{
|
|
430
|
+
_request = deltaType as carriers.Configuration_GetScreenConfigurationDeltaRequest;
|
|
431
|
+
_options = deltaState as base.WebApiRequestOptions;
|
|
432
|
+
}
|
|
433
|
+
else
|
|
434
|
+
{
|
|
435
|
+
_request = {
|
|
436
|
+
deltaType: deltaType as enums.DeltaType,
|
|
437
|
+
deltaState: deltaState as enums.DeltaState,
|
|
438
|
+
};
|
|
439
|
+
_options = webapi_options;
|
|
440
|
+
}
|
|
441
|
+
return this._getScreenConfigurationDeltaAsync( _request, _options );
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
private async _getConfigurableScreenDeltasByDeltaAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
|
|
446
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
447
|
+
base.WebApiBase.SetPending(options);
|
|
448
|
+
return new Promise< carriers.ConfigurableScreenDelta[] >(async (resolve, reject) => {
|
|
449
|
+
try {
|
|
450
|
+
config.baseURL = this._options.baseUrl;
|
|
451
|
+
const response = await this._axios.post("GetConfigurableScreenDeltasByDelta", request , config);
|
|
452
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
453
|
+
const res : carriers.ConfigurableScreenDelta[] = converters.Create_ConfigurableScreenDeltaArray_From( response.data );
|
|
454
|
+
resolve(res);
|
|
455
|
+
}
|
|
456
|
+
catch( err ) {
|
|
457
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
458
|
+
reject(err);
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* This method will return a configurablescreen delta matching the properties received from the incomming delta
|
|
467
|
+
* @param request - ConfigurableScreenDelta
|
|
468
|
+
* @returns An array of deltas matching the values of the incomming parameter-delta
|
|
469
|
+
*/
|
|
470
|
+
public async getConfigurableScreenDeltasByDeltaAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* This method will return a configurablescreen delta matching the properties received from the incomming delta
|
|
474
|
+
* @param configurableScreenDelta - A delta populated with wanted properties
|
|
475
|
+
* @returns An array of deltas matching the values of the incomming parameter-delta
|
|
476
|
+
*/
|
|
477
|
+
public async getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
478
|
+
|
|
479
|
+
public async getConfigurableScreenDeltasByDeltaAsync(configurableScreenDelta:carriers.ConfigurableScreenDelta|carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
|
|
480
|
+
let _request : carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest = null;
|
|
481
|
+
let _options : base.WebApiRequestOptions = null;
|
|
482
|
+
const first : any = configurableScreenDelta;
|
|
483
|
+
if( typeof( first ) === "object" && first && ( typeof(first.configurableScreenDelta)!='undefined' ) )
|
|
484
|
+
{
|
|
485
|
+
_request = configurableScreenDelta as carriers.Configuration_GetConfigurableScreenDeltasByDeltaRequest;
|
|
486
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
487
|
+
}
|
|
488
|
+
else
|
|
489
|
+
{
|
|
490
|
+
_request = {
|
|
491
|
+
configurableScreenDelta: configurableScreenDelta as carriers.ConfigurableScreenDelta,
|
|
492
|
+
};
|
|
493
|
+
_options = webapi_options;
|
|
494
|
+
}
|
|
495
|
+
return this._getConfigurableScreenDeltasByDeltaAsync( _request, _options );
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
private async _getConfigurableScreenDeltasByQueryAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
|
|
500
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
501
|
+
base.WebApiBase.SetPending(options);
|
|
502
|
+
return new Promise< carriers.ConfigurableScreenDelta[] >(async (resolve, reject) => {
|
|
503
|
+
try {
|
|
504
|
+
config.baseURL = this._options.baseUrl;
|
|
505
|
+
const response = await this._axios.post("GetConfigurableScreenDeltasByQuery", request , config);
|
|
506
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
507
|
+
const res : carriers.ConfigurableScreenDelta[] = converters.Create_ConfigurableScreenDeltaArray_From( response.data );
|
|
508
|
+
resolve(res);
|
|
509
|
+
}
|
|
510
|
+
catch( err ) {
|
|
511
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
512
|
+
reject(err);
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* This method will return a configurablescreen delta matching the properties received from the incomming query
|
|
521
|
+
* @param request - DeltaQuery
|
|
522
|
+
* @returns An array of deltas matching the values of the incomming query
|
|
523
|
+
*/
|
|
524
|
+
public async getConfigurableScreenDeltasByQueryAsync(request: carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* This method will return a configurablescreen delta matching the properties received from the incomming query
|
|
528
|
+
* @param deltaQuery - An object populated with wanted properties for the deltas to return
|
|
529
|
+
* @returns An array of deltas matching the values of the incomming query
|
|
530
|
+
*/
|
|
531
|
+
public async getConfigurableScreenDeltasByQueryAsync(deltaQuery: carriers.DeltaQuery, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] >;
|
|
532
|
+
|
|
533
|
+
public async getConfigurableScreenDeltasByQueryAsync(deltaQuery:carriers.DeltaQuery|carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta[] > {
|
|
534
|
+
let _request : carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest = null;
|
|
535
|
+
let _options : base.WebApiRequestOptions = null;
|
|
536
|
+
const first : any = deltaQuery;
|
|
537
|
+
if( typeof( first ) === "object" && first && ( typeof(first.deltaQuery)!='undefined' ) )
|
|
538
|
+
{
|
|
539
|
+
_request = deltaQuery as carriers.Configuration_GetConfigurableScreenDeltasByQueryRequest;
|
|
540
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
541
|
+
}
|
|
542
|
+
else
|
|
543
|
+
{
|
|
544
|
+
_request = {
|
|
545
|
+
deltaQuery: deltaQuery as carriers.DeltaQuery,
|
|
546
|
+
};
|
|
547
|
+
_options = webapi_options;
|
|
548
|
+
}
|
|
549
|
+
return this._getConfigurableScreenDeltasByQueryAsync( _request, _options );
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
private async _rebuildUdefDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
554
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
555
|
+
base.WebApiBase.SetPending(options);
|
|
556
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
557
|
+
try {
|
|
558
|
+
config.baseURL = this._options.baseUrl;
|
|
559
|
+
const response = await this._axios.post("RebuildUdefDeltas", undefined , config);
|
|
560
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
561
|
+
const res = response.data;
|
|
562
|
+
resolve(res);
|
|
563
|
+
}
|
|
564
|
+
catch( err ) {
|
|
565
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
566
|
+
reject(err);
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Flush and rebuild userdefined field deltas. Mostly used after publishing udefs or adding/editing Customer Service extrafields
|
|
574
|
+
* @returns No return value
|
|
575
|
+
*/
|
|
576
|
+
public async rebuildUdefDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
577
|
+
{
|
|
578
|
+
return this._rebuildUdefDeltasAsync(webapi_options);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
private async _rebuildWebpanelDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
583
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
584
|
+
base.WebApiBase.SetPending(options);
|
|
585
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
586
|
+
try {
|
|
587
|
+
config.baseURL = this._options.baseUrl;
|
|
588
|
+
const response = await this._axios.post("RebuildWebpanelDeltas", undefined , config);
|
|
589
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
590
|
+
const res = response.data;
|
|
591
|
+
resolve(res);
|
|
592
|
+
}
|
|
593
|
+
catch( err ) {
|
|
594
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
595
|
+
reject(err);
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Flush and rebuild webpanel deltas. Mostly used after adding/editing webpanels or change group visibility of them
|
|
603
|
+
* @returns No return value
|
|
604
|
+
*/
|
|
605
|
+
public async rebuildWebpanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
606
|
+
{
|
|
607
|
+
return this._rebuildWebpanelDeltasAsync(webapi_options);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
private async _saveAndPublishAsync(request: carriers.Configuration_SaveAndPublishRequest, options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
612
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
613
|
+
base.WebApiBase.SetPending(options);
|
|
614
|
+
return new Promise< carriers.ConfigurableScreenDelta >(async (resolve, reject) => {
|
|
615
|
+
try {
|
|
616
|
+
config.baseURL = this._options.baseUrl;
|
|
617
|
+
const response = await this._axios.post("SaveAndPublish", request , config);
|
|
618
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
619
|
+
const res : carriers.ConfigurableScreenDelta = converters.Create_ConfigurableScreenDelta_From( response.data );
|
|
620
|
+
resolve(res);
|
|
621
|
+
}
|
|
622
|
+
catch( err ) {
|
|
623
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
624
|
+
reject(err);
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Save the incomming draft and publish
|
|
633
|
+
* @param request - ConfigurableScreenDelta
|
|
634
|
+
* @returns The newly published version of the ConfigurbleScreenDelta
|
|
635
|
+
*/
|
|
636
|
+
public async saveAndPublishAsync(request: carriers.Configuration_SaveAndPublishRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Save the incomming draft and publish
|
|
640
|
+
* @param configurableScreenDelta - The ConfigurableScreenDelta draft that is going to be published
|
|
641
|
+
* @returns The newly published version of the ConfigurbleScreenDelta
|
|
642
|
+
*/
|
|
643
|
+
public async saveAndPublishAsync(configurableScreenDelta: carriers.ConfigurableScreenDelta, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta >;
|
|
644
|
+
|
|
645
|
+
public async saveAndPublishAsync(configurableScreenDelta:carriers.ConfigurableScreenDelta|carriers.Configuration_SaveAndPublishRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.ConfigurableScreenDelta > {
|
|
646
|
+
let _request : carriers.Configuration_SaveAndPublishRequest = null;
|
|
647
|
+
let _options : base.WebApiRequestOptions = null;
|
|
648
|
+
const first : any = configurableScreenDelta;
|
|
649
|
+
if( typeof( first ) === "object" && first && ( typeof(first.configurableScreenDelta)!='undefined' ) )
|
|
650
|
+
{
|
|
651
|
+
_request = configurableScreenDelta as carriers.Configuration_SaveAndPublishRequest;
|
|
652
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
653
|
+
}
|
|
654
|
+
else
|
|
655
|
+
{
|
|
656
|
+
_request = {
|
|
657
|
+
configurableScreenDelta: configurableScreenDelta as carriers.ConfigurableScreenDelta,
|
|
658
|
+
};
|
|
659
|
+
_options = webapi_options;
|
|
660
|
+
}
|
|
661
|
+
return this._saveAndPublishAsync( _request, _options );
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
private async _setAppliesToKeyAsync(request: carriers.Configuration_SetAppliesToKeyRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
666
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
667
|
+
base.WebApiBase.SetPending(options);
|
|
668
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
669
|
+
try {
|
|
670
|
+
config.baseURL = this._options.baseUrl;
|
|
671
|
+
const response = await this._axios.post("SetAppliesToKey", request , config);
|
|
672
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
673
|
+
const res = response.data;
|
|
674
|
+
resolve(res);
|
|
675
|
+
}
|
|
676
|
+
catch( err ) {
|
|
677
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
678
|
+
reject(err);
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Set the type of assignTo the deltas of the given recipe should have
|
|
687
|
+
* @param request - RecipeId, AppliesToKey
|
|
688
|
+
* @returns Returns nothing
|
|
689
|
+
*/
|
|
690
|
+
public async setAppliesToKeyAsync(request: carriers.Configuration_SetAppliesToKeyRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Set the type of assignTo the deltas of the given recipe should have
|
|
694
|
+
* @param recipeId - The recipeId that will use this apply to type
|
|
695
|
+
* @param appliesToKey - The type we should use for differencing between delta layout. Like usergroup or project type. Saved in table ConfigurableScreenAppliesTo
|
|
696
|
+
* @returns Returns nothing
|
|
697
|
+
*/
|
|
698
|
+
public async setAppliesToKeyAsync(recipeId: string, appliesToKey: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
699
|
+
|
|
700
|
+
public async setAppliesToKeyAsync(recipeId:string|carriers.Configuration_SetAppliesToKeyRequest, appliesToKey?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
701
|
+
let _request : carriers.Configuration_SetAppliesToKeyRequest = null;
|
|
702
|
+
let _options : base.WebApiRequestOptions = null;
|
|
703
|
+
const first : any = recipeId;
|
|
704
|
+
if( typeof( first ) === "object" && first && ( typeof(first.recipeId)!='undefined' || typeof(first.appliesToKey)!='undefined' ) )
|
|
705
|
+
{
|
|
706
|
+
_request = recipeId as carriers.Configuration_SetAppliesToKeyRequest;
|
|
707
|
+
_options = appliesToKey as base.WebApiRequestOptions;
|
|
708
|
+
}
|
|
709
|
+
else
|
|
710
|
+
{
|
|
711
|
+
_request = {
|
|
712
|
+
recipeId: recipeId as string,
|
|
713
|
+
appliesToKey: appliesToKey as string,
|
|
714
|
+
};
|
|
715
|
+
_options = webapi_options;
|
|
716
|
+
}
|
|
717
|
+
return this._setAppliesToKeyAsync( _request, _options );
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
private async _getRecipeAppliesToMappingsAsync( options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary > {
|
|
722
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
723
|
+
base.WebApiBase.SetPending(options);
|
|
724
|
+
return new Promise< carriers.StringDictionary >(async (resolve, reject) => {
|
|
725
|
+
try {
|
|
726
|
+
config.baseURL = this._options.baseUrl;
|
|
727
|
+
const response = await this._axios.post("GetRecipeAppliesToMappings", undefined , config);
|
|
728
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
729
|
+
const res : carriers.StringDictionary = converters.Create_StringDictionary_From( response.data );
|
|
730
|
+
resolve(res);
|
|
731
|
+
}
|
|
732
|
+
catch( err ) {
|
|
733
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
734
|
+
reject(err);
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Return the a dictionary with recipeId as key, and chosen appliesTo for that recipe, Like projecttype for projectcardrecipe
|
|
742
|
+
* @returns Mapping of recipeId and selected appliesToKey
|
|
743
|
+
*/
|
|
744
|
+
public async getRecipeAppliesToMappingsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringDictionary >
|
|
745
|
+
{
|
|
746
|
+
return this._getRecipeAppliesToMappingsAsync(webapi_options);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
private async _rebuildCustomObjectArchivePanelDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
751
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
752
|
+
base.WebApiBase.SetPending(options);
|
|
753
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
754
|
+
try {
|
|
755
|
+
config.baseURL = this._options.baseUrl;
|
|
756
|
+
const response = await this._axios.post("RebuildCustomObjectArchivePanelDeltas", undefined , config);
|
|
757
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
758
|
+
const res = response.data;
|
|
759
|
+
resolve(res);
|
|
760
|
+
}
|
|
761
|
+
catch( err ) {
|
|
762
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
763
|
+
reject(err);
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Flush and rebuild CustomObjectArchivePanel deltas.
|
|
771
|
+
* @returns No return value
|
|
772
|
+
*/
|
|
773
|
+
public async rebuildCustomObjectArchivePanelDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
774
|
+
{
|
|
775
|
+
return this._rebuildCustomObjectArchivePanelDeltasAsync(webapi_options);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
private async _rebuildTaskMenuDeltasAsync( options?:base.WebApiRequestOptions) : Promise< void > {
|
|
780
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
781
|
+
base.WebApiBase.SetPending(options);
|
|
782
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
783
|
+
try {
|
|
784
|
+
config.baseURL = this._options.baseUrl;
|
|
785
|
+
const response = await this._axios.post("RebuildTaskMenuDeltas", undefined , config);
|
|
786
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
787
|
+
const res = response.data;
|
|
788
|
+
resolve(res);
|
|
789
|
+
}
|
|
790
|
+
catch( err ) {
|
|
791
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
792
|
+
reject(err);
|
|
793
|
+
}
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Flush and rebuild TaskMenu deltas.
|
|
800
|
+
* @returns No return value
|
|
801
|
+
*/
|
|
802
|
+
public async rebuildTaskMenuDeltasAsync(webapi_options?:base.WebApiRequestOptions) : Promise< void >
|
|
803
|
+
{
|
|
804
|
+
return this._rebuildTaskMenuDeltasAsync(webapi_options);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
private async _getApplicationConfigurationAsync(request: carriers.Configuration_GetApplicationConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
809
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
810
|
+
base.WebApiBase.SetPending(options);
|
|
811
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
812
|
+
try {
|
|
813
|
+
config.baseURL = this._options.baseUrl;
|
|
814
|
+
const response = await this._axios.post("GetApplicationConfiguration", request , config);
|
|
815
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
816
|
+
const res : string = response.data as string;
|
|
817
|
+
resolve(res);
|
|
818
|
+
}
|
|
819
|
+
catch( err ) {
|
|
820
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
821
|
+
reject(err);
|
|
822
|
+
}
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Return the application configuration. This is a list of pages, with information about the name, main panel and preference mappings of each page.
|
|
830
|
+
* @param request - Application, Instance
|
|
831
|
+
* @returns XML structure containing the application configuration
|
|
832
|
+
*/
|
|
833
|
+
public async getApplicationConfigurationAsync(request: carriers.Configuration_GetApplicationConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* Return the application configuration. This is a list of pages, with information about the name, main panel and preference mappings of each page.
|
|
837
|
+
* @param application - The application name, for instance 'SixWeb'
|
|
838
|
+
* @param instance - The instance name for the application, like 'MainInstance'
|
|
839
|
+
* @returns XML structure containing the application configuration
|
|
840
|
+
*/
|
|
841
|
+
public async getApplicationConfigurationAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
842
|
+
|
|
843
|
+
public async getApplicationConfigurationAsync(application:string|carriers.Configuration_GetApplicationConfigurationRequest, instance?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
844
|
+
let _request : carriers.Configuration_GetApplicationConfigurationRequest = null;
|
|
845
|
+
let _options : base.WebApiRequestOptions = null;
|
|
846
|
+
const first : any = application;
|
|
847
|
+
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' ) )
|
|
848
|
+
{
|
|
849
|
+
_request = application as carriers.Configuration_GetApplicationConfigurationRequest;
|
|
850
|
+
_options = instance as base.WebApiRequestOptions;
|
|
851
|
+
}
|
|
852
|
+
else
|
|
853
|
+
{
|
|
854
|
+
_request = {
|
|
855
|
+
application: application as string,
|
|
856
|
+
instance: instance as string,
|
|
857
|
+
};
|
|
858
|
+
_options = webapi_options;
|
|
859
|
+
}
|
|
860
|
+
return this._getApplicationConfigurationAsync( _request, _options );
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
private async _getPageConfigurationAsync(request: carriers.Configuration_GetPageConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
865
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
866
|
+
base.WebApiBase.SetPending(options);
|
|
867
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
868
|
+
try {
|
|
869
|
+
config.baseURL = this._options.baseUrl;
|
|
870
|
+
const response = await this._axios.post("GetPageConfiguration", request , config);
|
|
871
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
872
|
+
const res : string = response.data as string;
|
|
873
|
+
resolve(res);
|
|
874
|
+
}
|
|
875
|
+
catch( err ) {
|
|
876
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
877
|
+
reject(err);
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied.
|
|
886
|
+
* @param request - Application, Instance, Page
|
|
887
|
+
* @returns XML containing the configuration for the given page, from the page down to the control level.
|
|
888
|
+
*/
|
|
889
|
+
public async getPageConfigurationAsync(request: carriers.Configuration_GetPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied.
|
|
893
|
+
* @param application - The application name, for instance 'SixWeb
|
|
894
|
+
* @param instance - The instance name for the application, like 'MainInstance'
|
|
895
|
+
* @param page - Page name, must correspond to one of the pages in the Application Configuration
|
|
896
|
+
* @returns XML containing the configuration for the given page, from the page down to the control level.
|
|
897
|
+
*/
|
|
898
|
+
public async getPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
899
|
+
|
|
900
|
+
public async getPageConfigurationAsync(application:string|carriers.Configuration_GetPageConfigurationRequest, instance?:string|base.WebApiRequestOptions, page?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
901
|
+
let _request : carriers.Configuration_GetPageConfigurationRequest = null;
|
|
902
|
+
let _options : base.WebApiRequestOptions = null;
|
|
903
|
+
const first : any = application;
|
|
904
|
+
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.page)!='undefined' ) )
|
|
905
|
+
{
|
|
906
|
+
_request = application as carriers.Configuration_GetPageConfigurationRequest;
|
|
907
|
+
_options = instance as base.WebApiRequestOptions;
|
|
908
|
+
}
|
|
909
|
+
else
|
|
910
|
+
{
|
|
911
|
+
_request = {
|
|
912
|
+
application: application as string,
|
|
913
|
+
instance: instance as string,
|
|
914
|
+
page: page as string,
|
|
915
|
+
};
|
|
916
|
+
_options = webapi_options;
|
|
917
|
+
}
|
|
918
|
+
return this._getPageConfigurationAsync( _request, _options );
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
private async _getObjectMappingAsync(request: carriers.Configuration_GetObjectMappingRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
923
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
924
|
+
base.WebApiBase.SetPending(options);
|
|
925
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
926
|
+
try {
|
|
927
|
+
config.baseURL = this._options.baseUrl;
|
|
928
|
+
const response = await this._axios.post("GetObjectMapping", request , config);
|
|
929
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
930
|
+
const res : string = response.data as string;
|
|
931
|
+
resolve(res);
|
|
932
|
+
}
|
|
933
|
+
catch( err ) {
|
|
934
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
935
|
+
reject(err);
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Get the object mappings, i.e., the what code objects should be instantiated to handle the entities of the client configuration.
|
|
944
|
+
* @param request - Application, Instance
|
|
945
|
+
* @returns XML containing the object mappings, including assembly and class names
|
|
946
|
+
*/
|
|
947
|
+
public async getObjectMappingAsync(request: carriers.Configuration_GetObjectMappingRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* Get the object mappings, i.e., the what code objects should be instantiated to handle the entities of the client configuration.
|
|
951
|
+
* @param application - The application name, for instance 'SixWeb'
|
|
952
|
+
* @param instance - The instance name for the application, like 'MainInstance'
|
|
953
|
+
* @returns XML containing the object mappings, including assembly and class names
|
|
954
|
+
*/
|
|
955
|
+
public async getObjectMappingAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
956
|
+
|
|
957
|
+
public async getObjectMappingAsync(application:string|carriers.Configuration_GetObjectMappingRequest, instance?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
958
|
+
let _request : carriers.Configuration_GetObjectMappingRequest = null;
|
|
959
|
+
let _options : base.WebApiRequestOptions = null;
|
|
960
|
+
const first : any = application;
|
|
961
|
+
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' ) )
|
|
962
|
+
{
|
|
963
|
+
_request = application as carriers.Configuration_GetObjectMappingRequest;
|
|
964
|
+
_options = instance as base.WebApiRequestOptions;
|
|
965
|
+
}
|
|
966
|
+
else
|
|
967
|
+
{
|
|
968
|
+
_request = {
|
|
969
|
+
application: application as string,
|
|
970
|
+
instance: instance as string,
|
|
971
|
+
};
|
|
972
|
+
_options = webapi_options;
|
|
973
|
+
}
|
|
974
|
+
return this._getObjectMappingAsync( _request, _options );
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
private async _getFilterListAsync(request: carriers.Configuration_GetFilterListRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
979
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
980
|
+
base.WebApiBase.SetPending(options);
|
|
981
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
982
|
+
try {
|
|
983
|
+
config.baseURL = this._options.baseUrl;
|
|
984
|
+
const response = await this._axios.post("GetFilterList", request , config);
|
|
985
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
986
|
+
const res : string = response.data as string;
|
|
987
|
+
resolve(res);
|
|
988
|
+
}
|
|
989
|
+
catch( err ) {
|
|
990
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
991
|
+
reject(err);
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Get the list of filters to be used for processing the configuration data for this application.
|
|
1000
|
+
* @param request - Application, Instance
|
|
1001
|
+
* @returns XML representing the list of filters and any configuration data they may need.
|
|
1002
|
+
*/
|
|
1003
|
+
public async getFilterListAsync(request: carriers.Configuration_GetFilterListRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Get the list of filters to be used for processing the configuration data for this application.
|
|
1007
|
+
* @param application - The application name, for instance 'SixWeb'
|
|
1008
|
+
* @param instance - The instance name for the application, like 'MainInstance'
|
|
1009
|
+
* @returns XML representing the list of filters and any configuration data they may need.
|
|
1010
|
+
*/
|
|
1011
|
+
public async getFilterListAsync(application: string, instance: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1012
|
+
|
|
1013
|
+
public async getFilterListAsync(application:string|carriers.Configuration_GetFilterListRequest, instance?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1014
|
+
let _request : carriers.Configuration_GetFilterListRequest = null;
|
|
1015
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1016
|
+
const first : any = application;
|
|
1017
|
+
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' ) )
|
|
1018
|
+
{
|
|
1019
|
+
_request = application as carriers.Configuration_GetFilterListRequest;
|
|
1020
|
+
_options = instance as base.WebApiRequestOptions;
|
|
1021
|
+
}
|
|
1022
|
+
else
|
|
1023
|
+
{
|
|
1024
|
+
_request = {
|
|
1025
|
+
application: application as string,
|
|
1026
|
+
instance: instance as string,
|
|
1027
|
+
};
|
|
1028
|
+
_options = webapi_options;
|
|
1029
|
+
}
|
|
1030
|
+
return this._getFilterListAsync( _request, _options );
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
private async _clearConfigurationCacheAsync(request: carriers.Configuration_ClearConfigurationCacheRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1035
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1036
|
+
base.WebApiBase.SetPending(options);
|
|
1037
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
1038
|
+
try {
|
|
1039
|
+
config.baseURL = this._options.baseUrl;
|
|
1040
|
+
const response = await this._axios.post("ClearConfigurationCache", request , config);
|
|
1041
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1042
|
+
const res = response.data;
|
|
1043
|
+
resolve(res);
|
|
1044
|
+
}
|
|
1045
|
+
catch( err ) {
|
|
1046
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1047
|
+
reject(err);
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Configuration XML's may be expensive to build and parse, and are therefore cached to the database. <para/>Cahcing is per application/instance/associate, and can be turned off through the config file. <para/>If caching is on, and the configuration is changed, it is necessary to clear the cached configurations from the database, through this call.<para/>Note that changes to the externalapplication table require cache invalidation. SoAdmin will do so automatically.
|
|
1056
|
+
* @param request - Application, Instance, ForAllAssociates
|
|
1057
|
+
* @returns There is no return value.
|
|
1058
|
+
*/
|
|
1059
|
+
public async clearConfigurationCacheAsync(request: carriers.Configuration_ClearConfigurationCacheRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Configuration XML's may be expensive to build and parse, and are therefore cached to the database. <para/>Cahcing is per application/instance/associate, and can be turned off through the config file. <para/>If caching is on, and the configuration is changed, it is necessary to clear the cached configurations from the database, through this call.<para/>Note that changes to the externalapplication table require cache invalidation. SoAdmin will do so automatically.
|
|
1063
|
+
* @param application - The application name, for instance 'SixWeb'
|
|
1064
|
+
* @param instance - The instance name for the application, like 'MainInstance'
|
|
1065
|
+
* @param forAllAssociates - If false, only the current associate's configuration is cleared. If true, configurations are cleared for all associates.
|
|
1066
|
+
* @returns There is no return value.
|
|
1067
|
+
*/
|
|
1068
|
+
public async clearConfigurationCacheAsync(application: string, instance: string, forAllAssociates: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1069
|
+
|
|
1070
|
+
public async clearConfigurationCacheAsync(application:string|carriers.Configuration_ClearConfigurationCacheRequest, instance?:string|base.WebApiRequestOptions, forAllAssociates?:boolean, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1071
|
+
let _request : carriers.Configuration_ClearConfigurationCacheRequest = null;
|
|
1072
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1073
|
+
const first : any = application;
|
|
1074
|
+
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.forAllAssociates)!='undefined' ) )
|
|
1075
|
+
{
|
|
1076
|
+
_request = application as carriers.Configuration_ClearConfigurationCacheRequest;
|
|
1077
|
+
_options = instance as base.WebApiRequestOptions;
|
|
1078
|
+
}
|
|
1079
|
+
else
|
|
1080
|
+
{
|
|
1081
|
+
_request = {
|
|
1082
|
+
application: application as string,
|
|
1083
|
+
instance: instance as string,
|
|
1084
|
+
forAllAssociates: forAllAssociates as boolean,
|
|
1085
|
+
};
|
|
1086
|
+
_options = webapi_options;
|
|
1087
|
+
}
|
|
1088
|
+
return this._clearConfigurationCacheAsync( _request, _options );
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
private async _getAnyConfigurationAsync(request: carriers.Configuration_GetAnyConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1093
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1094
|
+
base.WebApiBase.SetPending(options);
|
|
1095
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1096
|
+
try {
|
|
1097
|
+
config.baseURL = this._options.baseUrl;
|
|
1098
|
+
const response = await this._axios.post("GetAnyConfiguration", request , config);
|
|
1099
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1100
|
+
const res : string = response.data as string;
|
|
1101
|
+
resolve(res);
|
|
1102
|
+
}
|
|
1103
|
+
catch( err ) {
|
|
1104
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1105
|
+
reject(err);
|
|
1106
|
+
}
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Get one defined configuration fragment, with full reference resolution and parsing applied. This is essentially the same service as the GetPageConfiguration, except that this service is not locked to objects of type Page.
|
|
1114
|
+
* @param request - Application, Instance, Item, Type
|
|
1115
|
+
* @returns Fully resolved and parsed configuration XML, as string.
|
|
1116
|
+
*/
|
|
1117
|
+
public async getAnyConfigurationAsync(request: carriers.Configuration_GetAnyConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Get one defined configuration fragment, with full reference resolution and parsing applied. This is essentially the same service as the GetPageConfiguration, except that this service is not locked to objects of type Page.
|
|
1121
|
+
* @param application - The application name, for instance Six.Web
|
|
1122
|
+
* @param instance - The instance name, for instance Main
|
|
1123
|
+
* @param item - The configuration item name (first component of file name)
|
|
1124
|
+
* @param type - The configuration item type (second component of file name)
|
|
1125
|
+
* @returns Fully resolved and parsed configuration XML, as string.
|
|
1126
|
+
*/
|
|
1127
|
+
public async getAnyConfigurationAsync(application: string, instance: string, item: string, type: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1128
|
+
|
|
1129
|
+
public async getAnyConfigurationAsync(application:string|carriers.Configuration_GetAnyConfigurationRequest, instance?:string|base.WebApiRequestOptions, item?:string, type?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1130
|
+
let _request : carriers.Configuration_GetAnyConfigurationRequest = null;
|
|
1131
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1132
|
+
const first : any = application;
|
|
1133
|
+
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.item)!='undefined' || typeof(first.type)!='undefined' ) )
|
|
1134
|
+
{
|
|
1135
|
+
_request = application as carriers.Configuration_GetAnyConfigurationRequest;
|
|
1136
|
+
_options = instance as base.WebApiRequestOptions;
|
|
1137
|
+
}
|
|
1138
|
+
else
|
|
1139
|
+
{
|
|
1140
|
+
_request = {
|
|
1141
|
+
application: application as string,
|
|
1142
|
+
instance: instance as string,
|
|
1143
|
+
item: item as string,
|
|
1144
|
+
type: type as string,
|
|
1145
|
+
};
|
|
1146
|
+
_options = webapi_options;
|
|
1147
|
+
}
|
|
1148
|
+
return this._getAnyConfigurationAsync( _request, _options );
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
private async _getEMarketingUrlAsync(request: carriers.Configuration_GetEMarketingUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1153
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1154
|
+
base.WebApiBase.SetPending(options);
|
|
1155
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1156
|
+
try {
|
|
1157
|
+
config.baseURL = this._options.baseUrl;
|
|
1158
|
+
const response = await this._axios.post("GetEMarketingUrl", request , config);
|
|
1159
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1160
|
+
const res : string = response.data as string;
|
|
1161
|
+
resolve(res);
|
|
1162
|
+
}
|
|
1163
|
+
catch( err ) {
|
|
1164
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1165
|
+
reject(err);
|
|
1166
|
+
}
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
*
|
|
1174
|
+
* @param request - Language
|
|
1175
|
+
* @returns
|
|
1176
|
+
*/
|
|
1177
|
+
public async getEMarketingUrlAsync(request: carriers.Configuration_GetEMarketingUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @param language -
|
|
1182
|
+
* @returns
|
|
1183
|
+
*/
|
|
1184
|
+
public async getEMarketingUrlAsync(language: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1185
|
+
|
|
1186
|
+
public async getEMarketingUrlAsync(language:string|carriers.Configuration_GetEMarketingUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1187
|
+
let _request : carriers.Configuration_GetEMarketingUrlRequest = null;
|
|
1188
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1189
|
+
const first : any = language;
|
|
1190
|
+
if( typeof( first ) === "object" && first && ( typeof(first.language)!='undefined' ) )
|
|
1191
|
+
{
|
|
1192
|
+
_request = language as carriers.Configuration_GetEMarketingUrlRequest;
|
|
1193
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
1194
|
+
}
|
|
1195
|
+
else
|
|
1196
|
+
{
|
|
1197
|
+
_request = {
|
|
1198
|
+
language: language as string,
|
|
1199
|
+
};
|
|
1200
|
+
_options = webapi_options;
|
|
1201
|
+
}
|
|
1202
|
+
return this._getEMarketingUrlAsync( _request, _options );
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
private async _getCsProgramUrlAsync(request: carriers.Configuration_GetCsProgramUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1207
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1208
|
+
base.WebApiBase.SetPending(options);
|
|
1209
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1210
|
+
try {
|
|
1211
|
+
config.baseURL = this._options.baseUrl;
|
|
1212
|
+
const response = await this._axios.post("GetCsProgramUrl", request , config);
|
|
1213
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1214
|
+
const res : string = response.data as string;
|
|
1215
|
+
resolve(res);
|
|
1216
|
+
}
|
|
1217
|
+
catch( err ) {
|
|
1218
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1219
|
+
reject(err);
|
|
1220
|
+
}
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* This method will convert a module name into a CS URL.
|
|
1228
|
+
* @param request - Language, ProgramName, Action, ExtraParameters
|
|
1229
|
+
* @returns Returns a valid CS URL composed of the give parameters.
|
|
1230
|
+
*/
|
|
1231
|
+
public async getCsProgramUrlAsync(request: carriers.Configuration_GetCsProgramUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* This method will convert a module name into a CS URL.
|
|
1235
|
+
* @param language - By setting this parameter, you can change the CS language for the current user.
|
|
1236
|
+
* @param programName - In this parameter you must specify which CS program you want to create an URL for. Valid examples are "ticket", "rms", "spm" etc.
|
|
1237
|
+
* @param action - Here you can optionally specify the action for the current program. This will enable you to go to a specific screen.
|
|
1238
|
+
* @param extraParameters - If an action is specified, you can specify extra parameters here. This can be used to set specific behaviour for the chosen screen/action. If an empty action is supplied, this parameter will be ignored.
|
|
1239
|
+
* @returns Returns a valid CS URL composed of the give parameters.
|
|
1240
|
+
*/
|
|
1241
|
+
public async getCsProgramUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1242
|
+
|
|
1243
|
+
public async getCsProgramUrlAsync(language:string|carriers.Configuration_GetCsProgramUrlRequest, programName?:string|base.WebApiRequestOptions, action?:string, extraParameters?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1244
|
+
let _request : carriers.Configuration_GetCsProgramUrlRequest = null;
|
|
1245
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1246
|
+
const first : any = language;
|
|
1247
|
+
if( typeof( first ) === "object" && first && ( typeof(first.language)!='undefined' || typeof(first.programName)!='undefined' || typeof(first.action)!='undefined' || typeof(first.extraParameters)!='undefined' ) )
|
|
1248
|
+
{
|
|
1249
|
+
_request = language as carriers.Configuration_GetCsProgramUrlRequest;
|
|
1250
|
+
_options = programName as base.WebApiRequestOptions;
|
|
1251
|
+
}
|
|
1252
|
+
else
|
|
1253
|
+
{
|
|
1254
|
+
_request = {
|
|
1255
|
+
language: language as string,
|
|
1256
|
+
programName: programName as string,
|
|
1257
|
+
action: action as string,
|
|
1258
|
+
extraParameters: extraParameters as string,
|
|
1259
|
+
};
|
|
1260
|
+
_options = webapi_options;
|
|
1261
|
+
}
|
|
1262
|
+
return this._getCsProgramUrlAsync( _request, _options );
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
private async _getCSAuthUrlAsync(request: carriers.Configuration_GetCSAuthUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1267
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1268
|
+
base.WebApiBase.SetPending(options);
|
|
1269
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1270
|
+
try {
|
|
1271
|
+
config.baseURL = this._options.baseUrl;
|
|
1272
|
+
const response = await this._axios.post("GetCSAuthUrl", request , config);
|
|
1273
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1274
|
+
const res : string = response.data as string;
|
|
1275
|
+
resolve(res);
|
|
1276
|
+
}
|
|
1277
|
+
catch( err ) {
|
|
1278
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1279
|
+
reject(err);
|
|
1280
|
+
}
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Will generate an url to the emarketing module
|
|
1288
|
+
* @param request - Language, ProgramName, Action, ExtraParameters
|
|
1289
|
+
* @returns Returns a valid CS URL composed of the give parameters.
|
|
1290
|
+
*/
|
|
1291
|
+
public async getCSAuthUrlAsync(request: carriers.Configuration_GetCSAuthUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* Will generate an url to the emarketing module
|
|
1295
|
+
* @param language - By setting this parameter, you can change the CS language for the current user.
|
|
1296
|
+
* @param programName - In this parameter you must specify which CS program you want to create an URL for. Valid examples are "ticket", "rms", "spm" etc.
|
|
1297
|
+
* @param action - Here you can optionally specify the action for the current program. This will enable you to go to a specific screen.
|
|
1298
|
+
* @param extraParameters - If an action is specified, you can specify extra parameters here. This can be used to set specific behaviour for the chosen screen/action. If an empty action is supplied, this parameter will be ignored.
|
|
1299
|
+
* @returns Returns a valid CS URL composed of the give parameters.
|
|
1300
|
+
*/
|
|
1301
|
+
public async getCSAuthUrlAsync(language: string, programName: string, action: string, extraParameters: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1302
|
+
|
|
1303
|
+
public async getCSAuthUrlAsync(language:string|carriers.Configuration_GetCSAuthUrlRequest, programName?:string|base.WebApiRequestOptions, action?:string, extraParameters?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1304
|
+
let _request : carriers.Configuration_GetCSAuthUrlRequest = null;
|
|
1305
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1306
|
+
const first : any = language;
|
|
1307
|
+
if( typeof( first ) === "object" && first && ( typeof(first.language)!='undefined' || typeof(first.programName)!='undefined' || typeof(first.action)!='undefined' || typeof(first.extraParameters)!='undefined' ) )
|
|
1308
|
+
{
|
|
1309
|
+
_request = language as carriers.Configuration_GetCSAuthUrlRequest;
|
|
1310
|
+
_options = programName as base.WebApiRequestOptions;
|
|
1311
|
+
}
|
|
1312
|
+
else
|
|
1313
|
+
{
|
|
1314
|
+
_request = {
|
|
1315
|
+
language: language as string,
|
|
1316
|
+
programName: programName as string,
|
|
1317
|
+
action: action as string,
|
|
1318
|
+
extraParameters: extraParameters as string,
|
|
1319
|
+
};
|
|
1320
|
+
_options = webapi_options;
|
|
1321
|
+
}
|
|
1322
|
+
return this._getCSAuthUrlAsync( _request, _options );
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
private async _getCSRegistryValueAsync(request: carriers.Configuration_GetCSRegistryValueRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1327
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1328
|
+
base.WebApiBase.SetPending(options);
|
|
1329
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1330
|
+
try {
|
|
1331
|
+
config.baseURL = this._options.baseUrl;
|
|
1332
|
+
const response = await this._axios.post("GetCSRegistryValue", request , config);
|
|
1333
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1334
|
+
const res : string = response.data as string;
|
|
1335
|
+
resolve(res);
|
|
1336
|
+
}
|
|
1337
|
+
catch( err ) {
|
|
1338
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1339
|
+
reject(err);
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* This method will get a value from the CS Registry table.
|
|
1348
|
+
* @param request - Entry
|
|
1349
|
+
* @returns The value of the specified Registry entry
|
|
1350
|
+
*/
|
|
1351
|
+
public async getCSRegistryValueAsync(request: carriers.Configuration_GetCSRegistryValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* This method will get a value from the CS Registry table.
|
|
1355
|
+
* @param entry - The Registry entry to get
|
|
1356
|
+
* @returns The value of the specified Registry entry
|
|
1357
|
+
*/
|
|
1358
|
+
public async getCSRegistryValueAsync(entry: number, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1359
|
+
|
|
1360
|
+
public async getCSRegistryValueAsync(entry:number|carriers.Configuration_GetCSRegistryValueRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1361
|
+
let _request : carriers.Configuration_GetCSRegistryValueRequest = null;
|
|
1362
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1363
|
+
const first : any = entry;
|
|
1364
|
+
if( typeof( first ) === "object" && first && ( typeof(first.entry)!='undefined' ) )
|
|
1365
|
+
{
|
|
1366
|
+
_request = entry as carriers.Configuration_GetCSRegistryValueRequest;
|
|
1367
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
1368
|
+
}
|
|
1369
|
+
else
|
|
1370
|
+
{
|
|
1371
|
+
_request = {
|
|
1372
|
+
entry: entry as number,
|
|
1373
|
+
};
|
|
1374
|
+
_options = webapi_options;
|
|
1375
|
+
}
|
|
1376
|
+
return this._getCSRegistryValueAsync( _request, _options );
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
private async _getCSWwwFolderAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1381
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1382
|
+
base.WebApiBase.SetPending(options);
|
|
1383
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1384
|
+
try {
|
|
1385
|
+
config.baseURL = this._options.baseUrl;
|
|
1386
|
+
const response = await this._axios.post("GetCSWwwFolder", undefined , config);
|
|
1387
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1388
|
+
const res : string = response.data as string;
|
|
1389
|
+
resolve(res);
|
|
1390
|
+
}
|
|
1391
|
+
catch( err ) {
|
|
1392
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1393
|
+
reject(err);
|
|
1394
|
+
}
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* This method will get the www folder for CS
|
|
1401
|
+
* @returns The www folder for CS
|
|
1402
|
+
*/
|
|
1403
|
+
public async getCSWwwFolderAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1404
|
+
{
|
|
1405
|
+
return this._getCSWwwFolderAsync(webapi_options);
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
private async _getRefreshedPageConfigurationAsync(request: carriers.Configuration_GetRefreshedPageConfigurationRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1410
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1411
|
+
base.WebApiBase.SetPending(options);
|
|
1412
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1413
|
+
try {
|
|
1414
|
+
config.baseURL = this._options.baseUrl;
|
|
1415
|
+
const response = await this._axios.post("GetRefreshedPageConfiguration", request , config);
|
|
1416
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1417
|
+
const res : string = response.data as string;
|
|
1418
|
+
resolve(res);
|
|
1419
|
+
}
|
|
1420
|
+
catch( err ) {
|
|
1421
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1422
|
+
reject(err);
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied. Does not use cache for fetching, but updates the cache with refreshed configuration.
|
|
1431
|
+
* @param request - Application, Instance, Page
|
|
1432
|
+
* @returns XML containing the configuration for the given page, from the page down to the control level.
|
|
1433
|
+
*/
|
|
1434
|
+
public async getRefreshedPageConfigurationAsync(request: carriers.Configuration_GetRefreshedPageConfigurationRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Get the configuration for one whole web page, including all its panels etc. totally asynchronous items like menus are not included, but all references are resolved and all special processing is applied. Does not use cache for fetching, but updates the cache with refreshed configuration.
|
|
1438
|
+
* @param application - The application name, for instance 'SixWeb
|
|
1439
|
+
* @param instance - The instance name for the application, like 'MainInstance'
|
|
1440
|
+
* @param page - Page name, must correspond to one of the pages in the Application Configuration
|
|
1441
|
+
* @returns XML containing the configuration for the given page, from the page down to the control level.
|
|
1442
|
+
*/
|
|
1443
|
+
public async getRefreshedPageConfigurationAsync(application: string, instance: string, page: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1444
|
+
|
|
1445
|
+
public async getRefreshedPageConfigurationAsync(application:string|carriers.Configuration_GetRefreshedPageConfigurationRequest, instance?:string|base.WebApiRequestOptions, page?:string, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1446
|
+
let _request : carriers.Configuration_GetRefreshedPageConfigurationRequest = null;
|
|
1447
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1448
|
+
const first : any = application;
|
|
1449
|
+
if( typeof( first ) === "object" && first && ( typeof(first.application)!='undefined' || typeof(first.instance)!='undefined' || typeof(first.page)!='undefined' ) )
|
|
1450
|
+
{
|
|
1451
|
+
_request = application as carriers.Configuration_GetRefreshedPageConfigurationRequest;
|
|
1452
|
+
_options = instance as base.WebApiRequestOptions;
|
|
1453
|
+
}
|
|
1454
|
+
else
|
|
1455
|
+
{
|
|
1456
|
+
_request = {
|
|
1457
|
+
application: application as string,
|
|
1458
|
+
instance: instance as string,
|
|
1459
|
+
page: page as string,
|
|
1460
|
+
};
|
|
1461
|
+
_options = webapi_options;
|
|
1462
|
+
}
|
|
1463
|
+
return this._getRefreshedPageConfigurationAsync( _request, _options );
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
private async _getWwwUrlAsync(request: carriers.Configuration_GetWwwUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1468
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1469
|
+
base.WebApiBase.SetPending(options);
|
|
1470
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1471
|
+
try {
|
|
1472
|
+
config.baseURL = this._options.baseUrl;
|
|
1473
|
+
const response = await this._axios.post("GetWwwUrl", request , config);
|
|
1474
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1475
|
+
const res : string = response.data as string;
|
|
1476
|
+
resolve(res);
|
|
1477
|
+
}
|
|
1478
|
+
catch( err ) {
|
|
1479
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1480
|
+
reject(err);
|
|
1481
|
+
}
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Will get the default URL used for the logo, from the [NetServices] PageUrl preferencec, with tags substituted.
|
|
1489
|
+
* @param request - Client
|
|
1490
|
+
* @returns URL to be used when clicking the logo
|
|
1491
|
+
*/
|
|
1492
|
+
public async getWwwUrlAsync(request: carriers.Configuration_GetWwwUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Will get the default URL used for the logo, from the [NetServices] PageUrl preferencec, with tags substituted.
|
|
1496
|
+
* @param client - The name for the client application, like 'CS' or 'SM.web', used for the <clie> variable
|
|
1497
|
+
* @returns URL to be used when clicking the logo
|
|
1498
|
+
*/
|
|
1499
|
+
public async getWwwUrlAsync(client: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1500
|
+
|
|
1501
|
+
public async getWwwUrlAsync(client:string|carriers.Configuration_GetWwwUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1502
|
+
let _request : carriers.Configuration_GetWwwUrlRequest = null;
|
|
1503
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1504
|
+
const first : any = client;
|
|
1505
|
+
if( typeof( first ) === "object" && first && ( typeof(first.client)!='undefined' ) )
|
|
1506
|
+
{
|
|
1507
|
+
_request = client as carriers.Configuration_GetWwwUrlRequest;
|
|
1508
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
1509
|
+
}
|
|
1510
|
+
else
|
|
1511
|
+
{
|
|
1512
|
+
_request = {
|
|
1513
|
+
client: client as string,
|
|
1514
|
+
};
|
|
1515
|
+
_options = webapi_options;
|
|
1516
|
+
}
|
|
1517
|
+
return this._getWwwUrlAsync( _request, _options );
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
private async _getHelpDispatcherUrlAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1522
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1523
|
+
base.WebApiBase.SetPending(options);
|
|
1524
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1525
|
+
try {
|
|
1526
|
+
config.baseURL = this._options.baseUrl;
|
|
1527
|
+
const response = await this._axios.post("GetHelpDispatcherUrl", undefined , config);
|
|
1528
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1529
|
+
const res : string = response.data as string;
|
|
1530
|
+
resolve(res);
|
|
1531
|
+
}
|
|
1532
|
+
catch( err ) {
|
|
1533
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1534
|
+
reject(err);
|
|
1535
|
+
}
|
|
1536
|
+
});
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* Will get the GetHelpDispatcherUrl used by the help system
|
|
1542
|
+
* @returns URL to be used by the help system
|
|
1543
|
+
*/
|
|
1544
|
+
public async getHelpDispatcherUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1545
|
+
{
|
|
1546
|
+
return this._getHelpDispatcherUrlAsync(webapi_options);
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
private async _getWwwUrlForSMWebAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1551
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1552
|
+
base.WebApiBase.SetPending(options);
|
|
1553
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1554
|
+
try {
|
|
1555
|
+
config.baseURL = this._options.baseUrl;
|
|
1556
|
+
const response = await this._axios.post("GetWwwUrlForSMWeb", undefined , config);
|
|
1557
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1558
|
+
const res : string = response.data as string;
|
|
1559
|
+
resolve(res);
|
|
1560
|
+
}
|
|
1561
|
+
catch( err ) {
|
|
1562
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1563
|
+
reject(err);
|
|
1564
|
+
}
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* Returns the URL used for the logo by the SM.web client. Uses urldispatch.aspx
|
|
1571
|
+
* @returns Link to urldispatch.aspx tagged with [SOSITEURL]
|
|
1572
|
+
*/
|
|
1573
|
+
public async getWwwUrlForSMWebAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1574
|
+
{
|
|
1575
|
+
return this._getWwwUrlForSMWebAsync(webapi_options);
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
private async _getCsCgiUrlInternalAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1580
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1581
|
+
base.WebApiBase.SetPending(options);
|
|
1582
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1583
|
+
try {
|
|
1584
|
+
config.baseURL = this._options.baseUrl;
|
|
1585
|
+
const response = await this._axios.post("GetCsCgiUrlInternal", undefined , config);
|
|
1586
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1587
|
+
const res : string = response.data as string;
|
|
1588
|
+
resolve(res);
|
|
1589
|
+
}
|
|
1590
|
+
catch( err ) {
|
|
1591
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1592
|
+
reject(err);
|
|
1593
|
+
}
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* This method will get the host name for CS
|
|
1600
|
+
* @returns Will get the host name for where CS is installed
|
|
1601
|
+
*/
|
|
1602
|
+
public async getCsCgiUrlInternalAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1603
|
+
{
|
|
1604
|
+
return this._getCsCgiUrlInternalAsync(webapi_options);
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
|
|
1608
|
+
private async _getCRMUrlAsync(request: carriers.Configuration_GetCRMUrlRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1609
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1610
|
+
base.WebApiBase.SetPending(options);
|
|
1611
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1612
|
+
try {
|
|
1613
|
+
config.baseURL = this._options.baseUrl;
|
|
1614
|
+
const response = await this._axios.post("GetCRMUrl", request , config);
|
|
1615
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1616
|
+
const res : string = response.data as string;
|
|
1617
|
+
resolve(res);
|
|
1618
|
+
}
|
|
1619
|
+
catch( err ) {
|
|
1620
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1621
|
+
reject(err);
|
|
1622
|
+
}
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* Returns a valid url based in the soprotocol provided
|
|
1630
|
+
* @param request - SoProtocol, Currents, Frameless
|
|
1631
|
+
* @returns Url with soprotocol
|
|
1632
|
+
*/
|
|
1633
|
+
public async getCRMUrlAsync(request: carriers.Configuration_GetCRMUrlRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* Returns a valid url based in the soprotocol provided
|
|
1637
|
+
* @param soProtocol - SoProtocol to display. Eg. contact.activityarchive.minipreview
|
|
1638
|
+
* @param currents - currents to set. Eg. contact_id=100&person_id=299
|
|
1639
|
+
* @param frameless - If true frame is not rendered( Navigationbar, buttonbar and menu )
|
|
1640
|
+
* @returns Url with soprotocol
|
|
1641
|
+
*/
|
|
1642
|
+
public async getCRMUrlAsync(soProtocol: string, currents: string, frameless: boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
1643
|
+
|
|
1644
|
+
public async getCRMUrlAsync(soProtocol:string|carriers.Configuration_GetCRMUrlRequest, currents?:string|base.WebApiRequestOptions, frameless?:boolean, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1645
|
+
let _request : carriers.Configuration_GetCRMUrlRequest = null;
|
|
1646
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1647
|
+
const first : any = soProtocol;
|
|
1648
|
+
if( typeof( first ) === "object" && first && ( typeof(first.soProtocol)!='undefined' || typeof(first.currents)!='undefined' || typeof(first.frameless)!='undefined' ) )
|
|
1649
|
+
{
|
|
1650
|
+
_request = soProtocol as carriers.Configuration_GetCRMUrlRequest;
|
|
1651
|
+
_options = currents as base.WebApiRequestOptions;
|
|
1652
|
+
}
|
|
1653
|
+
else
|
|
1654
|
+
{
|
|
1655
|
+
_request = {
|
|
1656
|
+
soProtocol: soProtocol as string,
|
|
1657
|
+
currents: currents as string,
|
|
1658
|
+
frameless: frameless as boolean,
|
|
1659
|
+
};
|
|
1660
|
+
_options = webapi_options;
|
|
1661
|
+
}
|
|
1662
|
+
return this._getCRMUrlAsync( _request, _options );
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
private async _getEmailNumberOfDaysAsync( options?:base.WebApiRequestOptions) : Promise< number > {
|
|
1667
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1668
|
+
base.WebApiBase.SetPending(options);
|
|
1669
|
+
return new Promise< number >(async (resolve, reject) => {
|
|
1670
|
+
try {
|
|
1671
|
+
config.baseURL = this._options.baseUrl;
|
|
1672
|
+
const response = await this._axios.post("GetEmailNumberOfDays", undefined , config);
|
|
1673
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1674
|
+
const res : number = response.data as number;
|
|
1675
|
+
resolve(res);
|
|
1676
|
+
}
|
|
1677
|
+
catch( err ) {
|
|
1678
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1679
|
+
reject(err);
|
|
1680
|
+
}
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* @returns Number of days in the past for which we are fetching email
|
|
1688
|
+
*/
|
|
1689
|
+
public async getEmailNumberOfDaysAsync(webapi_options?:base.WebApiRequestOptions) : Promise< number >
|
|
1690
|
+
{
|
|
1691
|
+
return this._getEmailNumberOfDaysAsync(webapi_options);
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
private async _getCustomerUrlAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1696
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1697
|
+
base.WebApiBase.SetPending(options);
|
|
1698
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1699
|
+
try {
|
|
1700
|
+
config.baseURL = this._options.baseUrl;
|
|
1701
|
+
const response = await this._axios.post("GetCustomerUrl", undefined , config);
|
|
1702
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1703
|
+
const res : string = response.data as string;
|
|
1704
|
+
resolve(res);
|
|
1705
|
+
}
|
|
1706
|
+
catch( err ) {
|
|
1707
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1708
|
+
reject(err);
|
|
1709
|
+
}
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* This method will get the URL for the external access to the customer center
|
|
1716
|
+
* @returns The URL to the customer center, without any actions
|
|
1717
|
+
*/
|
|
1718
|
+
public async getCustomerUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1719
|
+
{
|
|
1720
|
+
return this._getCustomerUrlAsync(webapi_options);
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
private async _getSpfDomainAsync( options?:base.WebApiRequestOptions) : Promise< string > {
|
|
1725
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1726
|
+
base.WebApiBase.SetPending(options);
|
|
1727
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
1728
|
+
try {
|
|
1729
|
+
config.baseURL = this._options.baseUrl;
|
|
1730
|
+
const response = await this._axios.post("GetSpfDomain", undefined , config);
|
|
1731
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1732
|
+
const res : string = response.data as string;
|
|
1733
|
+
resolve(res);
|
|
1734
|
+
}
|
|
1735
|
+
catch( err ) {
|
|
1736
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1737
|
+
reject(err);
|
|
1738
|
+
}
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
|
|
1743
|
+
/**
|
|
1744
|
+
* Get the SPF domain defined for the mail cluster for this tenant (Online only)
|
|
1745
|
+
* @returns The configured SPF domain. Will return empty for Onsite installations or tenants in Online using custom SMTP
|
|
1746
|
+
*/
|
|
1747
|
+
public async getSpfDomainAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >
|
|
1748
|
+
{
|
|
1749
|
+
return this._getSpfDomainAsync(webapi_options);
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
private async _getAllFeatureTogglesAsync( options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary > {
|
|
1754
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1755
|
+
base.WebApiBase.SetPending(options);
|
|
1756
|
+
return new Promise< carriers.StringBoolDictionary >(async (resolve, reject) => {
|
|
1757
|
+
try {
|
|
1758
|
+
config.baseURL = this._options.baseUrl;
|
|
1759
|
+
const response = await this._axios.post("GetAllFeatureToggles", undefined , config);
|
|
1760
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1761
|
+
const res : carriers.StringBoolDictionary = converters.Create_StringBoolDictionary_From( response.data );
|
|
1762
|
+
resolve(res);
|
|
1763
|
+
}
|
|
1764
|
+
catch( err ) {
|
|
1765
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1766
|
+
reject(err);
|
|
1767
|
+
}
|
|
1768
|
+
});
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* Get all the feature toggles with their state (on/off)
|
|
1774
|
+
* @returns The feature toggles with their state (on/off)
|
|
1775
|
+
*/
|
|
1776
|
+
public async getAllFeatureTogglesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary >
|
|
1777
|
+
{
|
|
1778
|
+
return this._getAllFeatureTogglesAsync(webapi_options);
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* Gets a DiaryViewEntity object.
|
|
1783
|
+
* @param diaryViewEntityId - The primary key.
|
|
1784
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1785
|
+
* @returns A single DiaryViewEntity
|
|
1786
|
+
*/
|
|
1787
|
+
public async getDiaryViewEntityAsync(diaryViewEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.DiaryViewEntity > {
|
|
1788
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1789
|
+
base.WebApiBase.SetPending(options);
|
|
1790
|
+
return new Promise< carriers.DiaryViewEntity >(async (resolve, reject) => {
|
|
1791
|
+
try {
|
|
1792
|
+
const response = await this._axios.post("GetDiaryViewEntity?diaryViewEntityId=" + diaryViewEntityId, null, config);
|
|
1793
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1794
|
+
const res = converters.Create_DiaryViewEntity_From( response.data );
|
|
1795
|
+
resolve(res);
|
|
1796
|
+
}
|
|
1797
|
+
catch( err ) {
|
|
1798
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1799
|
+
reject(err);
|
|
1800
|
+
}
|
|
1801
|
+
});
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* Gets a SystemEventEntity object.
|
|
1806
|
+
* @param systemEventEntityId - The primary key.
|
|
1807
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1808
|
+
* @returns A single SystemEventEntity
|
|
1809
|
+
*/
|
|
1810
|
+
public async getSystemEventEntityAsync(systemEventEntityId: number, options?:base.WebApiRequestOptions) : Promise< carriers.SystemEventEntity > {
|
|
1811
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1812
|
+
base.WebApiBase.SetPending(options);
|
|
1813
|
+
return new Promise< carriers.SystemEventEntity >(async (resolve, reject) => {
|
|
1814
|
+
try {
|
|
1815
|
+
const response = await this._axios.post("GetSystemEventEntity?systemEventEntityId=" + systemEventEntityId, null, config);
|
|
1816
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1817
|
+
const res = converters.Create_SystemEventEntity_From( response.data );
|
|
1818
|
+
resolve(res);
|
|
1819
|
+
}
|
|
1820
|
+
catch( err ) {
|
|
1821
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1822
|
+
reject(err);
|
|
1823
|
+
}
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
private async _existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, options?:base.WebApiRequestOptions) : Promise< boolean > {
|
|
1829
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1830
|
+
base.WebApiBase.SetPending(options);
|
|
1831
|
+
return new Promise< boolean >(async (resolve, reject) => {
|
|
1832
|
+
try {
|
|
1833
|
+
config.baseURL = this._options.baseUrl;
|
|
1834
|
+
const response = await this._axios.post("ExistsSystemEvent", request , config);
|
|
1835
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1836
|
+
const res : boolean = response.data as boolean;
|
|
1837
|
+
resolve(res);
|
|
1838
|
+
}
|
|
1839
|
+
catch( err ) {
|
|
1840
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1841
|
+
reject(err);
|
|
1842
|
+
}
|
|
1843
|
+
});
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Is there a system event with the given key?
|
|
1850
|
+
* @param request - Key
|
|
1851
|
+
* @returns The system event
|
|
1852
|
+
*/
|
|
1853
|
+
public async existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Is there a system event with the given key?
|
|
1857
|
+
* @param key - The key to match on
|
|
1858
|
+
* @returns The system event
|
|
1859
|
+
*/
|
|
1860
|
+
public async existsSystemEventAsync(key: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
1861
|
+
|
|
1862
|
+
public async existsSystemEventAsync(key:string|carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean > {
|
|
1863
|
+
let _request : carriers.Configuration_ExistsSystemEventRequest = null;
|
|
1864
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1865
|
+
const first : any = key;
|
|
1866
|
+
if( typeof( first ) === "object" && first && ( typeof(first.key)!='undefined' ) )
|
|
1867
|
+
{
|
|
1868
|
+
_request = key as carriers.Configuration_ExistsSystemEventRequest;
|
|
1869
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
1870
|
+
}
|
|
1871
|
+
else
|
|
1872
|
+
{
|
|
1873
|
+
_request = {
|
|
1874
|
+
key: key as string,
|
|
1875
|
+
};
|
|
1876
|
+
_options = webapi_options;
|
|
1877
|
+
}
|
|
1878
|
+
return this._existsSystemEventAsync( _request, _options );
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Gets a WindowPosSize object.
|
|
1883
|
+
* @param windowPosSizeId - The primary key.
|
|
1884
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
1885
|
+
* @returns A single WindowPosSize
|
|
1886
|
+
*/
|
|
1887
|
+
public async getWindowPosSizeAsync(windowPosSizeId: number, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize > {
|
|
1888
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1889
|
+
base.WebApiBase.SetPending(options);
|
|
1890
|
+
return new Promise< carriers.WindowPosSize >(async (resolve, reject) => {
|
|
1891
|
+
try {
|
|
1892
|
+
const response = await this._axios.post("GetWindowPosSize?windowPosSizeId=" + windowPosSizeId, null, config);
|
|
1893
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1894
|
+
const res = converters.Create_WindowPosSize_From( response.data );
|
|
1895
|
+
resolve(res);
|
|
1896
|
+
}
|
|
1897
|
+
catch( err ) {
|
|
1898
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1899
|
+
reject(err);
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
private async _saveWindowPosSizeAsync(request: carriers.Configuration_SaveWindowPosSizeRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize > {
|
|
1906
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1907
|
+
base.WebApiBase.SetPending(options);
|
|
1908
|
+
return new Promise< carriers.WindowPosSize >(async (resolve, reject) => {
|
|
1909
|
+
try {
|
|
1910
|
+
config.baseURL = this._options.baseUrl;
|
|
1911
|
+
const response = await this._axios.post("SaveWindowPosSize", request , config);
|
|
1912
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1913
|
+
const res : carriers.WindowPosSize = converters.Create_WindowPosSize_From( response.data );
|
|
1914
|
+
resolve(res);
|
|
1915
|
+
}
|
|
1916
|
+
catch( err ) {
|
|
1917
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1918
|
+
reject(err);
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* Saves a window and dialog position and size setting.
|
|
1927
|
+
* @param request - WindowPosSize
|
|
1928
|
+
* @returns The saved item
|
|
1929
|
+
*/
|
|
1930
|
+
public async saveWindowPosSizeAsync(request: carriers.Configuration_SaveWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
|
|
1931
|
+
|
|
1932
|
+
/**
|
|
1933
|
+
* Saves a window and dialog position and size setting.
|
|
1934
|
+
* @param windowPosSize - The item that is saved
|
|
1935
|
+
* @returns The saved item
|
|
1936
|
+
*/
|
|
1937
|
+
public async saveWindowPosSizeAsync(windowPosSize: carriers.WindowPosSize, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize >;
|
|
1938
|
+
|
|
1939
|
+
public async saveWindowPosSizeAsync(windowPosSize:carriers.WindowPosSize|carriers.Configuration_SaveWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize > {
|
|
1940
|
+
let _request : carriers.Configuration_SaveWindowPosSizeRequest = null;
|
|
1941
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1942
|
+
const first : any = windowPosSize;
|
|
1943
|
+
if( typeof( first ) === "object" && first && ( typeof(first.windowPosSize)!='undefined' ) )
|
|
1944
|
+
{
|
|
1945
|
+
_request = windowPosSize as carriers.Configuration_SaveWindowPosSizeRequest;
|
|
1946
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
1947
|
+
}
|
|
1948
|
+
else
|
|
1949
|
+
{
|
|
1950
|
+
_request = {
|
|
1951
|
+
windowPosSize: windowPosSize as carriers.WindowPosSize,
|
|
1952
|
+
};
|
|
1953
|
+
_options = webapi_options;
|
|
1954
|
+
}
|
|
1955
|
+
return this._saveWindowPosSizeAsync( _request, _options );
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
private async _deleteWindowPosSizeAsync(request: carriers.Configuration_DeleteWindowPosSizeRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1960
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1961
|
+
base.WebApiBase.SetPending(options);
|
|
1962
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
1963
|
+
try {
|
|
1964
|
+
config.baseURL = this._options.baseUrl;
|
|
1965
|
+
const response = await this._axios.post("DeleteWindowPosSize", request , config);
|
|
1966
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1967
|
+
const res = response.data;
|
|
1968
|
+
resolve(res);
|
|
1969
|
+
}
|
|
1970
|
+
catch( err ) {
|
|
1971
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1972
|
+
reject(err);
|
|
1973
|
+
}
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
/**
|
|
1980
|
+
* Deletes a window and dialog position and size setting.
|
|
1981
|
+
* @param request - WindowPosSizeId
|
|
1982
|
+
* @returns
|
|
1983
|
+
*/
|
|
1984
|
+
public async deleteWindowPosSizeAsync(request: carriers.Configuration_DeleteWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* Deletes a window and dialog position and size setting.
|
|
1988
|
+
* @param windowPosSizeId - Id of the window and dialog position and size settings item.
|
|
1989
|
+
* @returns
|
|
1990
|
+
*/
|
|
1991
|
+
public async deleteWindowPosSizeAsync(windowPosSizeId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
1992
|
+
|
|
1993
|
+
public async deleteWindowPosSizeAsync(windowPosSizeId:number|carriers.Configuration_DeleteWindowPosSizeRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
1994
|
+
let _request : carriers.Configuration_DeleteWindowPosSizeRequest = null;
|
|
1995
|
+
let _options : base.WebApiRequestOptions = null;
|
|
1996
|
+
const first : any = windowPosSizeId;
|
|
1997
|
+
if( typeof( first ) === "object" && first && ( typeof(first.windowPosSizeId)!='undefined' ) )
|
|
1998
|
+
{
|
|
1999
|
+
_request = windowPosSizeId as carriers.Configuration_DeleteWindowPosSizeRequest;
|
|
2000
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
2001
|
+
}
|
|
2002
|
+
else
|
|
2003
|
+
{
|
|
2004
|
+
_request = {
|
|
2005
|
+
windowPosSizeId: windowPosSizeId as number,
|
|
2006
|
+
};
|
|
2007
|
+
_options = webapi_options;
|
|
2008
|
+
}
|
|
2009
|
+
return this._deleteWindowPosSizeAsync( _request, _options );
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* Gets an array of WindowPosSize objects.
|
|
2014
|
+
* @param windowPosSizeIds - The primary keys.
|
|
2015
|
+
* @param options - Override language/culture codes on this request. Provide cancellation and request status values.
|
|
2016
|
+
* @returns An array of WindowPosSize
|
|
2017
|
+
*/
|
|
2018
|
+
public async getWindowPosSizeListAsync(windowPosSizeIds: number[], options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2019
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2020
|
+
base.WebApiBase.SetPending(options);
|
|
2021
|
+
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2022
|
+
try {
|
|
2023
|
+
const response = await this._axios.post("GetWindowPosSizeList", windowPosSizeIds, config);
|
|
2024
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2025
|
+
const res = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2026
|
+
resolve(res);
|
|
2027
|
+
}
|
|
2028
|
+
catch( err ) {
|
|
2029
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2030
|
+
reject(err);
|
|
2031
|
+
}
|
|
2032
|
+
});
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
private async _getMyWindowPosSizesAsync( options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2037
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2038
|
+
base.WebApiBase.SetPending(options);
|
|
2039
|
+
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2040
|
+
try {
|
|
2041
|
+
config.baseURL = this._options.baseUrl;
|
|
2042
|
+
const response = await this._axios.post("GetMyWindowPosSizes", undefined , config);
|
|
2043
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2044
|
+
const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2045
|
+
resolve(res);
|
|
2046
|
+
}
|
|
2047
|
+
catch( err ) {
|
|
2048
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2049
|
+
reject(err);
|
|
2050
|
+
}
|
|
2051
|
+
});
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* Gets the window and dialog position and size settings belonging to the currently logged on user
|
|
2057
|
+
* @returns Array of window and dialog position and size settings
|
|
2058
|
+
*/
|
|
2059
|
+
public async getMyWindowPosSizesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >
|
|
2060
|
+
{
|
|
2061
|
+
return this._getMyWindowPosSizesAsync(webapi_options);
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
|
|
2065
|
+
private async _getWindowPosSizesOnPersonIdAsync(request: carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2066
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2067
|
+
base.WebApiBase.SetPending(options);
|
|
2068
|
+
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2069
|
+
try {
|
|
2070
|
+
config.baseURL = this._options.baseUrl;
|
|
2071
|
+
const response = await this._axios.post("GetWindowPosSizesOnPersonId", request , config);
|
|
2072
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2073
|
+
const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2074
|
+
resolve(res);
|
|
2075
|
+
}
|
|
2076
|
+
catch( err ) {
|
|
2077
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2078
|
+
reject(err);
|
|
2079
|
+
}
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Gets the window and dialog position and size settings belonging to the specified person
|
|
2087
|
+
* @param request - PersonId
|
|
2088
|
+
* @returns Array of window and dialog position and size settings
|
|
2089
|
+
*/
|
|
2090
|
+
public async getWindowPosSizesOnPersonIdAsync(request: carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* Gets the window and dialog position and size settings belonging to the specified person
|
|
2094
|
+
* @param personId - Person id of the associate owning these window settings
|
|
2095
|
+
* @returns Array of window and dialog position and size settings
|
|
2096
|
+
*/
|
|
2097
|
+
public async getWindowPosSizesOnPersonIdAsync(personId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2098
|
+
|
|
2099
|
+
public async getWindowPosSizesOnPersonIdAsync(personId:number|carriers.Configuration_GetWindowPosSizesOnPersonIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2100
|
+
let _request : carriers.Configuration_GetWindowPosSizesOnPersonIdRequest = null;
|
|
2101
|
+
let _options : base.WebApiRequestOptions = null;
|
|
2102
|
+
const first : any = personId;
|
|
2103
|
+
if( typeof( first ) === "object" && first && ( typeof(first.personId)!='undefined' ) )
|
|
2104
|
+
{
|
|
2105
|
+
_request = personId as carriers.Configuration_GetWindowPosSizesOnPersonIdRequest;
|
|
2106
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
2107
|
+
}
|
|
2108
|
+
else
|
|
2109
|
+
{
|
|
2110
|
+
_request = {
|
|
2111
|
+
personId: personId as number,
|
|
2112
|
+
};
|
|
2113
|
+
_options = webapi_options;
|
|
2114
|
+
}
|
|
2115
|
+
return this._getWindowPosSizesOnPersonIdAsync( _request, _options );
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
private async _getWindowPosSizesOnAssociateIdAsync(request: carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2120
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2121
|
+
base.WebApiBase.SetPending(options);
|
|
2122
|
+
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2123
|
+
try {
|
|
2124
|
+
config.baseURL = this._options.baseUrl;
|
|
2125
|
+
const response = await this._axios.post("GetWindowPosSizesOnAssociateId", request , config);
|
|
2126
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2127
|
+
const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2128
|
+
resolve(res);
|
|
2129
|
+
}
|
|
2130
|
+
catch( err ) {
|
|
2131
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2132
|
+
reject(err);
|
|
2133
|
+
}
|
|
2134
|
+
});
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* Gets the window and dialog position and size settings belonging to the specified associate
|
|
2141
|
+
* @param request - AssociateId
|
|
2142
|
+
* @returns Array of window and dialog position and size settings
|
|
2143
|
+
*/
|
|
2144
|
+
public async getWindowPosSizesOnAssociateIdAsync(request: carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* Gets the window and dialog position and size settings belonging to the specified associate
|
|
2148
|
+
* @param associateId - Associate id of the Associate/Person owning these window settings
|
|
2149
|
+
* @returns Array of window and dialog position and size settings
|
|
2150
|
+
*/
|
|
2151
|
+
public async getWindowPosSizesOnAssociateIdAsync(associateId: number, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2152
|
+
|
|
2153
|
+
public async getWindowPosSizesOnAssociateIdAsync(associateId:number|carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2154
|
+
let _request : carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest = null;
|
|
2155
|
+
let _options : base.WebApiRequestOptions = null;
|
|
2156
|
+
const first : any = associateId;
|
|
2157
|
+
if( typeof( first ) === "object" && first && ( typeof(first.associateId)!='undefined' ) )
|
|
2158
|
+
{
|
|
2159
|
+
_request = associateId as carriers.Configuration_GetWindowPosSizesOnAssociateIdRequest;
|
|
2160
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
2161
|
+
}
|
|
2162
|
+
else
|
|
2163
|
+
{
|
|
2164
|
+
_request = {
|
|
2165
|
+
associateId: associateId as number,
|
|
2166
|
+
};
|
|
2167
|
+
_options = webapi_options;
|
|
2168
|
+
}
|
|
2169
|
+
return this._getWindowPosSizesOnAssociateIdAsync( _request, _options );
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
|
|
2173
|
+
private async _saveWindowPosSizesAsync(request: carriers.Configuration_SaveWindowPosSizesRequest, options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2174
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2175
|
+
base.WebApiBase.SetPending(options);
|
|
2176
|
+
return new Promise< carriers.WindowPosSize[] >(async (resolve, reject) => {
|
|
2177
|
+
try {
|
|
2178
|
+
config.baseURL = this._options.baseUrl;
|
|
2179
|
+
const response = await this._axios.post("SaveWindowPosSizes", request , config);
|
|
2180
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2181
|
+
const res : carriers.WindowPosSize[] = converters.Create_WindowPosSizeArray_From( response.data );
|
|
2182
|
+
resolve(res);
|
|
2183
|
+
}
|
|
2184
|
+
catch( err ) {
|
|
2185
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2186
|
+
reject(err);
|
|
2187
|
+
}
|
|
2188
|
+
});
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* Saves a set of window and dialog position and size settings.
|
|
2195
|
+
* @param request - WindowPosSizes
|
|
2196
|
+
* @returns The saved items
|
|
2197
|
+
*/
|
|
2198
|
+
public async saveWindowPosSizesAsync(request: carriers.Configuration_SaveWindowPosSizesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* Saves a set of window and dialog position and size settings.
|
|
2202
|
+
* @param windowPosSizes - The items that are saved
|
|
2203
|
+
* @returns The saved items
|
|
2204
|
+
*/
|
|
2205
|
+
public async saveWindowPosSizesAsync(windowPosSizes: carriers.WindowPosSize[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] >;
|
|
2206
|
+
|
|
2207
|
+
public async saveWindowPosSizesAsync(windowPosSizes:carriers.WindowPosSize[]|carriers.Configuration_SaveWindowPosSizesRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.WindowPosSize[] > {
|
|
2208
|
+
let _request : carriers.Configuration_SaveWindowPosSizesRequest = null;
|
|
2209
|
+
let _options : base.WebApiRequestOptions = null;
|
|
2210
|
+
const first : any = windowPosSizes;
|
|
2211
|
+
if( typeof( first ) === "object" && first && ( typeof(first.windowPosSizes)!='undefined' ) )
|
|
2212
|
+
{
|
|
2213
|
+
_request = windowPosSizes as carriers.Configuration_SaveWindowPosSizesRequest;
|
|
2214
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
2215
|
+
}
|
|
2216
|
+
else
|
|
2217
|
+
{
|
|
2218
|
+
_request = {
|
|
2219
|
+
windowPosSizes: windowPosSizes as carriers.WindowPosSize[],
|
|
2220
|
+
};
|
|
2221
|
+
_options = webapi_options;
|
|
2222
|
+
}
|
|
2223
|
+
return this._saveWindowPosSizesAsync( _request, _options );
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
} // class v1ConfigurationAgentController
|
|
2227
|
+
|
|
2228
|
+
|