@superoffice/webapi 12.4.1514 → 12.6.1407
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AIAgent.d.ts +4 -4
- package/dist/cjs/Carriers.d.ts +625 -19
- package/dist/cjs/Carriers.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.d.ts +38 -0
- package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
- package/dist/cjs/ConfigurationAgent.js +91 -0
- package/dist/cjs/ConfigurationAgent.js.map +1 -1
- package/dist/cjs/Converters.d.ts +27 -0
- package/dist/cjs/Converters.d.ts.map +1 -1
- package/dist/cjs/Converters.js +414 -26
- package/dist/cjs/Converters.js.map +1 -1
- package/dist/cjs/DiagnosticsAgent.d.ts +5 -5
- package/dist/cjs/DiagnosticsAgent.js +5 -5
- package/dist/cjs/Enums.d.ts +121 -3
- package/dist/cjs/Enums.d.ts.map +1 -1
- package/dist/cjs/Enums.js +128 -6
- package/dist/cjs/Enums.js.map +1 -1
- package/dist/cjs/FreeTextAgent.d.ts +2 -2
- package/dist/cjs/ImportAgent.d.ts +5 -5
- package/dist/cjs/ListAgent.d.ts +31 -0
- package/dist/cjs/ListAgent.d.ts.map +1 -1
- package/dist/cjs/ListAgent.js +67 -0
- package/dist/cjs/ListAgent.js.map +1 -1
- package/dist/cjs/MentionAgent.d.ts +96 -0
- package/dist/cjs/MentionAgent.d.ts.map +1 -0
- package/dist/cjs/MentionAgent.js +203 -0
- package/dist/cjs/MentionAgent.js.map +1 -0
- package/dist/cjs/NewsFeedAgent.d.ts +45 -0
- package/dist/cjs/NewsFeedAgent.d.ts.map +1 -1
- package/dist/cjs/NewsFeedAgent.js +99 -0
- package/dist/cjs/NewsFeedAgent.js.map +1 -1
- package/dist/cjs/ProjectAgent.d.ts +48 -0
- package/dist/cjs/ProjectAgent.d.ts.map +1 -1
- package/dist/cjs/ProjectAgent.js +102 -0
- package/dist/cjs/ProjectAgent.js.map +1 -1
- package/dist/cjs/ProjectRestApi.d.ts.map +1 -1
- package/dist/cjs/ProjectRestApi.js.map +1 -1
- package/dist/cjs/SaleAgent.d.ts +79 -0
- package/dist/cjs/SaleAgent.d.ts.map +1 -1
- package/dist/cjs/SaleAgent.js +169 -0
- package/dist/cjs/SaleAgent.js.map +1 -1
- package/dist/cjs/SaleRestApi.d.ts.map +1 -1
- package/dist/cjs/SaleRestApi.js.map +1 -1
- package/dist/cjs/WebApi.d.ts +6 -0
- package/dist/cjs/WebApi.d.ts.map +1 -1
- package/dist/cjs/WebApi.js +11 -2
- package/dist/cjs/WebApi.js.map +1 -1
- package/dist/esm/AIAgent.d.ts +4 -4
- package/dist/esm/Carriers.d.ts +625 -19
- package/dist/esm/Carriers.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.d.ts +38 -0
- package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
- package/dist/esm/ConfigurationAgent.js +91 -0
- package/dist/esm/ConfigurationAgent.js.map +1 -1
- package/dist/esm/Converters.d.ts +27 -0
- package/dist/esm/Converters.d.ts.map +1 -1
- package/dist/esm/Converters.js +360 -0
- package/dist/esm/Converters.js.map +1 -1
- package/dist/esm/DiagnosticsAgent.d.ts +5 -5
- package/dist/esm/DiagnosticsAgent.js +5 -5
- package/dist/esm/Enums.d.ts +121 -3
- package/dist/esm/Enums.d.ts.map +1 -1
- package/dist/esm/Enums.js +123 -1
- package/dist/esm/Enums.js.map +1 -1
- package/dist/esm/FreeTextAgent.d.ts +2 -2
- package/dist/esm/ImportAgent.d.ts +5 -5
- package/dist/esm/ListAgent.d.ts +31 -0
- package/dist/esm/ListAgent.d.ts.map +1 -1
- package/dist/esm/ListAgent.js +67 -0
- package/dist/esm/ListAgent.js.map +1 -1
- package/dist/esm/MentionAgent.d.ts +96 -0
- package/dist/esm/MentionAgent.d.ts.map +1 -0
- package/dist/esm/MentionAgent.js +198 -0
- package/dist/esm/MentionAgent.js.map +1 -0
- package/dist/esm/NewsFeedAgent.d.ts +45 -0
- package/dist/esm/NewsFeedAgent.d.ts.map +1 -1
- package/dist/esm/NewsFeedAgent.js +99 -0
- package/dist/esm/NewsFeedAgent.js.map +1 -1
- package/dist/esm/ProjectAgent.d.ts +48 -0
- package/dist/esm/ProjectAgent.d.ts.map +1 -1
- package/dist/esm/ProjectAgent.js +102 -0
- package/dist/esm/ProjectAgent.js.map +1 -1
- package/dist/esm/ProjectRestApi.d.ts.map +1 -1
- package/dist/esm/ProjectRestApi.js.map +1 -1
- package/dist/esm/SaleAgent.d.ts +79 -0
- package/dist/esm/SaleAgent.d.ts.map +1 -1
- package/dist/esm/SaleAgent.js +169 -0
- package/dist/esm/SaleAgent.js.map +1 -1
- package/dist/esm/SaleRestApi.d.ts.map +1 -1
- package/dist/esm/SaleRestApi.js.map +1 -1
- package/dist/esm/WebApi.d.ts +6 -0
- package/dist/esm/WebApi.d.ts.map +1 -1
- package/dist/esm/WebApi.js +9 -0
- package/dist/esm/WebApi.js.map +1 -1
- package/package.json +4 -4
- package/src/AIAgent.ts +4 -4
- package/src/Carriers.ts +821 -19
- package/src/ConfigurationAgent.ts +144 -0
- package/src/Converters.ts +418 -0
- package/src/DiagnosticsAgent.ts +5 -5
- package/src/Enums.ts +127 -1
- package/src/FreeTextAgent.ts +2 -2
- package/src/ImportAgent.ts +5 -5
- package/src/ListAgent.ts +114 -0
- package/src/MentionAgent.ts +346 -0
- package/src/NewsFeedAgent.ts +168 -0
- package/src/ProjectAgent.ts +174 -0
- package/src/ProjectRestApi.ts +2 -0
- package/src/SaleAgent.ts +288 -0
- package/src/SaleRestApi.ts +2 -0
- package/src/WebApi.ts +12 -0
|
@@ -91,6 +91,7 @@ export interface IConfigurationAgent {
|
|
|
91
91
|
getSpfDomainAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
92
92
|
getAllFeatureTogglesAsync(webapi_options?:base.WebApiRequestOptions) : Promise< carriers.StringBoolDictionary >;
|
|
93
93
|
getCsCgiUrlAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
94
|
+
getActiveFeatureLabsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >;
|
|
94
95
|
getDiaryViewEntityAsync(diaryViewEntityId: number) : Promise< carriers.DiaryViewEntity >;
|
|
95
96
|
getLandingPageEntityAsync(landingPageEntityId: number) : Promise< carriers.LandingPageEntity >;
|
|
96
97
|
getLandingPageAsync(request: carriers.Configuration_GetLandingPageRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
|
|
@@ -99,6 +100,10 @@ export interface IConfigurationAgent {
|
|
|
99
100
|
setLandingPagePinForAssociateAsync(pin: boolean, associateId: number, entityTableName: string, pinTableName: string, recordId: number, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
100
101
|
saveLandingPageTabsAsync(request: carriers.Configuration_SaveLandingPageTabsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
|
|
101
102
|
saveLandingPageTabsAsync(associateId: number, entityTableName: string, tabs: carriers.LandingPageTab[], webapi_options?:base.WebApiRequestOptions) : Promise< carriers.LandingPageEntity >;
|
|
103
|
+
getLandingPageOverviewSettingsAsync(request: carriers.Configuration_GetLandingPageOverviewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
104
|
+
getLandingPageOverviewSettingsAsync(entityTableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
105
|
+
setLandingPageOverviewSettingsAsync(request: carriers.Configuration_SetLandingPageOverviewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
106
|
+
setLandingPageOverviewSettingsAsync(entityTableName: string, overviewSettings: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
102
107
|
getSystemEventEntityAsync(systemEventEntityId: number) : Promise< carriers.SystemEventEntity >;
|
|
103
108
|
existsSystemEventAsync(request: carriers.Configuration_ExistsSystemEventRequest, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
104
109
|
existsSystemEventAsync(key: string, webapi_options?:base.WebApiRequestOptions) : Promise< boolean >;
|
|
@@ -1885,6 +1890,35 @@ export class ConfigurationAgent extends base.WebApiBase implements IConfiguratio
|
|
|
1885
1890
|
return this._getCsCgiUrlAsync(webapi_options);
|
|
1886
1891
|
}
|
|
1887
1892
|
|
|
1893
|
+
|
|
1894
|
+
private async _getActiveFeatureLabsAsync( options?:base.WebApiRequestOptions) : Promise< string[] > {
|
|
1895
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
1896
|
+
base.WebApiBase.SetPending(options);
|
|
1897
|
+
return new Promise< string[] >(async (resolve, reject) => {
|
|
1898
|
+
try {
|
|
1899
|
+
config.baseURL = this._options.baseUrl;
|
|
1900
|
+
const response = await this._axios.post("GetActiveFeatureLabs", undefined , config);
|
|
1901
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
1902
|
+
const res : string[] = response.data as string[];
|
|
1903
|
+
resolve(res);
|
|
1904
|
+
}
|
|
1905
|
+
catch( err ) {
|
|
1906
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
1907
|
+
reject(err);
|
|
1908
|
+
}
|
|
1909
|
+
});
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
/**
|
|
1914
|
+
* Get the names of the Feature Labs (preview programs) currently active for this tenant. Returns an empty array when the tenant has no active Feature Labs. Intended for the Admin client's License page.
|
|
1915
|
+
* @returns Names of the active Feature Labs. Empty if none.
|
|
1916
|
+
*/
|
|
1917
|
+
public async getActiveFeatureLabsAsync(webapi_options?:base.WebApiRequestOptions) : Promise< string[] >
|
|
1918
|
+
{
|
|
1919
|
+
return this._getActiveFeatureLabsAsync(webapi_options);
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1888
1922
|
/**
|
|
1889
1923
|
* Gets a DiaryViewEntity object.
|
|
1890
1924
|
* @param diaryViewEntityId - The primary key.
|
|
@@ -2107,6 +2141,116 @@ export class ConfigurationAgent extends base.WebApiBase implements IConfiguratio
|
|
|
2107
2141
|
return this._saveLandingPageTabsAsync( _request, _options );
|
|
2108
2142
|
}
|
|
2109
2143
|
|
|
2144
|
+
|
|
2145
|
+
private async _getLandingPageOverviewSettingsAsync(request: carriers.Configuration_GetLandingPageOverviewSettingsRequest, options?:base.WebApiRequestOptions) : Promise< string > {
|
|
2146
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2147
|
+
base.WebApiBase.SetPending(options);
|
|
2148
|
+
return new Promise< string >(async (resolve, reject) => {
|
|
2149
|
+
try {
|
|
2150
|
+
config.baseURL = this._options.baseUrl;
|
|
2151
|
+
const response = await this._axios.post("GetLandingPageOverviewSettings", request , config);
|
|
2152
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2153
|
+
const res : string = response.data as string;
|
|
2154
|
+
resolve(res);
|
|
2155
|
+
}
|
|
2156
|
+
catch( err ) {
|
|
2157
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2158
|
+
reject(err);
|
|
2159
|
+
}
|
|
2160
|
+
});
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
|
|
2164
|
+
|
|
2165
|
+
/**
|
|
2166
|
+
* Get the current associate's overview layout for a landing page, as JSON owned by the client. Returns an empty string when none is saved, meaning the delivered default.
|
|
2167
|
+
* @param request - EntityTableName
|
|
2168
|
+
* @returns The overview layout JSON, or an empty string.
|
|
2169
|
+
*/
|
|
2170
|
+
public async getLandingPageOverviewSettingsAsync(request: carriers.Configuration_GetLandingPageOverviewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* Get the current associate's overview layout for a landing page, as JSON owned by the client. Returns an empty string when none is saved, meaning the delivered default.
|
|
2174
|
+
* @param entityTableName - Entity table name identifying which landing page (ticket, s_shipment, ...).
|
|
2175
|
+
* @returns The overview layout JSON, or an empty string.
|
|
2176
|
+
*/
|
|
2177
|
+
public async getLandingPageOverviewSettingsAsync(entityTableName: string, webapi_options?:base.WebApiRequestOptions) : Promise< string >;
|
|
2178
|
+
|
|
2179
|
+
public async getLandingPageOverviewSettingsAsync(entityTableName:string|carriers.Configuration_GetLandingPageOverviewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< string > {
|
|
2180
|
+
let _request : carriers.Configuration_GetLandingPageOverviewSettingsRequest = null;
|
|
2181
|
+
let _options : base.WebApiRequestOptions = null;
|
|
2182
|
+
const first : any = entityTableName;
|
|
2183
|
+
if( typeof( first ) === "object" && first && ( typeof(first.entityTableName)!='undefined' ) )
|
|
2184
|
+
{
|
|
2185
|
+
_request = entityTableName as carriers.Configuration_GetLandingPageOverviewSettingsRequest;
|
|
2186
|
+
_options = webapi_options as base.WebApiRequestOptions;
|
|
2187
|
+
}
|
|
2188
|
+
else
|
|
2189
|
+
{
|
|
2190
|
+
_request = {
|
|
2191
|
+
entityTableName: entityTableName as string,
|
|
2192
|
+
};
|
|
2193
|
+
_options = webapi_options;
|
|
2194
|
+
}
|
|
2195
|
+
return this._getLandingPageOverviewSettingsAsync( _request, _options );
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
|
|
2199
|
+
private async _setLandingPageOverviewSettingsAsync(request: carriers.Configuration_SetLandingPageOverviewSettingsRequest, options?:base.WebApiRequestOptions) : Promise< void > {
|
|
2200
|
+
const config : AxiosRequestConfig = base.WebApiBase.GetAxiosRequestConfig(options, this._options);
|
|
2201
|
+
base.WebApiBase.SetPending(options);
|
|
2202
|
+
return new Promise< void >(async (resolve, reject) => {
|
|
2203
|
+
try {
|
|
2204
|
+
config.baseURL = this._options.baseUrl;
|
|
2205
|
+
const response = await this._axios.post("SetLandingPageOverviewSettings", request , config);
|
|
2206
|
+
base.WebApiBase.SetCompleted(options, response);
|
|
2207
|
+
const res = response.data;
|
|
2208
|
+
resolve(res);
|
|
2209
|
+
}
|
|
2210
|
+
catch( err ) {
|
|
2211
|
+
base.WebApiBase.HandleError(options, config, err);
|
|
2212
|
+
reject(err);
|
|
2213
|
+
}
|
|
2214
|
+
});
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* Save the current associate's overview layout for a landing page, as JSON owned by the client. An empty value resets it to the delivered default. Creates the landing page row if it does not exist.
|
|
2221
|
+
* @param request - EntityTableName, OverviewSettings
|
|
2222
|
+
* @returns This method has no return value
|
|
2223
|
+
*/
|
|
2224
|
+
public async setLandingPageOverviewSettingsAsync(request: carriers.Configuration_SetLandingPageOverviewSettingsRequest, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
2225
|
+
|
|
2226
|
+
/**
|
|
2227
|
+
* Save the current associate's overview layout for a landing page, as JSON owned by the client. An empty value resets it to the delivered default. Creates the landing page row if it does not exist.
|
|
2228
|
+
* @param entityTableName - Entity table name identifying which landing page (ticket, s_shipment, ...).
|
|
2229
|
+
* @param overviewSettings - The overview layout JSON, at most 65,536 characters. Empty resets to the delivered default.
|
|
2230
|
+
* @returns This method has no return value
|
|
2231
|
+
*/
|
|
2232
|
+
public async setLandingPageOverviewSettingsAsync(entityTableName: string, overviewSettings: string, webapi_options?:base.WebApiRequestOptions) : Promise< void >;
|
|
2233
|
+
|
|
2234
|
+
public async setLandingPageOverviewSettingsAsync(entityTableName:string|carriers.Configuration_SetLandingPageOverviewSettingsRequest, overviewSettings?:string|base.WebApiRequestOptions, webapi_options?:base.WebApiRequestOptions) : Promise< void > {
|
|
2235
|
+
let _request : carriers.Configuration_SetLandingPageOverviewSettingsRequest = null;
|
|
2236
|
+
let _options : base.WebApiRequestOptions = null;
|
|
2237
|
+
const first : any = entityTableName;
|
|
2238
|
+
if( typeof( first ) === "object" && first && ( typeof(first.entityTableName)!='undefined' || typeof(first.overviewSettings)!='undefined' ) )
|
|
2239
|
+
{
|
|
2240
|
+
_request = entityTableName as carriers.Configuration_SetLandingPageOverviewSettingsRequest;
|
|
2241
|
+
_options = overviewSettings as base.WebApiRequestOptions;
|
|
2242
|
+
}
|
|
2243
|
+
else
|
|
2244
|
+
{
|
|
2245
|
+
_request = {
|
|
2246
|
+
entityTableName: entityTableName as string,
|
|
2247
|
+
overviewSettings: overviewSettings as string,
|
|
2248
|
+
};
|
|
2249
|
+
_options = webapi_options;
|
|
2250
|
+
}
|
|
2251
|
+
return this._setLandingPageOverviewSettingsAsync( _request, _options );
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2110
2254
|
/**
|
|
2111
2255
|
* Gets a SystemEventEntity object.
|
|
2112
2256
|
* @param systemEventEntityId - The primary key.
|