@agravity/public 5.2.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 +76 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +203 -0
- package/api/api.ts +43 -0
- package/api/publicAssetManagement.pub.agravity.ts +504 -0
- package/api/publicAssetOperations.pub.agravity.ts +633 -0
- package/api/publicAssetPublishing.pub.agravity.ts +263 -0
- package/api/publicAssetVersioning.pub.agravity.ts +552 -0
- package/api/publicAuthenticationManagement.pub.agravity.ts +135 -0
- package/api/publicCollectionManagement.pub.agravity.ts +562 -0
- package/api/publicCollectionSecureUpload.pub.agravity.ts +229 -0
- package/api/publicCollectionTypeManagement.pub.agravity.ts +266 -0
- package/api/publicConfigurationManagement.pub.agravity.ts +128 -0
- package/api/publicDownloadFormatManagement.pub.agravity.ts +135 -0
- package/api/publicGeneralManagement.pub.agravity.ts +221 -0
- package/api/publicHelperTools.pub.agravity.ts +288 -0
- package/api/publicPublishing.pub.agravity.ts +148 -0
- package/api/publicSavedSearch.pub.agravity.ts +148 -0
- package/api/publicSearchManagement.pub.agravity.ts +197 -0
- package/api/publicSharingManagement.pub.agravity.ts +215 -0
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +136 -0
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +203 -0
- package/api/publicTranslationManagement.pub.agravity.ts +267 -0
- package/api/publicWebAppData.pub.agravity.ts +193 -0
- package/api/publicWorkspaceManagement.pub.agravity.ts +204 -0
- package/api.module.ts +51 -0
- package/configuration.ts +132 -0
- package/encoder.ts +20 -0
- package/git_push.sh +58 -0
- package/index.ts +5 -0
- package/model/agravityErrorResponse.pub.agravity.ts +19 -0
- package/model/agravityVersion.pub.agravity.ts +24 -0
- package/model/allWebAppData.pub.agravity.ts +24 -0
- package/model/artificialIntelligenceGroup.pub.agravity.ts +20 -0
- package/model/asset.pub.agravity.ts +47 -0
- package/model/assetAvailability.pub.agravity.ts +19 -0
- package/model/assetBlob.pub.agravity.ts +82 -0
- package/model/assetIdContainer.pub.agravity.ts +18 -0
- package/model/assetPageResult.pub.agravity.ts +23 -0
- package/model/azSearchOptions.pub.agravity.ts +25 -0
- package/model/badRequestResult.pub.agravity.ts +17 -0
- package/model/collTypeItem.pub.agravity.ts +38 -0
- package/model/collection.pub.agravity.ts +35 -0
- package/model/collectionType.pub.agravity.ts +35 -0
- package/model/collectionUDL.pub.agravity.ts +21 -0
- package/model/createSftpUserResult.pub.agravity.ts +18 -0
- package/model/dataResult.pub.agravity.ts +22 -0
- package/model/distZipResponse.pub.agravity.ts +19 -0
- package/model/downloadFormat.pub.agravity.ts +34 -0
- package/model/dynamicImageOperation.pub.agravity.ts +18 -0
- package/model/entityId.pub.agravity.ts +17 -0
- package/model/entityIdName.pub.agravity.ts +19 -0
- package/model/frontendAppConfig.pub.agravity.ts +21 -0
- package/model/groupAllAppData.pub.agravity.ts +26 -0
- package/model/metadata.pub.agravity.ts +19 -0
- package/model/models.ts +44 -0
- package/model/okResult.pub.agravity.ts +17 -0
- package/model/publishEntity.pub.agravity.ts +28 -0
- package/model/publishedAsset.pub.agravity.ts +25 -0
- package/model/quickShareFull.pub.agravity.ts +36 -0
- package/model/sasToken.pub.agravity.ts +22 -0
- package/model/savedSearch.pub.agravity.ts +31 -0
- package/model/searchFacet.pub.agravity.ts +19 -0
- package/model/searchFacetEntity.pub.agravity.ts +19 -0
- package/model/searchResult.pub.agravity.ts +23 -0
- package/model/searchableItem.pub.agravity.ts +26 -0
- package/model/secureUploadEntity.pub.agravity.ts +27 -0
- package/model/sharedAsset.pub.agravity.ts +25 -0
- package/model/sharedCollectionFull.pub.agravity.ts +29 -0
- package/model/signalRConnectionInfo.pub.agravity.ts +18 -0
- package/model/staticDefinedList.pub.agravity.ts +30 -0
- package/model/versionEntity.pub.agravity.ts +28 -0
- package/model/versionedAsset.pub.agravity.ts +20 -0
- package/model/whereParam.pub.agravity.ts +43 -0
- package/model/workspace.pub.agravity.ts +34 -0
- package/package.json +28 -0
- package/variables.ts +9 -0
|
@@ -0,0 +1,215 @@
|
|
|
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 { AgravityErrorResponse } from '../model/models';
|
|
21
|
+
import { QuickShareFull } from '../model/models';
|
|
22
|
+
import { SharedCollectionFull } from '../model/models';
|
|
23
|
+
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
25
|
+
import { AgravityPublicConfiguration } from '../configuration';
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@Injectable({
|
|
30
|
+
providedIn: 'root'
|
|
31
|
+
})
|
|
32
|
+
export class PublicSharingManagementService {
|
|
33
|
+
|
|
34
|
+
protected basePath = 'http://localhost:7072/api';
|
|
35
|
+
public defaultHeaders = new HttpHeaders();
|
|
36
|
+
public configuration = new AgravityPublicConfiguration();
|
|
37
|
+
public encoder: HttpParameterCodec;
|
|
38
|
+
|
|
39
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityPublicConfiguration) {
|
|
40
|
+
if (configuration) {
|
|
41
|
+
this.configuration = configuration;
|
|
42
|
+
}
|
|
43
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
44
|
+
if (typeof basePath !== 'string') {
|
|
45
|
+
basePath = this.basePath;
|
|
46
|
+
}
|
|
47
|
+
this.configuration.basePath = basePath;
|
|
48
|
+
}
|
|
49
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
54
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
55
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
56
|
+
} else {
|
|
57
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
58
|
+
}
|
|
59
|
+
return httpParams;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return httpParams;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (typeof value === "object") {
|
|
68
|
+
if (Array.isArray(value)) {
|
|
69
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
70
|
+
} else if (value instanceof Date) {
|
|
71
|
+
if (key != null) {
|
|
72
|
+
httpParams = httpParams.append(key,
|
|
73
|
+
(value as Date).toISOString().substr(0, 10));
|
|
74
|
+
} else {
|
|
75
|
+
throw Error("key may not be null if value is Date");
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
79
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
80
|
+
}
|
|
81
|
+
} else if (key != null) {
|
|
82
|
+
httpParams = httpParams.append(key, value);
|
|
83
|
+
} else {
|
|
84
|
+
throw Error("key may not be null if value is not object or array");
|
|
85
|
+
}
|
|
86
|
+
return httpParams;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Returns one single quick share (from ID)
|
|
91
|
+
* @param id The ID of the quick share.
|
|
92
|
+
* @param continuationToken Each result returns the continous token if more results are available than requested. With this token, the next page could be fetched. (URL encoded!)
|
|
93
|
+
* @param limit This number limits the page result of assets.
|
|
94
|
+
* @param orderby How the return assets are sorted. Default is property: created_date (newest first).
|
|
95
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
96
|
+
* @param reportProgress flag to report request and response progress.
|
|
97
|
+
*/
|
|
98
|
+
public httpQuickShareGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<QuickShareFull>;
|
|
99
|
+
public httpQuickShareGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<QuickShareFull>>;
|
|
100
|
+
public httpQuickShareGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<QuickShareFull>>;
|
|
101
|
+
public httpQuickShareGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
102
|
+
if (id === null || id === undefined) {
|
|
103
|
+
throw new Error('Required parameter id was null or undefined when calling httpQuickShareGetById.');
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
107
|
+
if (continuationToken !== undefined && continuationToken !== null) {
|
|
108
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
109
|
+
<any>continuationToken, 'continuation_token');
|
|
110
|
+
}
|
|
111
|
+
if (limit !== undefined && limit !== null) {
|
|
112
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
113
|
+
<any>limit, 'limit');
|
|
114
|
+
}
|
|
115
|
+
if (orderby !== undefined && orderby !== null) {
|
|
116
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
117
|
+
<any>orderby, 'orderby');
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
let headers = this.defaultHeaders;
|
|
121
|
+
|
|
122
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
123
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
124
|
+
// to determine the Accept header
|
|
125
|
+
const httpHeaderAccepts: string[] = [
|
|
126
|
+
'application/json'
|
|
127
|
+
];
|
|
128
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
129
|
+
}
|
|
130
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
131
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
136
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
137
|
+
responseType_ = 'text';
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return this.httpClient.get<QuickShareFull>(`${this.configuration.basePath}/quickshares/${encodeURIComponent(String(id))}`,
|
|
141
|
+
{
|
|
142
|
+
params: queryParameters,
|
|
143
|
+
responseType: <any>responseType_,
|
|
144
|
+
withCredentials: this.configuration.withCredentials,
|
|
145
|
+
headers: headers,
|
|
146
|
+
observe: observe,
|
|
147
|
+
reportProgress: reportProgress
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Returns one single shared collection (from ID)
|
|
154
|
+
* @param id The ID of the shared collection.
|
|
155
|
+
* @param continuationToken Each result returns the continous token if more results are available than requested. With this token, the next page could be fetched. (URL encoded!)
|
|
156
|
+
* @param limit This number limits the page result of assets.
|
|
157
|
+
* @param orderby How the return assets are sorted. Default is property: created_date (newest first).
|
|
158
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
159
|
+
* @param reportProgress flag to report request and response progress.
|
|
160
|
+
*/
|
|
161
|
+
public httpSharedCollectionsGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SharedCollectionFull>;
|
|
162
|
+
public httpSharedCollectionsGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SharedCollectionFull>>;
|
|
163
|
+
public httpSharedCollectionsGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SharedCollectionFull>>;
|
|
164
|
+
public httpSharedCollectionsGetById(id: string, continuationToken?: string, limit?: number, orderby?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
165
|
+
if (id === null || id === undefined) {
|
|
166
|
+
throw new Error('Required parameter id was null or undefined when calling httpSharedCollectionsGetById.');
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
170
|
+
if (continuationToken !== undefined && continuationToken !== null) {
|
|
171
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
172
|
+
<any>continuationToken, 'continuation_token');
|
|
173
|
+
}
|
|
174
|
+
if (limit !== undefined && limit !== null) {
|
|
175
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
176
|
+
<any>limit, 'limit');
|
|
177
|
+
}
|
|
178
|
+
if (orderby !== undefined && orderby !== null) {
|
|
179
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
180
|
+
<any>orderby, 'orderby');
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
let headers = this.defaultHeaders;
|
|
184
|
+
|
|
185
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
186
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
187
|
+
// to determine the Accept header
|
|
188
|
+
const httpHeaderAccepts: string[] = [
|
|
189
|
+
'application/json'
|
|
190
|
+
];
|
|
191
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
192
|
+
}
|
|
193
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
194
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
199
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
200
|
+
responseType_ = 'text';
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return this.httpClient.get<SharedCollectionFull>(`${this.configuration.basePath}/shared/${encodeURIComponent(String(id))}`,
|
|
204
|
+
{
|
|
205
|
+
params: queryParameters,
|
|
206
|
+
responseType: <any>responseType_,
|
|
207
|
+
withCredentials: this.configuration.withCredentials,
|
|
208
|
+
headers: headers,
|
|
209
|
+
observe: observe,
|
|
210
|
+
reportProgress: reportProgress
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
}
|
|
@@ -0,0 +1,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.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
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
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 { StaticDefinedList } 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 PublicStaticDefinedListManagementService {
|
|
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 lists all static defined lists in database.
|
|
89
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
90
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
91
|
+
* @param reportProgress flag to report request and response progress.
|
|
92
|
+
*/
|
|
93
|
+
public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<StaticDefinedList>>;
|
|
94
|
+
public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<StaticDefinedList>>>;
|
|
95
|
+
public httpStaticDefinedListsGetAll(translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<StaticDefinedList>>>;
|
|
96
|
+
public httpStaticDefinedListsGetAll(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
97
|
+
|
|
98
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
99
|
+
if (translations !== undefined && translations !== null) {
|
|
100
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
101
|
+
<any>translations, 'translations');
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
let headers = this.defaultHeaders;
|
|
105
|
+
|
|
106
|
+
let credential: string | undefined;
|
|
107
|
+
// authentication (function_key) required
|
|
108
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
109
|
+
if (credential) {
|
|
110
|
+
headers = headers.set('x-functions-key', credential);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
114
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
115
|
+
// to determine the Accept header
|
|
116
|
+
const httpHeaderAccepts: string[] = [
|
|
117
|
+
'application/json'
|
|
118
|
+
];
|
|
119
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
120
|
+
}
|
|
121
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
122
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
127
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
128
|
+
responseType_ = 'text';
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return this.httpClient.get<Array<StaticDefinedList>>(`${this.configuration.basePath}/staticdefinedlists`,
|
|
132
|
+
{
|
|
133
|
+
params: queryParameters,
|
|
134
|
+
responseType: <any>responseType_,
|
|
135
|
+
withCredentials: this.configuration.withCredentials,
|
|
136
|
+
headers: headers,
|
|
137
|
+
observe: observe,
|
|
138
|
+
reportProgress: reportProgress
|
|
139
|
+
}
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* This endpoint gets a static defined list from database.
|
|
145
|
+
* @param id The ID of the static defined list.
|
|
146
|
+
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
147
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
148
|
+
* @param reportProgress flag to report request and response progress.
|
|
149
|
+
*/
|
|
150
|
+
public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<StaticDefinedList>;
|
|
151
|
+
public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<StaticDefinedList>>;
|
|
152
|
+
public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<StaticDefinedList>>;
|
|
153
|
+
public httpStaticDefinedListsGetById(id: string, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
154
|
+
if (id === null || id === undefined) {
|
|
155
|
+
throw new Error('Required parameter id was null or undefined when calling httpStaticDefinedListsGetById.');
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
159
|
+
if (translations !== undefined && translations !== null) {
|
|
160
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
161
|
+
<any>translations, 'translations');
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
let headers = this.defaultHeaders;
|
|
165
|
+
|
|
166
|
+
let credential: string | undefined;
|
|
167
|
+
// authentication (function_key) required
|
|
168
|
+
credential = this.configuration.lookupCredential('function_key');
|
|
169
|
+
if (credential) {
|
|
170
|
+
headers = headers.set('x-functions-key', credential);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
174
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
175
|
+
// to determine the Accept header
|
|
176
|
+
const httpHeaderAccepts: string[] = [
|
|
177
|
+
'application/json'
|
|
178
|
+
];
|
|
179
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
180
|
+
}
|
|
181
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
182
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
187
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
188
|
+
responseType_ = 'text';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return this.httpClient.get<StaticDefinedList>(`${this.configuration.basePath}/staticdefinedlists/${encodeURIComponent(String(id))}`,
|
|
192
|
+
{
|
|
193
|
+
params: queryParameters,
|
|
194
|
+
responseType: <any>responseType_,
|
|
195
|
+
withCredentials: this.configuration.withCredentials,
|
|
196
|
+
headers: headers,
|
|
197
|
+
observe: observe,
|
|
198
|
+
reportProgress: reportProgress
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
}
|