@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
|
@@ -22,6 +22,7 @@ import { ExcelExportTableEntity } from '../model/excelExportTableEntity.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 HttpDataExportAssetsAsExcelRequestParams {
|
|
27
28
|
/** Used to specify what to be returned. Valid values are: collection_type_ids, collection_ids and asset_ids. When providing multiple values separate it with comma (\',\'). */
|
|
@@ -53,67 +54,13 @@ export interface HttpDataExportTranslationsCheckStatusRequestParams {
|
|
|
53
54
|
@Injectable({
|
|
54
55
|
providedIn: 'root'
|
|
55
56
|
})
|
|
56
|
-
export class DataImportExportManagementService {
|
|
57
|
-
protected basePath = 'http://localhost:7071/api';
|
|
58
|
-
public defaultHeaders = new HttpHeaders();
|
|
59
|
-
public configuration = new AgravityConfiguration();
|
|
60
|
-
public encoder: HttpParameterCodec;
|
|
61
|
-
|
|
57
|
+
export class DataImportExportManagementService extends BaseService {
|
|
62
58
|
constructor(
|
|
63
59
|
protected httpClient: HttpClient,
|
|
64
60
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
65
|
-
@Optional() configuration
|
|
61
|
+
@Optional() configuration?: AgravityConfiguration
|
|
66
62
|
) {
|
|
67
|
-
|
|
68
|
-
this.configuration = configuration;
|
|
69
|
-
}
|
|
70
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
71
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
72
|
-
if (firstBasePath != undefined) {
|
|
73
|
-
basePath = firstBasePath;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
if (typeof basePath !== 'string') {
|
|
77
|
-
basePath = this.basePath;
|
|
78
|
-
}
|
|
79
|
-
this.configuration.basePath = basePath;
|
|
80
|
-
}
|
|
81
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
86
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
87
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
88
|
-
} else {
|
|
89
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
90
|
-
}
|
|
91
|
-
return httpParams;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
95
|
-
if (value == null) {
|
|
96
|
-
return httpParams;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
if (typeof value === 'object') {
|
|
100
|
-
if (Array.isArray(value)) {
|
|
101
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
102
|
-
} else if (value instanceof Date) {
|
|
103
|
-
if (key != null) {
|
|
104
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
105
|
-
} else {
|
|
106
|
-
throw Error('key may not be null if value is Date');
|
|
107
|
-
}
|
|
108
|
-
} else {
|
|
109
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
110
|
-
}
|
|
111
|
-
} else if (key != null) {
|
|
112
|
-
httpParams = httpParams.append(key, value);
|
|
113
|
-
} else {
|
|
114
|
-
throw Error('key may not be null if value is not object or array');
|
|
115
|
-
}
|
|
116
|
-
return httpParams;
|
|
63
|
+
super(basePath, configuration);
|
|
117
64
|
}
|
|
118
65
|
|
|
119
66
|
/**
|
|
@@ -150,41 +97,22 @@ export class DataImportExportManagementService {
|
|
|
150
97
|
const language = requestParameters?.language;
|
|
151
98
|
|
|
152
99
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
if (language !== undefined && language !== null) {
|
|
157
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>language, 'language');
|
|
158
|
-
}
|
|
100
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>ids, 'ids');
|
|
101
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>language, 'language');
|
|
159
102
|
|
|
160
103
|
let localVarHeaders = this.defaultHeaders;
|
|
161
104
|
|
|
162
|
-
let localVarCredential: string | undefined;
|
|
163
105
|
// authentication (msal_auth) required
|
|
164
|
-
|
|
165
|
-
if (localVarCredential) {
|
|
166
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
167
|
-
}
|
|
106
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
168
107
|
|
|
169
|
-
|
|
170
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
171
|
-
// to determine the Accept header
|
|
172
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
173
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
174
|
-
}
|
|
108
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
175
109
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
176
110
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
177
111
|
}
|
|
178
112
|
|
|
179
|
-
|
|
180
|
-
if (localVarHttpContext === undefined) {
|
|
181
|
-
localVarHttpContext = new HttpContext();
|
|
182
|
-
}
|
|
113
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
183
114
|
|
|
184
|
-
|
|
185
|
-
if (localVarTransferCache === undefined) {
|
|
186
|
-
localVarTransferCache = true;
|
|
187
|
-
}
|
|
115
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
188
116
|
|
|
189
117
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
190
118
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -198,11 +126,12 @@ export class DataImportExportManagementService {
|
|
|
198
126
|
}
|
|
199
127
|
|
|
200
128
|
let localVarPath = `/data/excel/export/assets`;
|
|
201
|
-
|
|
129
|
+
const { basePath, withCredentials } = this.configuration;
|
|
130
|
+
return this.httpClient.request<ExcelExportTableEntity>('get', `${basePath}${localVarPath}`, {
|
|
202
131
|
context: localVarHttpContext,
|
|
203
132
|
params: localVarQueryParameters,
|
|
204
133
|
responseType: <any>responseType_,
|
|
205
|
-
withCredentials:
|
|
134
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
206
135
|
headers: localVarHeaders,
|
|
207
136
|
observe: observe,
|
|
208
137
|
transferCache: localVarTransferCache,
|
|
@@ -243,38 +172,21 @@ export class DataImportExportManagementService {
|
|
|
243
172
|
const filter = requestParameters?.filter;
|
|
244
173
|
|
|
245
174
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
246
|
-
|
|
247
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
248
|
-
}
|
|
175
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
249
176
|
|
|
250
177
|
let localVarHeaders = this.defaultHeaders;
|
|
251
178
|
|
|
252
|
-
let localVarCredential: string | undefined;
|
|
253
179
|
// authentication (msal_auth) required
|
|
254
|
-
|
|
255
|
-
if (localVarCredential) {
|
|
256
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
257
|
-
}
|
|
180
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
258
181
|
|
|
259
|
-
|
|
260
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
261
|
-
// to determine the Accept header
|
|
262
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
263
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
264
|
-
}
|
|
182
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
265
183
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
266
184
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
267
185
|
}
|
|
268
186
|
|
|
269
|
-
|
|
270
|
-
if (localVarHttpContext === undefined) {
|
|
271
|
-
localVarHttpContext = new HttpContext();
|
|
272
|
-
}
|
|
187
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
273
188
|
|
|
274
|
-
|
|
275
|
-
if (localVarTransferCache === undefined) {
|
|
276
|
-
localVarTransferCache = true;
|
|
277
|
-
}
|
|
189
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
278
190
|
|
|
279
191
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
280
192
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -288,11 +200,12 @@ export class DataImportExportManagementService {
|
|
|
288
200
|
}
|
|
289
201
|
|
|
290
202
|
let localVarPath = `/data/excel/export`;
|
|
291
|
-
|
|
203
|
+
const { basePath, withCredentials } = this.configuration;
|
|
204
|
+
return this.httpClient.request<AgravityInfoResponse>('get', `${basePath}${localVarPath}`, {
|
|
292
205
|
context: localVarHttpContext,
|
|
293
206
|
params: localVarQueryParameters,
|
|
294
207
|
responseType: <any>responseType_,
|
|
295
|
-
withCredentials:
|
|
208
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
296
209
|
headers: localVarHeaders,
|
|
297
210
|
observe: observe,
|
|
298
211
|
transferCache: localVarTransferCache,
|
|
@@ -333,38 +246,21 @@ export class DataImportExportManagementService {
|
|
|
333
246
|
const filter = requestParameters?.filter;
|
|
334
247
|
|
|
335
248
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
336
|
-
|
|
337
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
338
|
-
}
|
|
249
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
339
250
|
|
|
340
251
|
let localVarHeaders = this.defaultHeaders;
|
|
341
252
|
|
|
342
|
-
let localVarCredential: string | undefined;
|
|
343
253
|
// authentication (msal_auth) required
|
|
344
|
-
|
|
345
|
-
if (localVarCredential) {
|
|
346
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
347
|
-
}
|
|
254
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
348
255
|
|
|
349
|
-
|
|
350
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
351
|
-
// to determine the Accept header
|
|
352
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
353
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
354
|
-
}
|
|
256
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
355
257
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
356
258
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
357
259
|
}
|
|
358
260
|
|
|
359
|
-
|
|
360
|
-
if (localVarHttpContext === undefined) {
|
|
361
|
-
localVarHttpContext = new HttpContext();
|
|
362
|
-
}
|
|
261
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
363
262
|
|
|
364
|
-
|
|
365
|
-
if (localVarTransferCache === undefined) {
|
|
366
|
-
localVarTransferCache = true;
|
|
367
|
-
}
|
|
263
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
368
264
|
|
|
369
265
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
370
266
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -378,11 +274,12 @@ export class DataImportExportManagementService {
|
|
|
378
274
|
}
|
|
379
275
|
|
|
380
276
|
let localVarPath = `/data/excel/export/translations`;
|
|
381
|
-
|
|
277
|
+
const { basePath, withCredentials } = this.configuration;
|
|
278
|
+
return this.httpClient.request<ExcelExportTableEntity>('get', `${basePath}${localVarPath}`, {
|
|
382
279
|
context: localVarHttpContext,
|
|
383
280
|
params: localVarQueryParameters,
|
|
384
281
|
responseType: <any>responseType_,
|
|
385
|
-
withCredentials:
|
|
282
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
386
283
|
headers: localVarHeaders,
|
|
387
284
|
observe: observe,
|
|
388
285
|
transferCache: localVarTransferCache,
|
|
@@ -397,25 +294,25 @@ export class DataImportExportManagementService {
|
|
|
397
294
|
* @param reportProgress flag to report request and response progress.
|
|
398
295
|
*/
|
|
399
296
|
public httpDataExportTranslationsCancel(
|
|
400
|
-
requestParameters
|
|
297
|
+
requestParameters: HttpDataExportTranslationsCancelRequestParams,
|
|
401
298
|
observe?: 'body',
|
|
402
299
|
reportProgress?: boolean,
|
|
403
300
|
options?: { httpHeaderAccept?: undefined; context?: HttpContext; transferCache?: boolean }
|
|
404
301
|
): Observable<any>;
|
|
405
302
|
public httpDataExportTranslationsCancel(
|
|
406
|
-
requestParameters
|
|
303
|
+
requestParameters: HttpDataExportTranslationsCancelRequestParams,
|
|
407
304
|
observe?: 'response',
|
|
408
305
|
reportProgress?: boolean,
|
|
409
306
|
options?: { httpHeaderAccept?: undefined; context?: HttpContext; transferCache?: boolean }
|
|
410
307
|
): Observable<HttpResponse<any>>;
|
|
411
308
|
public httpDataExportTranslationsCancel(
|
|
412
|
-
requestParameters
|
|
309
|
+
requestParameters: HttpDataExportTranslationsCancelRequestParams,
|
|
413
310
|
observe?: 'events',
|
|
414
311
|
reportProgress?: boolean,
|
|
415
312
|
options?: { httpHeaderAccept?: undefined; context?: HttpContext; transferCache?: boolean }
|
|
416
313
|
): Observable<HttpEvent<any>>;
|
|
417
314
|
public httpDataExportTranslationsCancel(
|
|
418
|
-
requestParameters
|
|
315
|
+
requestParameters: HttpDataExportTranslationsCancelRequestParams,
|
|
419
316
|
observe: any = 'body',
|
|
420
317
|
reportProgress: boolean = false,
|
|
421
318
|
options?: { httpHeaderAccept?: undefined; context?: HttpContext; transferCache?: boolean }
|
|
@@ -427,32 +324,17 @@ export class DataImportExportManagementService {
|
|
|
427
324
|
|
|
428
325
|
let localVarHeaders = this.defaultHeaders;
|
|
429
326
|
|
|
430
|
-
let localVarCredential: string | undefined;
|
|
431
327
|
// authentication (msal_auth) required
|
|
432
|
-
|
|
433
|
-
if (localVarCredential) {
|
|
434
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
435
|
-
}
|
|
328
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
436
329
|
|
|
437
|
-
|
|
438
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
439
|
-
// to determine the Accept header
|
|
440
|
-
const httpHeaderAccepts: string[] = [];
|
|
441
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
442
|
-
}
|
|
330
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
443
331
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
444
332
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
445
333
|
}
|
|
446
334
|
|
|
447
|
-
|
|
448
|
-
if (localVarHttpContext === undefined) {
|
|
449
|
-
localVarHttpContext = new HttpContext();
|
|
450
|
-
}
|
|
335
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
451
336
|
|
|
452
|
-
|
|
453
|
-
if (localVarTransferCache === undefined) {
|
|
454
|
-
localVarTransferCache = true;
|
|
455
|
-
}
|
|
337
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
456
338
|
|
|
457
339
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
458
340
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -466,10 +348,11 @@ export class DataImportExportManagementService {
|
|
|
466
348
|
}
|
|
467
349
|
|
|
468
350
|
let localVarPath = `/data/excel/export/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
469
|
-
|
|
351
|
+
const { basePath, withCredentials } = this.configuration;
|
|
352
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
470
353
|
context: localVarHttpContext,
|
|
471
354
|
responseType: <any>responseType_,
|
|
472
|
-
withCredentials:
|
|
355
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
473
356
|
headers: localVarHeaders,
|
|
474
357
|
observe: observe,
|
|
475
358
|
transferCache: localVarTransferCache,
|
|
@@ -484,25 +367,25 @@ export class DataImportExportManagementService {
|
|
|
484
367
|
* @param reportProgress flag to report request and response progress.
|
|
485
368
|
*/
|
|
486
369
|
public httpDataExportTranslationsCheckStatus(
|
|
487
|
-
requestParameters
|
|
370
|
+
requestParameters: HttpDataExportTranslationsCheckStatusRequestParams,
|
|
488
371
|
observe?: 'body',
|
|
489
372
|
reportProgress?: boolean,
|
|
490
373
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
491
374
|
): Observable<ExcelExportTableEntity>;
|
|
492
375
|
public httpDataExportTranslationsCheckStatus(
|
|
493
|
-
requestParameters
|
|
376
|
+
requestParameters: HttpDataExportTranslationsCheckStatusRequestParams,
|
|
494
377
|
observe?: 'response',
|
|
495
378
|
reportProgress?: boolean,
|
|
496
379
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
497
380
|
): Observable<HttpResponse<ExcelExportTableEntity>>;
|
|
498
381
|
public httpDataExportTranslationsCheckStatus(
|
|
499
|
-
requestParameters
|
|
382
|
+
requestParameters: HttpDataExportTranslationsCheckStatusRequestParams,
|
|
500
383
|
observe?: 'events',
|
|
501
384
|
reportProgress?: boolean,
|
|
502
385
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
503
386
|
): Observable<HttpEvent<ExcelExportTableEntity>>;
|
|
504
387
|
public httpDataExportTranslationsCheckStatus(
|
|
505
|
-
requestParameters
|
|
388
|
+
requestParameters: HttpDataExportTranslationsCheckStatusRequestParams,
|
|
506
389
|
observe: any = 'body',
|
|
507
390
|
reportProgress: boolean = false,
|
|
508
391
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -514,32 +397,17 @@ export class DataImportExportManagementService {
|
|
|
514
397
|
|
|
515
398
|
let localVarHeaders = this.defaultHeaders;
|
|
516
399
|
|
|
517
|
-
let localVarCredential: string | undefined;
|
|
518
400
|
// authentication (msal_auth) required
|
|
519
|
-
|
|
520
|
-
if (localVarCredential) {
|
|
521
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
522
|
-
}
|
|
401
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
523
402
|
|
|
524
|
-
|
|
525
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
526
|
-
// to determine the Accept header
|
|
527
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
528
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
529
|
-
}
|
|
403
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
530
404
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
531
405
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
532
406
|
}
|
|
533
407
|
|
|
534
|
-
|
|
535
|
-
if (localVarHttpContext === undefined) {
|
|
536
|
-
localVarHttpContext = new HttpContext();
|
|
537
|
-
}
|
|
408
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
538
409
|
|
|
539
|
-
|
|
540
|
-
if (localVarTransferCache === undefined) {
|
|
541
|
-
localVarTransferCache = true;
|
|
542
|
-
}
|
|
410
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
543
411
|
|
|
544
412
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
545
413
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -553,10 +421,11 @@ export class DataImportExportManagementService {
|
|
|
553
421
|
}
|
|
554
422
|
|
|
555
423
|
let localVarPath = `/data/excel/export/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
556
|
-
|
|
424
|
+
const { basePath, withCredentials } = this.configuration;
|
|
425
|
+
return this.httpClient.request<ExcelExportTableEntity>('get', `${basePath}${localVarPath}`, {
|
|
557
426
|
context: localVarHttpContext,
|
|
558
427
|
responseType: <any>responseType_,
|
|
559
|
-
withCredentials:
|
|
428
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
560
429
|
headers: localVarHeaders,
|
|
561
430
|
observe: observe,
|
|
562
431
|
transferCache: localVarTransferCache,
|
|
@@ -591,32 +460,17 @@ export class DataImportExportManagementService {
|
|
|
591
460
|
): Observable<any> {
|
|
592
461
|
let localVarHeaders = this.defaultHeaders;
|
|
593
462
|
|
|
594
|
-
let localVarCredential: string | undefined;
|
|
595
463
|
// authentication (msal_auth) required
|
|
596
|
-
|
|
597
|
-
if (localVarCredential) {
|
|
598
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
599
|
-
}
|
|
464
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
600
465
|
|
|
601
|
-
|
|
602
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
603
|
-
// to determine the Accept header
|
|
604
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
605
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
606
|
-
}
|
|
466
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
607
467
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
608
468
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
609
469
|
}
|
|
610
470
|
|
|
611
|
-
|
|
612
|
-
if (localVarHttpContext === undefined) {
|
|
613
|
-
localVarHttpContext = new HttpContext();
|
|
614
|
-
}
|
|
471
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
615
472
|
|
|
616
|
-
|
|
617
|
-
if (localVarTransferCache === undefined) {
|
|
618
|
-
localVarTransferCache = true;
|
|
619
|
-
}
|
|
473
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
620
474
|
|
|
621
475
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
622
476
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -630,10 +484,11 @@ export class DataImportExportManagementService {
|
|
|
630
484
|
}
|
|
631
485
|
|
|
632
486
|
let localVarPath = `/data/excel/import/translations`;
|
|
633
|
-
|
|
487
|
+
const { basePath, withCredentials } = this.configuration;
|
|
488
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${basePath}${localVarPath}`, {
|
|
634
489
|
context: localVarHttpContext,
|
|
635
490
|
responseType: <any>responseType_,
|
|
636
|
-
withCredentials:
|
|
491
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
637
492
|
headers: localVarHeaders,
|
|
638
493
|
observe: observe,
|
|
639
494
|
transferCache: localVarTransferCache,
|