@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
|
@@ -28,6 +28,7 @@ import { PermissionChange } from '../model/permissionChange.agravity';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
30
30
|
import { AgravityConfiguration } from '../configuration';
|
|
31
|
+
import { BaseService } from '../api.base.service';
|
|
31
32
|
|
|
32
33
|
export interface HttpCollectionTypesCreateRequestParams {
|
|
33
34
|
/** This endpoint creates a unique collection type ID and adds the information to the database. */
|
|
@@ -96,67 +97,13 @@ export interface HttpUpdateCollectionTypeItemsRequestParams {
|
|
|
96
97
|
@Injectable({
|
|
97
98
|
providedIn: 'root'
|
|
98
99
|
})
|
|
99
|
-
export class CollectionTypeManagementService {
|
|
100
|
-
protected basePath = 'http://localhost:7071/api';
|
|
101
|
-
public defaultHeaders = new HttpHeaders();
|
|
102
|
-
public configuration = new AgravityConfiguration();
|
|
103
|
-
public encoder: HttpParameterCodec;
|
|
104
|
-
|
|
100
|
+
export class CollectionTypeManagementService extends BaseService {
|
|
105
101
|
constructor(
|
|
106
102
|
protected httpClient: HttpClient,
|
|
107
103
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
108
|
-
@Optional() configuration
|
|
104
|
+
@Optional() configuration?: AgravityConfiguration
|
|
109
105
|
) {
|
|
110
|
-
|
|
111
|
-
this.configuration = configuration;
|
|
112
|
-
}
|
|
113
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
114
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
115
|
-
if (firstBasePath != undefined) {
|
|
116
|
-
basePath = firstBasePath;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (typeof basePath !== 'string') {
|
|
120
|
-
basePath = this.basePath;
|
|
121
|
-
}
|
|
122
|
-
this.configuration.basePath = basePath;
|
|
123
|
-
}
|
|
124
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// @ts-ignore
|
|
128
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
129
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
130
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
131
|
-
} else {
|
|
132
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
133
|
-
}
|
|
134
|
-
return httpParams;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
138
|
-
if (value == null) {
|
|
139
|
-
return httpParams;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
if (typeof value === 'object') {
|
|
143
|
-
if (Array.isArray(value)) {
|
|
144
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
145
|
-
} else if (value instanceof Date) {
|
|
146
|
-
if (key != null) {
|
|
147
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
148
|
-
} else {
|
|
149
|
-
throw Error('key may not be null if value is Date');
|
|
150
|
-
}
|
|
151
|
-
} else {
|
|
152
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
153
|
-
}
|
|
154
|
-
} else if (key != null) {
|
|
155
|
-
httpParams = httpParams.append(key, value);
|
|
156
|
-
} else {
|
|
157
|
-
throw Error('key may not be null if value is not object or array');
|
|
158
|
-
}
|
|
159
|
-
return httpParams;
|
|
106
|
+
super(basePath, configuration);
|
|
160
107
|
}
|
|
161
108
|
|
|
162
109
|
/**
|
|
@@ -166,25 +113,25 @@ export class CollectionTypeManagementService {
|
|
|
166
113
|
* @param reportProgress flag to report request and response progress.
|
|
167
114
|
*/
|
|
168
115
|
public httpCollectionTypesCreate(
|
|
169
|
-
requestParameters
|
|
116
|
+
requestParameters: HttpCollectionTypesCreateRequestParams,
|
|
170
117
|
observe?: 'body',
|
|
171
118
|
reportProgress?: boolean,
|
|
172
119
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
173
120
|
): Observable<CollectionType>;
|
|
174
121
|
public httpCollectionTypesCreate(
|
|
175
|
-
requestParameters
|
|
122
|
+
requestParameters: HttpCollectionTypesCreateRequestParams,
|
|
176
123
|
observe?: 'response',
|
|
177
124
|
reportProgress?: boolean,
|
|
178
125
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
179
126
|
): Observable<HttpResponse<CollectionType>>;
|
|
180
127
|
public httpCollectionTypesCreate(
|
|
181
|
-
requestParameters
|
|
128
|
+
requestParameters: HttpCollectionTypesCreateRequestParams,
|
|
182
129
|
observe?: 'events',
|
|
183
130
|
reportProgress?: boolean,
|
|
184
131
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
185
132
|
): Observable<HttpEvent<CollectionType>>;
|
|
186
133
|
public httpCollectionTypesCreate(
|
|
187
|
-
requestParameters
|
|
134
|
+
requestParameters: HttpCollectionTypesCreateRequestParams,
|
|
188
135
|
observe: any = 'body',
|
|
189
136
|
reportProgress: boolean = false,
|
|
190
137
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -198,44 +145,25 @@ export class CollectionTypeManagementService {
|
|
|
198
145
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
199
146
|
|
|
200
147
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
if (translations !== undefined && translations !== null) {
|
|
205
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
206
|
-
}
|
|
148
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>workspaceid, 'workspaceid');
|
|
149
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
207
150
|
|
|
208
151
|
let localVarHeaders = this.defaultHeaders;
|
|
209
152
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
210
153
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
211
154
|
}
|
|
212
155
|
|
|
213
|
-
let localVarCredential: string | undefined;
|
|
214
156
|
// authentication (msal_auth) required
|
|
215
|
-
|
|
216
|
-
if (localVarCredential) {
|
|
217
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
218
|
-
}
|
|
157
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
219
158
|
|
|
220
|
-
|
|
221
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
222
|
-
// to determine the Accept header
|
|
223
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
224
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
225
|
-
}
|
|
159
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
226
160
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
227
161
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
228
162
|
}
|
|
229
163
|
|
|
230
|
-
|
|
231
|
-
if (localVarHttpContext === undefined) {
|
|
232
|
-
localVarHttpContext = new HttpContext();
|
|
233
|
-
}
|
|
164
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
234
165
|
|
|
235
|
-
|
|
236
|
-
if (localVarTransferCache === undefined) {
|
|
237
|
-
localVarTransferCache = true;
|
|
238
|
-
}
|
|
166
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
239
167
|
|
|
240
168
|
// to determine the Content-Type header
|
|
241
169
|
const consumes: string[] = ['application/json'];
|
|
@@ -256,12 +184,13 @@ export class CollectionTypeManagementService {
|
|
|
256
184
|
}
|
|
257
185
|
|
|
258
186
|
let localVarPath = `/collectiontypes`;
|
|
259
|
-
|
|
187
|
+
const { basePath, withCredentials } = this.configuration;
|
|
188
|
+
return this.httpClient.request<CollectionType>('post', `${basePath}${localVarPath}`, {
|
|
260
189
|
context: localVarHttpContext,
|
|
261
190
|
body: collectionType,
|
|
262
191
|
params: localVarQueryParameters,
|
|
263
192
|
responseType: <any>responseType_,
|
|
264
|
-
withCredentials:
|
|
193
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
265
194
|
headers: localVarHeaders,
|
|
266
195
|
observe: observe,
|
|
267
196
|
transferCache: localVarTransferCache,
|
|
@@ -276,25 +205,25 @@ export class CollectionTypeManagementService {
|
|
|
276
205
|
* @param reportProgress flag to report request and response progress.
|
|
277
206
|
*/
|
|
278
207
|
public httpCollectionTypesDelete(
|
|
279
|
-
requestParameters
|
|
208
|
+
requestParameters: HttpCollectionTypesDeleteRequestParams,
|
|
280
209
|
observe?: 'body',
|
|
281
210
|
reportProgress?: boolean,
|
|
282
211
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
283
212
|
): Observable<any>;
|
|
284
213
|
public httpCollectionTypesDelete(
|
|
285
|
-
requestParameters
|
|
214
|
+
requestParameters: HttpCollectionTypesDeleteRequestParams,
|
|
286
215
|
observe?: 'response',
|
|
287
216
|
reportProgress?: boolean,
|
|
288
217
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
289
218
|
): Observable<HttpResponse<any>>;
|
|
290
219
|
public httpCollectionTypesDelete(
|
|
291
|
-
requestParameters
|
|
220
|
+
requestParameters: HttpCollectionTypesDeleteRequestParams,
|
|
292
221
|
observe?: 'events',
|
|
293
222
|
reportProgress?: boolean,
|
|
294
223
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
295
224
|
): Observable<HttpEvent<any>>;
|
|
296
225
|
public httpCollectionTypesDelete(
|
|
297
|
-
requestParameters
|
|
226
|
+
requestParameters: HttpCollectionTypesDeleteRequestParams,
|
|
298
227
|
observe: any = 'body',
|
|
299
228
|
reportProgress: boolean = false,
|
|
300
229
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -306,32 +235,17 @@ export class CollectionTypeManagementService {
|
|
|
306
235
|
|
|
307
236
|
let localVarHeaders = this.defaultHeaders;
|
|
308
237
|
|
|
309
|
-
let localVarCredential: string | undefined;
|
|
310
238
|
// authentication (msal_auth) required
|
|
311
|
-
|
|
312
|
-
if (localVarCredential) {
|
|
313
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
314
|
-
}
|
|
239
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
315
240
|
|
|
316
|
-
|
|
317
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
318
|
-
// to determine the Accept header
|
|
319
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
320
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
321
|
-
}
|
|
241
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
322
242
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
323
243
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
324
244
|
}
|
|
325
245
|
|
|
326
|
-
|
|
327
|
-
if (localVarHttpContext === undefined) {
|
|
328
|
-
localVarHttpContext = new HttpContext();
|
|
329
|
-
}
|
|
246
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
330
247
|
|
|
331
|
-
|
|
332
|
-
if (localVarTransferCache === undefined) {
|
|
333
|
-
localVarTransferCache = true;
|
|
334
|
-
}
|
|
248
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
335
249
|
|
|
336
250
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
337
251
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -345,10 +259,11 @@ export class CollectionTypeManagementService {
|
|
|
345
259
|
}
|
|
346
260
|
|
|
347
261
|
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
348
|
-
|
|
262
|
+
const { basePath, withCredentials } = this.configuration;
|
|
263
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
349
264
|
context: localVarHttpContext,
|
|
350
265
|
responseType: <any>responseType_,
|
|
351
|
-
withCredentials:
|
|
266
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
352
267
|
headers: localVarHeaders,
|
|
353
268
|
observe: observe,
|
|
354
269
|
transferCache: localVarTransferCache,
|
|
@@ -390,41 +305,24 @@ export class CollectionTypeManagementService {
|
|
|
390
305
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
391
306
|
|
|
392
307
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
393
|
-
|
|
394
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
395
|
-
}
|
|
308
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
396
309
|
|
|
397
310
|
let localVarHeaders = this.defaultHeaders;
|
|
398
311
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
399
312
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
400
313
|
}
|
|
401
314
|
|
|
402
|
-
let localVarCredential: string | undefined;
|
|
403
315
|
// authentication (msal_auth) required
|
|
404
|
-
|
|
405
|
-
if (localVarCredential) {
|
|
406
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
407
|
-
}
|
|
316
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
408
317
|
|
|
409
|
-
|
|
410
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
411
|
-
// to determine the Accept header
|
|
412
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
413
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
414
|
-
}
|
|
318
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
415
319
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
416
320
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
417
321
|
}
|
|
418
322
|
|
|
419
|
-
|
|
420
|
-
if (localVarHttpContext === undefined) {
|
|
421
|
-
localVarHttpContext = new HttpContext();
|
|
422
|
-
}
|
|
323
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
423
324
|
|
|
424
|
-
|
|
425
|
-
if (localVarTransferCache === undefined) {
|
|
426
|
-
localVarTransferCache = true;
|
|
427
|
-
}
|
|
325
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
428
326
|
|
|
429
327
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
430
328
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -438,11 +336,12 @@ export class CollectionTypeManagementService {
|
|
|
438
336
|
}
|
|
439
337
|
|
|
440
338
|
let localVarPath = `/collectiontypes`;
|
|
441
|
-
|
|
339
|
+
const { basePath, withCredentials } = this.configuration;
|
|
340
|
+
return this.httpClient.request<Array<CollectionType>>('get', `${basePath}${localVarPath}`, {
|
|
442
341
|
context: localVarHttpContext,
|
|
443
342
|
params: localVarQueryParameters,
|
|
444
343
|
responseType: <any>responseType_,
|
|
445
|
-
withCredentials:
|
|
344
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
446
345
|
headers: localVarHeaders,
|
|
447
346
|
observe: observe,
|
|
448
347
|
transferCache: localVarTransferCache,
|
|
@@ -457,25 +356,25 @@ export class CollectionTypeManagementService {
|
|
|
457
356
|
* @param reportProgress flag to report request and response progress.
|
|
458
357
|
*/
|
|
459
358
|
public httpCollectionTypesGetById(
|
|
460
|
-
requestParameters
|
|
359
|
+
requestParameters: HttpCollectionTypesGetByIdRequestParams,
|
|
461
360
|
observe?: 'body',
|
|
462
361
|
reportProgress?: boolean,
|
|
463
362
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
464
363
|
): Observable<CollectionType>;
|
|
465
364
|
public httpCollectionTypesGetById(
|
|
466
|
-
requestParameters
|
|
365
|
+
requestParameters: HttpCollectionTypesGetByIdRequestParams,
|
|
467
366
|
observe?: 'response',
|
|
468
367
|
reportProgress?: boolean,
|
|
469
368
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
470
369
|
): Observable<HttpResponse<CollectionType>>;
|
|
471
370
|
public httpCollectionTypesGetById(
|
|
472
|
-
requestParameters
|
|
371
|
+
requestParameters: HttpCollectionTypesGetByIdRequestParams,
|
|
473
372
|
observe?: 'events',
|
|
474
373
|
reportProgress?: boolean,
|
|
475
374
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
476
375
|
): Observable<HttpEvent<CollectionType>>;
|
|
477
376
|
public httpCollectionTypesGetById(
|
|
478
|
-
requestParameters
|
|
377
|
+
requestParameters: HttpCollectionTypesGetByIdRequestParams,
|
|
479
378
|
observe: any = 'body',
|
|
480
379
|
reportProgress: boolean = false,
|
|
481
380
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -488,41 +387,24 @@ export class CollectionTypeManagementService {
|
|
|
488
387
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
489
388
|
|
|
490
389
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
491
|
-
|
|
492
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
493
|
-
}
|
|
390
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
494
391
|
|
|
495
392
|
let localVarHeaders = this.defaultHeaders;
|
|
496
393
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
497
394
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
498
395
|
}
|
|
499
396
|
|
|
500
|
-
let localVarCredential: string | undefined;
|
|
501
397
|
// authentication (msal_auth) required
|
|
502
|
-
|
|
503
|
-
if (localVarCredential) {
|
|
504
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
505
|
-
}
|
|
398
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
506
399
|
|
|
507
|
-
|
|
508
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
509
|
-
// to determine the Accept header
|
|
510
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
511
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
512
|
-
}
|
|
400
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
513
401
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
514
402
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
515
403
|
}
|
|
516
404
|
|
|
517
|
-
|
|
518
|
-
if (localVarHttpContext === undefined) {
|
|
519
|
-
localVarHttpContext = new HttpContext();
|
|
520
|
-
}
|
|
405
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
521
406
|
|
|
522
|
-
|
|
523
|
-
if (localVarTransferCache === undefined) {
|
|
524
|
-
localVarTransferCache = true;
|
|
525
|
-
}
|
|
407
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
526
408
|
|
|
527
409
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
528
410
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -536,11 +418,12 @@ export class CollectionTypeManagementService {
|
|
|
536
418
|
}
|
|
537
419
|
|
|
538
420
|
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
539
|
-
|
|
421
|
+
const { basePath, withCredentials } = this.configuration;
|
|
422
|
+
return this.httpClient.request<CollectionType>('get', `${basePath}${localVarPath}`, {
|
|
540
423
|
context: localVarHttpContext,
|
|
541
424
|
params: localVarQueryParameters,
|
|
542
425
|
responseType: <any>responseType_,
|
|
543
|
-
withCredentials:
|
|
426
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
544
427
|
headers: localVarHeaders,
|
|
545
428
|
observe: observe,
|
|
546
429
|
transferCache: localVarTransferCache,
|
|
@@ -555,25 +438,25 @@ export class CollectionTypeManagementService {
|
|
|
555
438
|
* @param reportProgress flag to report request and response progress.
|
|
556
439
|
*/
|
|
557
440
|
public httpCollectionTypesUpdate(
|
|
558
|
-
requestParameters
|
|
441
|
+
requestParameters: HttpCollectionTypesUpdateRequestParams,
|
|
559
442
|
observe?: 'body',
|
|
560
443
|
reportProgress?: boolean,
|
|
561
444
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
562
445
|
): Observable<CollectionType>;
|
|
563
446
|
public httpCollectionTypesUpdate(
|
|
564
|
-
requestParameters
|
|
447
|
+
requestParameters: HttpCollectionTypesUpdateRequestParams,
|
|
565
448
|
observe?: 'response',
|
|
566
449
|
reportProgress?: boolean,
|
|
567
450
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
568
451
|
): Observable<HttpResponse<CollectionType>>;
|
|
569
452
|
public httpCollectionTypesUpdate(
|
|
570
|
-
requestParameters
|
|
453
|
+
requestParameters: HttpCollectionTypesUpdateRequestParams,
|
|
571
454
|
observe?: 'events',
|
|
572
455
|
reportProgress?: boolean,
|
|
573
456
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
574
457
|
): Observable<HttpEvent<CollectionType>>;
|
|
575
458
|
public httpCollectionTypesUpdate(
|
|
576
|
-
requestParameters
|
|
459
|
+
requestParameters: HttpCollectionTypesUpdateRequestParams,
|
|
577
460
|
observe: any = 'body',
|
|
578
461
|
reportProgress: boolean = false,
|
|
579
462
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -590,41 +473,24 @@ export class CollectionTypeManagementService {
|
|
|
590
473
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
591
474
|
|
|
592
475
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
593
|
-
|
|
594
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
595
|
-
}
|
|
476
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
596
477
|
|
|
597
478
|
let localVarHeaders = this.defaultHeaders;
|
|
598
479
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
599
480
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
600
481
|
}
|
|
601
482
|
|
|
602
|
-
let localVarCredential: string | undefined;
|
|
603
483
|
// authentication (msal_auth) required
|
|
604
|
-
|
|
605
|
-
if (localVarCredential) {
|
|
606
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
607
|
-
}
|
|
484
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
608
485
|
|
|
609
|
-
|
|
610
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
611
|
-
// to determine the Accept header
|
|
612
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
613
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
614
|
-
}
|
|
486
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
615
487
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
616
488
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
617
489
|
}
|
|
618
490
|
|
|
619
|
-
|
|
620
|
-
if (localVarHttpContext === undefined) {
|
|
621
|
-
localVarHttpContext = new HttpContext();
|
|
622
|
-
}
|
|
491
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
623
492
|
|
|
624
|
-
|
|
625
|
-
if (localVarTransferCache === undefined) {
|
|
626
|
-
localVarTransferCache = true;
|
|
627
|
-
}
|
|
493
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
628
494
|
|
|
629
495
|
// to determine the Content-Type header
|
|
630
496
|
const consumes: string[] = ['application/json'];
|
|
@@ -645,12 +511,13 @@ export class CollectionTypeManagementService {
|
|
|
645
511
|
}
|
|
646
512
|
|
|
647
513
|
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
648
|
-
|
|
514
|
+
const { basePath, withCredentials } = this.configuration;
|
|
515
|
+
return this.httpClient.request<CollectionType>('post', `${basePath}${localVarPath}`, {
|
|
649
516
|
context: localVarHttpContext,
|
|
650
517
|
body: collectionType,
|
|
651
518
|
params: localVarQueryParameters,
|
|
652
519
|
responseType: <any>responseType_,
|
|
653
|
-
withCredentials:
|
|
520
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
654
521
|
headers: localVarHeaders,
|
|
655
522
|
observe: observe,
|
|
656
523
|
transferCache: localVarTransferCache,
|
|
@@ -665,25 +532,25 @@ export class CollectionTypeManagementService {
|
|
|
665
532
|
* @param reportProgress flag to report request and response progress.
|
|
666
533
|
*/
|
|
667
534
|
public httpCollectionTypesUpdatePermissionsById(
|
|
668
|
-
requestParameters
|
|
535
|
+
requestParameters: HttpCollectionTypesUpdatePermissionsByIdRequestParams,
|
|
669
536
|
observe?: 'body',
|
|
670
537
|
reportProgress?: boolean,
|
|
671
538
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
672
539
|
): Observable<AgravityInfoResponse>;
|
|
673
540
|
public httpCollectionTypesUpdatePermissionsById(
|
|
674
|
-
requestParameters
|
|
541
|
+
requestParameters: HttpCollectionTypesUpdatePermissionsByIdRequestParams,
|
|
675
542
|
observe?: 'response',
|
|
676
543
|
reportProgress?: boolean,
|
|
677
544
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
678
545
|
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
679
546
|
public httpCollectionTypesUpdatePermissionsById(
|
|
680
|
-
requestParameters
|
|
547
|
+
requestParameters: HttpCollectionTypesUpdatePermissionsByIdRequestParams,
|
|
681
548
|
observe?: 'events',
|
|
682
549
|
reportProgress?: boolean,
|
|
683
550
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
684
551
|
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
685
552
|
public httpCollectionTypesUpdatePermissionsById(
|
|
686
|
-
requestParameters
|
|
553
|
+
requestParameters: HttpCollectionTypesUpdatePermissionsByIdRequestParams,
|
|
687
554
|
observe: any = 'body',
|
|
688
555
|
reportProgress: boolean = false,
|
|
689
556
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -699,32 +566,17 @@ export class CollectionTypeManagementService {
|
|
|
699
566
|
|
|
700
567
|
let localVarHeaders = this.defaultHeaders;
|
|
701
568
|
|
|
702
|
-
let localVarCredential: string | undefined;
|
|
703
569
|
// authentication (msal_auth) required
|
|
704
|
-
|
|
705
|
-
if (localVarCredential) {
|
|
706
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
707
|
-
}
|
|
570
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
708
571
|
|
|
709
|
-
|
|
710
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
711
|
-
// to determine the Accept header
|
|
712
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
713
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
714
|
-
}
|
|
572
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
715
573
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
716
574
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
717
575
|
}
|
|
718
576
|
|
|
719
|
-
|
|
720
|
-
if (localVarHttpContext === undefined) {
|
|
721
|
-
localVarHttpContext = new HttpContext();
|
|
722
|
-
}
|
|
577
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
723
578
|
|
|
724
|
-
|
|
725
|
-
if (localVarTransferCache === undefined) {
|
|
726
|
-
localVarTransferCache = true;
|
|
727
|
-
}
|
|
579
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
728
580
|
|
|
729
581
|
// to determine the Content-Type header
|
|
730
582
|
const consumes: string[] = ['application/json'];
|
|
@@ -745,11 +597,12 @@ export class CollectionTypeManagementService {
|
|
|
745
597
|
}
|
|
746
598
|
|
|
747
599
|
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/permissions`;
|
|
748
|
-
|
|
600
|
+
const { basePath, withCredentials } = this.configuration;
|
|
601
|
+
return this.httpClient.request<AgravityInfoResponse>('post', `${basePath}${localVarPath}`, {
|
|
749
602
|
context: localVarHttpContext,
|
|
750
603
|
body: permissionChange,
|
|
751
604
|
responseType: <any>responseType_,
|
|
752
|
-
withCredentials:
|
|
605
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
753
606
|
headers: localVarHeaders,
|
|
754
607
|
observe: observe,
|
|
755
608
|
transferCache: localVarTransferCache,
|
|
@@ -792,44 +645,25 @@ export class CollectionTypeManagementService {
|
|
|
792
645
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
793
646
|
|
|
794
647
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
}
|
|
798
|
-
if (translations !== undefined && translations !== null) {
|
|
799
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
800
|
-
}
|
|
648
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>includeblueprint, 'includeblueprint');
|
|
649
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
801
650
|
|
|
802
651
|
let localVarHeaders = this.defaultHeaders;
|
|
803
652
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
804
653
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
805
654
|
}
|
|
806
655
|
|
|
807
|
-
let localVarCredential: string | undefined;
|
|
808
656
|
// authentication (msal_auth) required
|
|
809
|
-
|
|
810
|
-
if (localVarCredential) {
|
|
811
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
812
|
-
}
|
|
657
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
813
658
|
|
|
814
|
-
|
|
815
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
816
|
-
// to determine the Accept header
|
|
817
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
818
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
819
|
-
}
|
|
659
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
820
660
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
821
661
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
822
662
|
}
|
|
823
663
|
|
|
824
|
-
|
|
825
|
-
if (localVarHttpContext === undefined) {
|
|
826
|
-
localVarHttpContext = new HttpContext();
|
|
827
|
-
}
|
|
664
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
828
665
|
|
|
829
|
-
|
|
830
|
-
if (localVarTransferCache === undefined) {
|
|
831
|
-
localVarTransferCache = true;
|
|
832
|
-
}
|
|
666
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
833
667
|
|
|
834
668
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
835
669
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -843,11 +677,12 @@ export class CollectionTypeManagementService {
|
|
|
843
677
|
}
|
|
844
678
|
|
|
845
679
|
let localVarPath = `/collectiontypesitems`;
|
|
846
|
-
|
|
680
|
+
const { basePath, withCredentials } = this.configuration;
|
|
681
|
+
return this.httpClient.request<Array<CollTypeItem>>('get', `${basePath}${localVarPath}`, {
|
|
847
682
|
context: localVarHttpContext,
|
|
848
683
|
params: localVarQueryParameters,
|
|
849
684
|
responseType: <any>responseType_,
|
|
850
|
-
withCredentials:
|
|
685
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
851
686
|
headers: localVarHeaders,
|
|
852
687
|
observe: observe,
|
|
853
688
|
transferCache: localVarTransferCache,
|
|
@@ -862,25 +697,25 @@ export class CollectionTypeManagementService {
|
|
|
862
697
|
* @param reportProgress flag to report request and response progress.
|
|
863
698
|
*/
|
|
864
699
|
public httpUpdateCollectionTypeItems(
|
|
865
|
-
requestParameters
|
|
700
|
+
requestParameters: HttpUpdateCollectionTypeItemsRequestParams,
|
|
866
701
|
observe?: 'body',
|
|
867
702
|
reportProgress?: boolean,
|
|
868
703
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
869
704
|
): Observable<Array<CollectionType>>;
|
|
870
705
|
public httpUpdateCollectionTypeItems(
|
|
871
|
-
requestParameters
|
|
706
|
+
requestParameters: HttpUpdateCollectionTypeItemsRequestParams,
|
|
872
707
|
observe?: 'response',
|
|
873
708
|
reportProgress?: boolean,
|
|
874
709
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
875
710
|
): Observable<HttpResponse<Array<CollectionType>>>;
|
|
876
711
|
public httpUpdateCollectionTypeItems(
|
|
877
|
-
requestParameters
|
|
712
|
+
requestParameters: HttpUpdateCollectionTypeItemsRequestParams,
|
|
878
713
|
observe?: 'events',
|
|
879
714
|
reportProgress?: boolean,
|
|
880
715
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
881
716
|
): Observable<HttpEvent<Array<CollectionType>>>;
|
|
882
717
|
public httpUpdateCollectionTypeItems(
|
|
883
|
-
requestParameters
|
|
718
|
+
requestParameters: HttpUpdateCollectionTypeItemsRequestParams,
|
|
884
719
|
observe: any = 'body',
|
|
885
720
|
reportProgress: boolean = false,
|
|
886
721
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -892,32 +727,17 @@ export class CollectionTypeManagementService {
|
|
|
892
727
|
|
|
893
728
|
let localVarHeaders = this.defaultHeaders;
|
|
894
729
|
|
|
895
|
-
let localVarCredential: string | undefined;
|
|
896
730
|
// authentication (msal_auth) required
|
|
897
|
-
|
|
898
|
-
if (localVarCredential) {
|
|
899
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
900
|
-
}
|
|
731
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
901
732
|
|
|
902
|
-
|
|
903
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
904
|
-
// to determine the Accept header
|
|
905
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
906
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
907
|
-
}
|
|
733
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
908
734
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
909
735
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
910
736
|
}
|
|
911
737
|
|
|
912
|
-
|
|
913
|
-
if (localVarHttpContext === undefined) {
|
|
914
|
-
localVarHttpContext = new HttpContext();
|
|
915
|
-
}
|
|
738
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
916
739
|
|
|
917
|
-
|
|
918
|
-
if (localVarTransferCache === undefined) {
|
|
919
|
-
localVarTransferCache = true;
|
|
920
|
-
}
|
|
740
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
921
741
|
|
|
922
742
|
// to determine the Content-Type header
|
|
923
743
|
const consumes: string[] = ['application/json'];
|
|
@@ -938,11 +758,12 @@ export class CollectionTypeManagementService {
|
|
|
938
758
|
}
|
|
939
759
|
|
|
940
760
|
let localVarPath = `/collectiontypesitems`;
|
|
941
|
-
|
|
761
|
+
const { basePath, withCredentials } = this.configuration;
|
|
762
|
+
return this.httpClient.request<Array<CollectionType>>('post', `${basePath}${localVarPath}`, {
|
|
942
763
|
context: localVarHttpContext,
|
|
943
764
|
body: collTypeItem,
|
|
944
765
|
responseType: <any>responseType_,
|
|
945
|
-
withCredentials:
|
|
766
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
946
767
|
headers: localVarHeaders,
|
|
947
768
|
observe: observe,
|
|
948
769
|
transferCache: localVarTransferCache,
|