@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.
Files changed (111) hide show
  1. package/dist/cjs/AIAgent.d.ts +4 -4
  2. package/dist/cjs/Carriers.d.ts +625 -19
  3. package/dist/cjs/Carriers.d.ts.map +1 -1
  4. package/dist/cjs/ConfigurationAgent.d.ts +38 -0
  5. package/dist/cjs/ConfigurationAgent.d.ts.map +1 -1
  6. package/dist/cjs/ConfigurationAgent.js +91 -0
  7. package/dist/cjs/ConfigurationAgent.js.map +1 -1
  8. package/dist/cjs/Converters.d.ts +27 -0
  9. package/dist/cjs/Converters.d.ts.map +1 -1
  10. package/dist/cjs/Converters.js +414 -26
  11. package/dist/cjs/Converters.js.map +1 -1
  12. package/dist/cjs/DiagnosticsAgent.d.ts +5 -5
  13. package/dist/cjs/DiagnosticsAgent.js +5 -5
  14. package/dist/cjs/Enums.d.ts +121 -3
  15. package/dist/cjs/Enums.d.ts.map +1 -1
  16. package/dist/cjs/Enums.js +128 -6
  17. package/dist/cjs/Enums.js.map +1 -1
  18. package/dist/cjs/FreeTextAgent.d.ts +2 -2
  19. package/dist/cjs/ImportAgent.d.ts +5 -5
  20. package/dist/cjs/ListAgent.d.ts +31 -0
  21. package/dist/cjs/ListAgent.d.ts.map +1 -1
  22. package/dist/cjs/ListAgent.js +67 -0
  23. package/dist/cjs/ListAgent.js.map +1 -1
  24. package/dist/cjs/MentionAgent.d.ts +96 -0
  25. package/dist/cjs/MentionAgent.d.ts.map +1 -0
  26. package/dist/cjs/MentionAgent.js +203 -0
  27. package/dist/cjs/MentionAgent.js.map +1 -0
  28. package/dist/cjs/NewsFeedAgent.d.ts +45 -0
  29. package/dist/cjs/NewsFeedAgent.d.ts.map +1 -1
  30. package/dist/cjs/NewsFeedAgent.js +99 -0
  31. package/dist/cjs/NewsFeedAgent.js.map +1 -1
  32. package/dist/cjs/ProjectAgent.d.ts +48 -0
  33. package/dist/cjs/ProjectAgent.d.ts.map +1 -1
  34. package/dist/cjs/ProjectAgent.js +102 -0
  35. package/dist/cjs/ProjectAgent.js.map +1 -1
  36. package/dist/cjs/ProjectRestApi.d.ts.map +1 -1
  37. package/dist/cjs/ProjectRestApi.js.map +1 -1
  38. package/dist/cjs/SaleAgent.d.ts +79 -0
  39. package/dist/cjs/SaleAgent.d.ts.map +1 -1
  40. package/dist/cjs/SaleAgent.js +169 -0
  41. package/dist/cjs/SaleAgent.js.map +1 -1
  42. package/dist/cjs/SaleRestApi.d.ts.map +1 -1
  43. package/dist/cjs/SaleRestApi.js.map +1 -1
  44. package/dist/cjs/WebApi.d.ts +6 -0
  45. package/dist/cjs/WebApi.d.ts.map +1 -1
  46. package/dist/cjs/WebApi.js +11 -2
  47. package/dist/cjs/WebApi.js.map +1 -1
  48. package/dist/esm/AIAgent.d.ts +4 -4
  49. package/dist/esm/Carriers.d.ts +625 -19
  50. package/dist/esm/Carriers.d.ts.map +1 -1
  51. package/dist/esm/ConfigurationAgent.d.ts +38 -0
  52. package/dist/esm/ConfigurationAgent.d.ts.map +1 -1
  53. package/dist/esm/ConfigurationAgent.js +91 -0
  54. package/dist/esm/ConfigurationAgent.js.map +1 -1
  55. package/dist/esm/Converters.d.ts +27 -0
  56. package/dist/esm/Converters.d.ts.map +1 -1
  57. package/dist/esm/Converters.js +360 -0
  58. package/dist/esm/Converters.js.map +1 -1
  59. package/dist/esm/DiagnosticsAgent.d.ts +5 -5
  60. package/dist/esm/DiagnosticsAgent.js +5 -5
  61. package/dist/esm/Enums.d.ts +121 -3
  62. package/dist/esm/Enums.d.ts.map +1 -1
  63. package/dist/esm/Enums.js +123 -1
  64. package/dist/esm/Enums.js.map +1 -1
  65. package/dist/esm/FreeTextAgent.d.ts +2 -2
  66. package/dist/esm/ImportAgent.d.ts +5 -5
  67. package/dist/esm/ListAgent.d.ts +31 -0
  68. package/dist/esm/ListAgent.d.ts.map +1 -1
  69. package/dist/esm/ListAgent.js +67 -0
  70. package/dist/esm/ListAgent.js.map +1 -1
  71. package/dist/esm/MentionAgent.d.ts +96 -0
  72. package/dist/esm/MentionAgent.d.ts.map +1 -0
  73. package/dist/esm/MentionAgent.js +198 -0
  74. package/dist/esm/MentionAgent.js.map +1 -0
  75. package/dist/esm/NewsFeedAgent.d.ts +45 -0
  76. package/dist/esm/NewsFeedAgent.d.ts.map +1 -1
  77. package/dist/esm/NewsFeedAgent.js +99 -0
  78. package/dist/esm/NewsFeedAgent.js.map +1 -1
  79. package/dist/esm/ProjectAgent.d.ts +48 -0
  80. package/dist/esm/ProjectAgent.d.ts.map +1 -1
  81. package/dist/esm/ProjectAgent.js +102 -0
  82. package/dist/esm/ProjectAgent.js.map +1 -1
  83. package/dist/esm/ProjectRestApi.d.ts.map +1 -1
  84. package/dist/esm/ProjectRestApi.js.map +1 -1
  85. package/dist/esm/SaleAgent.d.ts +79 -0
  86. package/dist/esm/SaleAgent.d.ts.map +1 -1
  87. package/dist/esm/SaleAgent.js +169 -0
  88. package/dist/esm/SaleAgent.js.map +1 -1
  89. package/dist/esm/SaleRestApi.d.ts.map +1 -1
  90. package/dist/esm/SaleRestApi.js.map +1 -1
  91. package/dist/esm/WebApi.d.ts +6 -0
  92. package/dist/esm/WebApi.d.ts.map +1 -1
  93. package/dist/esm/WebApi.js +9 -0
  94. package/dist/esm/WebApi.js.map +1 -1
  95. package/package.json +4 -4
  96. package/src/AIAgent.ts +4 -4
  97. package/src/Carriers.ts +821 -19
  98. package/src/ConfigurationAgent.ts +144 -0
  99. package/src/Converters.ts +418 -0
  100. package/src/DiagnosticsAgent.ts +5 -5
  101. package/src/Enums.ts +127 -1
  102. package/src/FreeTextAgent.ts +2 -2
  103. package/src/ImportAgent.ts +5 -5
  104. package/src/ListAgent.ts +114 -0
  105. package/src/MentionAgent.ts +346 -0
  106. package/src/NewsFeedAgent.ts +168 -0
  107. package/src/ProjectAgent.ts +174 -0
  108. package/src/ProjectRestApi.ts +2 -0
  109. package/src/SaleAgent.ts +288 -0
  110. package/src/SaleRestApi.ts +2 -0
  111. 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&apos;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&apos;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&apos;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&apos;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&apos;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.