@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,385 @@
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 { QuickShare } from '../model/models';
22
+ import { QuickShareFull } 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 QuickshareManagementService {
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 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 credential: string | undefined;
123
+ // authentication (msal_auth) required
124
+ credential = this.configuration.lookupCredential('msal_auth');
125
+ if (credential) {
126
+ headers = headers.set('Authorization', 'Bearer ' + credential);
127
+ }
128
+
129
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
130
+ if (httpHeaderAcceptSelected === undefined) {
131
+ // to determine the Accept header
132
+ const httpHeaderAccepts: string[] = [
133
+ 'application/json'
134
+ ];
135
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
136
+ }
137
+ if (httpHeaderAcceptSelected !== undefined) {
138
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
139
+ }
140
+
141
+
142
+ let responseType_: 'text' | 'json' = 'json';
143
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
144
+ responseType_ = 'text';
145
+ }
146
+
147
+ return this.httpClient.get<QuickShareFull>(`${this.configuration.basePath}/quickshares/${encodeURIComponent(String(id))}`,
148
+ {
149
+ params: queryParameters,
150
+ responseType: <any>responseType_,
151
+ withCredentials: this.configuration.withCredentials,
152
+ headers: headers,
153
+ observe: observe,
154
+ reportProgress: reportProgress
155
+ }
156
+ );
157
+ }
158
+
159
+ /**
160
+ * Creates an additional quick share
161
+ * @param quickShare This creates / adds an unique quick share ID and adds the information to the collection (in DB).
162
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
163
+ * @param reportProgress flag to report request and response progress.
164
+ */
165
+ public httpQuickSharesCreate(quickShare: QuickShare, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<QuickShare>;
166
+ public httpQuickSharesCreate(quickShare: QuickShare, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<QuickShare>>;
167
+ public httpQuickSharesCreate(quickShare: QuickShare, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<QuickShare>>;
168
+ public httpQuickSharesCreate(quickShare: QuickShare, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
169
+ if (quickShare === null || quickShare === undefined) {
170
+ throw new Error('Required parameter quickShare was null or undefined when calling httpQuickSharesCreate.');
171
+ }
172
+
173
+ let headers = this.defaultHeaders;
174
+
175
+ let credential: string | undefined;
176
+ // authentication (msal_auth) required
177
+ credential = this.configuration.lookupCredential('msal_auth');
178
+ if (credential) {
179
+ headers = headers.set('Authorization', 'Bearer ' + credential);
180
+ }
181
+
182
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
183
+ if (httpHeaderAcceptSelected === undefined) {
184
+ // to determine the Accept header
185
+ const httpHeaderAccepts: string[] = [
186
+ 'application/json'
187
+ ];
188
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
189
+ }
190
+ if (httpHeaderAcceptSelected !== undefined) {
191
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
192
+ }
193
+
194
+
195
+ // to determine the Content-Type header
196
+ const consumes: string[] = [
197
+ 'application/json'
198
+ ];
199
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
200
+ if (httpContentTypeSelected !== undefined) {
201
+ headers = headers.set('Content-Type', httpContentTypeSelected);
202
+ }
203
+
204
+ let responseType_: 'text' | 'json' = 'json';
205
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
206
+ responseType_ = 'text';
207
+ }
208
+
209
+ return this.httpClient.post<QuickShare>(`${this.configuration.basePath}/quickshares`,
210
+ quickShare,
211
+ {
212
+ responseType: <any>responseType_,
213
+ withCredentials: this.configuration.withCredentials,
214
+ headers: headers,
215
+ observe: observe,
216
+ reportProgress: reportProgress
217
+ }
218
+ );
219
+ }
220
+
221
+ /**
222
+ * Dele tes all the quick shares of a specific user. If no userid is added, the user from the OAuth2 token is used.
223
+ * @param userid (Optional): The ID of the user. Only admins can query other users quick shares.
224
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
225
+ * @param reportProgress flag to report request and response progress.
226
+ */
227
+ public httpQuickSharesDelete(userid?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
228
+ public httpQuickSharesDelete(userid?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
229
+ public httpQuickSharesDelete(userid?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
230
+ public httpQuickSharesDelete(userid?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
231
+
232
+ let queryParameters = new HttpParams({encoder: this.encoder});
233
+ if (userid !== undefined && userid !== null) {
234
+ queryParameters = this.addToHttpParams(queryParameters,
235
+ <any>userid, 'userid');
236
+ }
237
+
238
+ let headers = this.defaultHeaders;
239
+
240
+ let credential: string | undefined;
241
+ // authentication (msal_auth) required
242
+ credential = this.configuration.lookupCredential('msal_auth');
243
+ if (credential) {
244
+ headers = headers.set('Authorization', 'Bearer ' + credential);
245
+ }
246
+
247
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
248
+ if (httpHeaderAcceptSelected === undefined) {
249
+ // to determine the Accept header
250
+ const httpHeaderAccepts: string[] = [
251
+ 'application/json'
252
+ ];
253
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
254
+ }
255
+ if (httpHeaderAcceptSelected !== undefined) {
256
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
257
+ }
258
+
259
+
260
+ let responseType_: 'text' | 'json' = 'json';
261
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
262
+ responseType_ = 'text';
263
+ }
264
+
265
+ return this.httpClient.delete<any>(`${this.configuration.basePath}/quickshares`,
266
+ {
267
+ params: queryParameters,
268
+ responseType: <any>responseType_,
269
+ withCredentials: this.configuration.withCredentials,
270
+ headers: headers,
271
+ observe: observe,
272
+ reportProgress: reportProgress
273
+ }
274
+ );
275
+ }
276
+
277
+ /**
278
+ * Deletes the quick share with the given ID.
279
+ * @param id The ID of the quick share.
280
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
281
+ * @param reportProgress flag to report request and response progress.
282
+ */
283
+ public httpQuickSharesDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
284
+ public httpQuickSharesDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
285
+ public httpQuickSharesDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
286
+ public httpQuickSharesDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
287
+ if (id === null || id === undefined) {
288
+ throw new Error('Required parameter id was null or undefined when calling httpQuickSharesDeleteById.');
289
+ }
290
+
291
+ let headers = this.defaultHeaders;
292
+
293
+ let credential: string | undefined;
294
+ // authentication (msal_auth) required
295
+ credential = this.configuration.lookupCredential('msal_auth');
296
+ if (credential) {
297
+ headers = headers.set('Authorization', 'Bearer ' + credential);
298
+ }
299
+
300
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
301
+ if (httpHeaderAcceptSelected === undefined) {
302
+ // to determine the Accept header
303
+ const httpHeaderAccepts: string[] = [
304
+ 'application/json'
305
+ ];
306
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
307
+ }
308
+ if (httpHeaderAcceptSelected !== undefined) {
309
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
310
+ }
311
+
312
+
313
+ let responseType_: 'text' | 'json' = 'json';
314
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
315
+ responseType_ = 'text';
316
+ }
317
+
318
+ return this.httpClient.delete<any>(`${this.configuration.basePath}/quickshares/${encodeURIComponent(String(id))}`,
319
+ {
320
+ responseType: <any>responseType_,
321
+ withCredentials: this.configuration.withCredentials,
322
+ headers: headers,
323
+ observe: observe,
324
+ reportProgress: reportProgress
325
+ }
326
+ );
327
+ }
328
+
329
+ /**
330
+ * This lists all the quick shares which are stored in the database for a specific user.
331
+ * @param userid (Optional): The ID of the user. Only admins can query other users quick shares.
332
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
333
+ * @param reportProgress flag to report request and response progress.
334
+ */
335
+ public httpQuickSharesGet(userid?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<QuickShare>>;
336
+ public httpQuickSharesGet(userid?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<QuickShare>>>;
337
+ public httpQuickSharesGet(userid?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<QuickShare>>>;
338
+ public httpQuickSharesGet(userid?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
339
+
340
+ let queryParameters = new HttpParams({encoder: this.encoder});
341
+ if (userid !== undefined && userid !== null) {
342
+ queryParameters = this.addToHttpParams(queryParameters,
343
+ <any>userid, 'userid');
344
+ }
345
+
346
+ let headers = this.defaultHeaders;
347
+
348
+ let credential: string | undefined;
349
+ // authentication (msal_auth) required
350
+ credential = this.configuration.lookupCredential('msal_auth');
351
+ if (credential) {
352
+ headers = headers.set('Authorization', 'Bearer ' + credential);
353
+ }
354
+
355
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
356
+ if (httpHeaderAcceptSelected === undefined) {
357
+ // to determine the Accept header
358
+ const httpHeaderAccepts: string[] = [
359
+ 'application/json'
360
+ ];
361
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
362
+ }
363
+ if (httpHeaderAcceptSelected !== undefined) {
364
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
365
+ }
366
+
367
+
368
+ let responseType_: 'text' | 'json' = 'json';
369
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
370
+ responseType_ = 'text';
371
+ }
372
+
373
+ return this.httpClient.get<Array<QuickShare>>(`${this.configuration.basePath}/quickshares`,
374
+ {
375
+ params: queryParameters,
376
+ responseType: <any>responseType_,
377
+ withCredentials: this.configuration.withCredentials,
378
+ headers: headers,
379
+ observe: observe,
380
+ reportProgress: reportProgress
381
+ }
382
+ );
383
+ }
384
+
385
+ }
@@ -0,0 +1,271 @@
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 { SavedSearch } from '../model/models';
22
+
23
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
+ import { AgravityConfiguration } from '../configuration';
25
+
26
+
27
+
28
+ @Injectable({
29
+ providedIn: 'root'
30
+ })
31
+ export class SavedSearchManagementService {
32
+
33
+ protected basePath = 'http://localhost:7071/api';
34
+ public defaultHeaders = new HttpHeaders();
35
+ public configuration = new AgravityConfiguration();
36
+ public encoder: HttpParameterCodec;
37
+
38
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
39
+ if (configuration) {
40
+ this.configuration = configuration;
41
+ }
42
+ if (typeof this.configuration.basePath !== 'string') {
43
+ if (typeof basePath !== 'string') {
44
+ basePath = this.basePath;
45
+ }
46
+ this.configuration.basePath = basePath;
47
+ }
48
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
+ }
50
+
51
+
52
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
53
+ if (typeof value === "object" && value instanceof Date === false) {
54
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
55
+ } else {
56
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
57
+ }
58
+ return httpParams;
59
+ }
60
+
61
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
62
+ if (value == null) {
63
+ return httpParams;
64
+ }
65
+
66
+ if (typeof value === "object") {
67
+ if (Array.isArray(value)) {
68
+ (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
69
+ } else if (value instanceof Date) {
70
+ if (key != null) {
71
+ httpParams = httpParams.append(key,
72
+ (value as Date).toISOString().substr(0, 10));
73
+ } else {
74
+ throw Error("key may not be null if value is Date");
75
+ }
76
+ } else {
77
+ Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
78
+ httpParams, value[k], key != null ? `${key}.${k}` : k));
79
+ }
80
+ } else if (key != null) {
81
+ httpParams = httpParams.append(key, value);
82
+ } else {
83
+ throw Error("key may not be null if value is not object or array");
84
+ }
85
+ return httpParams;
86
+ }
87
+
88
+ /**
89
+ * This endpoint creates one saved search entry in the database.
90
+ * @param savedSearch This endpoint creates an unique saved search ID and adds the information to the database.
91
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
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 httpSavedSearchesCreate(savedSearch: SavedSearch, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<SavedSearch>;
96
+ public httpSavedSearchesCreate(savedSearch: SavedSearch, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<SavedSearch>>;
97
+ public httpSavedSearchesCreate(savedSearch: SavedSearch, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<SavedSearch>>;
98
+ public httpSavedSearchesCreate(savedSearch: SavedSearch, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
99
+ if (savedSearch === null || savedSearch === undefined) {
100
+ throw new Error('Required parameter savedSearch was null or undefined when calling httpSavedSearchesCreate.');
101
+ }
102
+
103
+ let queryParameters = new HttpParams({encoder: this.encoder});
104
+ if (translations !== undefined && translations !== null) {
105
+ queryParameters = this.addToHttpParams(queryParameters,
106
+ <any>translations, 'translations');
107
+ }
108
+
109
+ let headers = this.defaultHeaders;
110
+
111
+ let credential: string | undefined;
112
+ // authentication (msal_auth) required
113
+ credential = this.configuration.lookupCredential('msal_auth');
114
+ if (credential) {
115
+ headers = headers.set('Authorization', 'Bearer ' + credential);
116
+ }
117
+
118
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
119
+ if (httpHeaderAcceptSelected === undefined) {
120
+ // to determine the Accept header
121
+ const httpHeaderAccepts: string[] = [
122
+ 'application/json'
123
+ ];
124
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
125
+ }
126
+ if (httpHeaderAcceptSelected !== undefined) {
127
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
128
+ }
129
+
130
+
131
+ // to determine the Content-Type header
132
+ const consumes: string[] = [
133
+ 'application/json'
134
+ ];
135
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
136
+ if (httpContentTypeSelected !== undefined) {
137
+ headers = headers.set('Content-Type', httpContentTypeSelected);
138
+ }
139
+
140
+ let responseType_: 'text' | 'json' = 'json';
141
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
142
+ responseType_ = 'text';
143
+ }
144
+
145
+ return this.httpClient.post<SavedSearch>(`${this.configuration.basePath}/savedsearches`,
146
+ savedSearch,
147
+ {
148
+ params: queryParameters,
149
+ responseType: <any>responseType_,
150
+ withCredentials: this.configuration.withCredentials,
151
+ headers: headers,
152
+ observe: observe,
153
+ reportProgress: reportProgress
154
+ }
155
+ );
156
+ }
157
+
158
+ /**
159
+ * This endpoint deletes a single saved search.
160
+ * @param id The ID of the saved search.
161
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
162
+ * @param reportProgress flag to report request and response progress.
163
+ */
164
+ public httpSavedSearchesDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
165
+ public httpSavedSearchesDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
166
+ public httpSavedSearchesDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
167
+ public httpSavedSearchesDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
168
+ if (id === null || id === undefined) {
169
+ throw new Error('Required parameter id was null or undefined when calling httpSavedSearchesDeleteById.');
170
+ }
171
+
172
+ let headers = this.defaultHeaders;
173
+
174
+ let credential: string | undefined;
175
+ // authentication (msal_auth) required
176
+ credential = this.configuration.lookupCredential('msal_auth');
177
+ if (credential) {
178
+ headers = headers.set('Authorization', 'Bearer ' + credential);
179
+ }
180
+
181
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
182
+ if (httpHeaderAcceptSelected === undefined) {
183
+ // to determine the Accept header
184
+ const httpHeaderAccepts: string[] = [
185
+ 'application/json'
186
+ ];
187
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
188
+ }
189
+ if (httpHeaderAcceptSelected !== undefined) {
190
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
191
+ }
192
+
193
+
194
+ let responseType_: 'text' | 'json' = 'json';
195
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
196
+ responseType_ = 'text';
197
+ }
198
+
199
+ return this.httpClient.delete<any>(`${this.configuration.basePath}/savedsearches/${encodeURIComponent(String(id))}`,
200
+ {
201
+ responseType: <any>responseType_,
202
+ withCredentials: this.configuration.withCredentials,
203
+ headers: headers,
204
+ observe: observe,
205
+ reportProgress: reportProgress
206
+ }
207
+ );
208
+ }
209
+
210
+ /**
211
+ * This endpoint lists all saved searches in database.
212
+ * @param external This parameter filters out all saved searches on basis this boolean.
213
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
214
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
215
+ * @param reportProgress flag to report request and response progress.
216
+ */
217
+ public httpSavedSearchesGetAll(external?: boolean, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<SavedSearch>>;
218
+ public httpSavedSearchesGetAll(external?: boolean, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<SavedSearch>>>;
219
+ public httpSavedSearchesGetAll(external?: boolean, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<SavedSearch>>>;
220
+ public httpSavedSearchesGetAll(external?: boolean, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
221
+
222
+ let queryParameters = new HttpParams({encoder: this.encoder});
223
+ if (external !== undefined && external !== null) {
224
+ queryParameters = this.addToHttpParams(queryParameters,
225
+ <any>external, 'external');
226
+ }
227
+ if (translations !== undefined && translations !== null) {
228
+ queryParameters = this.addToHttpParams(queryParameters,
229
+ <any>translations, 'translations');
230
+ }
231
+
232
+ let headers = this.defaultHeaders;
233
+
234
+ let credential: string | undefined;
235
+ // authentication (msal_auth) required
236
+ credential = this.configuration.lookupCredential('msal_auth');
237
+ if (credential) {
238
+ headers = headers.set('Authorization', 'Bearer ' + credential);
239
+ }
240
+
241
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
242
+ if (httpHeaderAcceptSelected === undefined) {
243
+ // to determine the Accept header
244
+ const httpHeaderAccepts: string[] = [
245
+ 'application/json'
246
+ ];
247
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
248
+ }
249
+ if (httpHeaderAcceptSelected !== undefined) {
250
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
251
+ }
252
+
253
+
254
+ let responseType_: 'text' | 'json' = 'json';
255
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
256
+ responseType_ = 'text';
257
+ }
258
+
259
+ return this.httpClient.get<Array<SavedSearch>>(`${this.configuration.basePath}/savedsearches`,
260
+ {
261
+ params: queryParameters,
262
+ responseType: <any>responseType_,
263
+ withCredentials: this.configuration.withCredentials,
264
+ headers: headers,
265
+ observe: observe,
266
+ reportProgress: reportProgress
267
+ }
268
+ );
269
+ }
270
+
271
+ }