@agravity/private 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.
Files changed (119) hide show
  1. package/.openapi-generator/FILES +117 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +203 -0
  5. package/api/api.ts +67 -0
  6. package/api/assetIconRuleManagement.agravity.ts +400 -0
  7. package/api/assetManagement.agravity.ts +737 -0
  8. package/api/assetOperations.agravity.ts +1309 -0
  9. package/api/assetPublishing.agravity.ts +511 -0
  10. package/api/assetVersioning.agravity.ts +657 -0
  11. package/api/authenticationManagement.agravity.ts +502 -0
  12. package/api/collectionManagement.agravity.ts +618 -0
  13. package/api/collectionSharing.agravity.ts +329 -0
  14. package/api/collectionTypeItemBlueprintManagement.agravity.ts +340 -0
  15. package/api/collectionTypeManagement.agravity.ts +533 -0
  16. package/api/configurationManagement.agravity.ts +311 -0
  17. package/api/downloadFormatManagement.agravity.ts +400 -0
  18. package/api/downloadZip.agravity.ts +151 -0
  19. package/api/generalManagement.agravity.ts +348 -0
  20. package/api/helperTools.agravity.ts +640 -0
  21. package/api/iccProfileManagement.agravity.ts +134 -0
  22. package/api/listBlobs.agravity.ts +185 -0
  23. package/api/listQueues.agravity.ts +134 -0
  24. package/api/permissionsManagement.agravity.ts +262 -0
  25. package/api/publishing.agravity.ts +148 -0
  26. package/api/quickshareManagement.agravity.ts +385 -0
  27. package/api/savedSearchManagement.agravity.ts +271 -0
  28. package/api/searchManagement.agravity.ts +345 -0
  29. package/api/secureUpload.agravity.ts +371 -0
  30. package/api/signalRConnectionManagement.agravity.ts +218 -0
  31. package/api/staticDefinedListManagement.agravity.ts +408 -0
  32. package/api/stockImport.agravity.ts +221 -0
  33. package/api/structureImport.agravity.ts +137 -0
  34. package/api/translationManagement.agravity.ts +404 -0
  35. package/api/upgradeManagement.agravity.ts +333 -0
  36. package/api/webAppData.agravity.ts +300 -0
  37. package/api/wordpressManagement.agravity.ts +282 -0
  38. package/api/workspaceManagement.agravity.ts +513 -0
  39. package/api.module.ts +63 -0
  40. package/configuration.ts +130 -0
  41. package/encoder.ts +20 -0
  42. package/git_push.sh +58 -0
  43. package/index.ts +5 -0
  44. package/model/agravityErrorResponse.agravity.ts +19 -0
  45. package/model/agravityInfoResponse.agravity.ts +19 -0
  46. package/model/agravityUser.agravity.ts +37 -0
  47. package/model/agravityVersion.agravity.ts +24 -0
  48. package/model/allWebAppData.agravity.ts +24 -0
  49. package/model/apiKeyResponse.agravity.ts +18 -0
  50. package/model/appConfigTableEntity.agravity.ts +25 -0
  51. package/model/artificialIntelligenceGroup.agravity.ts +20 -0
  52. package/model/asset.agravity.ts +47 -0
  53. package/model/assetAvailability.agravity.ts +19 -0
  54. package/model/assetBlob.agravity.ts +82 -0
  55. package/model/assetBulkUpdate.agravity.ts +20 -0
  56. package/model/assetCollectionLink.agravity.ts +18 -0
  57. package/model/assetIconRule.agravity.ts +35 -0
  58. package/model/assetIdContainer.agravity.ts +18 -0
  59. package/model/assetPageResult.agravity.ts +23 -0
  60. package/model/assetsOperationBody.agravity.ts +20 -0
  61. package/model/azSearchOptions.agravity.ts +25 -0
  62. package/model/azureIdentity.agravity.ts +30 -0
  63. package/model/blobInfoObj.agravity.ts +23 -0
  64. package/model/collTypeItem.agravity.ts +38 -0
  65. package/model/collTypeItemBlueprint.agravity.ts +31 -0
  66. package/model/collection.agravity.ts +35 -0
  67. package/model/collectionType.agravity.ts +35 -0
  68. package/model/collectionUDL.agravity.ts +21 -0
  69. package/model/createSftpUserResult.agravity.ts +18 -0
  70. package/model/dataResult.agravity.ts +22 -0
  71. package/model/distZipResponse.agravity.ts +19 -0
  72. package/model/downloadFormat.agravity.ts +34 -0
  73. package/model/downloadObject.agravity.ts +32 -0
  74. package/model/downloadZipRequest.agravity.ts +25 -0
  75. package/model/dynamicImageOperation.agravity.ts +18 -0
  76. package/model/emailAddress.agravity.ts +18 -0
  77. package/model/entityId.agravity.ts +17 -0
  78. package/model/entityIdName.agravity.ts +19 -0
  79. package/model/entityTranslations.agravity.ts +18 -0
  80. package/model/frontendAppConfig.agravity.ts +21 -0
  81. package/model/groupAllAppData.agravity.ts +26 -0
  82. package/model/infoEntitySkillEnhanced.agravity.ts +25 -0
  83. package/model/metadata.agravity.ts +19 -0
  84. package/model/models.ts +73 -0
  85. package/model/moveCollectionBody.agravity.ts +19 -0
  86. package/model/permissionChange.agravity.ts +29 -0
  87. package/model/permissionSetting.agravity.ts +27 -0
  88. package/model/publishEntity.agravity.ts +28 -0
  89. package/model/publishedAsset.agravity.ts +25 -0
  90. package/model/quickShare.agravity.ts +31 -0
  91. package/model/quickShareFull.agravity.ts +36 -0
  92. package/model/sasToken.agravity.ts +22 -0
  93. package/model/savedSearch.agravity.ts +31 -0
  94. package/model/searchAdminDataSourceStatus.agravity.ts +18 -0
  95. package/model/searchAdminIndexStatus.agravity.ts +20 -0
  96. package/model/searchAdminIndexerLastRun.agravity.ts +21 -0
  97. package/model/searchAdminIndexerStatus.agravity.ts +20 -0
  98. package/model/searchAdminSkillStatus.agravity.ts +18 -0
  99. package/model/searchAdminStatistics.agravity.ts +18 -0
  100. package/model/searchAdminStatus.agravity.ts +24 -0
  101. package/model/searchFacet.agravity.ts +19 -0
  102. package/model/searchFacetEntity.agravity.ts +19 -0
  103. package/model/searchResult.agravity.ts +23 -0
  104. package/model/searchableItem.agravity.ts +26 -0
  105. package/model/secureUploadEntity.agravity.ts +27 -0
  106. package/model/sharedAsset.agravity.ts +25 -0
  107. package/model/sharedCollection.agravity.ts +24 -0
  108. package/model/sharedCollectionFull.agravity.ts +29 -0
  109. package/model/signalRConnectionInfo.agravity.ts +18 -0
  110. package/model/simpleAsset.agravity.ts +26 -0
  111. package/model/staticDefinedList.agravity.ts +30 -0
  112. package/model/uiTutorials.agravity.ts +26 -0
  113. package/model/upgradeV2V3CollectionCustomItemTableEntity.agravity.ts +21 -0
  114. package/model/versionEntity.agravity.ts +28 -0
  115. package/model/versionedAsset.agravity.ts +20 -0
  116. package/model/whereParam.agravity.ts +43 -0
  117. package/model/workspace.agravity.ts +34 -0
  118. package/package.json +28 -0
  119. package/variables.ts +9 -0
@@ -0,0 +1,371 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ * <h1>Agravity API Reference</h1>This is the full 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>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><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 { ApiKeyResponse } from '../model/models';
22
+ import { SecureUploadEntity } from '../model/models';
23
+
24
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
25
+ import { AgravityConfiguration } from '../configuration';
26
+
27
+
28
+
29
+ @Injectable({
30
+ providedIn: 'root'
31
+ })
32
+ export class SecureUploadService {
33
+
34
+ protected basePath = 'http://localhost:7071/api';
35
+ public defaultHeaders = new HttpHeaders();
36
+ public configuration = new AgravityConfiguration();
37
+ public encoder: HttpParameterCodec;
38
+
39
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
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 the API Key of a secure upload
91
+ * @param id The ID of the secure upload collection.
92
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
93
+ * @param reportProgress flag to report request and response progress.
94
+ */
95
+ public httpGetSecureUploadApiKeyById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<ApiKeyResponse>;
96
+ public httpGetSecureUploadApiKeyById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<ApiKeyResponse>>;
97
+ public httpGetSecureUploadApiKeyById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<ApiKeyResponse>>;
98
+ public httpGetSecureUploadApiKeyById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
99
+ if (id === null || id === undefined) {
100
+ throw new Error('Required parameter id was null or undefined when calling httpGetSecureUploadApiKeyById.');
101
+ }
102
+
103
+ let headers = this.defaultHeaders;
104
+
105
+ let credential: string | undefined;
106
+ // authentication (msal_auth) required
107
+ credential = this.configuration.lookupCredential('msal_auth');
108
+ if (credential) {
109
+ headers = headers.set('Authorization', 'Bearer ' + credential);
110
+ }
111
+
112
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
113
+ if (httpHeaderAcceptSelected === undefined) {
114
+ // to determine the Accept header
115
+ const httpHeaderAccepts: string[] = [
116
+ 'application/json'
117
+ ];
118
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
119
+ }
120
+ if (httpHeaderAcceptSelected !== undefined) {
121
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
122
+ }
123
+
124
+
125
+ let responseType_: 'text' | 'json' = 'json';
126
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
127
+ responseType_ = 'text';
128
+ }
129
+
130
+ return this.httpClient.get<ApiKeyResponse>(`${this.configuration.basePath}/secureupload/${encodeURIComponent(String(id))}/apikey`,
131
+ {
132
+ responseType: <any>responseType_,
133
+ withCredentials: this.configuration.withCredentials,
134
+ headers: headers,
135
+ observe: observe,
136
+ reportProgress: reportProgress
137
+ }
138
+ );
139
+ }
140
+
141
+ /**
142
+ * This lists the secure upload collection which are stored in the database for a specific user (Taken from Bearer token).
143
+ * @param collectionid (optional) The ID of the collection where this secure upload should be filtered.
144
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
145
+ * @param reportProgress flag to report request and response progress.
146
+ */
147
+ public httpGetSecureUploadListOfUser(collectionid?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<SecureUploadEntity>>;
148
+ public httpGetSecureUploadListOfUser(collectionid?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<SecureUploadEntity>>>;
149
+ public httpGetSecureUploadListOfUser(collectionid?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<SecureUploadEntity>>>;
150
+ public httpGetSecureUploadListOfUser(collectionid?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
151
+
152
+ let queryParameters = new HttpParams({encoder: this.encoder});
153
+ if (collectionid !== undefined && collectionid !== null) {
154
+ queryParameters = this.addToHttpParams(queryParameters,
155
+ <any>collectionid, 'collectionid');
156
+ }
157
+
158
+ let headers = this.defaultHeaders;
159
+
160
+ let credential: string | undefined;
161
+ // authentication (msal_auth) required
162
+ credential = this.configuration.lookupCredential('msal_auth');
163
+ if (credential) {
164
+ headers = headers.set('Authorization', 'Bearer ' + credential);
165
+ }
166
+
167
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
168
+ if (httpHeaderAcceptSelected === undefined) {
169
+ // to determine the Accept header
170
+ const httpHeaderAccepts: string[] = [
171
+ 'application/json'
172
+ ];
173
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
174
+ }
175
+ if (httpHeaderAcceptSelected !== undefined) {
176
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
177
+ }
178
+
179
+
180
+ let responseType_: 'text' | 'json' = 'json';
181
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
182
+ responseType_ = 'text';
183
+ }
184
+
185
+ return this.httpClient.get<Array<SecureUploadEntity>>(`${this.configuration.basePath}/secureupload`,
186
+ {
187
+ params: queryParameters,
188
+ responseType: <any>responseType_,
189
+ withCredentials: this.configuration.withCredentials,
190
+ headers: headers,
191
+ observe: observe,
192
+ reportProgress: reportProgress
193
+ }
194
+ );
195
+ }
196
+
197
+ /**
198
+ * Creates an secure upload entry point for a collection
199
+ * @param secureUploadEntity This creates / adds an unique secure upload collection ID and adds the information to the collection (in DB).
200
+ * @param sftpenabled Used to enable sftp secure file upload
201
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
202
+ * @param reportProgress flag to report request and response progress.
203
+ */
204
+ public httpSecureUploadCreateForUser(secureUploadEntity: SecureUploadEntity, sftpenabled?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SecureUploadEntity>;
205
+ public httpSecureUploadCreateForUser(secureUploadEntity: SecureUploadEntity, sftpenabled?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SecureUploadEntity>>;
206
+ public httpSecureUploadCreateForUser(secureUploadEntity: SecureUploadEntity, sftpenabled?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SecureUploadEntity>>;
207
+ public httpSecureUploadCreateForUser(secureUploadEntity: SecureUploadEntity, sftpenabled?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
208
+ if (secureUploadEntity === null || secureUploadEntity === undefined) {
209
+ throw new Error('Required parameter secureUploadEntity was null or undefined when calling httpSecureUploadCreateForUser.');
210
+ }
211
+
212
+ let queryParameters = new HttpParams({encoder: this.encoder});
213
+ if (sftpenabled !== undefined && sftpenabled !== null) {
214
+ queryParameters = this.addToHttpParams(queryParameters,
215
+ <any>sftpenabled, 'sftpenabled');
216
+ }
217
+
218
+ let headers = this.defaultHeaders;
219
+
220
+ let credential: string | undefined;
221
+ // authentication (msal_auth) required
222
+ credential = this.configuration.lookupCredential('msal_auth');
223
+ if (credential) {
224
+ headers = headers.set('Authorization', 'Bearer ' + credential);
225
+ }
226
+
227
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
228
+ if (httpHeaderAcceptSelected === undefined) {
229
+ // to determine the Accept header
230
+ const httpHeaderAccepts: string[] = [
231
+ 'application/json'
232
+ ];
233
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
234
+ }
235
+ if (httpHeaderAcceptSelected !== undefined) {
236
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
237
+ }
238
+
239
+
240
+ // to determine the Content-Type header
241
+ const consumes: string[] = [
242
+ 'application/json'
243
+ ];
244
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
245
+ if (httpContentTypeSelected !== undefined) {
246
+ headers = headers.set('Content-Type', httpContentTypeSelected);
247
+ }
248
+
249
+ let responseType_: 'text' | 'json' = 'json';
250
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
251
+ responseType_ = 'text';
252
+ }
253
+
254
+ return this.httpClient.post<SecureUploadEntity>(`${this.configuration.basePath}/secureupload`,
255
+ secureUploadEntity,
256
+ {
257
+ params: queryParameters,
258
+ responseType: <any>responseType_,
259
+ withCredentials: this.configuration.withCredentials,
260
+ headers: headers,
261
+ observe: observe,
262
+ reportProgress: reportProgress
263
+ }
264
+ );
265
+ }
266
+
267
+ /**
268
+ * Returns one single secure upload entity from ID
269
+ * @param id The ID of the secure upload collection.
270
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
271
+ * @param reportProgress flag to report request and response progress.
272
+ */
273
+ public httpSecureUploadEntityCheckById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SecureUploadEntity>;
274
+ public httpSecureUploadEntityCheckById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SecureUploadEntity>>;
275
+ public httpSecureUploadEntityCheckById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SecureUploadEntity>>;
276
+ public httpSecureUploadEntityCheckById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
277
+ if (id === null || id === undefined) {
278
+ throw new Error('Required parameter id was null or undefined when calling httpSecureUploadEntityCheckById.');
279
+ }
280
+
281
+ let headers = this.defaultHeaders;
282
+
283
+ let credential: string | undefined;
284
+ // authentication (msal_auth) required
285
+ credential = this.configuration.lookupCredential('msal_auth');
286
+ if (credential) {
287
+ headers = headers.set('Authorization', 'Bearer ' + credential);
288
+ }
289
+
290
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
291
+ if (httpHeaderAcceptSelected === undefined) {
292
+ // to determine the Accept header
293
+ const httpHeaderAccepts: string[] = [
294
+ 'application/json'
295
+ ];
296
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
297
+ }
298
+ if (httpHeaderAcceptSelected !== undefined) {
299
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
300
+ }
301
+
302
+
303
+ let responseType_: 'text' | 'json' = 'json';
304
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
305
+ responseType_ = 'text';
306
+ }
307
+
308
+ return this.httpClient.get<SecureUploadEntity>(`${this.configuration.basePath}/secureupload/${encodeURIComponent(String(id))}`,
309
+ {
310
+ responseType: <any>responseType_,
311
+ withCredentials: this.configuration.withCredentials,
312
+ headers: headers,
313
+ observe: observe,
314
+ reportProgress: reportProgress
315
+ }
316
+ );
317
+ }
318
+
319
+ /**
320
+ * Deletes (&#x3D; disables) the secure upload to collection with the given ID.
321
+ * @param id The ID of the secure upload collection.
322
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
323
+ * @param reportProgress flag to report request and response progress.
324
+ */
325
+ public httpSecureUploadToCollectionsDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
326
+ public httpSecureUploadToCollectionsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
327
+ public httpSecureUploadToCollectionsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
328
+ public httpSecureUploadToCollectionsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
329
+ if (id === null || id === undefined) {
330
+ throw new Error('Required parameter id was null or undefined when calling httpSecureUploadToCollectionsDeleteById.');
331
+ }
332
+
333
+ let headers = this.defaultHeaders;
334
+
335
+ let credential: string | undefined;
336
+ // authentication (msal_auth) required
337
+ credential = this.configuration.lookupCredential('msal_auth');
338
+ if (credential) {
339
+ headers = headers.set('Authorization', 'Bearer ' + credential);
340
+ }
341
+
342
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
343
+ if (httpHeaderAcceptSelected === undefined) {
344
+ // to determine the Accept header
345
+ const httpHeaderAccepts: string[] = [
346
+ 'application/json'
347
+ ];
348
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
349
+ }
350
+ if (httpHeaderAcceptSelected !== undefined) {
351
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
352
+ }
353
+
354
+
355
+ let responseType_: 'text' | 'json' = 'json';
356
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
357
+ responseType_ = 'text';
358
+ }
359
+
360
+ return this.httpClient.delete<any>(`${this.configuration.basePath}/secureupload/${encodeURIComponent(String(id))}`,
361
+ {
362
+ responseType: <any>responseType_,
363
+ withCredentials: this.configuration.withCredentials,
364
+ headers: headers,
365
+ observe: observe,
366
+ reportProgress: reportProgress
367
+ }
368
+ );
369
+ }
370
+
371
+ }
@@ -0,0 +1,218 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private Functions
3
+ * <h1>Agravity API Reference</h1>This is the full 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>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><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 { AgravityInfoResponse } from '../model/models';
22
+ import { SignalRConnectionInfo } from '../model/models';
23
+
24
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
25
+ import { AgravityConfiguration } from '../configuration';
26
+
27
+
28
+
29
+ @Injectable({
30
+ providedIn: 'root'
31
+ })
32
+ export class SignalRConnectionManagementService {
33
+
34
+ protected basePath = 'http://localhost:7071/api';
35
+ public defaultHeaders = new HttpHeaders();
36
+ public configuration = new AgravityConfiguration();
37
+ public encoder: HttpParameterCodec;
38
+
39
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
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
+ * This endpoint delivers the connection data for a client.
91
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
92
+ * @param reportProgress flag to report request and response progress.
93
+ */
94
+ public httpSignalRNegotiate(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SignalRConnectionInfo>;
95
+ public httpSignalRNegotiate(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SignalRConnectionInfo>>;
96
+ public httpSignalRNegotiate(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SignalRConnectionInfo>>;
97
+ public httpSignalRNegotiate(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
98
+
99
+ let headers = this.defaultHeaders;
100
+
101
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
102
+ if (httpHeaderAcceptSelected === undefined) {
103
+ // to determine the Accept header
104
+ const httpHeaderAccepts: string[] = [
105
+ 'application/json'
106
+ ];
107
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
108
+ }
109
+ if (httpHeaderAcceptSelected !== undefined) {
110
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
111
+ }
112
+
113
+
114
+ let responseType_: 'text' | 'json' = 'json';
115
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
116
+ responseType_ = 'text';
117
+ }
118
+
119
+ return this.httpClient.post<SignalRConnectionInfo>(`${this.configuration.basePath}/signalr/negotiate`,
120
+ null,
121
+ {
122
+ responseType: <any>responseType_,
123
+ withCredentials: this.configuration.withCredentials,
124
+ headers: headers,
125
+ observe: observe,
126
+ reportProgress: reportProgress
127
+ }
128
+ );
129
+ }
130
+
131
+ /**
132
+ * Allowes a client via rest to send messages to clients.
133
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
134
+ * @param reportProgress flag to report request and response progress.
135
+ */
136
+ public httpSignalRSendMessage(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
137
+ public httpSignalRSendMessage(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
138
+ public httpSignalRSendMessage(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
139
+ public httpSignalRSendMessage(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
140
+
141
+ let headers = this.defaultHeaders;
142
+
143
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
144
+ if (httpHeaderAcceptSelected === undefined) {
145
+ // to determine the Accept header
146
+ const httpHeaderAccepts: string[] = [
147
+ 'application/json'
148
+ ];
149
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
150
+ }
151
+ if (httpHeaderAcceptSelected !== undefined) {
152
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
153
+ }
154
+
155
+
156
+ let responseType_: 'text' | 'json' = 'json';
157
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
158
+ responseType_ = 'text';
159
+ }
160
+
161
+ return this.httpClient.post<AgravityInfoResponse>(`${this.configuration.basePath}/signalr/messages`,
162
+ null,
163
+ {
164
+ responseType: <any>responseType_,
165
+ withCredentials: this.configuration.withCredentials,
166
+ headers: headers,
167
+ observe: observe,
168
+ reportProgress: reportProgress
169
+ }
170
+ );
171
+ }
172
+
173
+ /**
174
+ * Allowes a client via rest to send messages to one client (user)
175
+ * @param id The ID of the user to which the message should be sent to.
176
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
177
+ * @param reportProgress flag to report request and response progress.
178
+ */
179
+ public httpSignalRSendMessageToUser(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
180
+ public httpSignalRSendMessageToUser(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
181
+ public httpSignalRSendMessageToUser(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
182
+ public httpSignalRSendMessageToUser(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
183
+ if (id === null || id === undefined) {
184
+ throw new Error('Required parameter id was null or undefined when calling httpSignalRSendMessageToUser.');
185
+ }
186
+
187
+ let headers = this.defaultHeaders;
188
+
189
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
190
+ if (httpHeaderAcceptSelected === undefined) {
191
+ // to determine the Accept header
192
+ const httpHeaderAccepts: string[] = [
193
+ 'application/json'
194
+ ];
195
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
196
+ }
197
+ if (httpHeaderAcceptSelected !== undefined) {
198
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
199
+ }
200
+
201
+
202
+ let responseType_: 'text' | 'json' = 'json';
203
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
204
+ responseType_ = 'text';
205
+ }
206
+
207
+ return this.httpClient.get<AgravityInfoResponse>(`${this.configuration.basePath}/signalr/info/${encodeURIComponent(String(id))}`,
208
+ {
209
+ responseType: <any>responseType_,
210
+ withCredentials: this.configuration.withCredentials,
211
+ headers: headers,
212
+ observe: observe,
213
+ reportProgress: reportProgress
214
+ }
215
+ );
216
+ }
217
+
218
+ }