@agravity/private 9.3.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/comment.agravity.ts +1 -0
- 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 { TranslationRequest } from '../model/translationRequest.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 HttpBulkTranslationsRequestParams {
|
|
31
32
|
/** A list of entity IDs (can be assets, collections, collection types, download formats, etc. */
|
|
@@ -66,73 +67,19 @@ export interface HttpUpdateTranslationsByIdRequestParams {
|
|
|
66
67
|
/** The ID of any translateable entity (Asset, Collection, Collection Type, Download Format). */
|
|
67
68
|
id: string;
|
|
68
69
|
/** The body has to contain the dictionary of the dictionaries with all translations. Not fitting properties are ignored. */
|
|
69
|
-
requestBody: { [key: string]: { [key: string]:
|
|
70
|
+
requestBody: { [key: string]: { [key: string]: any } };
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
@Injectable({
|
|
73
74
|
providedIn: 'root'
|
|
74
75
|
})
|
|
75
|
-
export class TranslationManagementService {
|
|
76
|
-
protected basePath = 'http://localhost:7071/api';
|
|
77
|
-
public defaultHeaders = new HttpHeaders();
|
|
78
|
-
public configuration = new AgravityConfiguration();
|
|
79
|
-
public encoder: HttpParameterCodec;
|
|
80
|
-
|
|
76
|
+
export class TranslationManagementService extends BaseService {
|
|
81
77
|
constructor(
|
|
82
78
|
protected httpClient: HttpClient,
|
|
83
79
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
84
|
-
@Optional() configuration
|
|
80
|
+
@Optional() configuration?: AgravityConfiguration
|
|
85
81
|
) {
|
|
86
|
-
|
|
87
|
-
this.configuration = configuration;
|
|
88
|
-
}
|
|
89
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
90
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
91
|
-
if (firstBasePath != undefined) {
|
|
92
|
-
basePath = firstBasePath;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (typeof basePath !== 'string') {
|
|
96
|
-
basePath = this.basePath;
|
|
97
|
-
}
|
|
98
|
-
this.configuration.basePath = basePath;
|
|
99
|
-
}
|
|
100
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// @ts-ignore
|
|
104
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
105
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
106
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
107
|
-
} else {
|
|
108
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
109
|
-
}
|
|
110
|
-
return httpParams;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
114
|
-
if (value == null) {
|
|
115
|
-
return httpParams;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (typeof value === 'object') {
|
|
119
|
-
if (Array.isArray(value)) {
|
|
120
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
121
|
-
} else if (value instanceof Date) {
|
|
122
|
-
if (key != null) {
|
|
123
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
124
|
-
} else {
|
|
125
|
-
throw Error('key may not be null if value is Date');
|
|
126
|
-
}
|
|
127
|
-
} else {
|
|
128
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
129
|
-
}
|
|
130
|
-
} else if (key != null) {
|
|
131
|
-
httpParams = httpParams.append(key, value);
|
|
132
|
-
} else {
|
|
133
|
-
throw Error('key may not be null if value is not object or array');
|
|
134
|
-
}
|
|
135
|
-
return httpParams;
|
|
82
|
+
super(basePath, configuration);
|
|
136
83
|
}
|
|
137
84
|
|
|
138
85
|
/**
|
|
@@ -142,25 +89,25 @@ export class TranslationManagementService {
|
|
|
142
89
|
* @param reportProgress flag to report request and response progress.
|
|
143
90
|
*/
|
|
144
91
|
public httpBulkTranslations(
|
|
145
|
-
requestParameters
|
|
92
|
+
requestParameters: HttpBulkTranslationsRequestParams,
|
|
146
93
|
observe?: 'body',
|
|
147
94
|
reportProgress?: boolean,
|
|
148
95
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
149
96
|
): Observable<Array<EntityTranslations>>;
|
|
150
97
|
public httpBulkTranslations(
|
|
151
|
-
requestParameters
|
|
98
|
+
requestParameters: HttpBulkTranslationsRequestParams,
|
|
152
99
|
observe?: 'response',
|
|
153
100
|
reportProgress?: boolean,
|
|
154
101
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
155
102
|
): Observable<HttpResponse<Array<EntityTranslations>>>;
|
|
156
103
|
public httpBulkTranslations(
|
|
157
|
-
requestParameters
|
|
104
|
+
requestParameters: HttpBulkTranslationsRequestParams,
|
|
158
105
|
observe?: 'events',
|
|
159
106
|
reportProgress?: boolean,
|
|
160
107
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
161
108
|
): Observable<HttpEvent<Array<EntityTranslations>>>;
|
|
162
109
|
public httpBulkTranslations(
|
|
163
|
-
requestParameters
|
|
110
|
+
requestParameters: HttpBulkTranslationsRequestParams,
|
|
164
111
|
observe: any = 'body',
|
|
165
112
|
reportProgress: boolean = false,
|
|
166
113
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -172,38 +119,21 @@ export class TranslationManagementService {
|
|
|
172
119
|
const property = requestParameters?.property;
|
|
173
120
|
|
|
174
121
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
175
|
-
|
|
176
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>property, 'property');
|
|
177
|
-
}
|
|
122
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>property, 'property');
|
|
178
123
|
|
|
179
124
|
let localVarHeaders = this.defaultHeaders;
|
|
180
125
|
|
|
181
|
-
let localVarCredential: string | undefined;
|
|
182
126
|
// authentication (msal_auth) required
|
|
183
|
-
|
|
184
|
-
if (localVarCredential) {
|
|
185
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
186
|
-
}
|
|
127
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
187
128
|
|
|
188
|
-
|
|
189
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
190
|
-
// to determine the Accept header
|
|
191
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
192
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
193
|
-
}
|
|
129
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
194
130
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
195
131
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
196
132
|
}
|
|
197
133
|
|
|
198
|
-
|
|
199
|
-
if (localVarHttpContext === undefined) {
|
|
200
|
-
localVarHttpContext = new HttpContext();
|
|
201
|
-
}
|
|
134
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
202
135
|
|
|
203
|
-
|
|
204
|
-
if (localVarTransferCache === undefined) {
|
|
205
|
-
localVarTransferCache = true;
|
|
206
|
-
}
|
|
136
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
207
137
|
|
|
208
138
|
// to determine the Content-Type header
|
|
209
139
|
const consumes: string[] = ['application/json'];
|
|
@@ -224,12 +154,13 @@ export class TranslationManagementService {
|
|
|
224
154
|
}
|
|
225
155
|
|
|
226
156
|
let localVarPath = `/translations`;
|
|
227
|
-
|
|
157
|
+
const { basePath, withCredentials } = this.configuration;
|
|
158
|
+
return this.httpClient.request<Array<EntityTranslations>>('post', `${basePath}${localVarPath}`, {
|
|
228
159
|
context: localVarHttpContext,
|
|
229
160
|
body: requestBody,
|
|
230
161
|
params: localVarQueryParameters,
|
|
231
162
|
responseType: <any>responseType_,
|
|
232
|
-
withCredentials:
|
|
163
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
233
164
|
headers: localVarHeaders,
|
|
234
165
|
observe: observe,
|
|
235
166
|
transferCache: localVarTransferCache,
|
|
@@ -244,25 +175,25 @@ export class TranslationManagementService {
|
|
|
244
175
|
* @param reportProgress flag to report request and response progress.
|
|
245
176
|
*/
|
|
246
177
|
public httpCognitiveTranslateText(
|
|
247
|
-
requestParameters
|
|
178
|
+
requestParameters: HttpCognitiveTranslateTextRequestParams,
|
|
248
179
|
observe?: 'body',
|
|
249
180
|
reportProgress?: boolean,
|
|
250
181
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
251
182
|
): Observable<Array<Translation>>;
|
|
252
183
|
public httpCognitiveTranslateText(
|
|
253
|
-
requestParameters
|
|
184
|
+
requestParameters: HttpCognitiveTranslateTextRequestParams,
|
|
254
185
|
observe?: 'response',
|
|
255
186
|
reportProgress?: boolean,
|
|
256
187
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
257
188
|
): Observable<HttpResponse<Array<Translation>>>;
|
|
258
189
|
public httpCognitiveTranslateText(
|
|
259
|
-
requestParameters
|
|
190
|
+
requestParameters: HttpCognitiveTranslateTextRequestParams,
|
|
260
191
|
observe?: 'events',
|
|
261
192
|
reportProgress?: boolean,
|
|
262
193
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
263
194
|
): Observable<HttpEvent<Array<Translation>>>;
|
|
264
195
|
public httpCognitiveTranslateText(
|
|
265
|
-
requestParameters
|
|
196
|
+
requestParameters: HttpCognitiveTranslateTextRequestParams,
|
|
266
197
|
observe: any = 'body',
|
|
267
198
|
reportProgress: boolean = false,
|
|
268
199
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -274,32 +205,17 @@ export class TranslationManagementService {
|
|
|
274
205
|
|
|
275
206
|
let localVarHeaders = this.defaultHeaders;
|
|
276
207
|
|
|
277
|
-
let localVarCredential: string | undefined;
|
|
278
208
|
// authentication (msal_auth) required
|
|
279
|
-
|
|
280
|
-
if (localVarCredential) {
|
|
281
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
282
|
-
}
|
|
209
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
283
210
|
|
|
284
|
-
|
|
285
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
286
|
-
// to determine the Accept header
|
|
287
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
288
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
289
|
-
}
|
|
211
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
290
212
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
291
213
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
292
214
|
}
|
|
293
215
|
|
|
294
|
-
|
|
295
|
-
if (localVarHttpContext === undefined) {
|
|
296
|
-
localVarHttpContext = new HttpContext();
|
|
297
|
-
}
|
|
216
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
298
217
|
|
|
299
|
-
|
|
300
|
-
if (localVarTransferCache === undefined) {
|
|
301
|
-
localVarTransferCache = true;
|
|
302
|
-
}
|
|
218
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
303
219
|
|
|
304
220
|
// to determine the Content-Type header
|
|
305
221
|
const consumes: string[] = ['application/json'];
|
|
@@ -320,11 +236,12 @@ export class TranslationManagementService {
|
|
|
320
236
|
}
|
|
321
237
|
|
|
322
238
|
let localVarPath = `/translations-ai`;
|
|
323
|
-
|
|
239
|
+
const { basePath, withCredentials } = this.configuration;
|
|
240
|
+
return this.httpClient.request<Array<Translation>>('post', `${basePath}${localVarPath}`, {
|
|
324
241
|
context: localVarHttpContext,
|
|
325
242
|
body: translationRequest,
|
|
326
243
|
responseType: <any>responseType_,
|
|
327
|
-
withCredentials:
|
|
244
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
328
245
|
headers: localVarHeaders,
|
|
329
246
|
observe: observe,
|
|
330
247
|
transferCache: localVarTransferCache,
|
|
@@ -339,25 +256,25 @@ export class TranslationManagementService {
|
|
|
339
256
|
* @param reportProgress flag to report request and response progress.
|
|
340
257
|
*/
|
|
341
258
|
public httpTranslationsById(
|
|
342
|
-
requestParameters
|
|
259
|
+
requestParameters: HttpTranslationsByIdRequestParams,
|
|
343
260
|
observe?: 'body',
|
|
344
261
|
reportProgress?: boolean,
|
|
345
262
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
346
|
-
): Observable<{ [key: string]: { [key: string]:
|
|
263
|
+
): Observable<{ [key: string]: { [key: string]: any } }>;
|
|
347
264
|
public httpTranslationsById(
|
|
348
|
-
requestParameters
|
|
265
|
+
requestParameters: HttpTranslationsByIdRequestParams,
|
|
349
266
|
observe?: 'response',
|
|
350
267
|
reportProgress?: boolean,
|
|
351
268
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
352
|
-
): Observable<HttpResponse<{ [key: string]: { [key: string]:
|
|
269
|
+
): Observable<HttpResponse<{ [key: string]: { [key: string]: any } }>>;
|
|
353
270
|
public httpTranslationsById(
|
|
354
|
-
requestParameters
|
|
271
|
+
requestParameters: HttpTranslationsByIdRequestParams,
|
|
355
272
|
observe?: 'events',
|
|
356
273
|
reportProgress?: boolean,
|
|
357
274
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
358
|
-
): Observable<HttpEvent<{ [key: string]: { [key: string]:
|
|
275
|
+
): Observable<HttpEvent<{ [key: string]: { [key: string]: any } }>>;
|
|
359
276
|
public httpTranslationsById(
|
|
360
|
-
requestParameters
|
|
277
|
+
requestParameters: HttpTranslationsByIdRequestParams,
|
|
361
278
|
observe: any = 'body',
|
|
362
279
|
reportProgress: boolean = false,
|
|
363
280
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -369,38 +286,21 @@ export class TranslationManagementService {
|
|
|
369
286
|
const items = requestParameters?.items;
|
|
370
287
|
|
|
371
288
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
372
|
-
|
|
373
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
374
|
-
}
|
|
289
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
375
290
|
|
|
376
291
|
let localVarHeaders = this.defaultHeaders;
|
|
377
292
|
|
|
378
|
-
let localVarCredential: string | undefined;
|
|
379
293
|
// authentication (msal_auth) required
|
|
380
|
-
|
|
381
|
-
if (localVarCredential) {
|
|
382
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
383
|
-
}
|
|
294
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
384
295
|
|
|
385
|
-
|
|
386
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
387
|
-
// to determine the Accept header
|
|
388
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
389
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
390
|
-
}
|
|
296
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
391
297
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
392
298
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
393
299
|
}
|
|
394
300
|
|
|
395
|
-
|
|
396
|
-
if (localVarHttpContext === undefined) {
|
|
397
|
-
localVarHttpContext = new HttpContext();
|
|
398
|
-
}
|
|
301
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
399
302
|
|
|
400
|
-
|
|
401
|
-
if (localVarTransferCache === undefined) {
|
|
402
|
-
localVarTransferCache = true;
|
|
403
|
-
}
|
|
303
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
404
304
|
|
|
405
305
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
406
306
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -414,11 +314,12 @@ export class TranslationManagementService {
|
|
|
414
314
|
}
|
|
415
315
|
|
|
416
316
|
let localVarPath = `/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
417
|
-
|
|
317
|
+
const { basePath, withCredentials } = this.configuration;
|
|
318
|
+
return this.httpClient.request<{ [key: string]: { [key: string]: any } }>('get', `${basePath}${localVarPath}`, {
|
|
418
319
|
context: localVarHttpContext,
|
|
419
320
|
params: localVarQueryParameters,
|
|
420
321
|
responseType: <any>responseType_,
|
|
421
|
-
withCredentials:
|
|
322
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
422
323
|
headers: localVarHeaders,
|
|
423
324
|
observe: observe,
|
|
424
325
|
transferCache: localVarTransferCache,
|
|
@@ -433,25 +334,25 @@ export class TranslationManagementService {
|
|
|
433
334
|
* @param reportProgress flag to report request and response progress.
|
|
434
335
|
*/
|
|
435
336
|
public httpTranslationsByIdFilterByCustomField(
|
|
436
|
-
requestParameters
|
|
337
|
+
requestParameters: HttpTranslationsByIdFilterByCustomFieldRequestParams,
|
|
437
338
|
observe?: 'body',
|
|
438
339
|
reportProgress?: boolean,
|
|
439
340
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
440
|
-
): Observable<{ [key: string]: { [key: string]:
|
|
341
|
+
): Observable<{ [key: string]: { [key: string]: any } }>;
|
|
441
342
|
public httpTranslationsByIdFilterByCustomField(
|
|
442
|
-
requestParameters
|
|
343
|
+
requestParameters: HttpTranslationsByIdFilterByCustomFieldRequestParams,
|
|
443
344
|
observe?: 'response',
|
|
444
345
|
reportProgress?: boolean,
|
|
445
346
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
446
|
-
): Observable<HttpResponse<{ [key: string]: { [key: string]:
|
|
347
|
+
): Observable<HttpResponse<{ [key: string]: { [key: string]: any } }>>;
|
|
447
348
|
public httpTranslationsByIdFilterByCustomField(
|
|
448
|
-
requestParameters
|
|
349
|
+
requestParameters: HttpTranslationsByIdFilterByCustomFieldRequestParams,
|
|
449
350
|
observe?: 'events',
|
|
450
351
|
reportProgress?: boolean,
|
|
451
352
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
452
|
-
): Observable<HttpEvent<{ [key: string]: { [key: string]:
|
|
353
|
+
): Observable<HttpEvent<{ [key: string]: { [key: string]: any } }>>;
|
|
453
354
|
public httpTranslationsByIdFilterByCustomField(
|
|
454
|
-
requestParameters
|
|
355
|
+
requestParameters: HttpTranslationsByIdFilterByCustomFieldRequestParams,
|
|
455
356
|
observe: any = 'body',
|
|
456
357
|
reportProgress: boolean = false,
|
|
457
358
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -467,32 +368,17 @@ export class TranslationManagementService {
|
|
|
467
368
|
|
|
468
369
|
let localVarHeaders = this.defaultHeaders;
|
|
469
370
|
|
|
470
|
-
let localVarCredential: string | undefined;
|
|
471
371
|
// authentication (msal_auth) required
|
|
472
|
-
|
|
473
|
-
if (localVarCredential) {
|
|
474
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
475
|
-
}
|
|
372
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
476
373
|
|
|
477
|
-
|
|
478
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
479
|
-
// to determine the Accept header
|
|
480
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
481
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
482
|
-
}
|
|
374
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
483
375
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
484
376
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
485
377
|
}
|
|
486
378
|
|
|
487
|
-
|
|
488
|
-
if (localVarHttpContext === undefined) {
|
|
489
|
-
localVarHttpContext = new HttpContext();
|
|
490
|
-
}
|
|
379
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
491
380
|
|
|
492
|
-
|
|
493
|
-
if (localVarTransferCache === undefined) {
|
|
494
|
-
localVarTransferCache = true;
|
|
495
|
-
}
|
|
381
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
496
382
|
|
|
497
383
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
498
384
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -506,10 +392,11 @@ export class TranslationManagementService {
|
|
|
506
392
|
}
|
|
507
393
|
|
|
508
394
|
let localVarPath = `/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/custom/${this.configuration.encodeParam({ name: 'customField', value: customField, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
509
|
-
|
|
395
|
+
const { basePath, withCredentials } = this.configuration;
|
|
396
|
+
return this.httpClient.request<{ [key: string]: { [key: string]: any } }>('get', `${basePath}${localVarPath}`, {
|
|
510
397
|
context: localVarHttpContext,
|
|
511
398
|
responseType: <any>responseType_,
|
|
512
|
-
withCredentials:
|
|
399
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
513
400
|
headers: localVarHeaders,
|
|
514
401
|
observe: observe,
|
|
515
402
|
transferCache: localVarTransferCache,
|
|
@@ -524,25 +411,25 @@ export class TranslationManagementService {
|
|
|
524
411
|
* @param reportProgress flag to report request and response progress.
|
|
525
412
|
*/
|
|
526
413
|
public httpTranslationsByIdFilterByProperty(
|
|
527
|
-
requestParameters
|
|
414
|
+
requestParameters: HttpTranslationsByIdFilterByPropertyRequestParams,
|
|
528
415
|
observe?: 'body',
|
|
529
416
|
reportProgress?: boolean,
|
|
530
417
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
531
|
-
): Observable<{ [key: string]: { [key: string]:
|
|
418
|
+
): Observable<{ [key: string]: { [key: string]: any } }>;
|
|
532
419
|
public httpTranslationsByIdFilterByProperty(
|
|
533
|
-
requestParameters
|
|
420
|
+
requestParameters: HttpTranslationsByIdFilterByPropertyRequestParams,
|
|
534
421
|
observe?: 'response',
|
|
535
422
|
reportProgress?: boolean,
|
|
536
423
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
537
|
-
): Observable<HttpResponse<{ [key: string]: { [key: string]:
|
|
424
|
+
): Observable<HttpResponse<{ [key: string]: { [key: string]: any } }>>;
|
|
538
425
|
public httpTranslationsByIdFilterByProperty(
|
|
539
|
-
requestParameters
|
|
426
|
+
requestParameters: HttpTranslationsByIdFilterByPropertyRequestParams,
|
|
540
427
|
observe?: 'events',
|
|
541
428
|
reportProgress?: boolean,
|
|
542
429
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
543
|
-
): Observable<HttpEvent<{ [key: string]: { [key: string]:
|
|
430
|
+
): Observable<HttpEvent<{ [key: string]: { [key: string]: any } }>>;
|
|
544
431
|
public httpTranslationsByIdFilterByProperty(
|
|
545
|
-
requestParameters
|
|
432
|
+
requestParameters: HttpTranslationsByIdFilterByPropertyRequestParams,
|
|
546
433
|
observe: any = 'body',
|
|
547
434
|
reportProgress: boolean = false,
|
|
548
435
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -558,38 +445,21 @@ export class TranslationManagementService {
|
|
|
558
445
|
const items = requestParameters?.items;
|
|
559
446
|
|
|
560
447
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
561
|
-
|
|
562
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
563
|
-
}
|
|
448
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
564
449
|
|
|
565
450
|
let localVarHeaders = this.defaultHeaders;
|
|
566
451
|
|
|
567
|
-
let localVarCredential: string | undefined;
|
|
568
452
|
// authentication (msal_auth) required
|
|
569
|
-
|
|
570
|
-
if (localVarCredential) {
|
|
571
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
572
|
-
}
|
|
453
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
573
454
|
|
|
574
|
-
|
|
575
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
576
|
-
// to determine the Accept header
|
|
577
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
578
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
579
|
-
}
|
|
455
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
580
456
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
581
457
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
582
458
|
}
|
|
583
459
|
|
|
584
|
-
|
|
585
|
-
if (localVarHttpContext === undefined) {
|
|
586
|
-
localVarHttpContext = new HttpContext();
|
|
587
|
-
}
|
|
460
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
588
461
|
|
|
589
|
-
|
|
590
|
-
if (localVarTransferCache === undefined) {
|
|
591
|
-
localVarTransferCache = true;
|
|
592
|
-
}
|
|
462
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
593
463
|
|
|
594
464
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
595
465
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -603,11 +473,12 @@ export class TranslationManagementService {
|
|
|
603
473
|
}
|
|
604
474
|
|
|
605
475
|
let localVarPath = `/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/${this.configuration.encodeParam({ name: 'property', value: property, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
606
|
-
|
|
476
|
+
const { basePath, withCredentials } = this.configuration;
|
|
477
|
+
return this.httpClient.request<{ [key: string]: { [key: string]: any } }>('get', `${basePath}${localVarPath}`, {
|
|
607
478
|
context: localVarHttpContext,
|
|
608
479
|
params: localVarQueryParameters,
|
|
609
480
|
responseType: <any>responseType_,
|
|
610
|
-
withCredentials:
|
|
481
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
611
482
|
headers: localVarHeaders,
|
|
612
483
|
observe: observe,
|
|
613
484
|
transferCache: localVarTransferCache,
|
|
@@ -622,25 +493,25 @@ export class TranslationManagementService {
|
|
|
622
493
|
* @param reportProgress flag to report request and response progress.
|
|
623
494
|
*/
|
|
624
495
|
public httpUpdateTranslationsById(
|
|
625
|
-
requestParameters
|
|
496
|
+
requestParameters: HttpUpdateTranslationsByIdRequestParams,
|
|
626
497
|
observe?: 'body',
|
|
627
498
|
reportProgress?: boolean,
|
|
628
499
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
629
|
-
): Observable<{ [key: string]: { [key: string]:
|
|
500
|
+
): Observable<{ [key: string]: { [key: string]: any } }>;
|
|
630
501
|
public httpUpdateTranslationsById(
|
|
631
|
-
requestParameters
|
|
502
|
+
requestParameters: HttpUpdateTranslationsByIdRequestParams,
|
|
632
503
|
observe?: 'response',
|
|
633
504
|
reportProgress?: boolean,
|
|
634
505
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
635
|
-
): Observable<HttpResponse<{ [key: string]: { [key: string]:
|
|
506
|
+
): Observable<HttpResponse<{ [key: string]: { [key: string]: any } }>>;
|
|
636
507
|
public httpUpdateTranslationsById(
|
|
637
|
-
requestParameters
|
|
508
|
+
requestParameters: HttpUpdateTranslationsByIdRequestParams,
|
|
638
509
|
observe?: 'events',
|
|
639
510
|
reportProgress?: boolean,
|
|
640
511
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
641
|
-
): Observable<HttpEvent<{ [key: string]: { [key: string]:
|
|
512
|
+
): Observable<HttpEvent<{ [key: string]: { [key: string]: any } }>>;
|
|
642
513
|
public httpUpdateTranslationsById(
|
|
643
|
-
requestParameters
|
|
514
|
+
requestParameters: HttpUpdateTranslationsByIdRequestParams,
|
|
644
515
|
observe: any = 'body',
|
|
645
516
|
reportProgress: boolean = false,
|
|
646
517
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -656,32 +527,17 @@ export class TranslationManagementService {
|
|
|
656
527
|
|
|
657
528
|
let localVarHeaders = this.defaultHeaders;
|
|
658
529
|
|
|
659
|
-
let localVarCredential: string | undefined;
|
|
660
530
|
// authentication (msal_auth) required
|
|
661
|
-
|
|
662
|
-
if (localVarCredential) {
|
|
663
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
664
|
-
}
|
|
531
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
665
532
|
|
|
666
|
-
|
|
667
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
668
|
-
// to determine the Accept header
|
|
669
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
670
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
671
|
-
}
|
|
533
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
672
534
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
673
535
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
674
536
|
}
|
|
675
537
|
|
|
676
|
-
|
|
677
|
-
if (localVarHttpContext === undefined) {
|
|
678
|
-
localVarHttpContext = new HttpContext();
|
|
679
|
-
}
|
|
538
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
680
539
|
|
|
681
|
-
|
|
682
|
-
if (localVarTransferCache === undefined) {
|
|
683
|
-
localVarTransferCache = true;
|
|
684
|
-
}
|
|
540
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
685
541
|
|
|
686
542
|
// to determine the Content-Type header
|
|
687
543
|
const consumes: string[] = ['application/json'];
|
|
@@ -702,11 +558,12 @@ export class TranslationManagementService {
|
|
|
702
558
|
}
|
|
703
559
|
|
|
704
560
|
let localVarPath = `/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
705
|
-
|
|
561
|
+
const { basePath, withCredentials } = this.configuration;
|
|
562
|
+
return this.httpClient.request<{ [key: string]: { [key: string]: any } }>('post', `${basePath}${localVarPath}`, {
|
|
706
563
|
context: localVarHttpContext,
|
|
707
564
|
body: requestBody,
|
|
708
565
|
responseType: <any>responseType_,
|
|
709
|
-
withCredentials:
|
|
566
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
710
567
|
headers: localVarHeaders,
|
|
711
568
|
observe: observe,
|
|
712
569
|
transferCache: localVarTransferCache,
|