@agravity/private 9.4.0 → 10.0.0
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/.openapi-generator/FILES +11 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +97 -142
- package/api/aIOperations.agravity.ts +878 -0
- package/api/api.ts +9 -3
- package/api/assetIconRuleManagement.agravity.ts +59 -190
- package/api/assetManagement.agravity.ts +118 -355
- package/api/assetOperations.agravity.ts +290 -917
- package/api/assetPublishing.agravity.ts +107 -288
- package/api/assetRelationManagement.agravity.ts +61 -196
- package/api/assetRelationTypeManagement.agravity.ts +70 -215
- package/api/assetVersioning.agravity.ts +105 -300
- package/api/authenticationManagement.agravity.ts +137 -392
- package/api/collectionManagement.agravity.ts +217 -376
- package/api/collectionShareManagement.agravity.ts +59 -190
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
- package/api/collectionTypeManagement.agravity.ts +91 -270
- package/api/commentsManagement.agravity.ts +48 -157
- package/api/configurationManagement.agravity.ts +53 -180
- package/api/dashboardWidgetManagement.agravity.ts +56 -181
- package/api/dataImportExportManagement.agravity.ts +58 -203
- package/api/downloadFormatManagement.agravity.ts +70 -215
- package/api/downloadZip.agravity.ts +37 -132
- package/api/generalManagement.agravity.ts +64 -229
- package/api/helperTools.agravity.ts +214 -404
- package/api/historyEntryManagement.agravity.ts +16 -85
- package/api/iccProfileManagement.agravity.ts +11 -78
- package/api/listBlobs.agravity.ts +18 -99
- package/api/listQueues.agravity.ts +11 -78
- package/api/listTables.agravity.ts +11 -78
- package/api/notificationManagement.agravity.ts +267 -0
- package/api/permissionsManagement.agravity.ts +44 -153
- package/api/portalManagement.agravity.ts +88 -253
- package/api/portalsUsersManagement.agravity.ts +55 -178
- package/api/publishing.agravity.ts +13 -84
- package/api/quickshareManagement.agravity.ts +67 -214
- package/api/savedSearchManagement.agravity.ts +37 -140
- package/api/searchManagement.agravity.ts +102 -327
- package/api/searchSettingsOperations.agravity.ts +187 -0
- package/api/secureUpload.agravity.ts +68 -209
- package/api/signalRConnectionManagement.agravity.ts +26 -109
- package/api/staticDefinedListManagement.agravity.ts +60 -193
- package/api/stockImport.agravity.ts +31 -122
- package/api/structureImport.agravity.ts +11 -78
- package/api/translationManagement.agravity.ts +86 -229
- package/api/webAppData.agravity.ts +48 -157
- package/api/widgetLayoutManagement.agravity.ts +22 -103
- package/api/wordpressManagement.agravity.ts +34 -131
- package/api/workspaceManagement.agravity.ts +77 -236
- package/api.base.service.ts +78 -0
- package/configuration.ts +33 -17
- package/index.ts +1 -0
- package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
- package/model/aiFieldGeneration.agravity.ts +1 -5
- package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
- package/model/aiSettings.agravity.ts +4 -3
- package/model/aiTypeSettings.agravity.ts +17 -0
- package/model/asset.agravity.ts +6 -6
- package/model/assetBlob.agravity.ts +15 -15
- package/model/assetIconRule.agravity.ts +1 -1
- package/model/assetRelationType.agravity.ts +1 -1
- package/model/azureIdentity.agravity.ts +7 -7
- package/model/collTypeItem.agravity.ts +1 -1
- package/model/collTypeItemBlueprint.agravity.ts +1 -1
- package/model/collection.agravity.ts +6 -6
- package/model/collectionType.agravity.ts +6 -6
- package/model/collectionUDL.agravity.ts +1 -1
- package/model/dashboardWidget.agravity.ts +1 -1
- package/model/downloadFormat.agravity.ts +1 -1
- package/model/downloadZipRequest.agravity.ts +6 -6
- package/model/downloadZipStatus.agravity.ts +6 -6
- package/model/entityIdName.agravity.ts +1 -1
- package/model/entityTranslations.agravity.ts +1 -1
- package/model/groupAllAppData.agravity.ts +1 -1
- package/model/historyEntry.agravity.ts +16 -30
- package/model/models.ts +5 -2
- package/model/notificationSettingDto.agravity.ts +18 -0
- package/model/permissionChange.agravity.ts +7 -7
- package/model/permissionEntity.agravity.ts +5 -5
- package/model/portalAuthentication.agravity.ts +7 -7
- package/model/portalTheme.agravity.ts +1 -1
- package/model/publishedAsset.agravity.ts +1 -1
- package/model/savedSearch.agravity.ts +1 -1
- package/model/searchSettings.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +1 -1
- package/model/uiTutorials.agravity.ts +4 -4
- package/model/whereParam.agravity.ts +17 -17
- package/model/workspace.agravity.ts +1 -1
- package/package.json +5 -4
- package/provide-api.ts +15 -0
- package/tsconfig.json +2 -0
- package/api/aISettingsManagement.agravity.ts +0 -264
|
@@ -26,6 +26,7 @@ import { GroupAllAppData } from '../model/groupAllAppData.agravity';
|
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
28
28
|
import { AgravityConfiguration } from '../configuration';
|
|
29
|
+
import { BaseService } from '../api.base.service';
|
|
29
30
|
|
|
30
31
|
export interface HttpGetDataCollectionTypeRequestParams {
|
|
31
32
|
/** The ID of the collection type for which this web data should be prepared. */
|
|
@@ -50,67 +51,13 @@ export interface HttpPostWebAppDataRequestParams {
|
|
|
50
51
|
@Injectable({
|
|
51
52
|
providedIn: 'root'
|
|
52
53
|
})
|
|
53
|
-
export class WebAppDataService {
|
|
54
|
-
protected basePath = 'http://localhost:7071/api';
|
|
55
|
-
public defaultHeaders = new HttpHeaders();
|
|
56
|
-
public configuration = new AgravityConfiguration();
|
|
57
|
-
public encoder: HttpParameterCodec;
|
|
58
|
-
|
|
54
|
+
export class WebAppDataService extends BaseService {
|
|
59
55
|
constructor(
|
|
60
56
|
protected httpClient: HttpClient,
|
|
61
57
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
62
|
-
@Optional() configuration
|
|
58
|
+
@Optional() configuration?: AgravityConfiguration
|
|
63
59
|
) {
|
|
64
|
-
|
|
65
|
-
this.configuration = configuration;
|
|
66
|
-
}
|
|
67
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
68
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
69
|
-
if (firstBasePath != undefined) {
|
|
70
|
-
basePath = firstBasePath;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (typeof basePath !== 'string') {
|
|
74
|
-
basePath = this.basePath;
|
|
75
|
-
}
|
|
76
|
-
this.configuration.basePath = basePath;
|
|
77
|
-
}
|
|
78
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
83
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
84
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
85
|
-
} else {
|
|
86
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
87
|
-
}
|
|
88
|
-
return httpParams;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
92
|
-
if (value == null) {
|
|
93
|
-
return httpParams;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (typeof value === 'object') {
|
|
97
|
-
if (Array.isArray(value)) {
|
|
98
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
99
|
-
} else if (value instanceof Date) {
|
|
100
|
-
if (key != null) {
|
|
101
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
102
|
-
} else {
|
|
103
|
-
throw Error('key may not be null if value is Date');
|
|
104
|
-
}
|
|
105
|
-
} else {
|
|
106
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
107
|
-
}
|
|
108
|
-
} else if (key != null) {
|
|
109
|
-
httpParams = httpParams.append(key, value);
|
|
110
|
-
} else {
|
|
111
|
-
throw Error('key may not be null if value is not object or array');
|
|
112
|
-
}
|
|
113
|
-
return httpParams;
|
|
60
|
+
super(basePath, configuration);
|
|
114
61
|
}
|
|
115
62
|
|
|
116
63
|
/**
|
|
@@ -120,25 +67,25 @@ export class WebAppDataService {
|
|
|
120
67
|
* @param reportProgress flag to report request and response progress.
|
|
121
68
|
*/
|
|
122
69
|
public httpGetDataCollectionType(
|
|
123
|
-
requestParameters
|
|
70
|
+
requestParameters: HttpGetDataCollectionTypeRequestParams,
|
|
124
71
|
observe?: 'body',
|
|
125
72
|
reportProgress?: boolean,
|
|
126
73
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
127
74
|
): Observable<GroupAllAppData>;
|
|
128
75
|
public httpGetDataCollectionType(
|
|
129
|
-
requestParameters
|
|
76
|
+
requestParameters: HttpGetDataCollectionTypeRequestParams,
|
|
130
77
|
observe?: 'response',
|
|
131
78
|
reportProgress?: boolean,
|
|
132
79
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
133
80
|
): Observable<HttpResponse<GroupAllAppData>>;
|
|
134
81
|
public httpGetDataCollectionType(
|
|
135
|
-
requestParameters
|
|
82
|
+
requestParameters: HttpGetDataCollectionTypeRequestParams,
|
|
136
83
|
observe?: 'events',
|
|
137
84
|
reportProgress?: boolean,
|
|
138
85
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
139
86
|
): Observable<HttpEvent<GroupAllAppData>>;
|
|
140
87
|
public httpGetDataCollectionType(
|
|
141
|
-
requestParameters
|
|
88
|
+
requestParameters: HttpGetDataCollectionTypeRequestParams,
|
|
142
89
|
observe: any = 'body',
|
|
143
90
|
reportProgress: boolean = false,
|
|
144
91
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -150,32 +97,17 @@ export class WebAppDataService {
|
|
|
150
97
|
|
|
151
98
|
let localVarHeaders = this.defaultHeaders;
|
|
152
99
|
|
|
153
|
-
let localVarCredential: string | undefined;
|
|
154
100
|
// authentication (msal_auth) required
|
|
155
|
-
|
|
156
|
-
if (localVarCredential) {
|
|
157
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
158
|
-
}
|
|
101
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
159
102
|
|
|
160
|
-
|
|
161
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
162
|
-
// to determine the Accept header
|
|
163
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
164
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
165
|
-
}
|
|
103
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
166
104
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
167
105
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
168
106
|
}
|
|
169
107
|
|
|
170
|
-
|
|
171
|
-
if (localVarHttpContext === undefined) {
|
|
172
|
-
localVarHttpContext = new HttpContext();
|
|
173
|
-
}
|
|
108
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
174
109
|
|
|
175
|
-
|
|
176
|
-
if (localVarTransferCache === undefined) {
|
|
177
|
-
localVarTransferCache = true;
|
|
178
|
-
}
|
|
110
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
179
111
|
|
|
180
112
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
181
113
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -189,10 +121,11 @@ export class WebAppDataService {
|
|
|
189
121
|
}
|
|
190
122
|
|
|
191
123
|
let localVarPath = `/data/collectiontype/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
192
|
-
|
|
124
|
+
const { basePath, withCredentials } = this.configuration;
|
|
125
|
+
return this.httpClient.request<GroupAllAppData>('get', `${basePath}${localVarPath}`, {
|
|
193
126
|
context: localVarHttpContext,
|
|
194
127
|
responseType: <any>responseType_,
|
|
195
|
-
withCredentials:
|
|
128
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
196
129
|
headers: localVarHeaders,
|
|
197
130
|
observe: observe,
|
|
198
131
|
transferCache: localVarTransferCache,
|
|
@@ -207,25 +140,25 @@ export class WebAppDataService {
|
|
|
207
140
|
* @param reportProgress flag to report request and response progress.
|
|
208
141
|
*/
|
|
209
142
|
public httpGetWebAppData(
|
|
210
|
-
requestParameters
|
|
143
|
+
requestParameters: HttpGetWebAppDataRequestParams,
|
|
211
144
|
observe?: 'body',
|
|
212
145
|
reportProgress?: boolean,
|
|
213
146
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
214
147
|
): Observable<AllWebAppData>;
|
|
215
148
|
public httpGetWebAppData(
|
|
216
|
-
requestParameters
|
|
149
|
+
requestParameters: HttpGetWebAppDataRequestParams,
|
|
217
150
|
observe?: 'response',
|
|
218
151
|
reportProgress?: boolean,
|
|
219
152
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
220
153
|
): Observable<HttpResponse<AllWebAppData>>;
|
|
221
154
|
public httpGetWebAppData(
|
|
222
|
-
requestParameters
|
|
155
|
+
requestParameters: HttpGetWebAppDataRequestParams,
|
|
223
156
|
observe?: 'events',
|
|
224
157
|
reportProgress?: boolean,
|
|
225
158
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
226
159
|
): Observable<HttpEvent<AllWebAppData>>;
|
|
227
160
|
public httpGetWebAppData(
|
|
228
|
-
requestParameters
|
|
161
|
+
requestParameters: HttpGetWebAppDataRequestParams,
|
|
229
162
|
observe: any = 'body',
|
|
230
163
|
reportProgress: boolean = false,
|
|
231
164
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -237,32 +170,17 @@ export class WebAppDataService {
|
|
|
237
170
|
|
|
238
171
|
let localVarHeaders = this.defaultHeaders;
|
|
239
172
|
|
|
240
|
-
let localVarCredential: string | undefined;
|
|
241
173
|
// authentication (msal_auth) required
|
|
242
|
-
|
|
243
|
-
if (localVarCredential) {
|
|
244
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
245
|
-
}
|
|
174
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
246
175
|
|
|
247
|
-
|
|
248
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
249
|
-
// to determine the Accept header
|
|
250
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
251
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
252
|
-
}
|
|
176
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
253
177
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
254
178
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
255
179
|
}
|
|
256
180
|
|
|
257
|
-
|
|
258
|
-
if (localVarHttpContext === undefined) {
|
|
259
|
-
localVarHttpContext = new HttpContext();
|
|
260
|
-
}
|
|
181
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
261
182
|
|
|
262
|
-
|
|
263
|
-
if (localVarTransferCache === undefined) {
|
|
264
|
-
localVarTransferCache = true;
|
|
265
|
-
}
|
|
183
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
266
184
|
|
|
267
185
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
268
186
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -276,10 +194,11 @@ export class WebAppDataService {
|
|
|
276
194
|
}
|
|
277
195
|
|
|
278
196
|
let localVarPath = `/webappdata/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
279
|
-
|
|
197
|
+
const { basePath, withCredentials } = this.configuration;
|
|
198
|
+
return this.httpClient.request<AllWebAppData>('get', `${basePath}${localVarPath}`, {
|
|
280
199
|
context: localVarHttpContext,
|
|
281
200
|
responseType: <any>responseType_,
|
|
282
|
-
withCredentials:
|
|
201
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
283
202
|
headers: localVarHeaders,
|
|
284
203
|
observe: observe,
|
|
285
204
|
transferCache: localVarTransferCache,
|
|
@@ -294,25 +213,25 @@ export class WebAppDataService {
|
|
|
294
213
|
* @param reportProgress flag to report request and response progress.
|
|
295
214
|
*/
|
|
296
215
|
public httpPostDataCollectionType(
|
|
297
|
-
requestParameters
|
|
216
|
+
requestParameters: HttpPostDataCollectionTypeRequestParams,
|
|
298
217
|
observe?: 'body',
|
|
299
218
|
reportProgress?: boolean,
|
|
300
219
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
301
220
|
): Observable<AgravityInfoResponse>;
|
|
302
221
|
public httpPostDataCollectionType(
|
|
303
|
-
requestParameters
|
|
222
|
+
requestParameters: HttpPostDataCollectionTypeRequestParams,
|
|
304
223
|
observe?: 'response',
|
|
305
224
|
reportProgress?: boolean,
|
|
306
225
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
307
226
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
308
227
|
public httpPostDataCollectionType(
|
|
309
|
-
requestParameters
|
|
228
|
+
requestParameters: HttpPostDataCollectionTypeRequestParams,
|
|
310
229
|
observe?: 'events',
|
|
311
230
|
reportProgress?: boolean,
|
|
312
231
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
313
232
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
314
233
|
public httpPostDataCollectionType(
|
|
315
|
-
requestParameters
|
|
234
|
+
requestParameters: HttpPostDataCollectionTypeRequestParams,
|
|
316
235
|
observe: any = 'body',
|
|
317
236
|
reportProgress: boolean = false,
|
|
318
237
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -324,32 +243,17 @@ export class WebAppDataService {
|
|
|
324
243
|
|
|
325
244
|
let localVarHeaders = this.defaultHeaders;
|
|
326
245
|
|
|
327
|
-
let localVarCredential: string | undefined;
|
|
328
246
|
// authentication (msal_auth) required
|
|
329
|
-
|
|
330
|
-
if (localVarCredential) {
|
|
331
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
332
|
-
}
|
|
247
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
333
248
|
|
|
334
|
-
|
|
335
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
336
|
-
// to determine the Accept header
|
|
337
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
338
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
339
|
-
}
|
|
249
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
340
250
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
341
251
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
342
252
|
}
|
|
343
253
|
|
|
344
|
-
|
|
345
|
-
if (localVarHttpContext === undefined) {
|
|
346
|
-
localVarHttpContext = new HttpContext();
|
|
347
|
-
}
|
|
254
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
348
255
|
|
|
349
|
-
|
|
350
|
-
if (localVarTransferCache === undefined) {
|
|
351
|
-
localVarTransferCache = true;
|
|
352
|
-
}
|
|
256
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
353
257
|
|
|
354
258
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
355
259
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -363,10 +267,11 @@ export class WebAppDataService {
|
|
|
363
267
|
}
|
|
364
268
|
|
|
365
269
|
let localVarPath = `/data/collectiontype/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
366
|
-
|
|
270
|
+
const { basePath, withCredentials } = this.configuration;
|
|
271
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${basePath}${localVarPath}`, {
|
|
367
272
|
context: localVarHttpContext,
|
|
368
273
|
responseType: <any>responseType_,
|
|
369
|
-
withCredentials:
|
|
274
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
370
275
|
headers: localVarHeaders,
|
|
371
276
|
observe: observe,
|
|
372
277
|
transferCache: localVarTransferCache,
|
|
@@ -381,25 +286,25 @@ export class WebAppDataService {
|
|
|
381
286
|
* @param reportProgress flag to report request and response progress.
|
|
382
287
|
*/
|
|
383
288
|
public httpPostWebAppData(
|
|
384
|
-
requestParameters
|
|
289
|
+
requestParameters: HttpPostWebAppDataRequestParams,
|
|
385
290
|
observe?: 'body',
|
|
386
291
|
reportProgress?: boolean,
|
|
387
292
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
388
293
|
): Observable<AgravityInfoResponse>;
|
|
389
294
|
public httpPostWebAppData(
|
|
390
|
-
requestParameters
|
|
295
|
+
requestParameters: HttpPostWebAppDataRequestParams,
|
|
391
296
|
observe?: 'response',
|
|
392
297
|
reportProgress?: boolean,
|
|
393
298
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
394
299
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
395
300
|
public httpPostWebAppData(
|
|
396
|
-
requestParameters
|
|
301
|
+
requestParameters: HttpPostWebAppDataRequestParams,
|
|
397
302
|
observe?: 'events',
|
|
398
303
|
reportProgress?: boolean,
|
|
399
304
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
400
305
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
401
306
|
public httpPostWebAppData(
|
|
402
|
-
requestParameters
|
|
307
|
+
requestParameters: HttpPostWebAppDataRequestParams,
|
|
403
308
|
observe: any = 'body',
|
|
404
309
|
reportProgress: boolean = false,
|
|
405
310
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -411,32 +316,17 @@ export class WebAppDataService {
|
|
|
411
316
|
|
|
412
317
|
let localVarHeaders = this.defaultHeaders;
|
|
413
318
|
|
|
414
|
-
let localVarCredential: string | undefined;
|
|
415
319
|
// authentication (msal_auth) required
|
|
416
|
-
|
|
417
|
-
if (localVarCredential) {
|
|
418
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
419
|
-
}
|
|
320
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
420
321
|
|
|
421
|
-
|
|
422
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
423
|
-
// to determine the Accept header
|
|
424
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
425
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
426
|
-
}
|
|
322
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
427
323
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
428
324
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
429
325
|
}
|
|
430
326
|
|
|
431
|
-
|
|
432
|
-
if (localVarHttpContext === undefined) {
|
|
433
|
-
localVarHttpContext = new HttpContext();
|
|
434
|
-
}
|
|
327
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
435
328
|
|
|
436
|
-
|
|
437
|
-
if (localVarTransferCache === undefined) {
|
|
438
|
-
localVarTransferCache = true;
|
|
439
|
-
}
|
|
329
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
440
330
|
|
|
441
331
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
442
332
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -450,10 +340,11 @@ export class WebAppDataService {
|
|
|
450
340
|
}
|
|
451
341
|
|
|
452
342
|
let localVarPath = `/webappdata/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
453
|
-
|
|
343
|
+
const { basePath, withCredentials } = this.configuration;
|
|
344
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${basePath}${localVarPath}`, {
|
|
454
345
|
context: localVarHttpContext,
|
|
455
346
|
responseType: <any>responseType_,
|
|
456
|
-
withCredentials:
|
|
347
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
457
348
|
headers: localVarHeaders,
|
|
458
349
|
observe: observe,
|
|
459
350
|
transferCache: localVarTransferCache,
|
|
@@ -22,6 +22,7 @@ import { WidgetLayout } from '../model/widgetLayout.agravity';
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
24
|
import { AgravityConfiguration } from '../configuration';
|
|
25
|
+
import { BaseService } from '../api.base.service';
|
|
25
26
|
|
|
26
27
|
export interface HttpWidgetLayoutUpdateRequestParams {
|
|
27
28
|
/** Body has to be a valid widget layout item. */
|
|
@@ -31,67 +32,13 @@ export interface HttpWidgetLayoutUpdateRequestParams {
|
|
|
31
32
|
@Injectable({
|
|
32
33
|
providedIn: 'root'
|
|
33
34
|
})
|
|
34
|
-
export class WidgetLayoutManagementService {
|
|
35
|
-
protected basePath = 'http://localhost:7071/api';
|
|
36
|
-
public defaultHeaders = new HttpHeaders();
|
|
37
|
-
public configuration = new AgravityConfiguration();
|
|
38
|
-
public encoder: HttpParameterCodec;
|
|
39
|
-
|
|
35
|
+
export class WidgetLayoutManagementService extends BaseService {
|
|
40
36
|
constructor(
|
|
41
37
|
protected httpClient: HttpClient,
|
|
42
38
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
43
|
-
@Optional() configuration
|
|
39
|
+
@Optional() configuration?: AgravityConfiguration
|
|
44
40
|
) {
|
|
45
|
-
|
|
46
|
-
this.configuration = configuration;
|
|
47
|
-
}
|
|
48
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
49
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
50
|
-
if (firstBasePath != undefined) {
|
|
51
|
-
basePath = firstBasePath;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (typeof basePath !== 'string') {
|
|
55
|
-
basePath = this.basePath;
|
|
56
|
-
}
|
|
57
|
-
this.configuration.basePath = basePath;
|
|
58
|
-
}
|
|
59
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
64
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
65
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
66
|
-
} else {
|
|
67
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
68
|
-
}
|
|
69
|
-
return httpParams;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return httpParams;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (typeof value === 'object') {
|
|
78
|
-
if (Array.isArray(value)) {
|
|
79
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
80
|
-
} else if (value instanceof Date) {
|
|
81
|
-
if (key != null) {
|
|
82
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
83
|
-
} else {
|
|
84
|
-
throw Error('key may not be null if value is Date');
|
|
85
|
-
}
|
|
86
|
-
} else {
|
|
87
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
88
|
-
}
|
|
89
|
-
} else if (key != null) {
|
|
90
|
-
httpParams = httpParams.append(key, value);
|
|
91
|
-
} else {
|
|
92
|
-
throw Error('key may not be null if value is not object or array');
|
|
93
|
-
}
|
|
94
|
-
return httpParams;
|
|
41
|
+
super(basePath, configuration);
|
|
95
42
|
}
|
|
96
43
|
|
|
97
44
|
/**
|
|
@@ -121,32 +68,17 @@ export class WidgetLayoutManagementService {
|
|
|
121
68
|
): Observable<any> {
|
|
122
69
|
let localVarHeaders = this.defaultHeaders;
|
|
123
70
|
|
|
124
|
-
let localVarCredential: string | undefined;
|
|
125
71
|
// authentication (msal_auth) required
|
|
126
|
-
|
|
127
|
-
if (localVarCredential) {
|
|
128
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
129
|
-
}
|
|
72
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
130
73
|
|
|
131
|
-
|
|
132
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
133
|
-
// to determine the Accept header
|
|
134
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
135
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
136
|
-
}
|
|
74
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
137
75
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
138
76
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
139
77
|
}
|
|
140
78
|
|
|
141
|
-
|
|
142
|
-
if (localVarHttpContext === undefined) {
|
|
143
|
-
localVarHttpContext = new HttpContext();
|
|
144
|
-
}
|
|
79
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
145
80
|
|
|
146
|
-
|
|
147
|
-
if (localVarTransferCache === undefined) {
|
|
148
|
-
localVarTransferCache = true;
|
|
149
|
-
}
|
|
81
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
150
82
|
|
|
151
83
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
152
84
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -160,10 +92,11 @@ export class WidgetLayoutManagementService {
|
|
|
160
92
|
}
|
|
161
93
|
|
|
162
94
|
let localVarPath = `/dashboard/layout`;
|
|
163
|
-
|
|
95
|
+
const { basePath, withCredentials } = this.configuration;
|
|
96
|
+
return this.httpClient.request<WidgetLayout>('get', `${basePath}${localVarPath}`, {
|
|
164
97
|
context: localVarHttpContext,
|
|
165
98
|
responseType: <any>responseType_,
|
|
166
|
-
withCredentials:
|
|
99
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
167
100
|
headers: localVarHeaders,
|
|
168
101
|
observe: observe,
|
|
169
102
|
transferCache: localVarTransferCache,
|
|
@@ -178,25 +111,25 @@ export class WidgetLayoutManagementService {
|
|
|
178
111
|
* @param reportProgress flag to report request and response progress.
|
|
179
112
|
*/
|
|
180
113
|
public httpWidgetLayoutUpdate(
|
|
181
|
-
requestParameters
|
|
114
|
+
requestParameters: HttpWidgetLayoutUpdateRequestParams,
|
|
182
115
|
observe?: 'body',
|
|
183
116
|
reportProgress?: boolean,
|
|
184
117
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
185
118
|
): Observable<WidgetLayout>;
|
|
186
119
|
public httpWidgetLayoutUpdate(
|
|
187
|
-
requestParameters
|
|
120
|
+
requestParameters: HttpWidgetLayoutUpdateRequestParams,
|
|
188
121
|
observe?: 'response',
|
|
189
122
|
reportProgress?: boolean,
|
|
190
123
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
191
124
|
): Observable<HttpResponse<WidgetLayout>>;
|
|
192
125
|
public httpWidgetLayoutUpdate(
|
|
193
|
-
requestParameters
|
|
126
|
+
requestParameters: HttpWidgetLayoutUpdateRequestParams,
|
|
194
127
|
observe?: 'events',
|
|
195
128
|
reportProgress?: boolean,
|
|
196
129
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
197
130
|
): Observable<HttpEvent<WidgetLayout>>;
|
|
198
131
|
public httpWidgetLayoutUpdate(
|
|
199
|
-
requestParameters
|
|
132
|
+
requestParameters: HttpWidgetLayoutUpdateRequestParams,
|
|
200
133
|
observe: any = 'body',
|
|
201
134
|
reportProgress: boolean = false,
|
|
202
135
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -208,32 +141,17 @@ export class WidgetLayoutManagementService {
|
|
|
208
141
|
|
|
209
142
|
let localVarHeaders = this.defaultHeaders;
|
|
210
143
|
|
|
211
|
-
let localVarCredential: string | undefined;
|
|
212
144
|
// authentication (msal_auth) required
|
|
213
|
-
|
|
214
|
-
if (localVarCredential) {
|
|
215
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
216
|
-
}
|
|
145
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
217
146
|
|
|
218
|
-
|
|
219
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
220
|
-
// to determine the Accept header
|
|
221
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
222
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
223
|
-
}
|
|
147
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
224
148
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
225
149
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
226
150
|
}
|
|
227
151
|
|
|
228
|
-
|
|
229
|
-
if (localVarHttpContext === undefined) {
|
|
230
|
-
localVarHttpContext = new HttpContext();
|
|
231
|
-
}
|
|
152
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
232
153
|
|
|
233
|
-
|
|
234
|
-
if (localVarTransferCache === undefined) {
|
|
235
|
-
localVarTransferCache = true;
|
|
236
|
-
}
|
|
154
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
237
155
|
|
|
238
156
|
// to determine the Content-Type header
|
|
239
157
|
const consumes: string[] = ['application/json'];
|
|
@@ -254,11 +172,12 @@ export class WidgetLayoutManagementService {
|
|
|
254
172
|
}
|
|
255
173
|
|
|
256
174
|
let localVarPath = `/dashboard/layout`;
|
|
257
|
-
|
|
175
|
+
const { basePath, withCredentials } = this.configuration;
|
|
176
|
+
return this.httpClient.request<WidgetLayout>('post', `${basePath}${localVarPath}`, {
|
|
258
177
|
context: localVarHttpContext,
|
|
259
178
|
body: widgetLayout,
|
|
260
179
|
responseType: <any>responseType_,
|
|
261
|
-
withCredentials:
|
|
180
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
262
181
|
headers: localVarHeaders,
|
|
263
182
|
observe: observe,
|
|
264
183
|
transferCache: localVarTransferCache,
|