@agravity/public 7.3.1 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/publicAssetManagement.pub.agravity.ts +389 -265
- package/api/publicAssetOperations.pub.agravity.ts +636 -425
- package/api/publicAssetPublishing.pub.agravity.ts +195 -82
- package/api/publicAssetVersioning.pub.agravity.ts +469 -239
- package/api/publicAuthenticationManagement.pub.agravity.ts +66 -24
- package/api/publicCollectionManagement.pub.agravity.ts +525 -295
- package/api/publicCollectionSecureUpload.pub.agravity.ts +142 -69
- package/api/publicCollectionTypeManagement.pub.agravity.ts +211 -95
- package/api/publicConfigurationManagement.pub.agravity.ts +69 -26
- package/api/publicDownloadFormatManagement.pub.agravity.ts +139 -53
- package/api/publicEndpoints.pub.agravity.ts +63 -43
- package/api/publicGeneralManagement.pub.agravity.ts +253 -104
- package/api/publicHelperTools.pub.agravity.ts +270 -106
- package/api/publicPortalManagement.pub.agravity.ts +323 -124
- package/api/publicPublishing.pub.agravity.ts +69 -38
- package/api/publicSavedSearch.pub.agravity.ts +75 -38
- package/api/publicSearchManagement.pub.agravity.ts +265 -194
- package/api/publicSharingManagement.pub.agravity.ts +252 -157
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +68 -24
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +212 -107
- package/api/publicTranslationManagement.pub.agravity.ts +189 -115
- package/api/publicWebAppData.pub.agravity.ts +146 -47
- package/api/publicWorkspaceManagement.pub.agravity.ts +158 -57
- package/api.module.ts +0 -24
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.pub.agravity.ts +3 -4
- package/model/{badRequestResult.pub.agravity.ts → agravityInfoResponse.pub.agravity.ts} +4 -3
- package/model/agravityVersion.pub.agravity.ts +8 -9
- package/model/allWebAppData.pub.agravity.ts +4 -5
- package/model/artificialIntelligenceGroup.pub.agravity.ts +3 -4
- package/model/asset.pub.agravity.ts +22 -23
- package/model/assetAvailability.pub.agravity.ts +1 -2
- package/model/assetBlob.pub.agravity.ts +27 -28
- package/model/{okResult.pub.agravity.ts → assetIconRule.pub.agravity.ts} +20 -3
- package/model/assetIdFormat.pub.agravity.ts +3 -4
- package/model/assetPageResult.pub.agravity.ts +4 -5
- package/model/azSearchOptions.pub.agravity.ts +8 -9
- package/model/collTypeItem.pub.agravity.ts +16 -17
- package/model/collection.pub.agravity.ts +15 -16
- package/model/collectionType.pub.agravity.ts +14 -15
- package/model/collectionUDL.pub.agravity.ts +4 -5
- package/model/createSftpUserResult.pub.agravity.ts +2 -3
- package/model/dataResult.pub.agravity.ts +4 -5
- package/model/deletedEntities.pub.agravity.ts +4 -5
- package/model/distZipResponse.pub.agravity.ts +3 -4
- package/model/downloadFormat.pub.agravity.ts +18 -16
- package/model/dynamicImageOperation.pub.agravity.ts +2 -3
- package/model/entityId.pub.agravity.ts +1 -2
- package/model/entityIdName.pub.agravity.ts +3 -4
- package/model/frontendAppConfig.pub.agravity.ts +0 -1
- package/model/groupAllAppData.pub.agravity.ts +5 -6
- package/model/models.ts +2 -3
- package/model/moveCollectionBody.pub.agravity.ts +3 -4
- package/model/permissionEntity.pub.agravity.ts +1 -2
- package/model/portal.pub.agravity.ts +20 -20
- package/model/portalConfiguration.pub.agravity.ts +25 -25
- package/model/portalLinks.pub.agravity.ts +3 -4
- package/model/portalTheme.pub.agravity.ts +6 -7
- package/model/portalZipRequest.pub.agravity.ts +14 -15
- package/model/publishEntity.pub.agravity.ts +9 -10
- package/model/publishedAsset.pub.agravity.ts +12 -13
- package/model/quickShareFull.pub.agravity.ts +15 -16
- package/model/sasToken.pub.agravity.ts +6 -7
- package/model/savedSearch.pub.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.pub.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.pub.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.pub.agravity.ts +2 -3
- package/model/searchAdminStatistics.pub.agravity.ts +2 -3
- package/model/searchAdminStatus.pub.agravity.ts +4 -5
- package/model/searchFacet.pub.agravity.ts +2 -3
- package/model/searchFacetEntity.pub.agravity.ts +2 -3
- package/model/searchResult.pub.agravity.ts +3 -4
- package/model/searchableItem.pub.agravity.ts +3 -4
- package/model/secureUploadEntity.pub.agravity.ts +10 -11
- package/model/sharedAllowedFormat.pub.agravity.ts +2 -3
- package/model/sharedAsset.pub.agravity.ts +5 -6
- package/model/sharedCollectionFull.pub.agravity.ts +18 -19
- package/model/sharedCollectionZipRequest.pub.agravity.ts +14 -15
- package/model/signalRConnectionInfo.pub.agravity.ts +0 -1
- package/model/staticDefinedList.pub.agravity.ts +12 -13
- package/model/versionEntity.pub.agravity.ts +9 -10
- package/model/versionedAsset.pub.agravity.ts +5 -6
- package/model/whereParam.pub.agravity.ts +0 -1
- package/model/workspace.pub.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/portalLanguages.pub.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Public Functions
|
|
3
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 2024. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.3.1
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,15 +11,40 @@
|
|
|
12
11
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
12
|
|
|
14
13
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
14
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
16
15
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
16
|
import { Observable } from 'rxjs';
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
20
20
|
|
|
21
|
+
// @ts-ignore
|
|
21
22
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
22
23
|
import { AgravityPublicConfiguration } from '../configuration';
|
|
23
24
|
|
|
25
|
+
export interface HttpTranslationsByIdRequestParams {
|
|
26
|
+
/** The ID of any translateable entity (Asset, Collection, Collection Type, Download Format). */
|
|
27
|
+
id: string;
|
|
28
|
+
/** If the items should be included (only for entity type Collection and Asset). */
|
|
29
|
+
items?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface HttpTranslationsByIdFilterByCustomFieldRequestParams {
|
|
33
|
+
/** The ID of only translateable entities with custom fields (Asset, Collection). */
|
|
34
|
+
id: string;
|
|
35
|
+
/** Limit the output to a specific custom field key. */
|
|
36
|
+
customField: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface HttpTranslationsByIdFilterByPropertyRequestParams {
|
|
40
|
+
/** The ID of any translateable entity (Asset, Collection, Collection Type, Download Format). */
|
|
41
|
+
id: string;
|
|
42
|
+
/** Limit to one specific property (key) */
|
|
43
|
+
property: string;
|
|
44
|
+
/** If the items should be included (only for entity type Collection and Asset). */
|
|
45
|
+
items?: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
24
48
|
@Injectable({
|
|
25
49
|
providedIn: 'root'
|
|
26
50
|
})
|
|
@@ -32,13 +56,18 @@ export class PublicTranslationManagementService {
|
|
|
32
56
|
|
|
33
57
|
constructor(
|
|
34
58
|
protected httpClient: HttpClient,
|
|
35
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
59
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
36
60
|
@Optional() configuration: AgravityPublicConfiguration
|
|
37
61
|
) {
|
|
38
62
|
if (configuration) {
|
|
39
63
|
this.configuration = configuration;
|
|
40
64
|
}
|
|
41
65
|
if (typeof this.configuration.basePath !== 'string') {
|
|
66
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
67
|
+
if (firstBasePath != undefined) {
|
|
68
|
+
basePath = firstBasePath;
|
|
69
|
+
}
|
|
70
|
+
|
|
42
71
|
if (typeof basePath !== 'string') {
|
|
43
72
|
basePath = this.basePath;
|
|
44
73
|
}
|
|
@@ -47,6 +76,7 @@ export class PublicTranslationManagementService {
|
|
|
47
76
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
48
77
|
}
|
|
49
78
|
|
|
79
|
+
// @ts-ignore
|
|
50
80
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
51
81
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
52
82
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -66,7 +96,7 @@ export class PublicTranslationManagementService {
|
|
|
66
96
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
67
97
|
} else if (value instanceof Date) {
|
|
68
98
|
if (key != null) {
|
|
69
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
99
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
70
100
|
} else {
|
|
71
101
|
throw Error('key may not be null if value is Date');
|
|
72
102
|
}
|
|
@@ -83,240 +113,284 @@ export class PublicTranslationManagementService {
|
|
|
83
113
|
|
|
84
114
|
/**
|
|
85
115
|
* Get all the translations of a whole entity (Asset, Collection, Collection Type, Download Format)
|
|
86
|
-
* @param
|
|
87
|
-
* @param items If the items should be included (only for entity type Collection and Asset).
|
|
116
|
+
* @param requestParameters
|
|
88
117
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
89
118
|
* @param reportProgress flag to report request and response progress.
|
|
90
119
|
*/
|
|
91
120
|
public httpTranslationsById(
|
|
92
|
-
|
|
93
|
-
items?: boolean,
|
|
121
|
+
requestParameters?: HttpTranslationsByIdRequestParams,
|
|
94
122
|
observe?: 'body',
|
|
95
123
|
reportProgress?: boolean,
|
|
96
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
124
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
97
125
|
): Observable<{ [key: string]: { [key: string]: object } }>;
|
|
98
126
|
public httpTranslationsById(
|
|
99
|
-
|
|
100
|
-
items?: boolean,
|
|
127
|
+
requestParameters?: HttpTranslationsByIdRequestParams,
|
|
101
128
|
observe?: 'response',
|
|
102
129
|
reportProgress?: boolean,
|
|
103
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
130
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
104
131
|
): Observable<HttpResponse<{ [key: string]: { [key: string]: object } }>>;
|
|
105
132
|
public httpTranslationsById(
|
|
106
|
-
|
|
107
|
-
items?: boolean,
|
|
133
|
+
requestParameters?: HttpTranslationsByIdRequestParams,
|
|
108
134
|
observe?: 'events',
|
|
109
135
|
reportProgress?: boolean,
|
|
110
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
136
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
111
137
|
): Observable<HttpEvent<{ [key: string]: { [key: string]: object } }>>;
|
|
112
|
-
public httpTranslationsById(
|
|
138
|
+
public httpTranslationsById(
|
|
139
|
+
requestParameters?: HttpTranslationsByIdRequestParams,
|
|
140
|
+
observe: any = 'body',
|
|
141
|
+
reportProgress: boolean = false,
|
|
142
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
143
|
+
): Observable<any> {
|
|
144
|
+
const id = requestParameters?.id;
|
|
113
145
|
if (id === null || id === undefined) {
|
|
114
146
|
throw new Error('Required parameter id was null or undefined when calling httpTranslationsById.');
|
|
115
147
|
}
|
|
148
|
+
const items = requestParameters?.items;
|
|
116
149
|
|
|
117
|
-
let
|
|
150
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
118
151
|
if (items !== undefined && items !== null) {
|
|
119
|
-
|
|
152
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
120
153
|
}
|
|
121
154
|
|
|
122
|
-
let
|
|
155
|
+
let localVarHeaders = this.defaultHeaders;
|
|
123
156
|
|
|
124
|
-
let
|
|
157
|
+
let localVarCredential: string | undefined;
|
|
125
158
|
// authentication (function_key) required
|
|
126
|
-
|
|
127
|
-
if (
|
|
128
|
-
|
|
159
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
160
|
+
if (localVarCredential) {
|
|
161
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
129
162
|
}
|
|
130
163
|
|
|
131
|
-
let
|
|
132
|
-
if (
|
|
164
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
165
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
133
166
|
// to determine the Accept header
|
|
134
167
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
135
|
-
|
|
168
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
136
169
|
}
|
|
137
|
-
if (
|
|
138
|
-
|
|
170
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
171
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
139
172
|
}
|
|
140
173
|
|
|
141
|
-
let
|
|
142
|
-
if (
|
|
143
|
-
|
|
174
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
175
|
+
if (localVarHttpContext === undefined) {
|
|
176
|
+
localVarHttpContext = new HttpContext();
|
|
144
177
|
}
|
|
145
178
|
|
|
146
|
-
|
|
147
|
-
|
|
179
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
180
|
+
if (localVarTransferCache === undefined) {
|
|
181
|
+
localVarTransferCache = true;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
185
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
186
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
187
|
+
responseType_ = 'text';
|
|
188
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
189
|
+
responseType_ = 'json';
|
|
190
|
+
} else {
|
|
191
|
+
responseType_ = 'blob';
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
let localVarPath = `/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
196
|
+
return this.httpClient.request<{ [key: string]: { [key: string]: object } }>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
197
|
+
context: localVarHttpContext,
|
|
198
|
+
params: localVarQueryParameters,
|
|
148
199
|
responseType: <any>responseType_,
|
|
149
200
|
withCredentials: this.configuration.withCredentials,
|
|
150
|
-
headers:
|
|
201
|
+
headers: localVarHeaders,
|
|
151
202
|
observe: observe,
|
|
203
|
+
transferCache: localVarTransferCache,
|
|
152
204
|
reportProgress: reportProgress
|
|
153
205
|
});
|
|
154
206
|
}
|
|
155
207
|
|
|
156
208
|
/**
|
|
157
209
|
* Get the translation of custom field on the entity (Asset, Collection)
|
|
158
|
-
* @param
|
|
159
|
-
* @param customField Limit the output to a specific custom field key.
|
|
210
|
+
* @param requestParameters
|
|
160
211
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
161
212
|
* @param reportProgress flag to report request and response progress.
|
|
162
213
|
*/
|
|
163
214
|
public httpTranslationsByIdFilterByCustomField(
|
|
164
|
-
|
|
165
|
-
customField: string,
|
|
215
|
+
requestParameters?: HttpTranslationsByIdFilterByCustomFieldRequestParams,
|
|
166
216
|
observe?: 'body',
|
|
167
217
|
reportProgress?: boolean,
|
|
168
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
218
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
169
219
|
): Observable<{ [key: string]: { [key: string]: object } }>;
|
|
170
220
|
public httpTranslationsByIdFilterByCustomField(
|
|
171
|
-
|
|
172
|
-
customField: string,
|
|
221
|
+
requestParameters?: HttpTranslationsByIdFilterByCustomFieldRequestParams,
|
|
173
222
|
observe?: 'response',
|
|
174
223
|
reportProgress?: boolean,
|
|
175
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
224
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
176
225
|
): Observable<HttpResponse<{ [key: string]: { [key: string]: object } }>>;
|
|
177
226
|
public httpTranslationsByIdFilterByCustomField(
|
|
178
|
-
|
|
179
|
-
customField: string,
|
|
227
|
+
requestParameters?: HttpTranslationsByIdFilterByCustomFieldRequestParams,
|
|
180
228
|
observe?: 'events',
|
|
181
229
|
reportProgress?: boolean,
|
|
182
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
230
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
183
231
|
): Observable<HttpEvent<{ [key: string]: { [key: string]: object } }>>;
|
|
184
232
|
public httpTranslationsByIdFilterByCustomField(
|
|
185
|
-
|
|
186
|
-
customField: string,
|
|
233
|
+
requestParameters?: HttpTranslationsByIdFilterByCustomFieldRequestParams,
|
|
187
234
|
observe: any = 'body',
|
|
188
235
|
reportProgress: boolean = false,
|
|
189
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
236
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
190
237
|
): Observable<any> {
|
|
238
|
+
const id = requestParameters?.id;
|
|
191
239
|
if (id === null || id === undefined) {
|
|
192
240
|
throw new Error('Required parameter id was null or undefined when calling httpTranslationsByIdFilterByCustomField.');
|
|
193
241
|
}
|
|
242
|
+
const customField = requestParameters?.customField;
|
|
194
243
|
if (customField === null || customField === undefined) {
|
|
195
244
|
throw new Error('Required parameter customField was null or undefined when calling httpTranslationsByIdFilterByCustomField.');
|
|
196
245
|
}
|
|
197
246
|
|
|
198
|
-
let
|
|
247
|
+
let localVarHeaders = this.defaultHeaders;
|
|
199
248
|
|
|
200
|
-
let
|
|
249
|
+
let localVarCredential: string | undefined;
|
|
201
250
|
// authentication (function_key) required
|
|
202
|
-
|
|
203
|
-
if (
|
|
204
|
-
|
|
251
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
252
|
+
if (localVarCredential) {
|
|
253
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
205
254
|
}
|
|
206
255
|
|
|
207
|
-
let
|
|
208
|
-
if (
|
|
256
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
257
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
209
258
|
// to determine the Accept header
|
|
210
259
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
211
|
-
|
|
260
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
261
|
+
}
|
|
262
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
263
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
212
264
|
}
|
|
213
|
-
|
|
214
|
-
|
|
265
|
+
|
|
266
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
267
|
+
if (localVarHttpContext === undefined) {
|
|
268
|
+
localVarHttpContext = new HttpContext();
|
|
215
269
|
}
|
|
216
270
|
|
|
217
|
-
let
|
|
218
|
-
if (
|
|
219
|
-
|
|
271
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
272
|
+
if (localVarTransferCache === undefined) {
|
|
273
|
+
localVarTransferCache = true;
|
|
220
274
|
}
|
|
221
275
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
{
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
276
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
277
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
278
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
279
|
+
responseType_ = 'text';
|
|
280
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
281
|
+
responseType_ = 'json';
|
|
282
|
+
} else {
|
|
283
|
+
responseType_ = 'blob';
|
|
230
284
|
}
|
|
231
|
-
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
let localVarPath = `/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/custom/${this.configuration.encodeParam({ name: 'customField', value: customField, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
288
|
+
return this.httpClient.request<{ [key: string]: { [key: string]: object } }>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
289
|
+
context: localVarHttpContext,
|
|
290
|
+
responseType: <any>responseType_,
|
|
291
|
+
withCredentials: this.configuration.withCredentials,
|
|
292
|
+
headers: localVarHeaders,
|
|
293
|
+
observe: observe,
|
|
294
|
+
transferCache: localVarTransferCache,
|
|
295
|
+
reportProgress: reportProgress
|
|
296
|
+
});
|
|
232
297
|
}
|
|
233
298
|
|
|
234
299
|
/**
|
|
235
300
|
* Get the translations of a specific field on the entity (Asset, Collection, Collection Type, Download Format)
|
|
236
|
-
* @param
|
|
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).
|
|
301
|
+
* @param requestParameters
|
|
239
302
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
240
303
|
* @param reportProgress flag to report request and response progress.
|
|
241
304
|
*/
|
|
242
305
|
public httpTranslationsByIdFilterByProperty(
|
|
243
|
-
|
|
244
|
-
property: string,
|
|
245
|
-
items?: boolean,
|
|
306
|
+
requestParameters?: HttpTranslationsByIdFilterByPropertyRequestParams,
|
|
246
307
|
observe?: 'body',
|
|
247
308
|
reportProgress?: boolean,
|
|
248
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
309
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
249
310
|
): Observable<{ [key: string]: { [key: string]: object } }>;
|
|
250
311
|
public httpTranslationsByIdFilterByProperty(
|
|
251
|
-
|
|
252
|
-
property: string,
|
|
253
|
-
items?: boolean,
|
|
312
|
+
requestParameters?: HttpTranslationsByIdFilterByPropertyRequestParams,
|
|
254
313
|
observe?: 'response',
|
|
255
314
|
reportProgress?: boolean,
|
|
256
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
315
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
257
316
|
): Observable<HttpResponse<{ [key: string]: { [key: string]: object } }>>;
|
|
258
317
|
public httpTranslationsByIdFilterByProperty(
|
|
259
|
-
|
|
260
|
-
property: string,
|
|
261
|
-
items?: boolean,
|
|
318
|
+
requestParameters?: HttpTranslationsByIdFilterByPropertyRequestParams,
|
|
262
319
|
observe?: 'events',
|
|
263
320
|
reportProgress?: boolean,
|
|
264
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
321
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
265
322
|
): Observable<HttpEvent<{ [key: string]: { [key: string]: object } }>>;
|
|
266
323
|
public httpTranslationsByIdFilterByProperty(
|
|
267
|
-
|
|
268
|
-
property: string,
|
|
269
|
-
items?: boolean,
|
|
324
|
+
requestParameters?: HttpTranslationsByIdFilterByPropertyRequestParams,
|
|
270
325
|
observe: any = 'body',
|
|
271
326
|
reportProgress: boolean = false,
|
|
272
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
327
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
273
328
|
): Observable<any> {
|
|
329
|
+
const id = requestParameters?.id;
|
|
274
330
|
if (id === null || id === undefined) {
|
|
275
331
|
throw new Error('Required parameter id was null or undefined when calling httpTranslationsByIdFilterByProperty.');
|
|
276
332
|
}
|
|
333
|
+
const property = requestParameters?.property;
|
|
277
334
|
if (property === null || property === undefined) {
|
|
278
335
|
throw new Error('Required parameter property was null or undefined when calling httpTranslationsByIdFilterByProperty.');
|
|
279
336
|
}
|
|
337
|
+
const items = requestParameters?.items;
|
|
280
338
|
|
|
281
|
-
let
|
|
339
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
282
340
|
if (items !== undefined && items !== null) {
|
|
283
|
-
|
|
341
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>items, 'items');
|
|
284
342
|
}
|
|
285
343
|
|
|
286
|
-
let
|
|
344
|
+
let localVarHeaders = this.defaultHeaders;
|
|
287
345
|
|
|
288
|
-
let
|
|
346
|
+
let localVarCredential: string | undefined;
|
|
289
347
|
// authentication (function_key) required
|
|
290
|
-
|
|
291
|
-
if (
|
|
292
|
-
|
|
348
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
349
|
+
if (localVarCredential) {
|
|
350
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
293
351
|
}
|
|
294
352
|
|
|
295
|
-
let
|
|
296
|
-
if (
|
|
353
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
354
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
297
355
|
// to determine the Accept header
|
|
298
356
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
299
|
-
|
|
357
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
300
358
|
}
|
|
301
|
-
if (
|
|
302
|
-
|
|
359
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
360
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
303
361
|
}
|
|
304
362
|
|
|
305
|
-
let
|
|
306
|
-
if (
|
|
307
|
-
|
|
363
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
364
|
+
if (localVarHttpContext === undefined) {
|
|
365
|
+
localVarHttpContext = new HttpContext();
|
|
308
366
|
}
|
|
309
367
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
368
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
369
|
+
if (localVarTransferCache === undefined) {
|
|
370
|
+
localVarTransferCache = true;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
374
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
375
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
376
|
+
responseType_ = 'text';
|
|
377
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
378
|
+
responseType_ = 'json';
|
|
379
|
+
} else {
|
|
380
|
+
responseType_ = 'blob';
|
|
319
381
|
}
|
|
320
|
-
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
let localVarPath = `/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/${this.configuration.encodeParam({ name: 'property', value: property, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
385
|
+
return this.httpClient.request<{ [key: string]: { [key: string]: object } }>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
386
|
+
context: localVarHttpContext,
|
|
387
|
+
params: localVarQueryParameters,
|
|
388
|
+
responseType: <any>responseType_,
|
|
389
|
+
withCredentials: this.configuration.withCredentials,
|
|
390
|
+
headers: localVarHeaders,
|
|
391
|
+
observe: observe,
|
|
392
|
+
transferCache: localVarTransferCache,
|
|
393
|
+
reportProgress: reportProgress
|
|
394
|
+
});
|
|
321
395
|
}
|
|
322
396
|
}
|