@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,203 +1,325 @@
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 { StaticDefinedList } from '../model/models';
21
-
22
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
- import { AgravityPublicConfiguration } from '../configuration';
24
-
25
-
26
-
27
- @Injectable({
28
- providedIn: 'root'
29
- })
30
- export class PublicStaticDefinedListManagementService {
31
-
32
- protected basePath = 'http://localhost:7072/api';
33
- public defaultHeaders = new HttpHeaders();
34
- public configuration = new AgravityPublicConfiguration();
35
- public encoder: HttpParameterCodec;
36
-
37
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityPublicConfiguration) {
38
- if (configuration) {
39
- this.configuration = configuration;
40
- }
41
- if (typeof this.configuration.basePath !== 'string') {
42
- if (typeof basePath !== 'string') {
43
- basePath = this.basePath;
44
- }
45
- this.configuration.basePath = basePath;
46
- }
47
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
48
- }
49
-
50
-
51
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
- if (typeof value === "object" && value instanceof Date === false) {
53
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
54
- } else {
55
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
56
- }
57
- return httpParams;
58
- }
59
-
60
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
61
- if (value == null) {
62
- return httpParams;
63
- }
64
-
65
- if (typeof value === "object") {
66
- if (Array.isArray(value)) {
67
- (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
68
- } else if (value instanceof Date) {
69
- if (key != null) {
70
- httpParams = httpParams.append(key,
71
- (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(
77
- httpParams, value[k], key != null ? `${key}.${k}` : k));
78
- }
79
- } else if (key != null) {
80
- httpParams = httpParams.append(key, value);
81
- } else {
82
- throw Error("key may not be null if value is not object or array");
83
- }
84
- return httpParams;
85
- }
86
-
87
- /**
88
- * This endpoint lists all static defined lists in database.
89
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
90
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
91
- * @param reportProgress flag to report request and response progress.
92
- */
93
- public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<StaticDefinedList>>;
94
- public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<StaticDefinedList>>>;
95
- public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<StaticDefinedList>>>;
96
- public httpStaticDefinedListsGetAll(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
97
-
98
- let queryParameters = new HttpParams({encoder: this.encoder});
99
- if (translations !== undefined && translations !== null) {
100
- queryParameters = this.addToHttpParams(queryParameters,
101
- <any>translations, 'translations');
102
- }
103
-
104
- let headers = this.defaultHeaders;
105
-
106
- let credential: string | undefined;
107
- // authentication (function_key) required
108
- credential = this.configuration.lookupCredential('function_key');
109
- if (credential) {
110
- headers = headers.set('x-functions-key', credential);
111
- }
112
-
113
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
114
- if (httpHeaderAcceptSelected === undefined) {
115
- // to determine the Accept header
116
- const httpHeaderAccepts: string[] = [
117
- 'application/json'
118
- ];
119
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
120
- }
121
- if (httpHeaderAcceptSelected !== undefined) {
122
- headers = headers.set('Accept', httpHeaderAcceptSelected);
123
- }
124
-
125
-
126
- let responseType_: 'text' | 'json' = 'json';
127
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
128
- responseType_ = 'text';
129
- }
130
-
131
- return this.httpClient.get<Array<StaticDefinedList>>(`${this.configuration.basePath}/staticdefinedlists`,
132
- {
133
- params: queryParameters,
134
- responseType: <any>responseType_,
135
- withCredentials: this.configuration.withCredentials,
136
- headers: headers,
137
- observe: observe,
138
- reportProgress: reportProgress
139
- }
140
- );
141
- }
142
-
143
- /**
144
- * This endpoint gets a static defined list from database.
145
- * @param id The ID of the static defined list.
146
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
147
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
148
- * @param reportProgress flag to report request and response progress.
149
- */
150
- public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<StaticDefinedList>;
151
- public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<StaticDefinedList>>;
152
- public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<StaticDefinedList>>;
153
- public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
154
- if (id === null || id === undefined) {
155
- throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsGetById.');
156
- }
157
-
158
- let queryParameters = new HttpParams({encoder: this.encoder});
159
- if (translations !== undefined && translations !== null) {
160
- queryParameters = this.addToHttpParams(queryParameters,
161
- <any>translations, 'translations');
162
- }
163
-
164
- let headers = this.defaultHeaders;
165
-
166
- let credential: string | undefined;
167
- // authentication (function_key) required
168
- credential = this.configuration.lookupCredential('function_key');
169
- if (credential) {
170
- headers = headers.set('x-functions-key', credential);
171
- }
172
-
173
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
174
- if (httpHeaderAcceptSelected === undefined) {
175
- // to determine the Accept header
176
- const httpHeaderAccepts: string[] = [
177
- 'application/json'
178
- ];
179
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
180
- }
181
- if (httpHeaderAcceptSelected !== undefined) {
182
- headers = headers.set('Accept', httpHeaderAcceptSelected);
183
- }
184
-
185
-
186
- let responseType_: 'text' | 'json' = 'json';
187
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
188
- responseType_ = 'text';
189
- }
190
-
191
- return this.httpClient.get<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`,
192
- {
193
- params: queryParameters,
194
- responseType: <any>responseType_,
195
- withCredentials: this.configuration.withCredentials,
196
- headers: headers,
197
- observe: observe,
198
- reportProgress: reportProgress
199
- }
200
- );
201
- }
202
-
203
- }
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 { StaticDefinedList } from '../model/models';
21
+
22
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
+ import { AgravityPublicConfiguration } from '../configuration';
24
+
25
+ @Injectable({
26
+ providedIn: 'root'
27
+ })
28
+ export class PublicStaticDefinedListManagementService {
29
+ protected basePath = 'http://localhost:7072/api';
30
+ public defaultHeaders = new HttpHeaders();
31
+ public configuration = new AgravityPublicConfiguration();
32
+ public encoder: HttpParameterCodec;
33
+
34
+ constructor(
35
+ protected httpClient: HttpClient,
36
+ @Optional() @Inject(BASE_PATH) basePath: string,
37
+ @Optional() configuration: AgravityPublicConfiguration
38
+ ) {
39
+ if (configuration) {
40
+ this.configuration = configuration;
41
+ }
42
+ if (typeof this.configuration.basePath !== 'string') {
43
+ if (typeof basePath !== 'string') {
44
+ basePath = this.basePath;
45
+ }
46
+ this.configuration.basePath = basePath;
47
+ }
48
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
+ }
50
+
51
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
+ if (typeof value === 'object' && value instanceof Date === false) {
53
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
54
+ } else {
55
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
56
+ }
57
+ return httpParams;
58
+ }
59
+
60
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
61
+ if (value == null) {
62
+ return httpParams;
63
+ }
64
+
65
+ if (typeof value === 'object') {
66
+ if (Array.isArray(value)) {
67
+ (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
68
+ } else if (value instanceof Date) {
69
+ if (key != null) {
70
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
71
+ } else {
72
+ throw Error('key may not be null if value is Date');
73
+ }
74
+ } else {
75
+ Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
76
+ }
77
+ } else if (key != null) {
78
+ httpParams = httpParams.append(key, value);
79
+ } else {
80
+ throw Error('key may not be null if value is not object or array');
81
+ }
82
+ return httpParams;
83
+ }
84
+
85
+ /**
86
+ * This endpoint lists all static defined lists in database.
87
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
88
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
89
+ * @param reportProgress flag to report request and response progress.
90
+ */
91
+ public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<StaticDefinedList>>;
92
+ public httpStaticDefinedListsGetAll(
93
+ translations?: boolean,
94
+ observe?: 'response',
95
+ reportProgress?: boolean,
96
+ options?: { httpHeaderAccept?: 'application/json' }
97
+ ): Observable<HttpResponse<Array<StaticDefinedList>>>;
98
+ public httpStaticDefinedListsGetAll(
99
+ translations?: boolean,
100
+ observe?: 'events',
101
+ reportProgress?: boolean,
102
+ options?: { httpHeaderAccept?: 'application/json' }
103
+ ): Observable<HttpEvent<Array<StaticDefinedList>>>;
104
+ public httpStaticDefinedListsGetAll(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
105
+ let queryParameters = new HttpParams({ encoder: this.encoder });
106
+ if (translations !== undefined && translations !== null) {
107
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
108
+ }
109
+
110
+ let headers = this.defaultHeaders;
111
+
112
+ let credential: string | undefined;
113
+ // authentication (function_key) required
114
+ credential = this.configuration.lookupCredential('function_key');
115
+ if (credential) {
116
+ headers = headers.set('x-functions-key', credential);
117
+ }
118
+
119
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
120
+ if (httpHeaderAcceptSelected === undefined) {
121
+ // to determine the Accept header
122
+ const httpHeaderAccepts: string[] = ['application/json'];
123
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
124
+ }
125
+ if (httpHeaderAcceptSelected !== undefined) {
126
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
127
+ }
128
+
129
+ let responseType_: 'text' | 'json' = 'json';
130
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
131
+ responseType_ = 'text';
132
+ }
133
+
134
+ return this.httpClient.get<Array<StaticDefinedList>>(`${this.configuration.basePath}/staticdefinedlists`, {
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
+ * This endpoint gets a static defined list from database.
146
+ * @param id The ID of the static defined list.
147
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
148
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
149
+ * @param reportProgress flag to report request and response progress.
150
+ */
151
+ public httpStaticDefinedListsGetById(
152
+ id: string,
153
+ translations?: boolean,
154
+ observe?: 'body',
155
+ reportProgress?: boolean,
156
+ options?: { httpHeaderAccept?: 'application/json' }
157
+ ): Observable<StaticDefinedList>;
158
+ public httpStaticDefinedListsGetById(
159
+ id: string,
160
+ translations?: boolean,
161
+ observe?: 'response',
162
+ reportProgress?: boolean,
163
+ options?: { httpHeaderAccept?: 'application/json' }
164
+ ): Observable<HttpResponse<StaticDefinedList>>;
165
+ public httpStaticDefinedListsGetById(
166
+ id: string,
167
+ translations?: boolean,
168
+ observe?: 'events',
169
+ reportProgress?: boolean,
170
+ options?: { httpHeaderAccept?: 'application/json' }
171
+ ): Observable<HttpEvent<StaticDefinedList>>;
172
+ public httpStaticDefinedListsGetById(
173
+ id: string,
174
+ translations?: boolean,
175
+ observe: any = 'body',
176
+ reportProgress: boolean = false,
177
+ options?: { httpHeaderAccept?: 'application/json' }
178
+ ): Observable<any> {
179
+ if (id === null || id === undefined) {
180
+ throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsGetById.');
181
+ }
182
+
183
+ let queryParameters = new HttpParams({ encoder: this.encoder });
184
+ if (translations !== undefined && translations !== null) {
185
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
186
+ }
187
+
188
+ let headers = this.defaultHeaders;
189
+
190
+ let credential: string | undefined;
191
+ // authentication (function_key) required
192
+ credential = this.configuration.lookupCredential('function_key');
193
+ if (credential) {
194
+ headers = headers.set('x-functions-key', credential);
195
+ }
196
+
197
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
198
+ if (httpHeaderAcceptSelected === undefined) {
199
+ // to determine the Accept header
200
+ const httpHeaderAccepts: string[] = ['application/json'];
201
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
202
+ }
203
+ if (httpHeaderAcceptSelected !== undefined) {
204
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
205
+ }
206
+
207
+ let responseType_: 'text' | 'json' = 'json';
208
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
209
+ responseType_ = 'text';
210
+ }
211
+
212
+ return this.httpClient.get<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`, {
213
+ params: queryParameters,
214
+ responseType: <any>responseType_,
215
+ withCredentials: this.configuration.withCredentials,
216
+ headers: headers,
217
+ observe: observe,
218
+ reportProgress: reportProgress
219
+ });
220
+ }
221
+
222
+ /**
223
+ * This endpoint update a static defined list in database (add, delete or replace values).
224
+ * @param id The ID of the static defined list.
225
+ * @param updatemode The mode how the list should be updated. Available values are: add, delete and replace.
226
+ * @param staticDefinedList The values which should be updated.
227
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
228
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
229
+ * @param reportProgress flag to report request and response progress.
230
+ */
231
+ public httpStaticDefinedListsUpdateById(
232
+ id: string,
233
+ updatemode: string,
234
+ staticDefinedList: StaticDefinedList,
235
+ translations?: boolean,
236
+ observe?: 'body',
237
+ reportProgress?: boolean,
238
+ options?: { httpHeaderAccept?: 'application/json' }
239
+ ): Observable<StaticDefinedList>;
240
+ public httpStaticDefinedListsUpdateById(
241
+ id: string,
242
+ updatemode: string,
243
+ staticDefinedList: StaticDefinedList,
244
+ translations?: boolean,
245
+ observe?: 'response',
246
+ reportProgress?: boolean,
247
+ options?: { httpHeaderAccept?: 'application/json' }
248
+ ): Observable<HttpResponse<StaticDefinedList>>;
249
+ public httpStaticDefinedListsUpdateById(
250
+ id: string,
251
+ updatemode: string,
252
+ staticDefinedList: StaticDefinedList,
253
+ translations?: boolean,
254
+ observe?: 'events',
255
+ reportProgress?: boolean,
256
+ options?: { httpHeaderAccept?: 'application/json' }
257
+ ): Observable<HttpEvent<StaticDefinedList>>;
258
+ public httpStaticDefinedListsUpdateById(
259
+ id: string,
260
+ updatemode: string,
261
+ staticDefinedList: StaticDefinedList,
262
+ translations?: boolean,
263
+ observe: any = 'body',
264
+ reportProgress: boolean = false,
265
+ options?: { httpHeaderAccept?: 'application/json' }
266
+ ): Observable<any> {
267
+ if (id === null || id === undefined) {
268
+ throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsUpdateById.');
269
+ }
270
+ if (updatemode === null || updatemode === undefined) {
271
+ throw new Error('Required parameter updatemode was null or undefined when calling httpStaticDefinedListsUpdateById.');
272
+ }
273
+ if (staticDefinedList === null || staticDefinedList === undefined) {
274
+ throw new Error('Required parameter staticDefinedList was null or undefined when calling httpStaticDefinedListsUpdateById.');
275
+ }
276
+
277
+ let queryParameters = new HttpParams({ encoder: this.encoder });
278
+ if (translations !== undefined && translations !== null) {
279
+ queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
280
+ }
281
+ if (updatemode !== undefined && updatemode !== null) {
282
+ queryParameters = this.addToHttpParams(queryParameters, <any>updatemode, 'updatemode');
283
+ }
284
+
285
+ let headers = this.defaultHeaders;
286
+
287
+ let credential: string | undefined;
288
+ // authentication (function_key) required
289
+ credential = this.configuration.lookupCredential('function_key');
290
+ if (credential) {
291
+ headers = headers.set('x-functions-key', credential);
292
+ }
293
+
294
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
295
+ if (httpHeaderAcceptSelected === undefined) {
296
+ // to determine the Accept header
297
+ const httpHeaderAccepts: string[] = ['application/json'];
298
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
299
+ }
300
+ if (httpHeaderAcceptSelected !== undefined) {
301
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
302
+ }
303
+
304
+ // to determine the Content-Type header
305
+ const consumes: string[] = ['application/json'];
306
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
307
+ if (httpContentTypeSelected !== undefined) {
308
+ headers = headers.set('Content-Type', httpContentTypeSelected);
309
+ }
310
+
311
+ let responseType_: 'text' | 'json' = 'json';
312
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
313
+ responseType_ = 'text';
314
+ }
315
+
316
+ return this.httpClient.post<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`, staticDefinedList, {
317
+ params: queryParameters,
318
+ responseType: <any>responseType_,
319
+ withCredentials: this.configuration.withCredentials,
320
+ headers: headers,
321
+ observe: observe,
322
+ reportProgress: reportProgress
323
+ });
324
+ }
325
+ }