@agravity/public 9.4.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +97 -142
- package/api/api.ts +3 -0
- package/api/publicAIOperations.pub.agravity.ts +160 -0
- package/api/publicAssetManagement.pub.agravity.ts +67 -236
- package/api/publicAssetOperations.pub.agravity.ts +139 -380
- package/api/publicAssetPublishing.pub.agravity.ts +37 -132
- package/api/publicAssetRelationManagement.pub.agravity.ts +57 -192
- package/api/publicAssetVersioning.pub.agravity.ts +82 -249
- package/api/publicAuthenticationManagement.pub.agravity.ts +23 -106
- package/api/publicCollectionManagement.pub.agravity.ts +116 -321
- package/api/publicCollectionSecureUpload.pub.agravity.ts +29 -114
- package/api/publicCollectionTypeManagement.pub.agravity.ts +33 -136
- package/api/publicConfigurationManagement.pub.agravity.ts +11 -76
- package/api/publicDownloadFormatManagement.pub.agravity.ts +22 -101
- package/api/publicEndpoints.pub.agravity.ts +18 -89
- package/api/publicGeneralManagement.pub.agravity.ts +41 -146
- package/api/publicHelperTools.pub.agravity.ts +43 -174
- package/api/publicPortalManagement.pub.agravity.ts +74 -227
- package/api/publicPublishing.pub.agravity.ts +13 -84
- package/api/publicSavedSearch.pub.agravity.ts +13 -84
- package/api/publicSearchManagement.pub.agravity.ts +58 -203
- package/api/publicSharingManagement.pub.agravity.ts +50 -155
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +11 -78
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +37 -140
- package/api/publicTranslationManagement.pub.agravity.ts +48 -147
- package/api/publicWebAppData.pub.agravity.ts +26 -107
- package/api/publicWorkspaceManagement.pub.agravity.ts +24 -109
- package/api.base.service.ts +78 -0
- package/configuration.ts +33 -17
- package/index.ts +1 -0
- package/model/asset.pub.agravity.ts +6 -6
- package/model/assetBlob.pub.agravity.ts +15 -15
- package/model/assetIconRule.pub.agravity.ts +1 -1
- package/model/collTypeItem.pub.agravity.ts +1 -1
- package/model/collection.pub.agravity.ts +6 -6
- package/model/collectionType.pub.agravity.ts +6 -6
- package/model/collectionUDL.pub.agravity.ts +1 -1
- package/model/downloadFormat.pub.agravity.ts +1 -1
- package/model/downloadZipRequest.pub.agravity.ts +6 -6
- package/model/downloadZipStatus.pub.agravity.ts +6 -6
- package/model/entityIdName.pub.agravity.ts +1 -1
- package/model/groupAllAppData.pub.agravity.ts +1 -1
- package/model/permissionEntity.pub.agravity.ts +5 -5
- package/model/portalAuthentication.pub.agravity.ts +7 -7
- package/model/portalTheme.pub.agravity.ts +1 -1
- package/model/publishedAsset.pub.agravity.ts +1 -1
- package/model/savedSearch.pub.agravity.ts +1 -1
- package/model/staticDefinedList.pub.agravity.ts +1 -1
- package/model/whereParam.pub.agravity.ts +17 -17
- package/model/workspace.pub.agravity.ts +1 -1
- package/package.json +5 -4
- package/provide-api.ts +15 -0
- package/tsconfig.json +2 -0
|
@@ -30,6 +30,7 @@ import { MoveCollectionBody } from '../model/moveCollectionBody.pub.agravity';
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
32
32
|
import { AgravityPublicConfiguration } from '../configuration';
|
|
33
|
+
import { BaseService } from '../api.base.service';
|
|
33
34
|
|
|
34
35
|
export interface HttpAssetImageEditRequestParams {
|
|
35
36
|
/** The ID of the asset. */
|
|
@@ -148,67 +149,13 @@ export interface HttpPutAssetAvailabilityRequestParams {
|
|
|
148
149
|
@Injectable({
|
|
149
150
|
providedIn: 'root'
|
|
150
151
|
})
|
|
151
|
-
export class PublicAssetOperationsService {
|
|
152
|
-
protected basePath = 'http://localhost:7072/api';
|
|
153
|
-
public defaultHeaders = new HttpHeaders();
|
|
154
|
-
public configuration = new AgravityPublicConfiguration();
|
|
155
|
-
public encoder: HttpParameterCodec;
|
|
156
|
-
|
|
152
|
+
export class PublicAssetOperationsService extends BaseService {
|
|
157
153
|
constructor(
|
|
158
154
|
protected httpClient: HttpClient,
|
|
159
155
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
160
|
-
@Optional() configuration
|
|
156
|
+
@Optional() configuration?: AgravityPublicConfiguration
|
|
161
157
|
) {
|
|
162
|
-
|
|
163
|
-
this.configuration = configuration;
|
|
164
|
-
}
|
|
165
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
166
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
167
|
-
if (firstBasePath != undefined) {
|
|
168
|
-
basePath = firstBasePath;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if (typeof basePath !== 'string') {
|
|
172
|
-
basePath = this.basePath;
|
|
173
|
-
}
|
|
174
|
-
this.configuration.basePath = basePath;
|
|
175
|
-
}
|
|
176
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// @ts-ignore
|
|
180
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
181
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
182
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
183
|
-
} else {
|
|
184
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
185
|
-
}
|
|
186
|
-
return httpParams;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
190
|
-
if (value == null) {
|
|
191
|
-
return httpParams;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
if (typeof value === 'object') {
|
|
195
|
-
if (Array.isArray(value)) {
|
|
196
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
197
|
-
} else if (value instanceof Date) {
|
|
198
|
-
if (key != null) {
|
|
199
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
200
|
-
} else {
|
|
201
|
-
throw Error('key may not be null if value is Date');
|
|
202
|
-
}
|
|
203
|
-
} else {
|
|
204
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
205
|
-
}
|
|
206
|
-
} else if (key != null) {
|
|
207
|
-
httpParams = httpParams.append(key, value);
|
|
208
|
-
} else {
|
|
209
|
-
throw Error('key may not be null if value is not object or array');
|
|
210
|
-
}
|
|
211
|
-
return httpParams;
|
|
158
|
+
super(basePath, configuration);
|
|
212
159
|
}
|
|
213
160
|
|
|
214
161
|
/**
|
|
@@ -218,25 +165,25 @@ export class PublicAssetOperationsService {
|
|
|
218
165
|
* @param reportProgress flag to report request and response progress.
|
|
219
166
|
*/
|
|
220
167
|
public httpAssetImageEdit(
|
|
221
|
-
requestParameters
|
|
168
|
+
requestParameters: HttpAssetImageEditRequestParams,
|
|
222
169
|
observe?: 'body',
|
|
223
170
|
reportProgress?: boolean,
|
|
224
171
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
225
172
|
): Observable<Blob>;
|
|
226
173
|
public httpAssetImageEdit(
|
|
227
|
-
requestParameters
|
|
174
|
+
requestParameters: HttpAssetImageEditRequestParams,
|
|
228
175
|
observe?: 'response',
|
|
229
176
|
reportProgress?: boolean,
|
|
230
177
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
231
178
|
): Observable<HttpResponse<Blob>>;
|
|
232
179
|
public httpAssetImageEdit(
|
|
233
|
-
requestParameters
|
|
180
|
+
requestParameters: HttpAssetImageEditRequestParams,
|
|
234
181
|
observe?: 'events',
|
|
235
182
|
reportProgress?: boolean,
|
|
236
183
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
237
184
|
): Observable<HttpEvent<Blob>>;
|
|
238
185
|
public httpAssetImageEdit(
|
|
239
|
-
requestParameters
|
|
186
|
+
requestParameters: HttpAssetImageEditRequestParams,
|
|
240
187
|
observe: any = 'body',
|
|
241
188
|
reportProgress: boolean = false,
|
|
242
189
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -262,87 +209,43 @@ export class PublicAssetOperationsService {
|
|
|
262
209
|
const original = requestParameters?.original;
|
|
263
210
|
|
|
264
211
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
if (dpi !== undefined && dpi !== null) {
|
|
281
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>dpi, 'dpi');
|
|
282
|
-
}
|
|
283
|
-
if (depth !== undefined && depth !== null) {
|
|
284
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>depth, 'depth');
|
|
285
|
-
}
|
|
286
|
-
if (quality !== undefined && quality !== null) {
|
|
287
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>quality, 'quality');
|
|
288
|
-
}
|
|
289
|
-
if (colorspace !== undefined && colorspace !== null) {
|
|
290
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>colorspace, 'colorspace');
|
|
291
|
-
}
|
|
292
|
-
if (cropX !== undefined && cropX !== null) {
|
|
293
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropX, 'crop_x');
|
|
294
|
-
}
|
|
295
|
-
if (cropY !== undefined && cropY !== null) {
|
|
296
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropY, 'crop_y');
|
|
297
|
-
}
|
|
298
|
-
if (cropWidth !== undefined && cropWidth !== null) {
|
|
299
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropWidth, 'crop_width');
|
|
300
|
-
}
|
|
301
|
-
if (cropHeight !== undefined && cropHeight !== null) {
|
|
302
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropHeight, 'crop_height');
|
|
303
|
-
}
|
|
304
|
-
if (filter !== undefined && filter !== null) {
|
|
305
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
306
|
-
}
|
|
307
|
-
if (original !== undefined && original !== null) {
|
|
308
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>original, 'original');
|
|
309
|
-
}
|
|
212
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>width, 'width');
|
|
213
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>height, 'height');
|
|
214
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mode, 'mode');
|
|
215
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>target, 'target');
|
|
216
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>bgcolor, 'bgcolor');
|
|
217
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>dpi, 'dpi');
|
|
218
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>depth, 'depth');
|
|
219
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>quality, 'quality');
|
|
220
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>colorspace, 'colorspace');
|
|
221
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropX, 'crop_x');
|
|
222
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropY, 'crop_y');
|
|
223
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropWidth, 'crop_width');
|
|
224
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cropHeight, 'crop_height');
|
|
225
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
226
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>original, 'original');
|
|
310
227
|
|
|
311
228
|
let localVarHeaders = this.defaultHeaders;
|
|
312
229
|
|
|
313
|
-
let localVarCredential: string | undefined;
|
|
314
230
|
// authentication (function_key) required
|
|
315
|
-
|
|
316
|
-
if (localVarCredential) {
|
|
317
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
318
|
-
}
|
|
231
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
319
232
|
|
|
320
|
-
|
|
321
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
322
|
-
// to determine the Accept header
|
|
323
|
-
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
324
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
325
|
-
}
|
|
233
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['image/xyz', 'application/json']);
|
|
326
234
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
327
235
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
328
236
|
}
|
|
329
237
|
|
|
330
|
-
|
|
331
|
-
if (localVarHttpContext === undefined) {
|
|
332
|
-
localVarHttpContext = new HttpContext();
|
|
333
|
-
}
|
|
238
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
334
239
|
|
|
335
|
-
|
|
336
|
-
if (localVarTransferCache === undefined) {
|
|
337
|
-
localVarTransferCache = true;
|
|
338
|
-
}
|
|
240
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
339
241
|
|
|
340
242
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit`;
|
|
341
|
-
|
|
243
|
+
const { basePath, withCredentials } = this.configuration;
|
|
244
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
342
245
|
context: localVarHttpContext,
|
|
343
246
|
params: localVarQueryParameters,
|
|
344
247
|
responseType: 'blob',
|
|
345
|
-
withCredentials:
|
|
248
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
346
249
|
headers: localVarHeaders,
|
|
347
250
|
observe: observe,
|
|
348
251
|
transferCache: localVarTransferCache,
|
|
@@ -357,25 +260,25 @@ export class PublicAssetOperationsService {
|
|
|
357
260
|
* @param reportProgress flag to report request and response progress.
|
|
358
261
|
*/
|
|
359
262
|
public httpAssetResize(
|
|
360
|
-
requestParameters
|
|
263
|
+
requestParameters: HttpAssetResizeRequestParams,
|
|
361
264
|
observe?: 'body',
|
|
362
265
|
reportProgress?: boolean,
|
|
363
266
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
364
267
|
): Observable<Blob>;
|
|
365
268
|
public httpAssetResize(
|
|
366
|
-
requestParameters
|
|
269
|
+
requestParameters: HttpAssetResizeRequestParams,
|
|
367
270
|
observe?: 'response',
|
|
368
271
|
reportProgress?: boolean,
|
|
369
272
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
370
273
|
): Observable<HttpResponse<Blob>>;
|
|
371
274
|
public httpAssetResize(
|
|
372
|
-
requestParameters
|
|
275
|
+
requestParameters: HttpAssetResizeRequestParams,
|
|
373
276
|
observe?: 'events',
|
|
374
277
|
reportProgress?: boolean,
|
|
375
278
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
376
279
|
): Observable<HttpEvent<Blob>>;
|
|
377
280
|
public httpAssetResize(
|
|
378
|
-
requestParameters
|
|
281
|
+
requestParameters: HttpAssetResizeRequestParams,
|
|
379
282
|
observe: any = 'body',
|
|
380
283
|
reportProgress: boolean = false,
|
|
381
284
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -387,38 +290,24 @@ export class PublicAssetOperationsService {
|
|
|
387
290
|
|
|
388
291
|
let localVarHeaders = this.defaultHeaders;
|
|
389
292
|
|
|
390
|
-
let localVarCredential: string | undefined;
|
|
391
293
|
// authentication (function_key) required
|
|
392
|
-
|
|
393
|
-
if (localVarCredential) {
|
|
394
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
395
|
-
}
|
|
294
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
396
295
|
|
|
397
|
-
|
|
398
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
399
|
-
// to determine the Accept header
|
|
400
|
-
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
401
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
402
|
-
}
|
|
296
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['image/xyz', 'application/json']);
|
|
403
297
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
404
298
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
405
299
|
}
|
|
406
300
|
|
|
407
|
-
|
|
408
|
-
if (localVarHttpContext === undefined) {
|
|
409
|
-
localVarHttpContext = new HttpContext();
|
|
410
|
-
}
|
|
301
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
411
302
|
|
|
412
|
-
|
|
413
|
-
if (localVarTransferCache === undefined) {
|
|
414
|
-
localVarTransferCache = true;
|
|
415
|
-
}
|
|
303
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
416
304
|
|
|
417
305
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/resize`;
|
|
418
|
-
|
|
306
|
+
const { basePath, withCredentials } = this.configuration;
|
|
307
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
419
308
|
context: localVarHttpContext,
|
|
420
309
|
responseType: 'blob',
|
|
421
|
-
withCredentials:
|
|
310
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
422
311
|
headers: localVarHeaders,
|
|
423
312
|
observe: observe,
|
|
424
313
|
transferCache: localVarTransferCache,
|
|
@@ -433,25 +322,25 @@ export class PublicAssetOperationsService {
|
|
|
433
322
|
* @param reportProgress flag to report request and response progress.
|
|
434
323
|
*/
|
|
435
324
|
public httpAssetToCollection(
|
|
436
|
-
requestParameters
|
|
325
|
+
requestParameters: HttpAssetToCollectionRequestParams,
|
|
437
326
|
observe?: 'body',
|
|
438
327
|
reportProgress?: boolean,
|
|
439
328
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
440
329
|
): Observable<any>;
|
|
441
330
|
public httpAssetToCollection(
|
|
442
|
-
requestParameters
|
|
331
|
+
requestParameters: HttpAssetToCollectionRequestParams,
|
|
443
332
|
observe?: 'response',
|
|
444
333
|
reportProgress?: boolean,
|
|
445
334
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
446
335
|
): Observable<HttpResponse<any>>;
|
|
447
336
|
public httpAssetToCollection(
|
|
448
|
-
requestParameters
|
|
337
|
+
requestParameters: HttpAssetToCollectionRequestParams,
|
|
449
338
|
observe?: 'events',
|
|
450
339
|
reportProgress?: boolean,
|
|
451
340
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
452
341
|
): Observable<HttpEvent<any>>;
|
|
453
342
|
public httpAssetToCollection(
|
|
454
|
-
requestParameters
|
|
343
|
+
requestParameters: HttpAssetToCollectionRequestParams,
|
|
455
344
|
observe: any = 'body',
|
|
456
345
|
reportProgress: boolean = false,
|
|
457
346
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -467,32 +356,17 @@ export class PublicAssetOperationsService {
|
|
|
467
356
|
|
|
468
357
|
let localVarHeaders = this.defaultHeaders;
|
|
469
358
|
|
|
470
|
-
let localVarCredential: string | undefined;
|
|
471
359
|
// authentication (function_key) required
|
|
472
|
-
|
|
473
|
-
if (localVarCredential) {
|
|
474
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
475
|
-
}
|
|
360
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
476
361
|
|
|
477
|
-
|
|
478
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
479
|
-
// to determine the Accept header
|
|
480
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
481
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
482
|
-
}
|
|
362
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
483
363
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
484
364
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
485
365
|
}
|
|
486
366
|
|
|
487
|
-
|
|
488
|
-
if (localVarHttpContext === undefined) {
|
|
489
|
-
localVarHttpContext = new HttpContext();
|
|
490
|
-
}
|
|
367
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
491
368
|
|
|
492
|
-
|
|
493
|
-
if (localVarTransferCache === undefined) {
|
|
494
|
-
localVarTransferCache = true;
|
|
495
|
-
}
|
|
369
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
496
370
|
|
|
497
371
|
// to determine the Content-Type header
|
|
498
372
|
const consumes: string[] = ['application/json'];
|
|
@@ -513,11 +387,12 @@ export class PublicAssetOperationsService {
|
|
|
513
387
|
}
|
|
514
388
|
|
|
515
389
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/tocollection`;
|
|
516
|
-
|
|
390
|
+
const { basePath, withCredentials } = this.configuration;
|
|
391
|
+
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`, {
|
|
517
392
|
context: localVarHttpContext,
|
|
518
393
|
body: moveCollectionBody,
|
|
519
394
|
responseType: <any>responseType_,
|
|
520
|
-
withCredentials:
|
|
395
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
521
396
|
headers: localVarHeaders,
|
|
522
397
|
observe: observe,
|
|
523
398
|
transferCache: localVarTransferCache,
|
|
@@ -532,25 +407,25 @@ export class PublicAssetOperationsService {
|
|
|
532
407
|
* @param reportProgress flag to report request and response progress.
|
|
533
408
|
*/
|
|
534
409
|
public httpGetAssetBlob(
|
|
535
|
-
requestParameters
|
|
410
|
+
requestParameters: HttpGetAssetBlobRequestParams,
|
|
536
411
|
observe?: 'body',
|
|
537
412
|
reportProgress?: boolean,
|
|
538
413
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
539
414
|
): Observable<AssetBlob>;
|
|
540
415
|
public httpGetAssetBlob(
|
|
541
|
-
requestParameters
|
|
416
|
+
requestParameters: HttpGetAssetBlobRequestParams,
|
|
542
417
|
observe?: 'response',
|
|
543
418
|
reportProgress?: boolean,
|
|
544
419
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
545
420
|
): Observable<HttpResponse<AssetBlob>>;
|
|
546
421
|
public httpGetAssetBlob(
|
|
547
|
-
requestParameters
|
|
422
|
+
requestParameters: HttpGetAssetBlobRequestParams,
|
|
548
423
|
observe?: 'events',
|
|
549
424
|
reportProgress?: boolean,
|
|
550
425
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
551
426
|
): Observable<HttpEvent<AssetBlob>>;
|
|
552
427
|
public httpGetAssetBlob(
|
|
553
|
-
requestParameters
|
|
428
|
+
requestParameters: HttpGetAssetBlobRequestParams,
|
|
554
429
|
observe: any = 'body',
|
|
555
430
|
reportProgress: boolean = false,
|
|
556
431
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -567,44 +442,23 @@ export class PublicAssetOperationsService {
|
|
|
567
442
|
const key = requestParameters?.key;
|
|
568
443
|
|
|
569
444
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
if (portalId !== undefined && portalId !== null) {
|
|
574
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
575
|
-
}
|
|
576
|
-
if (key !== undefined && key !== null) {
|
|
577
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>key, 'key');
|
|
578
|
-
}
|
|
445
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
|
|
446
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
447
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>key, 'key');
|
|
579
448
|
|
|
580
449
|
let localVarHeaders = this.defaultHeaders;
|
|
581
450
|
|
|
582
|
-
let localVarCredential: string | undefined;
|
|
583
451
|
// authentication (function_key) required
|
|
584
|
-
|
|
585
|
-
if (localVarCredential) {
|
|
586
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
587
|
-
}
|
|
452
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
588
453
|
|
|
589
|
-
|
|
590
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
591
|
-
// to determine the Accept header
|
|
592
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
593
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
594
|
-
}
|
|
454
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
595
455
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
596
456
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
597
457
|
}
|
|
598
458
|
|
|
599
|
-
|
|
600
|
-
if (localVarHttpContext === undefined) {
|
|
601
|
-
localVarHttpContext = new HttpContext();
|
|
602
|
-
}
|
|
459
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
603
460
|
|
|
604
|
-
|
|
605
|
-
if (localVarTransferCache === undefined) {
|
|
606
|
-
localVarTransferCache = true;
|
|
607
|
-
}
|
|
461
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
608
462
|
|
|
609
463
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
610
464
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -618,11 +472,12 @@ export class PublicAssetOperationsService {
|
|
|
618
472
|
}
|
|
619
473
|
|
|
620
474
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/blobs`;
|
|
621
|
-
|
|
475
|
+
const { basePath, withCredentials } = this.configuration;
|
|
476
|
+
return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
|
|
622
477
|
context: localVarHttpContext,
|
|
623
478
|
params: localVarQueryParameters,
|
|
624
479
|
responseType: <any>responseType_,
|
|
625
|
-
withCredentials:
|
|
480
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
626
481
|
headers: localVarHeaders,
|
|
627
482
|
observe: observe,
|
|
628
483
|
transferCache: localVarTransferCache,
|
|
@@ -637,25 +492,25 @@ export class PublicAssetOperationsService {
|
|
|
637
492
|
* @param reportProgress flag to report request and response progress.
|
|
638
493
|
*/
|
|
639
494
|
public httpGetAssetCollectionsById(
|
|
640
|
-
requestParameters
|
|
495
|
+
requestParameters: HttpGetAssetCollectionsByIdRequestParams,
|
|
641
496
|
observe?: 'body',
|
|
642
497
|
reportProgress?: boolean,
|
|
643
498
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
644
499
|
): Observable<Array<Collection>>;
|
|
645
500
|
public httpGetAssetCollectionsById(
|
|
646
|
-
requestParameters
|
|
501
|
+
requestParameters: HttpGetAssetCollectionsByIdRequestParams,
|
|
647
502
|
observe?: 'response',
|
|
648
503
|
reportProgress?: boolean,
|
|
649
504
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
650
505
|
): Observable<HttpResponse<Array<Collection>>>;
|
|
651
506
|
public httpGetAssetCollectionsById(
|
|
652
|
-
requestParameters
|
|
507
|
+
requestParameters: HttpGetAssetCollectionsByIdRequestParams,
|
|
653
508
|
observe?: 'events',
|
|
654
509
|
reportProgress?: boolean,
|
|
655
510
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
656
511
|
): Observable<HttpEvent<Array<Collection>>>;
|
|
657
512
|
public httpGetAssetCollectionsById(
|
|
658
|
-
requestParameters
|
|
513
|
+
requestParameters: HttpGetAssetCollectionsByIdRequestParams,
|
|
659
514
|
observe: any = 'body',
|
|
660
515
|
reportProgress: boolean = false,
|
|
661
516
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -669,44 +524,25 @@ export class PublicAssetOperationsService {
|
|
|
669
524
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
670
525
|
|
|
671
526
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
}
|
|
675
|
-
if (translations !== undefined && translations !== null) {
|
|
676
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
677
|
-
}
|
|
527
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>fields, 'fields');
|
|
528
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
678
529
|
|
|
679
530
|
let localVarHeaders = this.defaultHeaders;
|
|
680
531
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
681
532
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
682
533
|
}
|
|
683
534
|
|
|
684
|
-
let localVarCredential: string | undefined;
|
|
685
535
|
// authentication (function_key) required
|
|
686
|
-
|
|
687
|
-
if (localVarCredential) {
|
|
688
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
689
|
-
}
|
|
536
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
690
537
|
|
|
691
|
-
|
|
692
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
693
|
-
// to determine the Accept header
|
|
694
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
695
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
696
|
-
}
|
|
538
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
697
539
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
698
540
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
699
541
|
}
|
|
700
542
|
|
|
701
|
-
|
|
702
|
-
if (localVarHttpContext === undefined) {
|
|
703
|
-
localVarHttpContext = new HttpContext();
|
|
704
|
-
}
|
|
543
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
705
544
|
|
|
706
|
-
|
|
707
|
-
if (localVarTransferCache === undefined) {
|
|
708
|
-
localVarTransferCache = true;
|
|
709
|
-
}
|
|
545
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
710
546
|
|
|
711
547
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
712
548
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -720,11 +556,12 @@ export class PublicAssetOperationsService {
|
|
|
720
556
|
}
|
|
721
557
|
|
|
722
558
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/collections`;
|
|
723
|
-
|
|
559
|
+
const { basePath, withCredentials } = this.configuration;
|
|
560
|
+
return this.httpClient.request<Array<Collection>>('get', `${basePath}${localVarPath}`, {
|
|
724
561
|
context: localVarHttpContext,
|
|
725
562
|
params: localVarQueryParameters,
|
|
726
563
|
responseType: <any>responseType_,
|
|
727
|
-
withCredentials:
|
|
564
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
728
565
|
headers: localVarHeaders,
|
|
729
566
|
observe: observe,
|
|
730
567
|
transferCache: localVarTransferCache,
|
|
@@ -739,25 +576,25 @@ export class PublicAssetOperationsService {
|
|
|
739
576
|
* @param reportProgress flag to report request and response progress.
|
|
740
577
|
*/
|
|
741
578
|
public httpGetAssetDownload(
|
|
742
|
-
requestParameters
|
|
579
|
+
requestParameters: HttpGetAssetDownloadRequestParams,
|
|
743
580
|
observe?: 'body',
|
|
744
581
|
reportProgress?: boolean,
|
|
745
582
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
746
583
|
): Observable<AssetBlob>;
|
|
747
584
|
public httpGetAssetDownload(
|
|
748
|
-
requestParameters
|
|
585
|
+
requestParameters: HttpGetAssetDownloadRequestParams,
|
|
749
586
|
observe?: 'response',
|
|
750
587
|
reportProgress?: boolean,
|
|
751
588
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
752
589
|
): Observable<HttpResponse<AssetBlob>>;
|
|
753
590
|
public httpGetAssetDownload(
|
|
754
|
-
requestParameters
|
|
591
|
+
requestParameters: HttpGetAssetDownloadRequestParams,
|
|
755
592
|
observe?: 'events',
|
|
756
593
|
reportProgress?: boolean,
|
|
757
594
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
758
595
|
): Observable<HttpEvent<AssetBlob>>;
|
|
759
596
|
public httpGetAssetDownload(
|
|
760
|
-
requestParameters
|
|
597
|
+
requestParameters: HttpGetAssetDownloadRequestParams,
|
|
761
598
|
observe: any = 'body',
|
|
762
599
|
reportProgress: boolean = false,
|
|
763
600
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -772,47 +609,24 @@ export class PublicAssetOperationsService {
|
|
|
772
609
|
const key = requestParameters?.key;
|
|
773
610
|
|
|
774
611
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>f, 'f');
|
|
780
|
-
}
|
|
781
|
-
if (portalId !== undefined && portalId !== null) {
|
|
782
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
783
|
-
}
|
|
784
|
-
if (key !== undefined && key !== null) {
|
|
785
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>key, 'key');
|
|
786
|
-
}
|
|
612
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>c, 'c');
|
|
613
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>f, 'f');
|
|
614
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
615
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>key, 'key');
|
|
787
616
|
|
|
788
617
|
let localVarHeaders = this.defaultHeaders;
|
|
789
618
|
|
|
790
|
-
let localVarCredential: string | undefined;
|
|
791
619
|
// authentication (function_key) required
|
|
792
|
-
|
|
793
|
-
if (localVarCredential) {
|
|
794
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
795
|
-
}
|
|
620
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
796
621
|
|
|
797
|
-
|
|
798
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
799
|
-
// to determine the Accept header
|
|
800
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
801
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
802
|
-
}
|
|
622
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
803
623
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
804
624
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
805
625
|
}
|
|
806
626
|
|
|
807
|
-
|
|
808
|
-
if (localVarHttpContext === undefined) {
|
|
809
|
-
localVarHttpContext = new HttpContext();
|
|
810
|
-
}
|
|
627
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
811
628
|
|
|
812
|
-
|
|
813
|
-
if (localVarTransferCache === undefined) {
|
|
814
|
-
localVarTransferCache = true;
|
|
815
|
-
}
|
|
629
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
816
630
|
|
|
817
631
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
818
632
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -826,11 +640,12 @@ export class PublicAssetOperationsService {
|
|
|
826
640
|
}
|
|
827
641
|
|
|
828
642
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/download`;
|
|
829
|
-
|
|
643
|
+
const { basePath, withCredentials } = this.configuration;
|
|
644
|
+
return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
|
|
830
645
|
context: localVarHttpContext,
|
|
831
646
|
params: localVarQueryParameters,
|
|
832
647
|
responseType: <any>responseType_,
|
|
833
|
-
withCredentials:
|
|
648
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
834
649
|
headers: localVarHeaders,
|
|
835
650
|
observe: observe,
|
|
836
651
|
transferCache: localVarTransferCache,
|
|
@@ -845,25 +660,25 @@ export class PublicAssetOperationsService {
|
|
|
845
660
|
* @param reportProgress flag to report request and response progress.
|
|
846
661
|
*/
|
|
847
662
|
public httpGetSharedAssetBlob(
|
|
848
|
-
requestParameters
|
|
663
|
+
requestParameters: HttpGetSharedAssetBlobRequestParams,
|
|
849
664
|
observe?: 'body',
|
|
850
665
|
reportProgress?: boolean,
|
|
851
666
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
852
667
|
): Observable<AssetBlob>;
|
|
853
668
|
public httpGetSharedAssetBlob(
|
|
854
|
-
requestParameters
|
|
669
|
+
requestParameters: HttpGetSharedAssetBlobRequestParams,
|
|
855
670
|
observe?: 'response',
|
|
856
671
|
reportProgress?: boolean,
|
|
857
672
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
858
673
|
): Observable<HttpResponse<AssetBlob>>;
|
|
859
674
|
public httpGetSharedAssetBlob(
|
|
860
|
-
requestParameters
|
|
675
|
+
requestParameters: HttpGetSharedAssetBlobRequestParams,
|
|
861
676
|
observe?: 'events',
|
|
862
677
|
reportProgress?: boolean,
|
|
863
678
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
864
679
|
): Observable<HttpEvent<AssetBlob>>;
|
|
865
680
|
public httpGetSharedAssetBlob(
|
|
866
|
-
requestParameters
|
|
681
|
+
requestParameters: HttpGetSharedAssetBlobRequestParams,
|
|
867
682
|
observe: any = 'body',
|
|
868
683
|
reportProgress: boolean = false,
|
|
869
684
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -883,37 +698,22 @@ export class PublicAssetOperationsService {
|
|
|
883
698
|
const ayPassword = requestParameters?.ayPassword;
|
|
884
699
|
|
|
885
700
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
}
|
|
889
|
-
if (format !== undefined && format !== null) {
|
|
890
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>format, 'format');
|
|
891
|
-
}
|
|
701
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>shareId, 'share_id');
|
|
702
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>format, 'format');
|
|
892
703
|
|
|
893
704
|
let localVarHeaders = this.defaultHeaders;
|
|
894
705
|
if (ayPassword !== undefined && ayPassword !== null) {
|
|
895
706
|
localVarHeaders = localVarHeaders.set('ay-password', String(ayPassword));
|
|
896
707
|
}
|
|
897
708
|
|
|
898
|
-
|
|
899
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
900
|
-
// to determine the Accept header
|
|
901
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
902
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
903
|
-
}
|
|
709
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
904
710
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
905
711
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
906
712
|
}
|
|
907
713
|
|
|
908
|
-
|
|
909
|
-
if (localVarHttpContext === undefined) {
|
|
910
|
-
localVarHttpContext = new HttpContext();
|
|
911
|
-
}
|
|
714
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
912
715
|
|
|
913
|
-
|
|
914
|
-
if (localVarTransferCache === undefined) {
|
|
915
|
-
localVarTransferCache = true;
|
|
916
|
-
}
|
|
716
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
917
717
|
|
|
918
718
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
919
719
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -927,11 +727,12 @@ export class PublicAssetOperationsService {
|
|
|
927
727
|
}
|
|
928
728
|
|
|
929
729
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/blob`;
|
|
930
|
-
|
|
730
|
+
const { basePath, withCredentials } = this.configuration;
|
|
731
|
+
return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
|
|
931
732
|
context: localVarHttpContext,
|
|
932
733
|
params: localVarQueryParameters,
|
|
933
734
|
responseType: <any>responseType_,
|
|
934
|
-
withCredentials:
|
|
735
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
935
736
|
headers: localVarHeaders,
|
|
936
737
|
observe: observe,
|
|
937
738
|
transferCache: localVarTransferCache,
|
|
@@ -946,25 +747,25 @@ export class PublicAssetOperationsService {
|
|
|
946
747
|
* @param reportProgress flag to report request and response progress.
|
|
947
748
|
*/
|
|
948
749
|
public httpImageDynamicEdit(
|
|
949
|
-
requestParameters
|
|
750
|
+
requestParameters: HttpImageDynamicEditRequestParams,
|
|
950
751
|
observe?: 'body',
|
|
951
752
|
reportProgress?: boolean,
|
|
952
753
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
953
754
|
): Observable<Blob>;
|
|
954
755
|
public httpImageDynamicEdit(
|
|
955
|
-
requestParameters
|
|
756
|
+
requestParameters: HttpImageDynamicEditRequestParams,
|
|
956
757
|
observe?: 'response',
|
|
957
758
|
reportProgress?: boolean,
|
|
958
759
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
959
760
|
): Observable<HttpResponse<Blob>>;
|
|
960
761
|
public httpImageDynamicEdit(
|
|
961
|
-
requestParameters
|
|
762
|
+
requestParameters: HttpImageDynamicEditRequestParams,
|
|
962
763
|
observe?: 'events',
|
|
963
764
|
reportProgress?: boolean,
|
|
964
765
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
965
766
|
): Observable<HttpEvent<Blob>>;
|
|
966
767
|
public httpImageDynamicEdit(
|
|
967
|
-
requestParameters
|
|
768
|
+
requestParameters: HttpImageDynamicEditRequestParams,
|
|
968
769
|
observe: any = 'body',
|
|
969
770
|
reportProgress: boolean = false,
|
|
970
771
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -980,32 +781,17 @@ export class PublicAssetOperationsService {
|
|
|
980
781
|
|
|
981
782
|
let localVarHeaders = this.defaultHeaders;
|
|
982
783
|
|
|
983
|
-
let localVarCredential: string | undefined;
|
|
984
784
|
// authentication (function_key) required
|
|
985
|
-
|
|
986
|
-
if (localVarCredential) {
|
|
987
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
988
|
-
}
|
|
785
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
989
786
|
|
|
990
|
-
|
|
991
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
992
|
-
// to determine the Accept header
|
|
993
|
-
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
994
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
995
|
-
}
|
|
787
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['image/xyz', 'application/json']);
|
|
996
788
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
997
789
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
998
790
|
}
|
|
999
791
|
|
|
1000
|
-
|
|
1001
|
-
if (localVarHttpContext === undefined) {
|
|
1002
|
-
localVarHttpContext = new HttpContext();
|
|
1003
|
-
}
|
|
792
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
1004
793
|
|
|
1005
|
-
|
|
1006
|
-
if (localVarTransferCache === undefined) {
|
|
1007
|
-
localVarTransferCache = true;
|
|
1008
|
-
}
|
|
794
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
1009
795
|
|
|
1010
796
|
// to determine the Content-Type header
|
|
1011
797
|
const consumes: string[] = ['application/json'];
|
|
@@ -1015,11 +801,12 @@ export class PublicAssetOperationsService {
|
|
|
1015
801
|
}
|
|
1016
802
|
|
|
1017
803
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit`;
|
|
1018
|
-
|
|
804
|
+
const { basePath, withCredentials } = this.configuration;
|
|
805
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
1019
806
|
context: localVarHttpContext,
|
|
1020
807
|
body: dynamicImageOperation,
|
|
1021
808
|
responseType: 'blob',
|
|
1022
|
-
withCredentials:
|
|
809
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1023
810
|
headers: localVarHeaders,
|
|
1024
811
|
observe: observe,
|
|
1025
812
|
transferCache: localVarTransferCache,
|
|
@@ -1034,25 +821,25 @@ export class PublicAssetOperationsService {
|
|
|
1034
821
|
* @param reportProgress flag to report request and response progress.
|
|
1035
822
|
*/
|
|
1036
823
|
public httpImageDynamicGetFromDownloadId(
|
|
1037
|
-
requestParameters
|
|
824
|
+
requestParameters: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
1038
825
|
observe?: 'body',
|
|
1039
826
|
reportProgress?: boolean,
|
|
1040
827
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1041
828
|
): Observable<Blob>;
|
|
1042
829
|
public httpImageDynamicGetFromDownloadId(
|
|
1043
|
-
requestParameters
|
|
830
|
+
requestParameters: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
1044
831
|
observe?: 'response',
|
|
1045
832
|
reportProgress?: boolean,
|
|
1046
833
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1047
834
|
): Observable<HttpResponse<Blob>>;
|
|
1048
835
|
public httpImageDynamicGetFromDownloadId(
|
|
1049
|
-
requestParameters
|
|
836
|
+
requestParameters: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
1050
837
|
observe?: 'events',
|
|
1051
838
|
reportProgress?: boolean,
|
|
1052
839
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1053
840
|
): Observable<HttpEvent<Blob>>;
|
|
1054
841
|
public httpImageDynamicGetFromDownloadId(
|
|
1055
|
-
requestParameters
|
|
842
|
+
requestParameters: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
1056
843
|
observe: any = 'body',
|
|
1057
844
|
reportProgress: boolean = false,
|
|
1058
845
|
options?: { httpHeaderAccept?: 'image/xyz' | 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -1068,38 +855,24 @@ export class PublicAssetOperationsService {
|
|
|
1068
855
|
|
|
1069
856
|
let localVarHeaders = this.defaultHeaders;
|
|
1070
857
|
|
|
1071
|
-
let localVarCredential: string | undefined;
|
|
1072
858
|
// authentication (function_key) required
|
|
1073
|
-
|
|
1074
|
-
if (localVarCredential) {
|
|
1075
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
1076
|
-
}
|
|
859
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
1077
860
|
|
|
1078
|
-
|
|
1079
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1080
|
-
// to determine the Accept header
|
|
1081
|
-
const httpHeaderAccepts: string[] = ['image/xyz', 'application/json'];
|
|
1082
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1083
|
-
}
|
|
861
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['image/xyz', 'application/json']);
|
|
1084
862
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1085
863
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1086
864
|
}
|
|
1087
865
|
|
|
1088
|
-
|
|
1089
|
-
if (localVarHttpContext === undefined) {
|
|
1090
|
-
localVarHttpContext = new HttpContext();
|
|
1091
|
-
}
|
|
866
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
1092
867
|
|
|
1093
|
-
|
|
1094
|
-
if (localVarTransferCache === undefined) {
|
|
1095
|
-
localVarTransferCache = true;
|
|
1096
|
-
}
|
|
868
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
1097
869
|
|
|
1098
870
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/imageedit/${this.configuration.encodeParam({ name: 'downloadFormatId', value: downloadFormatId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
1099
|
-
|
|
871
|
+
const { basePath, withCredentials } = this.configuration;
|
|
872
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1100
873
|
context: localVarHttpContext,
|
|
1101
874
|
responseType: 'blob',
|
|
1102
|
-
withCredentials:
|
|
875
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1103
876
|
headers: localVarHeaders,
|
|
1104
877
|
observe: observe,
|
|
1105
878
|
transferCache: localVarTransferCache,
|
|
@@ -1114,25 +887,25 @@ export class PublicAssetOperationsService {
|
|
|
1114
887
|
* @param reportProgress flag to report request and response progress.
|
|
1115
888
|
*/
|
|
1116
889
|
public httpPutAssetAvailability(
|
|
1117
|
-
requestParameters
|
|
890
|
+
requestParameters: HttpPutAssetAvailabilityRequestParams,
|
|
1118
891
|
observe?: 'body',
|
|
1119
892
|
reportProgress?: boolean,
|
|
1120
893
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1121
894
|
): Observable<AssetAvailability>;
|
|
1122
895
|
public httpPutAssetAvailability(
|
|
1123
|
-
requestParameters
|
|
896
|
+
requestParameters: HttpPutAssetAvailabilityRequestParams,
|
|
1124
897
|
observe?: 'response',
|
|
1125
898
|
reportProgress?: boolean,
|
|
1126
899
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1127
900
|
): Observable<HttpResponse<AssetAvailability>>;
|
|
1128
901
|
public httpPutAssetAvailability(
|
|
1129
|
-
requestParameters
|
|
902
|
+
requestParameters: HttpPutAssetAvailabilityRequestParams,
|
|
1130
903
|
observe?: 'events',
|
|
1131
904
|
reportProgress?: boolean,
|
|
1132
905
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
1133
906
|
): Observable<HttpEvent<AssetAvailability>>;
|
|
1134
907
|
public httpPutAssetAvailability(
|
|
1135
|
-
requestParameters
|
|
908
|
+
requestParameters: HttpPutAssetAvailabilityRequestParams,
|
|
1136
909
|
observe: any = 'body',
|
|
1137
910
|
reportProgress: boolean = false,
|
|
1138
911
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -1148,32 +921,17 @@ export class PublicAssetOperationsService {
|
|
|
1148
921
|
|
|
1149
922
|
let localVarHeaders = this.defaultHeaders;
|
|
1150
923
|
|
|
1151
|
-
let localVarCredential: string | undefined;
|
|
1152
924
|
// authentication (function_key) required
|
|
1153
|
-
|
|
1154
|
-
if (localVarCredential) {
|
|
1155
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
1156
|
-
}
|
|
925
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
1157
926
|
|
|
1158
|
-
|
|
1159
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1160
|
-
// to determine the Accept header
|
|
1161
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
1162
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1163
|
-
}
|
|
927
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
1164
928
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1165
929
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1166
930
|
}
|
|
1167
931
|
|
|
1168
|
-
|
|
1169
|
-
if (localVarHttpContext === undefined) {
|
|
1170
|
-
localVarHttpContext = new HttpContext();
|
|
1171
|
-
}
|
|
932
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
1172
933
|
|
|
1173
|
-
|
|
1174
|
-
if (localVarTransferCache === undefined) {
|
|
1175
|
-
localVarTransferCache = true;
|
|
1176
|
-
}
|
|
934
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
1177
935
|
|
|
1178
936
|
// to determine the Content-Type header
|
|
1179
937
|
const consumes: string[] = ['application/json'];
|
|
@@ -1194,11 +952,12 @@ export class PublicAssetOperationsService {
|
|
|
1194
952
|
}
|
|
1195
953
|
|
|
1196
954
|
let localVarPath = `/assets/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/availability`;
|
|
1197
|
-
|
|
955
|
+
const { basePath, withCredentials } = this.configuration;
|
|
956
|
+
return this.httpClient.request<AssetAvailability>('put', `${basePath}${localVarPath}`, {
|
|
1198
957
|
context: localVarHttpContext,
|
|
1199
958
|
body: assetAvailability,
|
|
1200
959
|
responseType: <any>responseType_,
|
|
1201
|
-
withCredentials:
|
|
960
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1202
961
|
headers: localVarHeaders,
|
|
1203
962
|
observe: observe,
|
|
1204
963
|
transferCache: localVarTransferCache,
|