@agravity/public 5.2.0 → 5.3.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.
Files changed (77) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/README.md +10 -10
  3. package/api/api.ts +65 -43
  4. package/api/publicAssetManagement.pub.agravity.ts +615 -504
  5. package/api/publicAssetOperations.pub.agravity.ts +740 -633
  6. package/api/publicAssetPublishing.pub.agravity.ts +277 -263
  7. package/api/publicAssetVersioning.pub.agravity.ts +613 -552
  8. package/api/publicAuthenticationManagement.pub.agravity.ts +125 -135
  9. package/api/publicCollectionManagement.pub.agravity.ts +680 -562
  10. package/api/publicCollectionSecureUpload.pub.agravity.ts +243 -229
  11. package/api/publicCollectionTypeManagement.pub.agravity.ts +293 -266
  12. package/api/publicConfigurationManagement.pub.agravity.ts +118 -128
  13. package/api/publicDownloadFormatManagement.pub.agravity.ts +125 -135
  14. package/api/publicGeneralManagement.pub.agravity.ts +206 -221
  15. package/api/publicHelperTools.pub.agravity.ts +269 -288
  16. package/api/publicPublishing.pub.agravity.ts +160 -148
  17. package/api/publicSavedSearch.pub.agravity.ts +160 -148
  18. package/api/publicSearchManagement.pub.agravity.ts +237 -197
  19. package/api/publicSharingManagement.pub.agravity.ts +259 -215
  20. package/api/publicSignalRConnectionManagement.pub.agravity.ts +125 -136
  21. package/api/publicStaticDefinedListManagement.pub.agravity.ts +325 -203
  22. package/api/publicTranslationManagement.pub.agravity.ts +322 -267
  23. package/api/publicWebAppData.pub.agravity.ts +179 -193
  24. package/api/publicWorkspaceManagement.pub.agravity.ts +199 -204
  25. package/api.module.ts +49 -51
  26. package/configuration.ts +129 -132
  27. package/encoder.ts +20 -20
  28. package/index.ts +5 -5
  29. package/model/agravityErrorResponse.pub.agravity.ts +17 -19
  30. package/model/agravityVersion.pub.agravity.ts +22 -24
  31. package/model/allWebAppData.pub.agravity.ts +22 -24
  32. package/model/artificialIntelligenceGroup.pub.agravity.ts +18 -20
  33. package/model/asset.pub.agravity.ts +45 -47
  34. package/model/assetAvailability.pub.agravity.ts +17 -19
  35. package/model/assetBlob.pub.agravity.ts +79 -82
  36. package/model/{assetIdContainer.pub.agravity.ts → assetIdFormat.pub.agravity.ts} +17 -18
  37. package/model/assetPageResult.pub.agravity.ts +21 -23
  38. package/model/azSearchOptions.pub.agravity.ts +23 -25
  39. package/model/badRequestResult.pub.agravity.ts +15 -17
  40. package/model/collTypeItem.pub.agravity.ts +36 -38
  41. package/model/collection.pub.agravity.ts +33 -35
  42. package/model/collectionType.pub.agravity.ts +33 -35
  43. package/model/collectionUDL.pub.agravity.ts +19 -21
  44. package/model/createSftpUserResult.pub.agravity.ts +16 -18
  45. package/model/dataResult.pub.agravity.ts +20 -22
  46. package/model/distZipResponse.pub.agravity.ts +17 -19
  47. package/model/downloadFormat.pub.agravity.ts +32 -34
  48. package/model/dynamicImageOperation.pub.agravity.ts +16 -18
  49. package/model/entityId.pub.agravity.ts +15 -17
  50. package/model/entityIdName.pub.agravity.ts +17 -19
  51. package/model/frontendAppConfig.pub.agravity.ts +19 -21
  52. package/model/groupAllAppData.pub.agravity.ts +24 -26
  53. package/model/metadata.pub.agravity.ts +17 -19
  54. package/model/models.ts +44 -44
  55. package/model/okResult.pub.agravity.ts +15 -17
  56. package/model/publishEntity.pub.agravity.ts +26 -28
  57. package/model/publishedAsset.pub.agravity.ts +23 -25
  58. package/model/quickShareFull.pub.agravity.ts +35 -36
  59. package/model/sasToken.pub.agravity.ts +20 -22
  60. package/model/savedSearch.pub.agravity.ts +29 -31
  61. package/model/searchFacet.pub.agravity.ts +17 -19
  62. package/model/searchFacetEntity.pub.agravity.ts +17 -19
  63. package/model/searchResult.pub.agravity.ts +21 -23
  64. package/model/searchableItem.pub.agravity.ts +24 -26
  65. package/model/secureUploadEntity.pub.agravity.ts +25 -27
  66. package/model/sharedAsset.pub.agravity.ts +23 -25
  67. package/model/sharedCollectionFull.pub.agravity.ts +27 -29
  68. package/model/signalRConnectionInfo.pub.agravity.ts +16 -18
  69. package/model/staticDefinedList.pub.agravity.ts +28 -30
  70. package/model/versionEntity.pub.agravity.ts +26 -28
  71. package/model/versionedAsset.pub.agravity.ts +18 -20
  72. package/model/whereParam.pub.agravity.ts +40 -43
  73. package/model/workspace.pub.agravity.ts +32 -34
  74. package/ng-package.json +6 -0
  75. package/package.json +44 -27
  76. package/tsconfig.json +20 -0
  77. package/variables.ts +9 -9
@@ -1,136 +1,125 @@
1
- /**
2
- * Agravity OpenAPI Documentation - Public Functions
3
- * <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
4
- *
5
- * The version of the OpenAPI document: 5.2.0
6
- * Contact: office@agravity.io
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /* tslint:disable:no-unused-variable member-ordering */
13
-
14
- import { Inject, Injectable, Optional } from '@angular/core';
15
- import { HttpClient, HttpHeaders, HttpParams,
16
- HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
17
- import { CustomHttpParameterCodec } from '../encoder';
18
- import { Observable } from 'rxjs';
19
-
20
- import { SignalRConnectionInfo } from '../model/models';
21
-
22
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
- import { AgravityPublicConfiguration } from '../configuration';
24
-
25
-
26
-
27
- @Injectable({
28
- providedIn: 'root'
29
- })
30
- export class PublicSignalRConnectionManagementService {
31
-
32
- protected basePath = 'http://localhost:7072/api';
33
- public defaultHeaders = new HttpHeaders();
34
- public configuration = new AgravityPublicConfiguration();
35
- public encoder: HttpParameterCodec;
36
-
37
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityPublicConfiguration) {
38
- if (configuration) {
39
- this.configuration = configuration;
40
- }
41
- if (typeof this.configuration.basePath !== 'string') {
42
- if (typeof basePath !== 'string') {
43
- basePath = this.basePath;
44
- }
45
- this.configuration.basePath = basePath;
46
- }
47
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
48
- }
49
-
50
-
51
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
- if (typeof value === "object" && value instanceof Date === false) {
53
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
54
- } else {
55
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
56
- }
57
- return httpParams;
58
- }
59
-
60
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
61
- if (value == null) {
62
- return httpParams;
63
- }
64
-
65
- if (typeof value === "object") {
66
- if (Array.isArray(value)) {
67
- (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
68
- } else if (value instanceof Date) {
69
- if (key != null) {
70
- httpParams = httpParams.append(key,
71
- (value as Date).toISOString().substr(0, 10));
72
- } else {
73
- throw Error("key may not be null if value is Date");
74
- }
75
- } else {
76
- Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
77
- httpParams, value[k], key != null ? `${key}.${k}` : k));
78
- }
79
- } else if (key != null) {
80
- httpParams = httpParams.append(key, value);
81
- } else {
82
- throw Error("key may not be null if value is not object or array");
83
- }
84
- return httpParams;
85
- }
86
-
87
- /**
88
- * This endpoint delivers the connection data for a client.
89
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
90
- * @param reportProgress flag to report request and response progress.
91
- */
92
- public httpSignalRNegotiate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SignalRConnectionInfo>;
93
- public httpSignalRNegotiate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SignalRConnectionInfo>>;
94
- public httpSignalRNegotiate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SignalRConnectionInfo>>;
95
- public httpSignalRNegotiate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
96
-
97
- let headers = this.defaultHeaders;
98
-
99
- let credential: string | undefined;
100
- // authentication (function_key) required
101
- credential = this.configuration.lookupCredential('function_key');
102
- if (credential) {
103
- headers = headers.set('x-functions-key', credential);
104
- }
105
-
106
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
107
- if (httpHeaderAcceptSelected === undefined) {
108
- // to determine the Accept header
109
- const httpHeaderAccepts: string[] = [
110
- 'application/json'
111
- ];
112
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
113
- }
114
- if (httpHeaderAcceptSelected !== undefined) {
115
- headers = headers.set('Accept', httpHeaderAcceptSelected);
116
- }
117
-
118
-
119
- let responseType_: 'text' | 'json' = 'json';
120
- if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
121
- responseType_ = 'text';
122
- }
123
-
124
- return this.httpClient.post<SignalRConnectionInfo>(`${this.configuration.basePath}/signalr/negotiate`,
125
- null,
126
- {
127
- responseType: <any>responseType_,
128
- withCredentials: this.configuration.withCredentials,
129
- headers: headers,
130
- observe: observe,
131
- reportProgress: reportProgress
132
- }
133
- );
134
- }
135
-
136
- }
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
3
+ * <h1>Agravity API Reference</h1>This is the public API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2023. All Rights Reserved
4
+ *
5
+ * The version of the OpenAPI document: 5.3.1
6
+ * Contact: office@agravity.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /* tslint:disable:no-unused-variable member-ordering */
13
+
14
+ import { Inject, Injectable, Optional } from '@angular/core';
15
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
16
+ import { CustomHttpParameterCodec } from '../encoder';
17
+ import { Observable } from 'rxjs';
18
+
19
+ import { SignalRConnectionInfo } from '../model/models';
20
+
21
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
22
+ import { AgravityPublicConfiguration } from '../configuration';
23
+
24
+ @Injectable({
25
+ providedIn: 'root'
26
+ })
27
+ export class PublicSignalRConnectionManagementService {
28
+ protected basePath = 'http://localhost:7072/api';
29
+ public defaultHeaders = new HttpHeaders();
30
+ public configuration = new AgravityPublicConfiguration();
31
+ public encoder: HttpParameterCodec;
32
+
33
+ constructor(
34
+ protected httpClient: HttpClient,
35
+ @Optional() @Inject(BASE_PATH) basePath: string,
36
+ @Optional() configuration: AgravityPublicConfiguration
37
+ ) {
38
+ if (configuration) {
39
+ this.configuration = configuration;
40
+ }
41
+ if (typeof this.configuration.basePath !== 'string') {
42
+ if (typeof basePath !== 'string') {
43
+ basePath = this.basePath;
44
+ }
45
+ this.configuration.basePath = basePath;
46
+ }
47
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
48
+ }
49
+
50
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
51
+ if (typeof value === 'object' && value instanceof Date === false) {
52
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
53
+ } else {
54
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
55
+ }
56
+ return httpParams;
57
+ }
58
+
59
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
60
+ if (value == null) {
61
+ return httpParams;
62
+ }
63
+
64
+ if (typeof value === 'object') {
65
+ if (Array.isArray(value)) {
66
+ (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
67
+ } else if (value instanceof Date) {
68
+ if (key != null) {
69
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
70
+ } else {
71
+ throw Error('key may not be null if value is Date');
72
+ }
73
+ } else {
74
+ Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
75
+ }
76
+ } else if (key != null) {
77
+ httpParams = httpParams.append(key, value);
78
+ } else {
79
+ throw Error('key may not be null if value is not object or array');
80
+ }
81
+ return httpParams;
82
+ }
83
+
84
+ /**
85
+ * This endpoint delivers the connection data for a client.
86
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
87
+ * @param reportProgress flag to report request and response progress.
88
+ */
89
+ public httpSignalRNegotiate(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<SignalRConnectionInfo>;
90
+ public httpSignalRNegotiate(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<SignalRConnectionInfo>>;
91
+ public httpSignalRNegotiate(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<SignalRConnectionInfo>>;
92
+ public httpSignalRNegotiate(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
93
+ let headers = this.defaultHeaders;
94
+
95
+ let credential: string | undefined;
96
+ // authentication (function_key) required
97
+ credential = this.configuration.lookupCredential('function_key');
98
+ if (credential) {
99
+ headers = headers.set('x-functions-key', credential);
100
+ }
101
+
102
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
103
+ if (httpHeaderAcceptSelected === undefined) {
104
+ // to determine the Accept header
105
+ const httpHeaderAccepts: string[] = ['application/json'];
106
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
107
+ }
108
+ if (httpHeaderAcceptSelected !== undefined) {
109
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
110
+ }
111
+
112
+ let responseType_: 'text' | 'json' = 'json';
113
+ if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
114
+ responseType_ = 'text';
115
+ }
116
+
117
+ return this.httpClient.post<SignalRConnectionInfo>(`${this.configuration.basePath}/signalr/negotiate`, null, {
118
+ responseType: <any>responseType_,
119
+ withCredentials: this.configuration.withCredentials,
120
+ headers: headers,
121
+ observe: observe,
122
+ reportProgress: reportProgress
123
+ });
124
+ }
125
+ }