@agravity/public 5.3.0 → 5.3.2

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.
Files changed (76) hide show
  1. package/README.md +2 -2
  2. package/api/api.ts +65 -43
  3. package/api/publicAssetManagement.pub.agravity.ts +615 -504
  4. package/api/publicAssetOperations.pub.agravity.ts +740 -633
  5. package/api/publicAssetPublishing.pub.agravity.ts +277 -263
  6. package/api/publicAssetVersioning.pub.agravity.ts +613 -552
  7. package/api/publicAuthenticationManagement.pub.agravity.ts +125 -135
  8. package/api/publicCollectionManagement.pub.agravity.ts +680 -562
  9. package/api/publicCollectionSecureUpload.pub.agravity.ts +243 -229
  10. package/api/publicCollectionTypeManagement.pub.agravity.ts +293 -266
  11. package/api/publicConfigurationManagement.pub.agravity.ts +118 -128
  12. package/api/publicDownloadFormatManagement.pub.agravity.ts +125 -135
  13. package/api/publicGeneralManagement.pub.agravity.ts +206 -221
  14. package/api/publicHelperTools.pub.agravity.ts +269 -288
  15. package/api/publicPublishing.pub.agravity.ts +160 -148
  16. package/api/publicSavedSearch.pub.agravity.ts +160 -148
  17. package/api/publicSearchManagement.pub.agravity.ts +237 -197
  18. package/api/publicSharingManagement.pub.agravity.ts +259 -215
  19. package/api/publicSignalRConnectionManagement.pub.agravity.ts +125 -136
  20. package/api/publicStaticDefinedListManagement.pub.agravity.ts +325 -203
  21. package/api/publicTranslationManagement.pub.agravity.ts +322 -267
  22. package/api/publicWebAppData.pub.agravity.ts +179 -193
  23. package/api/publicWorkspaceManagement.pub.agravity.ts +199 -204
  24. package/api.module.ts +49 -51
  25. package/configuration.ts +129 -132
  26. package/encoder.ts +20 -20
  27. package/index.ts +5 -5
  28. package/model/agravityErrorResponse.pub.agravity.ts +17 -19
  29. package/model/agravityVersion.pub.agravity.ts +22 -24
  30. package/model/allWebAppData.pub.agravity.ts +22 -24
  31. package/model/artificialIntelligenceGroup.pub.agravity.ts +18 -20
  32. package/model/asset.pub.agravity.ts +45 -47
  33. package/model/assetAvailability.pub.agravity.ts +17 -19
  34. package/model/assetBlob.pub.agravity.ts +79 -82
  35. package/model/assetIdFormat.pub.agravity.ts +17 -19
  36. package/model/assetPageResult.pub.agravity.ts +21 -23
  37. package/model/azSearchOptions.pub.agravity.ts +23 -25
  38. package/model/badRequestResult.pub.agravity.ts +15 -17
  39. package/model/collTypeItem.pub.agravity.ts +36 -38
  40. package/model/collection.pub.agravity.ts +33 -35
  41. package/model/collectionType.pub.agravity.ts +33 -35
  42. package/model/collectionUDL.pub.agravity.ts +19 -21
  43. package/model/createSftpUserResult.pub.agravity.ts +16 -18
  44. package/model/dataResult.pub.agravity.ts +20 -22
  45. package/model/distZipResponse.pub.agravity.ts +17 -19
  46. package/model/downloadFormat.pub.agravity.ts +32 -34
  47. package/model/dynamicImageOperation.pub.agravity.ts +16 -18
  48. package/model/entityId.pub.agravity.ts +15 -17
  49. package/model/entityIdName.pub.agravity.ts +17 -19
  50. package/model/frontendAppConfig.pub.agravity.ts +19 -21
  51. package/model/groupAllAppData.pub.agravity.ts +24 -26
  52. package/model/metadata.pub.agravity.ts +17 -19
  53. package/model/models.ts +44 -44
  54. package/model/okResult.pub.agravity.ts +15 -17
  55. package/model/publishEntity.pub.agravity.ts +26 -28
  56. package/model/publishedAsset.pub.agravity.ts +23 -25
  57. package/model/quickShareFull.pub.agravity.ts +35 -37
  58. package/model/sasToken.pub.agravity.ts +20 -22
  59. package/model/savedSearch.pub.agravity.ts +29 -31
  60. package/model/searchFacet.pub.agravity.ts +17 -19
  61. package/model/searchFacetEntity.pub.agravity.ts +17 -19
  62. package/model/searchResult.pub.agravity.ts +21 -23
  63. package/model/searchableItem.pub.agravity.ts +24 -26
  64. package/model/secureUploadEntity.pub.agravity.ts +25 -27
  65. package/model/sharedAsset.pub.agravity.ts +23 -25
  66. package/model/sharedCollectionFull.pub.agravity.ts +27 -29
  67. package/model/signalRConnectionInfo.pub.agravity.ts +16 -18
  68. package/model/staticDefinedList.pub.agravity.ts +28 -30
  69. package/model/versionEntity.pub.agravity.ts +26 -28
  70. package/model/versionedAsset.pub.agravity.ts +18 -20
  71. package/model/whereParam.pub.agravity.ts +40 -43
  72. package/model/workspace.pub.agravity.ts +32 -34
  73. package/ng-package.json +6 -6
  74. package/package.json +45 -45
  75. package/tsconfig.json +20 -28
  76. package/variables.ts +9 -9
@@ -1,266 +1,293 @@
1
- /**
2
- * Agravity OpenAPI Documentation - Public Functions
3
- * <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
4
- *
5
- * The version of the OpenAPI document: 5.3.0
6
- * Contact: office@agravity.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /* tslint:disable:no-unused-variable member-ordering */
13
-
14
- import { Inject, Injectable, Optional } from '@angular/core';
15
- import { HttpClient, HttpHeaders, HttpParams,
16
- HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
17
- import { CustomHttpParameterCodec } from '../encoder';
18
- import { Observable } from 'rxjs';
19
-
20
- import { AgravityErrorResponse } from '../model/models';
21
- import { CollTypeItem } from '../model/models';
22
- import { CollectionType } from '../model/models';
23
-
24
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
25
- import { AgravityPublicConfiguration } from '../configuration';
26
-
27
-
28
-
29
- @Injectable({
30
- providedIn: 'root'
31
- })
32
- export class PublicCollectionTypeManagementService {
33
-
34
- protected basePath = 'http://localhost:7072/api';
35
- public defaultHeaders = new HttpHeaders();
36
- public configuration = new AgravityPublicConfiguration();
37
- public encoder: HttpParameterCodec;
38
-
39
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityPublicConfiguration) {
40
- if (configuration) {
41
- this.configuration = configuration;
42
- }
43
- if (typeof this.configuration.basePath !== 'string') {
44
- if (typeof basePath !== 'string') {
45
- basePath = this.basePath;
46
- }
47
- this.configuration.basePath = basePath;
48
- }
49
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
50
- }
51
-
52
-
53
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
54
- if (typeof value === "object" && value instanceof Date === false) {
55
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
56
- } else {
57
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
58
- }
59
- return httpParams;
60
- }
61
-
62
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
63
- if (value == null) {
64
- return httpParams;
65
- }
66
-
67
- if (typeof value === "object") {
68
- if (Array.isArray(value)) {
69
- (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
70
- } else if (value instanceof Date) {
71
- if (key != null) {
72
- httpParams = httpParams.append(key,
73
- (value as Date).toISOString().substr(0, 10));
74
- } else {
75
- throw Error("key may not be null if value is Date");
76
- }
77
- } else {
78
- Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
79
- httpParams, value[k], key != null ? `${key}.${k}` : k));
80
- }
81
- } else if (key != null) {
82
- httpParams = httpParams.append(key, value);
83
- } else {
84
- throw Error("key may not be null if value is not object or array");
85
- }
86
- return httpParams;
87
- }
88
-
89
- /**
90
- * This lists all available collection types which are stored in the database and not deleted (status \&quot;A\&quot;).
91
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
92
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
93
- * @param reportProgress flag to report request and response progress.
94
- */
95
- public httpCollectionTypesGet(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<CollectionType>>;
96
- public httpCollectionTypesGet(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<CollectionType>>>;
97
- public httpCollectionTypesGet(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<CollectionType>>>;
98
- public httpCollectionTypesGet(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
99
-
100
- let queryParameters = new HttpParams({encoder: this.encoder});
101
- if (translations !== undefined && translations !== null) {
102
- queryParameters = this.addToHttpParams(queryParameters,
103
- <any>translations, 'translations');
104
- }
105
-
106
- let headers = this.defaultHeaders;
107
-
108
- let credential: string | undefined;
109
- // authentication (function_key) required
110
- credential = this.configuration.lookupCredential('function_key');
111
- if (credential) {
112
- headers = headers.set('x-functions-key', credential);
113
- }
114
-
115
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
116
- if (httpHeaderAcceptSelected === undefined) {
117
- // to determine the Accept header
118
- const httpHeaderAccepts: string[] = [
119
- 'application/json'
120
- ];
121
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
122
- }
123
- if (httpHeaderAcceptSelected !== undefined) {
124
- headers = headers.set('Accept', httpHeaderAcceptSelected);
125
- }
126
-
127
-
128
- let responseType_: 'text' | 'json' = 'json';
129
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
130
- responseType_ = 'text';
131
- }
132
-
133
- return this.httpClient.get<Array<CollectionType>>(`${this.configuration.basePath}/collectiontypes`,
134
- {
135
- params: queryParameters,
136
- responseType: <any>responseType_,
137
- withCredentials: this.configuration.withCredentials,
138
- headers: headers,
139
- observe: observe,
140
- reportProgress: reportProgress
141
- }
142
- );
143
- }
144
-
145
- /**
146
- * Returns one single collection type (from ID).
147
- * @param id The ID of the collection type.
148
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
149
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
150
- * @param reportProgress flag to report request and response progress.
151
- */
152
- public httpCollectionTypesGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<CollectionType>;
153
- public httpCollectionTypesGetById(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<CollectionType>>;
154
- public httpCollectionTypesGetById(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<CollectionType>>;
155
- public httpCollectionTypesGetById(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
156
- if (id === null || id === undefined) {
157
- throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesGetById.');
158
- }
159
-
160
- let queryParameters = new HttpParams({encoder: this.encoder});
161
- if (translations !== undefined && translations !== null) {
162
- queryParameters = this.addToHttpParams(queryParameters,
163
- <any>translations, 'translations');
164
- }
165
-
166
- let headers = this.defaultHeaders;
167
-
168
- let credential: string | undefined;
169
- // authentication (function_key) required
170
- credential = this.configuration.lookupCredential('function_key');
171
- if (credential) {
172
- headers = headers.set('x-functions-key', credential);
173
- }
174
-
175
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
176
- if (httpHeaderAcceptSelected === undefined) {
177
- // to determine the Accept header
178
- const httpHeaderAccepts: string[] = [
179
- 'application/json'
180
- ];
181
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
182
- }
183
- if (httpHeaderAcceptSelected !== undefined) {
184
- headers = headers.set('Accept', httpHeaderAcceptSelected);
185
- }
186
-
187
-
188
- let responseType_: 'text' | 'json' = 'json';
189
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
190
- responseType_ = 'text';
191
- }
192
-
193
- return this.httpClient.get<CollectionType>(`${this.configuration.basePath}/collectiontypes/${encodeURIComponent(String(id))}`,
194
- {
195
- params: queryParameters,
196
- responseType: <any>responseType_,
197
- withCredentials: this.configuration.withCredentials,
198
- headers: headers,
199
- observe: observe,
200
- reportProgress: reportProgress
201
- }
202
- );
203
- }
204
-
205
- /**
206
- * This method returns a list of collection types items.
207
- * @param includeblueprint True if the blueprint items should be included.
208
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
209
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
210
- * @param reportProgress flag to report request and response progress.
211
- */
212
- public httpGetCollectionTypeItems(includeblueprint?: boolean, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<CollTypeItem>>;
213
- public httpGetCollectionTypeItems(includeblueprint?: boolean, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<CollTypeItem>>>;
214
- public httpGetCollectionTypeItems(includeblueprint?: boolean, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<CollTypeItem>>>;
215
- public httpGetCollectionTypeItems(includeblueprint?: boolean, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
216
-
217
- let queryParameters = new HttpParams({encoder: this.encoder});
218
- if (includeblueprint !== undefined && includeblueprint !== null) {
219
- queryParameters = this.addToHttpParams(queryParameters,
220
- <any>includeblueprint, 'includeblueprint');
221
- }
222
- if (translations !== undefined && translations !== null) {
223
- queryParameters = this.addToHttpParams(queryParameters,
224
- <any>translations, 'translations');
225
- }
226
-
227
- let headers = this.defaultHeaders;
228
-
229
- let credential: string | undefined;
230
- // authentication (function_key) required
231
- credential = this.configuration.lookupCredential('function_key');
232
- if (credential) {
233
- headers = headers.set('x-functions-key', credential);
234
- }
235
-
236
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
237
- if (httpHeaderAcceptSelected === undefined) {
238
- // to determine the Accept header
239
- const httpHeaderAccepts: string[] = [
240
- 'application/json'
241
- ];
242
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
243
- }
244
- if (httpHeaderAcceptSelected !== undefined) {
245
- headers = headers.set('Accept', httpHeaderAcceptSelected);
246
- }
247
-
248
-
249
- let responseType_: 'text' | 'json' = 'json';
250
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
251
- responseType_ = 'text';
252
- }
253
-
254
- return this.httpClient.get<Array<CollTypeItem>>(`${this.configuration.basePath}/collectiontypesitems`,
255
- {
256
- params: queryParameters,
257
- responseType: <any>responseType_,
258
- withCredentials: this.configuration.withCredentials,
259
- headers: headers,
260
- observe: observe,
261
- reportProgress: reportProgress
262
- }
263
- );
264
- }
265
-
266
- }
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
3
+ * <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
4
+ *
5
+ * The version of the OpenAPI document: 5.3.2
6
+ * Contact: office@agravity.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /* tslint:disable:no-unused-variable member-ordering */
13
+
14
+ import { Inject, Injectable, Optional } from '@angular/core';
15
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
16
+ import { CustomHttpParameterCodec } from '../encoder';
17
+ import { Observable } from 'rxjs';
18
+
19
+ import { AgravityErrorResponse } from '../model/models';
20
+ import { CollTypeItem } from '../model/models';
21
+ import { CollectionType } from '../model/models';
22
+
23
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
+ import { AgravityPublicConfiguration } from '../configuration';
25
+
26
+ @Injectable({
27
+ providedIn: 'root'
28
+ })
29
+ export class PublicCollectionTypeManagementService {
30
+ protected basePath = 'http://localhost:7072/api';
31
+ public defaultHeaders = new HttpHeaders();
32
+ public configuration = new AgravityPublicConfiguration();
33
+ public encoder: HttpParameterCodec;
34
+
35
+ constructor(
36
+ protected httpClient: HttpClient,
37
+ @Optional() @Inject(BASE_PATH) basePath: string,
38
+ @Optional() configuration: AgravityPublicConfiguration
39
+ ) {
40
+ if (configuration) {
41
+ this.configuration = configuration;
42
+ }
43
+ if (typeof this.configuration.basePath !== 'string') {
44
+ if (typeof basePath !== 'string') {
45
+ basePath = this.basePath;
46
+ }
47
+ this.configuration.basePath = basePath;
48
+ }
49
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
50
+ }
51
+
52
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
53
+ if (typeof value === 'object' && value instanceof Date === false) {
54
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
55
+ } else {
56
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
57
+ }
58
+ return httpParams;
59
+ }
60
+
61
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
62
+ if (value == null) {
63
+ return httpParams;
64
+ }
65
+
66
+ if (typeof value === 'object') {
67
+ if (Array.isArray(value)) {
68
+ (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
69
+ } else if (value instanceof Date) {
70
+ if (key != null) {
71
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
72
+ } else {
73
+ throw Error('key may not be null if value is Date');
74
+ }
75
+ } else {
76
+ Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
77
+ }
78
+ } else if (key != null) {
79
+ httpParams = httpParams.append(key, value);
80
+ } else {
81
+ throw Error('key may not be null if value is not object or array');
82
+ }
83
+ return httpParams;
84
+ }
85
+
86
+ /**
87
+ * This lists all available collection types which are stored in the database and not deleted (status \&quot;A\&quot;).
88
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
89
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
90
+ * @param reportProgress flag to report request and response progress.
91
+ */
92
+ public httpCollectionTypesGet(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<CollectionType>>;
93
+ public httpCollectionTypesGet(
94
+ translations?: boolean,
95
+ observe?: 'response',
96
+ reportProgress?: boolean,
97
+ options?: { httpHeaderAccept?: 'application/json' }
98
+ ): Observable<HttpResponse<Array<CollectionType>>>;
99
+ public httpCollectionTypesGet(
100
+ translations?: boolean,
101
+ observe?: 'events',
102
+ reportProgress?: boolean,
103
+ options?: { httpHeaderAccept?: 'application/json' }
104
+ ): Observable<HttpEvent<Array<CollectionType>>>;
105
+ public httpCollectionTypesGet(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
106
+ let queryParameters = new HttpParams({ encoder: this.encoder });
107
+ if (translations !== undefined && translations !== null) {
108
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
109
+ }
110
+
111
+ let headers = this.defaultHeaders;
112
+
113
+ let credential: string | undefined;
114
+ // authentication (function_key) required
115
+ credential = this.configuration.lookupCredential('function_key');
116
+ if (credential) {
117
+ headers = headers.set('x-functions-key', credential);
118
+ }
119
+
120
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
121
+ if (httpHeaderAcceptSelected === undefined) {
122
+ // to determine the Accept header
123
+ const httpHeaderAccepts: string[] = ['application/json'];
124
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
125
+ }
126
+ if (httpHeaderAcceptSelected !== undefined) {
127
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
128
+ }
129
+
130
+ let responseType_: 'text' | 'json' = 'json';
131
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
132
+ responseType_ = 'text';
133
+ }
134
+
135
+ return this.httpClient.get<Array<CollectionType>>(`${this.configuration.basePath}/collectiontypes`, {
136
+ params: queryParameters,
137
+ responseType: <any>responseType_,
138
+ withCredentials: this.configuration.withCredentials,
139
+ headers: headers,
140
+ observe: observe,
141
+ reportProgress: reportProgress
142
+ });
143
+ }
144
+
145
+ /**
146
+ * Returns one single collection type (from ID).
147
+ * @param id The ID of the collection type.
148
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
149
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
150
+ * @param reportProgress flag to report request and response progress.
151
+ */
152
+ public httpCollectionTypesGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<CollectionType>;
153
+ public httpCollectionTypesGetById(
154
+ id: string,
155
+ translations?: boolean,
156
+ observe?: 'response',
157
+ reportProgress?: boolean,
158
+ options?: { httpHeaderAccept?: 'application/json' }
159
+ ): Observable<HttpResponse<CollectionType>>;
160
+ public httpCollectionTypesGetById(
161
+ id: string,
162
+ translations?: boolean,
163
+ observe?: 'events',
164
+ reportProgress?: boolean,
165
+ options?: { httpHeaderAccept?: 'application/json' }
166
+ ): Observable<HttpEvent<CollectionType>>;
167
+ public httpCollectionTypesGetById(
168
+ id: string,
169
+ translations?: boolean,
170
+ observe: any = 'body',
171
+ reportProgress: boolean = false,
172
+ options?: { httpHeaderAccept?: 'application/json' }
173
+ ): Observable<any> {
174
+ if (id === null || id === undefined) {
175
+ throw new Error('Required parameter id was null or undefined when calling httpCollectionTypesGetById.');
176
+ }
177
+
178
+ let queryParameters = new HttpParams({ encoder: this.encoder });
179
+ if (translations !== undefined && translations !== null) {
180
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
181
+ }
182
+
183
+ let headers = this.defaultHeaders;
184
+
185
+ let credential: string | undefined;
186
+ // authentication (function_key) required
187
+ credential = this.configuration.lookupCredential('function_key');
188
+ if (credential) {
189
+ headers = headers.set('x-functions-key', credential);
190
+ }
191
+
192
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
193
+ if (httpHeaderAcceptSelected === undefined) {
194
+ // to determine the Accept header
195
+ const httpHeaderAccepts: string[] = ['application/json'];
196
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
197
+ }
198
+ if (httpHeaderAcceptSelected !== undefined) {
199
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
200
+ }
201
+
202
+ let responseType_: 'text' | 'json' = 'json';
203
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
204
+ responseType_ = 'text';
205
+ }
206
+
207
+ return this.httpClient.get<CollectionType>(`${this.configuration.basePath}/collectiontypes/${encodeURIComponent(String(id))}`, {
208
+ params: queryParameters,
209
+ responseType: <any>responseType_,
210
+ withCredentials: this.configuration.withCredentials,
211
+ headers: headers,
212
+ observe: observe,
213
+ reportProgress: reportProgress
214
+ });
215
+ }
216
+
217
+ /**
218
+ * This method returns a list of collection types items.
219
+ * @param includeblueprint True if the blueprint items should be included.
220
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
221
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
222
+ * @param reportProgress flag to report request and response progress.
223
+ */
224
+ public httpGetCollectionTypeItems(
225
+ includeblueprint?: boolean,
226
+ translations?: boolean,
227
+ observe?: 'body',
228
+ reportProgress?: boolean,
229
+ options?: { httpHeaderAccept?: 'application/json' }
230
+ ): Observable<Array<CollTypeItem>>;
231
+ public httpGetCollectionTypeItems(
232
+ includeblueprint?: boolean,
233
+ translations?: boolean,
234
+ observe?: 'response',
235
+ reportProgress?: boolean,
236
+ options?: { httpHeaderAccept?: 'application/json' }
237
+ ): Observable<HttpResponse<Array<CollTypeItem>>>;
238
+ public httpGetCollectionTypeItems(
239
+ includeblueprint?: boolean,
240
+ translations?: boolean,
241
+ observe?: 'events',
242
+ reportProgress?: boolean,
243
+ options?: { httpHeaderAccept?: 'application/json' }
244
+ ): Observable<HttpEvent<Array<CollTypeItem>>>;
245
+ public httpGetCollectionTypeItems(
246
+ includeblueprint?: boolean,
247
+ translations?: boolean,
248
+ observe: any = 'body',
249
+ reportProgress: boolean = false,
250
+ options?: { httpHeaderAccept?: 'application/json' }
251
+ ): Observable<any> {
252
+ let queryParameters = new HttpParams({ encoder: this.encoder });
253
+ if (includeblueprint !== undefined && includeblueprint !== null) {
254
+ queryParameters = this.addToHttpParams(queryParameters, <any>includeblueprint, 'includeblueprint');
255
+ }
256
+ if (translations !== undefined && translations !== null) {
257
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
258
+ }
259
+
260
+ let headers = this.defaultHeaders;
261
+
262
+ let credential: string | undefined;
263
+ // authentication (function_key) required
264
+ credential = this.configuration.lookupCredential('function_key');
265
+ if (credential) {
266
+ headers = headers.set('x-functions-key', credential);
267
+ }
268
+
269
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
270
+ if (httpHeaderAcceptSelected === undefined) {
271
+ // to determine the Accept header
272
+ const httpHeaderAccepts: string[] = ['application/json'];
273
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
274
+ }
275
+ if (httpHeaderAcceptSelected !== undefined) {
276
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
277
+ }
278
+
279
+ let responseType_: 'text' | 'json' = 'json';
280
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
281
+ responseType_ = 'text';
282
+ }
283
+
284
+ return this.httpClient.get<Array<CollTypeItem>>(`${this.configuration.basePath}/collectiontypesitems`, {
285
+ params: queryParameters,
286
+ responseType: <any>responseType_,
287
+ withCredentials: this.configuration.withCredentials,
288
+ headers: headers,
289
+ observe: observe,
290
+ reportProgress: reportProgress
291
+ });
292
+ }
293
+ }