@agravity/public 10.3.5 → 11.0.1
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 +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api/publicAIOperations.pub.agravity.ts +5 -3
- package/api/publicAssetManagement.pub.agravity.ts +69 -35
- package/api/publicAssetOperations.pub.agravity.ts +114 -59
- package/api/publicAssetPublishing.pub.agravity.ts +11 -5
- package/api/publicAssetRelationManagement.pub.agravity.ts +37 -21
- package/api/publicAssetRelationTypeManagement.pub.agravity.ts +16 -10
- package/api/publicAssetVersioning.pub.agravity.ts +27 -12
- package/api/publicAuthenticationManagement.pub.agravity.ts +19 -11
- package/api/publicCollectionManagement.pub.agravity.ts +67 -36
- package/api/publicCollectionSecureUpload.pub.agravity.ts +16 -10
- package/api/publicCollectionTypeManagement.pub.agravity.ts +25 -15
- package/api/publicConfigurationManagement.pub.agravity.ts +9 -6
- package/api/publicDownloadFormatManagement.pub.agravity.ts +12 -7
- package/api/publicEndpoints.pub.agravity.ts +30 -17
- package/api/publicGeneralManagement.pub.agravity.ts +24 -12
- package/api/publicHelperTools.pub.agravity.ts +33 -19
- package/api/publicPortalManagement.pub.agravity.ts +27 -12
- package/api/publicPublishing.pub.agravity.ts +11 -7
- package/api/publicSavedSearch.pub.agravity.ts +11 -7
- package/api/publicSearchManagement.pub.agravity.ts +67 -36
- package/api/publicSharingManagement.pub.agravity.ts +30 -16
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +5 -3
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +25 -15
- package/api/publicTranslationManagement.pub.agravity.ts +19 -11
- package/api/publicWebAppData.pub.agravity.ts +8 -4
- package/api/publicWorkspaceManagement.pub.agravity.ts +16 -10
- package/api.base.service.ts +41 -27
- package/configuration.ts +3 -2
- package/encoder.ts +15 -0
- package/package.json +9 -9
- package/query.params.ts +165 -0
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
11
11
|
|
|
12
12
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
13
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent,
|
|
14
|
-
import { CustomHttpParameterCodec } from '../encoder';
|
|
13
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
15
14
|
import { Observable } from 'rxjs';
|
|
15
|
+
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
|
16
16
|
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
@@ -182,9 +182,11 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* This endpoint lets you resize/modify the image asset according to the given parameter(s).
|
|
185
|
+
* @endpoint get /assets/{id}/imageedit
|
|
185
186
|
* @param requestParameters
|
|
186
187
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
187
188
|
* @param reportProgress flag to report request and response progress.
|
|
189
|
+
* @param options additional options
|
|
188
190
|
*/
|
|
189
191
|
public httpAssetImageEdit(
|
|
190
192
|
requestParameters: HttpAssetImageEditRequestParams,
|
|
@@ -230,22 +232,37 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
230
232
|
const filter = requestParameters?.filter;
|
|
231
233
|
const original = requestParameters?.original;
|
|
232
234
|
|
|
233
|
-
let localVarQueryParameters = new
|
|
234
|
-
|
|
235
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
236
|
-
|
|
237
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
238
|
-
|
|
239
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
240
|
-
|
|
241
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
242
|
-
|
|
243
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
244
|
-
|
|
245
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
246
|
-
|
|
247
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
248
|
-
|
|
235
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
236
|
+
|
|
237
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'width', <any>width, QueryParamStyle.Form, true);
|
|
238
|
+
|
|
239
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'height', <any>height, QueryParamStyle.Form, true);
|
|
240
|
+
|
|
241
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'mode', <any>mode, QueryParamStyle.Form, true);
|
|
242
|
+
|
|
243
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'target', <any>target, QueryParamStyle.Form, true);
|
|
244
|
+
|
|
245
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'bgcolor', <any>bgcolor, QueryParamStyle.Form, true);
|
|
246
|
+
|
|
247
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'dpi', <any>dpi, QueryParamStyle.Form, true);
|
|
248
|
+
|
|
249
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'depth', <any>depth, QueryParamStyle.Form, true);
|
|
250
|
+
|
|
251
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'quality', <any>quality, QueryParamStyle.Form, true);
|
|
252
|
+
|
|
253
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'colorspace', <any>colorspace, QueryParamStyle.Form, true);
|
|
254
|
+
|
|
255
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'crop_x', <any>cropX, QueryParamStyle.Form, true);
|
|
256
|
+
|
|
257
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'crop_y', <any>cropY, QueryParamStyle.Form, true);
|
|
258
|
+
|
|
259
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'crop_width', <any>cropWidth, QueryParamStyle.Form, true);
|
|
260
|
+
|
|
261
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'crop_height', <any>cropHeight, QueryParamStyle.Form, true);
|
|
262
|
+
|
|
263
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'filter', <any>filter, QueryParamStyle.Form, true);
|
|
264
|
+
|
|
265
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'original', <any>original, QueryParamStyle.Form, true);
|
|
249
266
|
|
|
250
267
|
let localVarHeaders = this.defaultHeaders;
|
|
251
268
|
|
|
@@ -265,21 +282,23 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
265
282
|
const { basePath, withCredentials } = this.configuration;
|
|
266
283
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
267
284
|
context: localVarHttpContext,
|
|
268
|
-
params: localVarQueryParameters,
|
|
285
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
269
286
|
responseType: 'blob',
|
|
270
287
|
...(withCredentials ? { withCredentials } : {}),
|
|
271
288
|
headers: localVarHeaders,
|
|
272
289
|
observe: observe,
|
|
273
|
-
transferCache: localVarTransferCache,
|
|
290
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
274
291
|
reportProgress: reportProgress
|
|
275
292
|
});
|
|
276
293
|
}
|
|
277
294
|
|
|
278
295
|
/**
|
|
279
296
|
* This endpoint lets you resize/modify the image asset according to the given parameter(s).
|
|
297
|
+
* @endpoint get /assets/{id}/resize
|
|
280
298
|
* @param requestParameters
|
|
281
299
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
282
300
|
* @param reportProgress flag to report request and response progress.
|
|
301
|
+
* @param options additional options
|
|
283
302
|
*/
|
|
284
303
|
public httpAssetResize(
|
|
285
304
|
requestParameters: HttpAssetResizeRequestParams,
|
|
@@ -332,16 +351,18 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
332
351
|
...(withCredentials ? { withCredentials } : {}),
|
|
333
352
|
headers: localVarHeaders,
|
|
334
353
|
observe: observe,
|
|
335
|
-
transferCache: localVarTransferCache,
|
|
354
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
336
355
|
reportProgress: reportProgress
|
|
337
356
|
});
|
|
338
357
|
}
|
|
339
358
|
|
|
340
359
|
/**
|
|
341
360
|
* This endpoint allows to move/assign from/to another collection with the given operation parameter.
|
|
361
|
+
* @endpoint post /assets/{id}/tocollection
|
|
342
362
|
* @param requestParameters
|
|
343
363
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
344
364
|
* @param reportProgress flag to report request and response progress.
|
|
365
|
+
* @param options additional options
|
|
345
366
|
*/
|
|
346
367
|
public httpAssetToCollection(
|
|
347
368
|
requestParameters: HttpAssetToCollectionRequestParams,
|
|
@@ -417,16 +438,18 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
417
438
|
...(withCredentials ? { withCredentials } : {}),
|
|
418
439
|
headers: localVarHeaders,
|
|
419
440
|
observe: observe,
|
|
420
|
-
transferCache: localVarTransferCache,
|
|
441
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
421
442
|
reportProgress: reportProgress
|
|
422
443
|
});
|
|
423
444
|
}
|
|
424
445
|
|
|
425
446
|
/**
|
|
426
447
|
* This endpoint checks, if an asset exists and returns the url for the requested blob.
|
|
448
|
+
* @endpoint get /assets/{id}/blobs
|
|
427
449
|
* @param requestParameters
|
|
428
450
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
429
451
|
* @param reportProgress flag to report request and response progress.
|
|
452
|
+
* @param options additional options
|
|
430
453
|
*/
|
|
431
454
|
public httpGetAssetBlob(
|
|
432
455
|
requestParameters: HttpGetAssetBlobRequestParams,
|
|
@@ -463,10 +486,13 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
463
486
|
const portalId = requestParameters?.portalId;
|
|
464
487
|
const key = requestParameters?.key;
|
|
465
488
|
|
|
466
|
-
let localVarQueryParameters = new
|
|
467
|
-
|
|
468
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
469
|
-
|
|
489
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
490
|
+
|
|
491
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'c', <any>c, QueryParamStyle.Form, true);
|
|
492
|
+
|
|
493
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'portal_id', <any>portalId, QueryParamStyle.Form, true);
|
|
494
|
+
|
|
495
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'key', <any>key, QueryParamStyle.Form, true);
|
|
470
496
|
|
|
471
497
|
let localVarHeaders = this.defaultHeaders;
|
|
472
498
|
|
|
@@ -497,21 +523,23 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
497
523
|
const { basePath, withCredentials } = this.configuration;
|
|
498
524
|
return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
|
|
499
525
|
context: localVarHttpContext,
|
|
500
|
-
params: localVarQueryParameters,
|
|
526
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
501
527
|
responseType: <any>responseType_,
|
|
502
528
|
...(withCredentials ? { withCredentials } : {}),
|
|
503
529
|
headers: localVarHeaders,
|
|
504
530
|
observe: observe,
|
|
505
|
-
transferCache: localVarTransferCache,
|
|
531
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
506
532
|
reportProgress: reportProgress
|
|
507
533
|
});
|
|
508
534
|
}
|
|
509
535
|
|
|
510
536
|
/**
|
|
511
537
|
* Returns all collections of a specific asset.
|
|
538
|
+
* @endpoint get /assets/{id}/collections
|
|
512
539
|
* @param requestParameters
|
|
513
540
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
514
541
|
* @param reportProgress flag to report request and response progress.
|
|
542
|
+
* @param options additional options
|
|
515
543
|
*/
|
|
516
544
|
public httpGetAssetCollectionsById(
|
|
517
545
|
requestParameters: HttpGetAssetCollectionsByIdRequestParams,
|
|
@@ -545,9 +573,11 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
545
573
|
const translations = requestParameters?.translations;
|
|
546
574
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
547
575
|
|
|
548
|
-
let localVarQueryParameters = new
|
|
549
|
-
|
|
550
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
576
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
577
|
+
|
|
578
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'fields', <any>fields, QueryParamStyle.Form, true);
|
|
579
|
+
|
|
580
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
551
581
|
|
|
552
582
|
let localVarHeaders = this.defaultHeaders;
|
|
553
583
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
@@ -581,21 +611,23 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
581
611
|
const { basePath, withCredentials } = this.configuration;
|
|
582
612
|
return this.httpClient.request<Array<Collection>>('get', `${basePath}${localVarPath}`, {
|
|
583
613
|
context: localVarHttpContext,
|
|
584
|
-
params: localVarQueryParameters,
|
|
614
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
585
615
|
responseType: <any>responseType_,
|
|
586
616
|
...(withCredentials ? { withCredentials } : {}),
|
|
587
617
|
headers: localVarHeaders,
|
|
588
618
|
observe: observe,
|
|
589
|
-
transferCache: localVarTransferCache,
|
|
619
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
590
620
|
reportProgress: reportProgress
|
|
591
621
|
});
|
|
592
622
|
}
|
|
593
623
|
|
|
594
624
|
/**
|
|
595
625
|
* This endpoint is similar to GetAssetBlob but with ContentDistribution and filename to let browser download the content.
|
|
626
|
+
* @endpoint get /assets/{id}/download
|
|
596
627
|
* @param requestParameters
|
|
597
628
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
598
629
|
* @param reportProgress flag to report request and response progress.
|
|
630
|
+
* @param options additional options
|
|
599
631
|
*/
|
|
600
632
|
public httpGetAssetDownload(
|
|
601
633
|
requestParameters: HttpGetAssetDownloadRequestParams,
|
|
@@ -630,11 +662,15 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
630
662
|
const portalId = requestParameters?.portalId;
|
|
631
663
|
const key = requestParameters?.key;
|
|
632
664
|
|
|
633
|
-
let localVarQueryParameters = new
|
|
634
|
-
|
|
635
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
636
|
-
|
|
637
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
665
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
666
|
+
|
|
667
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'c', <any>c, QueryParamStyle.Form, true);
|
|
668
|
+
|
|
669
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'f', <any>f, QueryParamStyle.Form, true);
|
|
670
|
+
|
|
671
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'portal_id', <any>portalId, QueryParamStyle.Form, true);
|
|
672
|
+
|
|
673
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'key', <any>key, QueryParamStyle.Form, true);
|
|
638
674
|
|
|
639
675
|
let localVarHeaders = this.defaultHeaders;
|
|
640
676
|
|
|
@@ -665,21 +701,23 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
665
701
|
const { basePath, withCredentials } = this.configuration;
|
|
666
702
|
return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
|
|
667
703
|
context: localVarHttpContext,
|
|
668
|
-
params: localVarQueryParameters,
|
|
704
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
669
705
|
responseType: <any>responseType_,
|
|
670
706
|
...(withCredentials ? { withCredentials } : {}),
|
|
671
707
|
headers: localVarHeaders,
|
|
672
708
|
observe: observe,
|
|
673
|
-
transferCache: localVarTransferCache,
|
|
709
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
674
710
|
reportProgress: reportProgress
|
|
675
711
|
});
|
|
676
712
|
}
|
|
677
713
|
|
|
678
714
|
/**
|
|
679
715
|
* This endpoint returns the asset relations
|
|
716
|
+
* @endpoint get /assets/{id}/relations
|
|
680
717
|
* @param requestParameters
|
|
681
718
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
682
719
|
* @param reportProgress flag to report request and response progress.
|
|
720
|
+
* @param options additional options
|
|
683
721
|
*/
|
|
684
722
|
public httpGetAssetRelationsById(
|
|
685
723
|
requestParameters: HttpGetAssetRelationsByIdRequestParams,
|
|
@@ -743,16 +781,18 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
743
781
|
...(withCredentials ? { withCredentials } : {}),
|
|
744
782
|
headers: localVarHeaders,
|
|
745
783
|
observe: observe,
|
|
746
|
-
transferCache: localVarTransferCache,
|
|
784
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
747
785
|
reportProgress: reportProgress
|
|
748
786
|
});
|
|
749
787
|
}
|
|
750
788
|
|
|
751
789
|
/**
|
|
752
790
|
* This endpoint returns the binary directly to the endpoint
|
|
791
|
+
* @endpoint get /assets/{id}/view
|
|
753
792
|
* @param requestParameters
|
|
754
793
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
755
794
|
* @param reportProgress flag to report request and response progress.
|
|
795
|
+
* @param options additional options
|
|
756
796
|
*/
|
|
757
797
|
public httpGetAssetView(
|
|
758
798
|
requestParameters: HttpGetAssetViewRequestParams,
|
|
@@ -787,11 +827,15 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
787
827
|
const locked = requestParameters?.locked;
|
|
788
828
|
const uncompleted = requestParameters?.uncompleted;
|
|
789
829
|
|
|
790
|
-
let localVarQueryParameters = new
|
|
791
|
-
|
|
792
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
793
|
-
|
|
794
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
830
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
831
|
+
|
|
832
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'format', <any>format, QueryParamStyle.Form, true);
|
|
833
|
+
|
|
834
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'portal_id', <any>portalId, QueryParamStyle.Form, true);
|
|
835
|
+
|
|
836
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'locked', <any>locked, QueryParamStyle.Form, true);
|
|
837
|
+
|
|
838
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'uncompleted', <any>uncompleted, QueryParamStyle.Form, true);
|
|
795
839
|
|
|
796
840
|
let localVarHeaders = this.defaultHeaders;
|
|
797
841
|
|
|
@@ -822,21 +866,23 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
822
866
|
const { basePath, withCredentials } = this.configuration;
|
|
823
867
|
return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
|
|
824
868
|
context: localVarHttpContext,
|
|
825
|
-
params: localVarQueryParameters,
|
|
869
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
826
870
|
responseType: <any>responseType_,
|
|
827
871
|
...(withCredentials ? { withCredentials } : {}),
|
|
828
872
|
headers: localVarHeaders,
|
|
829
873
|
observe: observe,
|
|
830
|
-
transferCache: localVarTransferCache,
|
|
874
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
831
875
|
reportProgress: reportProgress
|
|
832
876
|
});
|
|
833
877
|
}
|
|
834
878
|
|
|
835
879
|
/**
|
|
836
880
|
* This endpoint checks, if an asset exists, is an image, has original blob, is status active, is part of the shared collection and returns the requested asset blob.
|
|
881
|
+
* @endpoint get /assets/{id}/blob
|
|
837
882
|
* @param requestParameters
|
|
838
883
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
839
884
|
* @param reportProgress flag to report request and response progress.
|
|
885
|
+
* @param options additional options
|
|
840
886
|
*/
|
|
841
887
|
public httpGetSharedAssetBlob(
|
|
842
888
|
requestParameters: HttpGetSharedAssetBlobRequestParams,
|
|
@@ -876,9 +922,11 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
876
922
|
}
|
|
877
923
|
const ayPassword = requestParameters?.ayPassword;
|
|
878
924
|
|
|
879
|
-
let localVarQueryParameters = new
|
|
880
|
-
|
|
881
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>
|
|
925
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
926
|
+
|
|
927
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'share_id', <any>shareId, QueryParamStyle.Form, true);
|
|
928
|
+
|
|
929
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'format', <any>format, QueryParamStyle.Form, true);
|
|
882
930
|
|
|
883
931
|
let localVarHeaders = this.defaultHeaders;
|
|
884
932
|
if (ayPassword !== undefined && ayPassword !== null) {
|
|
@@ -909,21 +957,23 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
909
957
|
const { basePath, withCredentials } = this.configuration;
|
|
910
958
|
return this.httpClient.request<AssetBlob>('get', `${basePath}${localVarPath}`, {
|
|
911
959
|
context: localVarHttpContext,
|
|
912
|
-
params: localVarQueryParameters,
|
|
960
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
913
961
|
responseType: <any>responseType_,
|
|
914
962
|
...(withCredentials ? { withCredentials } : {}),
|
|
915
963
|
headers: localVarHeaders,
|
|
916
964
|
observe: observe,
|
|
917
|
-
transferCache: localVarTransferCache,
|
|
965
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
918
966
|
reportProgress: reportProgress
|
|
919
967
|
});
|
|
920
968
|
}
|
|
921
969
|
|
|
922
970
|
/**
|
|
923
971
|
* This endpoint lets you use the entire api of Imagemagick to edit the image.
|
|
972
|
+
* @endpoint post /assets/{id}/imageedit
|
|
924
973
|
* @param requestParameters
|
|
925
974
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
926
975
|
* @param reportProgress flag to report request and response progress.
|
|
976
|
+
* @param options additional options
|
|
927
977
|
*/
|
|
928
978
|
public httpImageDynamicEdit(
|
|
929
979
|
requestParameters: HttpImageDynamicEditRequestParams,
|
|
@@ -959,8 +1009,9 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
959
1009
|
}
|
|
960
1010
|
const targetFilename = requestParameters?.targetFilename;
|
|
961
1011
|
|
|
962
|
-
let localVarQueryParameters = new
|
|
963
|
-
|
|
1012
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1013
|
+
|
|
1014
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'target_filename', <any>targetFilename, QueryParamStyle.Form, true);
|
|
964
1015
|
|
|
965
1016
|
let localVarHeaders = this.defaultHeaders;
|
|
966
1017
|
|
|
@@ -988,21 +1039,23 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
988
1039
|
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
989
1040
|
context: localVarHttpContext,
|
|
990
1041
|
body: dynamicImageOperation,
|
|
991
|
-
params: localVarQueryParameters,
|
|
1042
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
992
1043
|
responseType: 'blob',
|
|
993
1044
|
...(withCredentials ? { withCredentials } : {}),
|
|
994
1045
|
headers: localVarHeaders,
|
|
995
1046
|
observe: observe,
|
|
996
|
-
transferCache: localVarTransferCache,
|
|
1047
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
997
1048
|
reportProgress: reportProgress
|
|
998
1049
|
});
|
|
999
1050
|
}
|
|
1000
1051
|
|
|
1001
1052
|
/**
|
|
1002
1053
|
* This endpoint returns an image with the requested download format applied.
|
|
1054
|
+
* @endpoint get /assets/{id}/imageedit/{download_format_id}
|
|
1003
1055
|
* @param requestParameters
|
|
1004
1056
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1005
1057
|
* @param reportProgress flag to report request and response progress.
|
|
1058
|
+
* @param options additional options
|
|
1006
1059
|
*/
|
|
1007
1060
|
public httpImageDynamicGetFromDownloadId(
|
|
1008
1061
|
requestParameters: HttpImageDynamicGetFromDownloadIdRequestParams,
|
|
@@ -1059,16 +1112,18 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
1059
1112
|
...(withCredentials ? { withCredentials } : {}),
|
|
1060
1113
|
headers: localVarHeaders,
|
|
1061
1114
|
observe: observe,
|
|
1062
|
-
transferCache: localVarTransferCache,
|
|
1115
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1063
1116
|
reportProgress: reportProgress
|
|
1064
1117
|
});
|
|
1065
1118
|
}
|
|
1066
1119
|
|
|
1067
1120
|
/**
|
|
1068
1121
|
* This endpoint sets the availability of the asset. All properties are put on the asset and replace previous values.To make an asset unavailable set the `availability` property to \'locked\' or set the `available_from` property below the current date. To make it available set empty string to `availability` property or `available_to` property into past.
|
|
1122
|
+
* @endpoint put /assets/{id}/availability
|
|
1069
1123
|
* @param requestParameters
|
|
1070
1124
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
1071
1125
|
* @param reportProgress flag to report request and response progress.
|
|
1126
|
+
* @param options additional options
|
|
1072
1127
|
*/
|
|
1073
1128
|
public httpPutAssetAvailability(
|
|
1074
1129
|
requestParameters: HttpPutAssetAvailabilityRequestParams,
|
|
@@ -1144,7 +1199,7 @@ export class PublicAssetOperationsService extends BaseService {
|
|
|
1144
1199
|
...(withCredentials ? { withCredentials } : {}),
|
|
1145
1200
|
headers: localVarHeaders,
|
|
1146
1201
|
observe: observe,
|
|
1147
|
-
transferCache: localVarTransferCache,
|
|
1202
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1148
1203
|
reportProgress: reportProgress
|
|
1149
1204
|
});
|
|
1150
1205
|
}
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
11
11
|
|
|
12
12
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
13
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent,
|
|
14
|
-
import { CustomHttpParameterCodec } from '../encoder';
|
|
13
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
15
14
|
import { Observable } from 'rxjs';
|
|
15
|
+
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
|
16
16
|
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
@@ -59,9 +59,11 @@ export class PublicAssetPublishingService extends BaseService {
|
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* This endpoint creates an additional published asset
|
|
62
|
+
* @endpoint post /assets/{id}/publish
|
|
62
63
|
* @param requestParameters
|
|
63
64
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
64
65
|
* @param reportProgress flag to report request and response progress.
|
|
66
|
+
* @param options additional options
|
|
65
67
|
*/
|
|
66
68
|
public httpPublishedAssetsCreate(
|
|
67
69
|
requestParameters: HttpPublishedAssetsCreateRequestParams,
|
|
@@ -137,16 +139,18 @@ export class PublicAssetPublishingService extends BaseService {
|
|
|
137
139
|
...(withCredentials ? { withCredentials } : {}),
|
|
138
140
|
headers: localVarHeaders,
|
|
139
141
|
observe: observe,
|
|
140
|
-
transferCache: localVarTransferCache,
|
|
142
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
141
143
|
reportProgress: reportProgress
|
|
142
144
|
});
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
/**
|
|
146
148
|
* This endpoint lists all the published assets which are stored in the database if asset is still valid.
|
|
149
|
+
* @endpoint get /assets/{id}/publish
|
|
147
150
|
* @param requestParameters
|
|
148
151
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
149
152
|
* @param reportProgress flag to report request and response progress.
|
|
153
|
+
* @param options additional options
|
|
150
154
|
*/
|
|
151
155
|
public httpPublishedAssetsGet(
|
|
152
156
|
requestParameters: HttpPublishedAssetsGetRequestParams,
|
|
@@ -210,16 +214,18 @@ export class PublicAssetPublishingService extends BaseService {
|
|
|
210
214
|
...(withCredentials ? { withCredentials } : {}),
|
|
211
215
|
headers: localVarHeaders,
|
|
212
216
|
observe: observe,
|
|
213
|
-
transferCache: localVarTransferCache,
|
|
217
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
214
218
|
reportProgress: reportProgress
|
|
215
219
|
});
|
|
216
220
|
}
|
|
217
221
|
|
|
218
222
|
/**
|
|
219
223
|
* This endpoint returns one single published asset (from ID). Not checked if assetId is not deleted!
|
|
224
|
+
* @endpoint get /assets/{id}/publish/{pid}
|
|
220
225
|
* @param requestParameters
|
|
221
226
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
222
227
|
* @param reportProgress flag to report request and response progress.
|
|
228
|
+
* @param options additional options
|
|
223
229
|
*/
|
|
224
230
|
public httpPublishedAssetsGetById(
|
|
225
231
|
requestParameters: HttpPublishedAssetsGetByIdRequestParams,
|
|
@@ -287,7 +293,7 @@ export class PublicAssetPublishingService extends BaseService {
|
|
|
287
293
|
...(withCredentials ? { withCredentials } : {}),
|
|
288
294
|
headers: localVarHeaders,
|
|
289
295
|
observe: observe,
|
|
290
|
-
transferCache: localVarTransferCache,
|
|
296
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
291
297
|
reportProgress: reportProgress
|
|
292
298
|
});
|
|
293
299
|
}
|