@agravity/private 11.1.3 → 12.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 +19 -1
- package/README.md +3 -3
- package/api/aIOperations.agravity.ts +5 -0
- package/api/analyticsManagement.agravity.ts +262 -0
- package/api/api.ts +12 -3
- package/api/assetManagement.agravity.ts +7 -2
- package/api/assetVersioning.agravity.ts +5 -0
- package/api/{wordpressManagement.agravity.ts → assistantOperations.agravity.ts} +50 -116
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +98 -4
- package/api/collectionTypeItemRefsManagement.agravity.ts +693 -0
- package/api/collectionTypeManagement.agravity.ts +24 -187
- package/api/generalManagement.agravity.ts +65 -0
- package/api/itemGroupsManagement.agravity.ts +510 -0
- package/api/portalManagement.agravity.ts +94 -0
- package/api/searchManagement.agravity.ts +15 -15
- package/api/secureUpload.agravity.ts +1 -1
- package/api/stockImport.agravity.ts +1 -1
- package/api/translationManagement.agravity.ts +6 -6
- package/api/workspaceManagement.agravity.ts +10 -0
- package/model/asset.agravity.ts +1 -0
- package/model/assistantChatMessage.agravity.ts +14 -0
- package/model/assistantChatRequest.agravity.ts +15 -0
- package/model/assistantChatResponse.agravity.ts +14 -0
- package/model/assistantFeedbackRequest.agravity.ts +15 -0
- package/model/collTypeItem.agravity.ts +4 -1
- package/model/collTypeItemBlueprint.agravity.ts +2 -0
- package/model/collTypeItemRef.agravity.ts +15 -0
- package/model/collection.agravity.ts +1 -0
- package/model/collectionType.agravity.ts +2 -0
- package/model/exportFieldDefinition.agravity.ts +1 -1
- package/model/itemGroup.agravity.ts +25 -0
- package/model/models.ts +15 -0
- package/model/reportingAnalyticsCatalogResponse.agravity.ts +14 -0
- package/model/reportingAnalyticsMetricCatalogItem.agravity.ts +19 -0
- package/model/reportingAnalyticsMetricRequest.agravity.ts +15 -0
- package/model/reportingAnalyticsMetricResult.agravity.ts +21 -0
- package/model/reportingAnalyticsRequest.agravity.ts +17 -0
- package/model/reportingAnalyticsResponse.agravity.ts +17 -0
- package/model/reportingNamedUsage.agravity.ts +15 -0
- package/model/reportingSystemSnapshot.agravity.ts +17 -0
- package/model/reportingTimeSeriesPoint.agravity.ts +14 -0
- package/model/searchAdminIndexerStatus.agravity.ts +1 -0
- package/model/secureUploadEntity.agravity.ts +9 -0
- package/model/versionEntity.agravity.ts +1 -0
- package/model/versionedAsset.agravity.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
+
*
|
|
4
|
+
* Contact: support@agravity.io
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
11
|
+
|
|
12
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
13
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
14
|
+
import { Observable } from 'rxjs';
|
|
15
|
+
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
|
16
|
+
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { CollTypeItem } from '../model/collTypeItem.agravity';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { CollTypeItemRef } from '../model/collTypeItemRef.agravity';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CollectionType } from '../model/collectionType.agravity';
|
|
25
|
+
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
28
|
+
import { AgravityConfiguration } from '../configuration';
|
|
29
|
+
import { BaseService } from '../api.base.service';
|
|
30
|
+
|
|
31
|
+
export interface HttpCollTypeItemRefsGetRequestParams {
|
|
32
|
+
/** The ID of the collection type. */
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HttpCollTypeItemRefsSetRequestParams {
|
|
37
|
+
/** The ID of the collection type. */
|
|
38
|
+
id: string;
|
|
39
|
+
/** The ItemRefs list to set on the collection type. */
|
|
40
|
+
collTypeItemRef: Array<CollTypeItemRef>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface HttpCollTypeItemsCreateRequestParams {
|
|
44
|
+
/** The collection type item to create. */
|
|
45
|
+
collTypeItem: CollTypeItem;
|
|
46
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
47
|
+
translations?: boolean;
|
|
48
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
49
|
+
acceptLanguage?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface HttpCollTypeItemsDeleteByIdRequestParams {
|
|
53
|
+
/** The ID of the collection type item. */
|
|
54
|
+
id: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface HttpCollTypeItemsGetAllRequestParams {
|
|
58
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
59
|
+
translations?: boolean;
|
|
60
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
61
|
+
acceptLanguage?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface HttpCollTypeItemsGetByIdRequestParams {
|
|
65
|
+
/** The ID of the collection type item. */
|
|
66
|
+
id: string;
|
|
67
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
68
|
+
translations?: boolean;
|
|
69
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
70
|
+
acceptLanguage?: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface HttpCollTypeItemsUpdateByIdRequestParams {
|
|
74
|
+
/** The ID of the collection type item. */
|
|
75
|
+
id: string;
|
|
76
|
+
/** Body has to be a valid collection type item. */
|
|
77
|
+
collTypeItem: CollTypeItem;
|
|
78
|
+
/** Performs a switch of is_multi or is_asset_extension also if stored values are lost: is_multi true to false keeps the first value (of the assets, collections and the default value), a switch of is_asset_extension removes the values of the side the item leaves (collections or assets). Without force such a switch is rejected with 400. */
|
|
79
|
+
force?: boolean;
|
|
80
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
81
|
+
translations?: boolean;
|
|
82
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
83
|
+
acceptLanguage?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@Injectable({
|
|
87
|
+
providedIn: 'root'
|
|
88
|
+
})
|
|
89
|
+
export class CollectionTypeItemRefsManagementService extends BaseService {
|
|
90
|
+
constructor(
|
|
91
|
+
protected httpClient: HttpClient,
|
|
92
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
93
|
+
@Optional() configuration?: AgravityConfiguration
|
|
94
|
+
) {
|
|
95
|
+
super(basePath, configuration);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* This endpoint returns the unified ItemRefs list for a collection type.
|
|
100
|
+
* @endpoint get /collectiontypes/{id}/itemrefs
|
|
101
|
+
* @param requestParameters
|
|
102
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
103
|
+
* @param reportProgress flag to report request and response progress.
|
|
104
|
+
* @param options additional options
|
|
105
|
+
*/
|
|
106
|
+
public httpCollTypeItemRefsGet(
|
|
107
|
+
requestParameters: HttpCollTypeItemRefsGetRequestParams,
|
|
108
|
+
observe?: 'body',
|
|
109
|
+
reportProgress?: boolean,
|
|
110
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
111
|
+
): Observable<Array<CollTypeItemRef>>;
|
|
112
|
+
public httpCollTypeItemRefsGet(
|
|
113
|
+
requestParameters: HttpCollTypeItemRefsGetRequestParams,
|
|
114
|
+
observe?: 'response',
|
|
115
|
+
reportProgress?: boolean,
|
|
116
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
117
|
+
): Observable<HttpResponse<Array<CollTypeItemRef>>>;
|
|
118
|
+
public httpCollTypeItemRefsGet(
|
|
119
|
+
requestParameters: HttpCollTypeItemRefsGetRequestParams,
|
|
120
|
+
observe?: 'events',
|
|
121
|
+
reportProgress?: boolean,
|
|
122
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
123
|
+
): Observable<HttpEvent<Array<CollTypeItemRef>>>;
|
|
124
|
+
public httpCollTypeItemRefsGet(
|
|
125
|
+
requestParameters: HttpCollTypeItemRefsGetRequestParams,
|
|
126
|
+
observe: any = 'body',
|
|
127
|
+
reportProgress: boolean = false,
|
|
128
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
129
|
+
): Observable<any> {
|
|
130
|
+
const id = requestParameters?.id;
|
|
131
|
+
if (id === null || id === undefined) {
|
|
132
|
+
throw new Error('Required parameter id was null or undefined when calling httpCollTypeItemRefsGet.');
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
let localVarHeaders = this.defaultHeaders;
|
|
136
|
+
|
|
137
|
+
// authentication (msal_auth) required
|
|
138
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
139
|
+
|
|
140
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
141
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
142
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
146
|
+
|
|
147
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
148
|
+
|
|
149
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
150
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
151
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
152
|
+
responseType_ = 'text';
|
|
153
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
154
|
+
responseType_ = 'json';
|
|
155
|
+
} else {
|
|
156
|
+
responseType_ = 'blob';
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/itemrefs`;
|
|
161
|
+
const { basePath, withCredentials } = this.configuration;
|
|
162
|
+
return this.httpClient.request<Array<CollTypeItemRef>>('get', `${basePath}${localVarPath}`, {
|
|
163
|
+
context: localVarHttpContext,
|
|
164
|
+
responseType: <any>responseType_,
|
|
165
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
166
|
+
headers: localVarHeaders,
|
|
167
|
+
observe: observe,
|
|
168
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
169
|
+
reportProgress: reportProgress
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* This endpoint sets (replaces) the ItemRefs list on a collection type.
|
|
175
|
+
* @endpoint post /collectiontypes/{id}/itemrefs
|
|
176
|
+
* @param requestParameters
|
|
177
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
178
|
+
* @param reportProgress flag to report request and response progress.
|
|
179
|
+
* @param options additional options
|
|
180
|
+
*/
|
|
181
|
+
public httpCollTypeItemRefsSet(
|
|
182
|
+
requestParameters: HttpCollTypeItemRefsSetRequestParams,
|
|
183
|
+
observe?: 'body',
|
|
184
|
+
reportProgress?: boolean,
|
|
185
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
186
|
+
): Observable<CollectionType>;
|
|
187
|
+
public httpCollTypeItemRefsSet(
|
|
188
|
+
requestParameters: HttpCollTypeItemRefsSetRequestParams,
|
|
189
|
+
observe?: 'response',
|
|
190
|
+
reportProgress?: boolean,
|
|
191
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
192
|
+
): Observable<HttpResponse<CollectionType>>;
|
|
193
|
+
public httpCollTypeItemRefsSet(
|
|
194
|
+
requestParameters: HttpCollTypeItemRefsSetRequestParams,
|
|
195
|
+
observe?: 'events',
|
|
196
|
+
reportProgress?: boolean,
|
|
197
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
198
|
+
): Observable<HttpEvent<CollectionType>>;
|
|
199
|
+
public httpCollTypeItemRefsSet(
|
|
200
|
+
requestParameters: HttpCollTypeItemRefsSetRequestParams,
|
|
201
|
+
observe: any = 'body',
|
|
202
|
+
reportProgress: boolean = false,
|
|
203
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
204
|
+
): Observable<any> {
|
|
205
|
+
const id = requestParameters?.id;
|
|
206
|
+
if (id === null || id === undefined) {
|
|
207
|
+
throw new Error('Required parameter id was null or undefined when calling httpCollTypeItemRefsSet.');
|
|
208
|
+
}
|
|
209
|
+
const collTypeItemRef = requestParameters?.collTypeItemRef;
|
|
210
|
+
if (collTypeItemRef === null || collTypeItemRef === undefined) {
|
|
211
|
+
throw new Error('Required parameter collTypeItemRef was null or undefined when calling httpCollTypeItemRefsSet.');
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
let localVarHeaders = this.defaultHeaders;
|
|
215
|
+
|
|
216
|
+
// authentication (msal_auth) required
|
|
217
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
218
|
+
|
|
219
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
220
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
221
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
225
|
+
|
|
226
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
227
|
+
|
|
228
|
+
// to determine the Content-Type header
|
|
229
|
+
const consumes: string[] = ['application/json'];
|
|
230
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
231
|
+
if (httpContentTypeSelected !== undefined) {
|
|
232
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
236
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
237
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
238
|
+
responseType_ = 'text';
|
|
239
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
240
|
+
responseType_ = 'json';
|
|
241
|
+
} else {
|
|
242
|
+
responseType_ = 'blob';
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
let localVarPath = `/collectiontypes/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/itemrefs`;
|
|
247
|
+
const { basePath, withCredentials } = this.configuration;
|
|
248
|
+
return this.httpClient.request<CollectionType>('post', `${basePath}${localVarPath}`, {
|
|
249
|
+
context: localVarHttpContext,
|
|
250
|
+
body: collTypeItemRef,
|
|
251
|
+
responseType: <any>responseType_,
|
|
252
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
253
|
+
headers: localVarHeaders,
|
|
254
|
+
observe: observe,
|
|
255
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
256
|
+
reportProgress: reportProgress
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* This endpoint creates a standalone collection type item and adds the information to the database. On list items (UDL, SDL) the optional default_value has to be an entry of the referenced list (ref_id). An existing item is never overwritten: an id of an existing item is rejected.
|
|
262
|
+
* @endpoint post /colltypeitems
|
|
263
|
+
* @param requestParameters
|
|
264
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
265
|
+
* @param reportProgress flag to report request and response progress.
|
|
266
|
+
* @param options additional options
|
|
267
|
+
*/
|
|
268
|
+
public httpCollTypeItemsCreate(
|
|
269
|
+
requestParameters: HttpCollTypeItemsCreateRequestParams,
|
|
270
|
+
observe?: 'body',
|
|
271
|
+
reportProgress?: boolean,
|
|
272
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
273
|
+
): Observable<CollTypeItem>;
|
|
274
|
+
public httpCollTypeItemsCreate(
|
|
275
|
+
requestParameters: HttpCollTypeItemsCreateRequestParams,
|
|
276
|
+
observe?: 'response',
|
|
277
|
+
reportProgress?: boolean,
|
|
278
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
279
|
+
): Observable<HttpResponse<CollTypeItem>>;
|
|
280
|
+
public httpCollTypeItemsCreate(
|
|
281
|
+
requestParameters: HttpCollTypeItemsCreateRequestParams,
|
|
282
|
+
observe?: 'events',
|
|
283
|
+
reportProgress?: boolean,
|
|
284
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
285
|
+
): Observable<HttpEvent<CollTypeItem>>;
|
|
286
|
+
public httpCollTypeItemsCreate(
|
|
287
|
+
requestParameters: HttpCollTypeItemsCreateRequestParams,
|
|
288
|
+
observe: any = 'body',
|
|
289
|
+
reportProgress: boolean = false,
|
|
290
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
291
|
+
): Observable<any> {
|
|
292
|
+
const collTypeItem = requestParameters?.collTypeItem;
|
|
293
|
+
if (collTypeItem === null || collTypeItem === undefined) {
|
|
294
|
+
throw new Error('Required parameter collTypeItem was null or undefined when calling httpCollTypeItemsCreate.');
|
|
295
|
+
}
|
|
296
|
+
const translations = requestParameters?.translations;
|
|
297
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
298
|
+
|
|
299
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
300
|
+
|
|
301
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
302
|
+
|
|
303
|
+
let localVarHeaders = this.defaultHeaders;
|
|
304
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
305
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
// authentication (msal_auth) required
|
|
309
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
310
|
+
|
|
311
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
312
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
313
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
317
|
+
|
|
318
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
319
|
+
|
|
320
|
+
// to determine the Content-Type header
|
|
321
|
+
const consumes: string[] = ['application/json'];
|
|
322
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
323
|
+
if (httpContentTypeSelected !== undefined) {
|
|
324
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
328
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
329
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
330
|
+
responseType_ = 'text';
|
|
331
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
332
|
+
responseType_ = 'json';
|
|
333
|
+
} else {
|
|
334
|
+
responseType_ = 'blob';
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
let localVarPath = `/colltypeitems`;
|
|
339
|
+
const { basePath, withCredentials } = this.configuration;
|
|
340
|
+
return this.httpClient.request<CollTypeItem>('post', `${basePath}${localVarPath}`, {
|
|
341
|
+
context: localVarHttpContext,
|
|
342
|
+
body: collTypeItem,
|
|
343
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
344
|
+
responseType: <any>responseType_,
|
|
345
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
346
|
+
headers: localVarHeaders,
|
|
347
|
+
observe: observe,
|
|
348
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
349
|
+
reportProgress: reportProgress
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* This endpoint deletes a single standalone collection type item.
|
|
355
|
+
* @endpoint delete /colltypeitems/{id}
|
|
356
|
+
* @param requestParameters
|
|
357
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
358
|
+
* @param reportProgress flag to report request and response progress.
|
|
359
|
+
* @param options additional options
|
|
360
|
+
*/
|
|
361
|
+
public httpCollTypeItemsDeleteById(
|
|
362
|
+
requestParameters: HttpCollTypeItemsDeleteByIdRequestParams,
|
|
363
|
+
observe?: 'body',
|
|
364
|
+
reportProgress?: boolean,
|
|
365
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
366
|
+
): Observable<any>;
|
|
367
|
+
public httpCollTypeItemsDeleteById(
|
|
368
|
+
requestParameters: HttpCollTypeItemsDeleteByIdRequestParams,
|
|
369
|
+
observe?: 'response',
|
|
370
|
+
reportProgress?: boolean,
|
|
371
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
372
|
+
): Observable<HttpResponse<any>>;
|
|
373
|
+
public httpCollTypeItemsDeleteById(
|
|
374
|
+
requestParameters: HttpCollTypeItemsDeleteByIdRequestParams,
|
|
375
|
+
observe?: 'events',
|
|
376
|
+
reportProgress?: boolean,
|
|
377
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
378
|
+
): Observable<HttpEvent<any>>;
|
|
379
|
+
public httpCollTypeItemsDeleteById(
|
|
380
|
+
requestParameters: HttpCollTypeItemsDeleteByIdRequestParams,
|
|
381
|
+
observe: any = 'body',
|
|
382
|
+
reportProgress: boolean = false,
|
|
383
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
384
|
+
): Observable<any> {
|
|
385
|
+
const id = requestParameters?.id;
|
|
386
|
+
if (id === null || id === undefined) {
|
|
387
|
+
throw new Error('Required parameter id was null or undefined when calling httpCollTypeItemsDeleteById.');
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
let localVarHeaders = this.defaultHeaders;
|
|
391
|
+
|
|
392
|
+
// authentication (msal_auth) required
|
|
393
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
394
|
+
|
|
395
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
396
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
397
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
401
|
+
|
|
402
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
403
|
+
|
|
404
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
405
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
406
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
407
|
+
responseType_ = 'text';
|
|
408
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
409
|
+
responseType_ = 'json';
|
|
410
|
+
} else {
|
|
411
|
+
responseType_ = 'blob';
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
let localVarPath = `/colltypeitems/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
416
|
+
const { basePath, withCredentials } = this.configuration;
|
|
417
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
418
|
+
context: localVarHttpContext,
|
|
419
|
+
responseType: <any>responseType_,
|
|
420
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
421
|
+
headers: localVarHeaders,
|
|
422
|
+
observe: observe,
|
|
423
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
424
|
+
reportProgress: reportProgress
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* This endpoint lists all standalone collection type items in database.
|
|
430
|
+
* @endpoint get /colltypeitems
|
|
431
|
+
* @param requestParameters
|
|
432
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
433
|
+
* @param reportProgress flag to report request and response progress.
|
|
434
|
+
* @param options additional options
|
|
435
|
+
*/
|
|
436
|
+
public httpCollTypeItemsGetAll(
|
|
437
|
+
requestParameters?: HttpCollTypeItemsGetAllRequestParams,
|
|
438
|
+
observe?: 'body',
|
|
439
|
+
reportProgress?: boolean,
|
|
440
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
441
|
+
): Observable<Array<CollTypeItem>>;
|
|
442
|
+
public httpCollTypeItemsGetAll(
|
|
443
|
+
requestParameters?: HttpCollTypeItemsGetAllRequestParams,
|
|
444
|
+
observe?: 'response',
|
|
445
|
+
reportProgress?: boolean,
|
|
446
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
447
|
+
): Observable<HttpResponse<Array<CollTypeItem>>>;
|
|
448
|
+
public httpCollTypeItemsGetAll(
|
|
449
|
+
requestParameters?: HttpCollTypeItemsGetAllRequestParams,
|
|
450
|
+
observe?: 'events',
|
|
451
|
+
reportProgress?: boolean,
|
|
452
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
453
|
+
): Observable<HttpEvent<Array<CollTypeItem>>>;
|
|
454
|
+
public httpCollTypeItemsGetAll(
|
|
455
|
+
requestParameters?: HttpCollTypeItemsGetAllRequestParams,
|
|
456
|
+
observe: any = 'body',
|
|
457
|
+
reportProgress: boolean = false,
|
|
458
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
459
|
+
): Observable<any> {
|
|
460
|
+
const translations = requestParameters?.translations;
|
|
461
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
462
|
+
|
|
463
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
464
|
+
|
|
465
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
466
|
+
|
|
467
|
+
let localVarHeaders = this.defaultHeaders;
|
|
468
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
469
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// authentication (msal_auth) required
|
|
473
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
474
|
+
|
|
475
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
476
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
477
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
481
|
+
|
|
482
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
483
|
+
|
|
484
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
485
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
486
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
487
|
+
responseType_ = 'text';
|
|
488
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
489
|
+
responseType_ = 'json';
|
|
490
|
+
} else {
|
|
491
|
+
responseType_ = 'blob';
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
let localVarPath = `/colltypeitems`;
|
|
496
|
+
const { basePath, withCredentials } = this.configuration;
|
|
497
|
+
return this.httpClient.request<Array<CollTypeItem>>('get', `${basePath}${localVarPath}`, {
|
|
498
|
+
context: localVarHttpContext,
|
|
499
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
500
|
+
responseType: <any>responseType_,
|
|
501
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
502
|
+
headers: localVarHeaders,
|
|
503
|
+
observe: observe,
|
|
504
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
505
|
+
reportProgress: reportProgress
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* This endpoint returns a single standalone collection type item by ID.
|
|
511
|
+
* @endpoint get /colltypeitems/{id}
|
|
512
|
+
* @param requestParameters
|
|
513
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
514
|
+
* @param reportProgress flag to report request and response progress.
|
|
515
|
+
* @param options additional options
|
|
516
|
+
*/
|
|
517
|
+
public httpCollTypeItemsGetById(
|
|
518
|
+
requestParameters: HttpCollTypeItemsGetByIdRequestParams,
|
|
519
|
+
observe?: 'body',
|
|
520
|
+
reportProgress?: boolean,
|
|
521
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
522
|
+
): Observable<CollTypeItem>;
|
|
523
|
+
public httpCollTypeItemsGetById(
|
|
524
|
+
requestParameters: HttpCollTypeItemsGetByIdRequestParams,
|
|
525
|
+
observe?: 'response',
|
|
526
|
+
reportProgress?: boolean,
|
|
527
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
528
|
+
): Observable<HttpResponse<CollTypeItem>>;
|
|
529
|
+
public httpCollTypeItemsGetById(
|
|
530
|
+
requestParameters: HttpCollTypeItemsGetByIdRequestParams,
|
|
531
|
+
observe?: 'events',
|
|
532
|
+
reportProgress?: boolean,
|
|
533
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
534
|
+
): Observable<HttpEvent<CollTypeItem>>;
|
|
535
|
+
public httpCollTypeItemsGetById(
|
|
536
|
+
requestParameters: HttpCollTypeItemsGetByIdRequestParams,
|
|
537
|
+
observe: any = 'body',
|
|
538
|
+
reportProgress: boolean = false,
|
|
539
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
540
|
+
): Observable<any> {
|
|
541
|
+
const id = requestParameters?.id;
|
|
542
|
+
if (id === null || id === undefined) {
|
|
543
|
+
throw new Error('Required parameter id was null or undefined when calling httpCollTypeItemsGetById.');
|
|
544
|
+
}
|
|
545
|
+
const translations = requestParameters?.translations;
|
|
546
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
547
|
+
|
|
548
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
549
|
+
|
|
550
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
551
|
+
|
|
552
|
+
let localVarHeaders = this.defaultHeaders;
|
|
553
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
554
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
// authentication (msal_auth) required
|
|
558
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
559
|
+
|
|
560
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
561
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
562
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
566
|
+
|
|
567
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
568
|
+
|
|
569
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
570
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
571
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
572
|
+
responseType_ = 'text';
|
|
573
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
574
|
+
responseType_ = 'json';
|
|
575
|
+
} else {
|
|
576
|
+
responseType_ = 'blob';
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
let localVarPath = `/colltypeitems/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
581
|
+
const { basePath, withCredentials } = this.configuration;
|
|
582
|
+
return this.httpClient.request<CollTypeItem>('get', `${basePath}${localVarPath}`, {
|
|
583
|
+
context: localVarHttpContext,
|
|
584
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
585
|
+
responseType: <any>responseType_,
|
|
586
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
587
|
+
headers: localVarHeaders,
|
|
588
|
+
observe: observe,
|
|
589
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
590
|
+
reportProgress: reportProgress
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* This endpoint updates a standalone collection type item. The default_value of a list item (UDL, SDL) has to be an entry of the referenced list (ref_id). To clear the default value send an empty string (or an empty array on multi items). A switch of is_multi or is_asset_extension is propagated in the background to the values and item refs of the assets and collections of the collection types which reference the item; a change of is_mandatory recomputes their status (active or uncompleted) in the background.
|
|
596
|
+
* @endpoint post /colltypeitems/{id}
|
|
597
|
+
* @param requestParameters
|
|
598
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
599
|
+
* @param reportProgress flag to report request and response progress.
|
|
600
|
+
* @param options additional options
|
|
601
|
+
*/
|
|
602
|
+
public httpCollTypeItemsUpdateById(
|
|
603
|
+
requestParameters: HttpCollTypeItemsUpdateByIdRequestParams,
|
|
604
|
+
observe?: 'body',
|
|
605
|
+
reportProgress?: boolean,
|
|
606
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
607
|
+
): Observable<CollTypeItem>;
|
|
608
|
+
public httpCollTypeItemsUpdateById(
|
|
609
|
+
requestParameters: HttpCollTypeItemsUpdateByIdRequestParams,
|
|
610
|
+
observe?: 'response',
|
|
611
|
+
reportProgress?: boolean,
|
|
612
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
613
|
+
): Observable<HttpResponse<CollTypeItem>>;
|
|
614
|
+
public httpCollTypeItemsUpdateById(
|
|
615
|
+
requestParameters: HttpCollTypeItemsUpdateByIdRequestParams,
|
|
616
|
+
observe?: 'events',
|
|
617
|
+
reportProgress?: boolean,
|
|
618
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
619
|
+
): Observable<HttpEvent<CollTypeItem>>;
|
|
620
|
+
public httpCollTypeItemsUpdateById(
|
|
621
|
+
requestParameters: HttpCollTypeItemsUpdateByIdRequestParams,
|
|
622
|
+
observe: any = 'body',
|
|
623
|
+
reportProgress: boolean = false,
|
|
624
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
625
|
+
): Observable<any> {
|
|
626
|
+
const id = requestParameters?.id;
|
|
627
|
+
if (id === null || id === undefined) {
|
|
628
|
+
throw new Error('Required parameter id was null or undefined when calling httpCollTypeItemsUpdateById.');
|
|
629
|
+
}
|
|
630
|
+
const collTypeItem = requestParameters?.collTypeItem;
|
|
631
|
+
if (collTypeItem === null || collTypeItem === undefined) {
|
|
632
|
+
throw new Error('Required parameter collTypeItem was null or undefined when calling httpCollTypeItemsUpdateById.');
|
|
633
|
+
}
|
|
634
|
+
const force = requestParameters?.force;
|
|
635
|
+
const translations = requestParameters?.translations;
|
|
636
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
637
|
+
|
|
638
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
639
|
+
|
|
640
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'force', <any>force, QueryParamStyle.Form, true);
|
|
641
|
+
|
|
642
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
643
|
+
|
|
644
|
+
let localVarHeaders = this.defaultHeaders;
|
|
645
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
646
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
// authentication (msal_auth) required
|
|
650
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
651
|
+
|
|
652
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
653
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
654
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
658
|
+
|
|
659
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
660
|
+
|
|
661
|
+
// to determine the Content-Type header
|
|
662
|
+
const consumes: string[] = ['application/json'];
|
|
663
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
664
|
+
if (httpContentTypeSelected !== undefined) {
|
|
665
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
669
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
670
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
671
|
+
responseType_ = 'text';
|
|
672
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
673
|
+
responseType_ = 'json';
|
|
674
|
+
} else {
|
|
675
|
+
responseType_ = 'blob';
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
let localVarPath = `/colltypeitems/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
680
|
+
const { basePath, withCredentials } = this.configuration;
|
|
681
|
+
return this.httpClient.request<CollTypeItem>('post', `${basePath}${localVarPath}`, {
|
|
682
|
+
context: localVarHttpContext,
|
|
683
|
+
body: collTypeItem,
|
|
684
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
685
|
+
responseType: <any>responseType_,
|
|
686
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
687
|
+
headers: localVarHeaders,
|
|
688
|
+
observe: observe,
|
|
689
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
690
|
+
reportProgress: reportProgress
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
}
|