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