@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 { PermissionChange } from '../model/permissionChange.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 HttpAssetRelationTypeCreateRequestParams {
|
|
31
32
|
/** This endpoint creates an asset relation type in the database. */
|
|
@@ -78,67 +79,13 @@ export interface HttpAssetRelationTypeUpdateWithIdRequestParams {
|
|
|
78
79
|
@Injectable({
|
|
79
80
|
providedIn: 'root'
|
|
80
81
|
})
|
|
81
|
-
export class AssetRelationTypeManagementService {
|
|
82
|
-
protected basePath = 'http://localhost:7071/api';
|
|
83
|
-
public defaultHeaders = new HttpHeaders();
|
|
84
|
-
public configuration = new AgravityConfiguration();
|
|
85
|
-
public encoder: HttpParameterCodec;
|
|
86
|
-
|
|
82
|
+
export class AssetRelationTypeManagementService extends BaseService {
|
|
87
83
|
constructor(
|
|
88
84
|
protected httpClient: HttpClient,
|
|
89
85
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
90
|
-
@Optional() configuration
|
|
86
|
+
@Optional() configuration?: AgravityConfiguration
|
|
91
87
|
) {
|
|
92
|
-
|
|
93
|
-
this.configuration = configuration;
|
|
94
|
-
}
|
|
95
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
96
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
97
|
-
if (firstBasePath != undefined) {
|
|
98
|
-
basePath = firstBasePath;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (typeof basePath !== 'string') {
|
|
102
|
-
basePath = this.basePath;
|
|
103
|
-
}
|
|
104
|
-
this.configuration.basePath = basePath;
|
|
105
|
-
}
|
|
106
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// @ts-ignore
|
|
110
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
111
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
112
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
113
|
-
} else {
|
|
114
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
115
|
-
}
|
|
116
|
-
return httpParams;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
120
|
-
if (value == null) {
|
|
121
|
-
return httpParams;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (typeof value === 'object') {
|
|
125
|
-
if (Array.isArray(value)) {
|
|
126
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
127
|
-
} else if (value instanceof Date) {
|
|
128
|
-
if (key != null) {
|
|
129
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
130
|
-
} else {
|
|
131
|
-
throw Error('key may not be null if value is Date');
|
|
132
|
-
}
|
|
133
|
-
} else {
|
|
134
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
135
|
-
}
|
|
136
|
-
} else if (key != null) {
|
|
137
|
-
httpParams = httpParams.append(key, value);
|
|
138
|
-
} else {
|
|
139
|
-
throw Error('key may not be null if value is not object or array');
|
|
140
|
-
}
|
|
141
|
-
return httpParams;
|
|
88
|
+
super(basePath, configuration);
|
|
142
89
|
}
|
|
143
90
|
|
|
144
91
|
/**
|
|
@@ -148,25 +95,25 @@ export class AssetRelationTypeManagementService {
|
|
|
148
95
|
* @param reportProgress flag to report request and response progress.
|
|
149
96
|
*/
|
|
150
97
|
public httpAssetRelationTypeCreate(
|
|
151
|
-
requestParameters
|
|
98
|
+
requestParameters: HttpAssetRelationTypeCreateRequestParams,
|
|
152
99
|
observe?: 'body',
|
|
153
100
|
reportProgress?: boolean,
|
|
154
101
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
155
102
|
): Observable<AssetRelationType>;
|
|
156
103
|
public httpAssetRelationTypeCreate(
|
|
157
|
-
requestParameters
|
|
104
|
+
requestParameters: HttpAssetRelationTypeCreateRequestParams,
|
|
158
105
|
observe?: 'response',
|
|
159
106
|
reportProgress?: boolean,
|
|
160
107
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
161
108
|
): Observable<HttpResponse<AssetRelationType>>;
|
|
162
109
|
public httpAssetRelationTypeCreate(
|
|
163
|
-
requestParameters
|
|
110
|
+
requestParameters: HttpAssetRelationTypeCreateRequestParams,
|
|
164
111
|
observe?: 'events',
|
|
165
112
|
reportProgress?: boolean,
|
|
166
113
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
167
114
|
): Observable<HttpEvent<AssetRelationType>>;
|
|
168
115
|
public httpAssetRelationTypeCreate(
|
|
169
|
-
requestParameters
|
|
116
|
+
requestParameters: HttpAssetRelationTypeCreateRequestParams,
|
|
170
117
|
observe: any = 'body',
|
|
171
118
|
reportProgress: boolean = false,
|
|
172
119
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -179,41 +126,24 @@ export class AssetRelationTypeManagementService {
|
|
|
179
126
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
180
127
|
|
|
181
128
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
182
|
-
|
|
183
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
184
|
-
}
|
|
129
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
185
130
|
|
|
186
131
|
let localVarHeaders = this.defaultHeaders;
|
|
187
132
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
188
133
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
189
134
|
}
|
|
190
135
|
|
|
191
|
-
let localVarCredential: string | undefined;
|
|
192
136
|
// authentication (msal_auth) required
|
|
193
|
-
|
|
194
|
-
if (localVarCredential) {
|
|
195
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
196
|
-
}
|
|
137
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
197
138
|
|
|
198
|
-
|
|
199
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
200
|
-
// to determine the Accept header
|
|
201
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
202
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
203
|
-
}
|
|
139
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
204
140
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
205
141
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
206
142
|
}
|
|
207
143
|
|
|
208
|
-
|
|
209
|
-
if (localVarHttpContext === undefined) {
|
|
210
|
-
localVarHttpContext = new HttpContext();
|
|
211
|
-
}
|
|
144
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
212
145
|
|
|
213
|
-
|
|
214
|
-
if (localVarTransferCache === undefined) {
|
|
215
|
-
localVarTransferCache = true;
|
|
216
|
-
}
|
|
146
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
217
147
|
|
|
218
148
|
// to determine the Content-Type header
|
|
219
149
|
const consumes: string[] = ['application/json'];
|
|
@@ -234,12 +164,13 @@ export class AssetRelationTypeManagementService {
|
|
|
234
164
|
}
|
|
235
165
|
|
|
236
166
|
let localVarPath = `/assetrelationtypes`;
|
|
237
|
-
|
|
167
|
+
const { basePath, withCredentials } = this.configuration;
|
|
168
|
+
return this.httpClient.request<AssetRelationType>('post', `${basePath}${localVarPath}`, {
|
|
238
169
|
context: localVarHttpContext,
|
|
239
170
|
body: assetRelationType,
|
|
240
171
|
params: localVarQueryParameters,
|
|
241
172
|
responseType: <any>responseType_,
|
|
242
|
-
withCredentials:
|
|
173
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
243
174
|
headers: localVarHeaders,
|
|
244
175
|
observe: observe,
|
|
245
176
|
transferCache: localVarTransferCache,
|
|
@@ -254,25 +185,25 @@ export class AssetRelationTypeManagementService {
|
|
|
254
185
|
* @param reportProgress flag to report request and response progress.
|
|
255
186
|
*/
|
|
256
187
|
public httpAssetRelationTypeDeleteById(
|
|
257
|
-
requestParameters
|
|
188
|
+
requestParameters: HttpAssetRelationTypeDeleteByIdRequestParams,
|
|
258
189
|
observe?: 'body',
|
|
259
190
|
reportProgress?: boolean,
|
|
260
191
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
261
192
|
): Observable<any>;
|
|
262
193
|
public httpAssetRelationTypeDeleteById(
|
|
263
|
-
requestParameters
|
|
194
|
+
requestParameters: HttpAssetRelationTypeDeleteByIdRequestParams,
|
|
264
195
|
observe?: 'response',
|
|
265
196
|
reportProgress?: boolean,
|
|
266
197
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
267
198
|
): Observable<HttpResponse<any>>;
|
|
268
199
|
public httpAssetRelationTypeDeleteById(
|
|
269
|
-
requestParameters
|
|
200
|
+
requestParameters: HttpAssetRelationTypeDeleteByIdRequestParams,
|
|
270
201
|
observe?: 'events',
|
|
271
202
|
reportProgress?: boolean,
|
|
272
203
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
273
204
|
): Observable<HttpEvent<any>>;
|
|
274
205
|
public httpAssetRelationTypeDeleteById(
|
|
275
|
-
requestParameters
|
|
206
|
+
requestParameters: HttpAssetRelationTypeDeleteByIdRequestParams,
|
|
276
207
|
observe: any = 'body',
|
|
277
208
|
reportProgress: boolean = false,
|
|
278
209
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -284,32 +215,17 @@ export class AssetRelationTypeManagementService {
|
|
|
284
215
|
|
|
285
216
|
let localVarHeaders = this.defaultHeaders;
|
|
286
217
|
|
|
287
|
-
let localVarCredential: string | undefined;
|
|
288
218
|
// authentication (msal_auth) required
|
|
289
|
-
|
|
290
|
-
if (localVarCredential) {
|
|
291
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
292
|
-
}
|
|
219
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
293
220
|
|
|
294
|
-
|
|
295
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
296
|
-
// to determine the Accept header
|
|
297
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
298
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
299
|
-
}
|
|
221
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
300
222
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
301
223
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
302
224
|
}
|
|
303
225
|
|
|
304
|
-
|
|
305
|
-
if (localVarHttpContext === undefined) {
|
|
306
|
-
localVarHttpContext = new HttpContext();
|
|
307
|
-
}
|
|
226
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
308
227
|
|
|
309
|
-
|
|
310
|
-
if (localVarTransferCache === undefined) {
|
|
311
|
-
localVarTransferCache = true;
|
|
312
|
-
}
|
|
228
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
313
229
|
|
|
314
230
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
315
231
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -323,10 +239,11 @@ export class AssetRelationTypeManagementService {
|
|
|
323
239
|
}
|
|
324
240
|
|
|
325
241
|
let localVarPath = `/assetrelationtypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
326
|
-
|
|
242
|
+
const { basePath, withCredentials } = this.configuration;
|
|
243
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
327
244
|
context: localVarHttpContext,
|
|
328
245
|
responseType: <any>responseType_,
|
|
329
|
-
withCredentials:
|
|
246
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
330
247
|
headers: localVarHeaders,
|
|
331
248
|
observe: observe,
|
|
332
249
|
transferCache: localVarTransferCache,
|
|
@@ -368,41 +285,24 @@ export class AssetRelationTypeManagementService {
|
|
|
368
285
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
369
286
|
|
|
370
287
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
371
|
-
|
|
372
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
373
|
-
}
|
|
288
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
374
289
|
|
|
375
290
|
let localVarHeaders = this.defaultHeaders;
|
|
376
291
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
377
292
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
378
293
|
}
|
|
379
294
|
|
|
380
|
-
let localVarCredential: string | undefined;
|
|
381
295
|
// authentication (msal_auth) required
|
|
382
|
-
|
|
383
|
-
if (localVarCredential) {
|
|
384
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
385
|
-
}
|
|
296
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
386
297
|
|
|
387
|
-
|
|
388
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
389
|
-
// to determine the Accept header
|
|
390
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
391
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
392
|
-
}
|
|
298
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
393
299
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
394
300
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
395
301
|
}
|
|
396
302
|
|
|
397
|
-
|
|
398
|
-
if (localVarHttpContext === undefined) {
|
|
399
|
-
localVarHttpContext = new HttpContext();
|
|
400
|
-
}
|
|
303
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
401
304
|
|
|
402
|
-
|
|
403
|
-
if (localVarTransferCache === undefined) {
|
|
404
|
-
localVarTransferCache = true;
|
|
405
|
-
}
|
|
305
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
406
306
|
|
|
407
307
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
408
308
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -416,11 +316,12 @@ export class AssetRelationTypeManagementService {
|
|
|
416
316
|
}
|
|
417
317
|
|
|
418
318
|
let localVarPath = `/assetrelationtypes`;
|
|
419
|
-
|
|
319
|
+
const { basePath, withCredentials } = this.configuration;
|
|
320
|
+
return this.httpClient.request<Array<AssetRelationType>>('get', `${basePath}${localVarPath}`, {
|
|
420
321
|
context: localVarHttpContext,
|
|
421
322
|
params: localVarQueryParameters,
|
|
422
323
|
responseType: <any>responseType_,
|
|
423
|
-
withCredentials:
|
|
324
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
424
325
|
headers: localVarHeaders,
|
|
425
326
|
observe: observe,
|
|
426
327
|
transferCache: localVarTransferCache,
|
|
@@ -435,25 +336,25 @@ export class AssetRelationTypeManagementService {
|
|
|
435
336
|
* @param reportProgress flag to report request and response progress.
|
|
436
337
|
*/
|
|
437
338
|
public httpAssetRelationTypeGetById(
|
|
438
|
-
requestParameters
|
|
339
|
+
requestParameters: HttpAssetRelationTypeGetByIdRequestParams,
|
|
439
340
|
observe?: 'body',
|
|
440
341
|
reportProgress?: boolean,
|
|
441
342
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
442
343
|
): Observable<AssetRelationType>;
|
|
443
344
|
public httpAssetRelationTypeGetById(
|
|
444
|
-
requestParameters
|
|
345
|
+
requestParameters: HttpAssetRelationTypeGetByIdRequestParams,
|
|
445
346
|
observe?: 'response',
|
|
446
347
|
reportProgress?: boolean,
|
|
447
348
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
448
349
|
): Observable<HttpResponse<AssetRelationType>>;
|
|
449
350
|
public httpAssetRelationTypeGetById(
|
|
450
|
-
requestParameters
|
|
351
|
+
requestParameters: HttpAssetRelationTypeGetByIdRequestParams,
|
|
451
352
|
observe?: 'events',
|
|
452
353
|
reportProgress?: boolean,
|
|
453
354
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
454
355
|
): Observable<HttpEvent<AssetRelationType>>;
|
|
455
356
|
public httpAssetRelationTypeGetById(
|
|
456
|
-
requestParameters
|
|
357
|
+
requestParameters: HttpAssetRelationTypeGetByIdRequestParams,
|
|
457
358
|
observe: any = 'body',
|
|
458
359
|
reportProgress: boolean = false,
|
|
459
360
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -466,41 +367,24 @@ export class AssetRelationTypeManagementService {
|
|
|
466
367
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
467
368
|
|
|
468
369
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
469
|
-
|
|
470
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
471
|
-
}
|
|
370
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
472
371
|
|
|
473
372
|
let localVarHeaders = this.defaultHeaders;
|
|
474
373
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
475
374
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
476
375
|
}
|
|
477
376
|
|
|
478
|
-
let localVarCredential: string | undefined;
|
|
479
377
|
// authentication (msal_auth) required
|
|
480
|
-
|
|
481
|
-
if (localVarCredential) {
|
|
482
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
483
|
-
}
|
|
378
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
484
379
|
|
|
485
|
-
|
|
486
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
487
|
-
// to determine the Accept header
|
|
488
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
489
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
490
|
-
}
|
|
380
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
491
381
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
492
382
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
493
383
|
}
|
|
494
384
|
|
|
495
|
-
|
|
496
|
-
if (localVarHttpContext === undefined) {
|
|
497
|
-
localVarHttpContext = new HttpContext();
|
|
498
|
-
}
|
|
385
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
499
386
|
|
|
500
|
-
|
|
501
|
-
if (localVarTransferCache === undefined) {
|
|
502
|
-
localVarTransferCache = true;
|
|
503
|
-
}
|
|
387
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
504
388
|
|
|
505
389
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
506
390
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -514,11 +398,12 @@ export class AssetRelationTypeManagementService {
|
|
|
514
398
|
}
|
|
515
399
|
|
|
516
400
|
let localVarPath = `/assetrelationtypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
517
|
-
|
|
401
|
+
const { basePath, withCredentials } = this.configuration;
|
|
402
|
+
return this.httpClient.request<AssetRelationType>('get', `${basePath}${localVarPath}`, {
|
|
518
403
|
context: localVarHttpContext,
|
|
519
404
|
params: localVarQueryParameters,
|
|
520
405
|
responseType: <any>responseType_,
|
|
521
|
-
withCredentials:
|
|
406
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
522
407
|
headers: localVarHeaders,
|
|
523
408
|
observe: observe,
|
|
524
409
|
transferCache: localVarTransferCache,
|
|
@@ -533,25 +418,25 @@ export class AssetRelationTypeManagementService {
|
|
|
533
418
|
* @param reportProgress flag to report request and response progress.
|
|
534
419
|
*/
|
|
535
420
|
public httpAssetRelationTypeUpdatePermissionsById(
|
|
536
|
-
requestParameters
|
|
421
|
+
requestParameters: HttpAssetRelationTypeUpdatePermissionsByIdRequestParams,
|
|
537
422
|
observe?: 'body',
|
|
538
423
|
reportProgress?: boolean,
|
|
539
424
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
540
425
|
): Observable<AgravityInfoResponse>;
|
|
541
426
|
public httpAssetRelationTypeUpdatePermissionsById(
|
|
542
|
-
requestParameters
|
|
427
|
+
requestParameters: HttpAssetRelationTypeUpdatePermissionsByIdRequestParams,
|
|
543
428
|
observe?: 'response',
|
|
544
429
|
reportProgress?: boolean,
|
|
545
430
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
546
431
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
547
432
|
public httpAssetRelationTypeUpdatePermissionsById(
|
|
548
|
-
requestParameters
|
|
433
|
+
requestParameters: HttpAssetRelationTypeUpdatePermissionsByIdRequestParams,
|
|
549
434
|
observe?: 'events',
|
|
550
435
|
reportProgress?: boolean,
|
|
551
436
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
552
437
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
553
438
|
public httpAssetRelationTypeUpdatePermissionsById(
|
|
554
|
-
requestParameters
|
|
439
|
+
requestParameters: HttpAssetRelationTypeUpdatePermissionsByIdRequestParams,
|
|
555
440
|
observe: any = 'body',
|
|
556
441
|
reportProgress: boolean = false,
|
|
557
442
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -567,32 +452,17 @@ export class AssetRelationTypeManagementService {
|
|
|
567
452
|
|
|
568
453
|
let localVarHeaders = this.defaultHeaders;
|
|
569
454
|
|
|
570
|
-
let localVarCredential: string | undefined;
|
|
571
455
|
// authentication (msal_auth) required
|
|
572
|
-
|
|
573
|
-
if (localVarCredential) {
|
|
574
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
575
|
-
}
|
|
456
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
576
457
|
|
|
577
|
-
|
|
578
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
579
|
-
// to determine the Accept header
|
|
580
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
581
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
582
|
-
}
|
|
458
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
583
459
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
584
460
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
585
461
|
}
|
|
586
462
|
|
|
587
|
-
|
|
588
|
-
if (localVarHttpContext === undefined) {
|
|
589
|
-
localVarHttpContext = new HttpContext();
|
|
590
|
-
}
|
|
463
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
591
464
|
|
|
592
|
-
|
|
593
|
-
if (localVarTransferCache === undefined) {
|
|
594
|
-
localVarTransferCache = true;
|
|
595
|
-
}
|
|
465
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
596
466
|
|
|
597
467
|
// to determine the Content-Type header
|
|
598
468
|
const consumes: string[] = ['application/json'];
|
|
@@ -613,11 +483,12 @@ export class AssetRelationTypeManagementService {
|
|
|
613
483
|
}
|
|
614
484
|
|
|
615
485
|
let localVarPath = `/assetrelationtypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/permissions`;
|
|
616
|
-
|
|
486
|
+
const { basePath, withCredentials } = this.configuration;
|
|
487
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${basePath}${localVarPath}`, {
|
|
617
488
|
context: localVarHttpContext,
|
|
618
489
|
body: permissionChange,
|
|
619
490
|
responseType: <any>responseType_,
|
|
620
|
-
withCredentials:
|
|
491
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
621
492
|
headers: localVarHeaders,
|
|
622
493
|
observe: observe,
|
|
623
494
|
transferCache: localVarTransferCache,
|
|
@@ -632,25 +503,25 @@ export class AssetRelationTypeManagementService {
|
|
|
632
503
|
* @param reportProgress flag to report request and response progress.
|
|
633
504
|
*/
|
|
634
505
|
public httpAssetRelationTypeUpdateWithId(
|
|
635
|
-
requestParameters
|
|
506
|
+
requestParameters: HttpAssetRelationTypeUpdateWithIdRequestParams,
|
|
636
507
|
observe?: 'body',
|
|
637
508
|
reportProgress?: boolean,
|
|
638
509
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
639
510
|
): Observable<AssetRelationType>;
|
|
640
511
|
public httpAssetRelationTypeUpdateWithId(
|
|
641
|
-
requestParameters
|
|
512
|
+
requestParameters: HttpAssetRelationTypeUpdateWithIdRequestParams,
|
|
642
513
|
observe?: 'response',
|
|
643
514
|
reportProgress?: boolean,
|
|
644
515
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
645
516
|
): Observable<HttpResponse<AssetRelationType>>;
|
|
646
517
|
public httpAssetRelationTypeUpdateWithId(
|
|
647
|
-
requestParameters
|
|
518
|
+
requestParameters: HttpAssetRelationTypeUpdateWithIdRequestParams,
|
|
648
519
|
observe?: 'events',
|
|
649
520
|
reportProgress?: boolean,
|
|
650
521
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
651
522
|
): Observable<HttpEvent<AssetRelationType>>;
|
|
652
523
|
public httpAssetRelationTypeUpdateWithId(
|
|
653
|
-
requestParameters
|
|
524
|
+
requestParameters: HttpAssetRelationTypeUpdateWithIdRequestParams,
|
|
654
525
|
observe: any = 'body',
|
|
655
526
|
reportProgress: boolean = false,
|
|
656
527
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -667,41 +538,24 @@ export class AssetRelationTypeManagementService {
|
|
|
667
538
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
668
539
|
|
|
669
540
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
670
|
-
|
|
671
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
672
|
-
}
|
|
541
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
673
542
|
|
|
674
543
|
let localVarHeaders = this.defaultHeaders;
|
|
675
544
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
676
545
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
677
546
|
}
|
|
678
547
|
|
|
679
|
-
let localVarCredential: string | undefined;
|
|
680
548
|
// authentication (msal_auth) required
|
|
681
|
-
|
|
682
|
-
if (localVarCredential) {
|
|
683
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
684
|
-
}
|
|
549
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
685
550
|
|
|
686
|
-
|
|
687
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
688
|
-
// to determine the Accept header
|
|
689
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
690
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
691
|
-
}
|
|
551
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
692
552
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
693
553
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
694
554
|
}
|
|
695
555
|
|
|
696
|
-
|
|
697
|
-
if (localVarHttpContext === undefined) {
|
|
698
|
-
localVarHttpContext = new HttpContext();
|
|
699
|
-
}
|
|
556
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
700
557
|
|
|
701
|
-
|
|
702
|
-
if (localVarTransferCache === undefined) {
|
|
703
|
-
localVarTransferCache = true;
|
|
704
|
-
}
|
|
558
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
705
559
|
|
|
706
560
|
// to determine the Content-Type header
|
|
707
561
|
const consumes: string[] = ['application/json'];
|
|
@@ -722,12 +576,13 @@ export class AssetRelationTypeManagementService {
|
|
|
722
576
|
}
|
|
723
577
|
|
|
724
578
|
let localVarPath = `/assetrelationtypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
725
|
-
|
|
579
|
+
const { basePath, withCredentials } = this.configuration;
|
|
580
|
+
return this.httpClient.request<AssetRelationType>('post', `${basePath}${localVarPath}`, {
|
|
726
581
|
context: localVarHttpContext,
|
|
727
582
|
body: assetRelationType,
|
|
728
583
|
params: localVarQueryParameters,
|
|
729
584
|
responseType: <any>responseType_,
|
|
730
|
-
withCredentials:
|
|
585
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
731
586
|
headers: localVarHeaders,
|
|
732
587
|
observe: observe,
|
|
733
588
|
transferCache: localVarTransferCache,
|