@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,737 @@
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 { Asset } from '../model/models';
23
+ import { AssetBulkUpdate } from '../model/models';
24
+ import { AssetPageResult } from '../model/models';
25
+
26
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
27
+ import { AgravityConfiguration } from '../configuration';
28
+
29
+
30
+
31
+ @Injectable({
32
+ providedIn: 'root'
33
+ })
34
+ export class AssetManagementService {
35
+
36
+ protected basePath = 'http://localhost:7071/api';
37
+ public defaultHeaders = new HttpHeaders();
38
+ public configuration = new AgravityConfiguration();
39
+ public encoder: HttpParameterCodec;
40
+
41
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
42
+ if (configuration) {
43
+ this.configuration = configuration;
44
+ }
45
+ if (typeof this.configuration.basePath !== 'string') {
46
+ if (typeof basePath !== 'string') {
47
+ basePath = this.basePath;
48
+ }
49
+ this.configuration.basePath = basePath;
50
+ }
51
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
52
+ }
53
+
54
+ /**
55
+ * @param consumes string[] mime-types
56
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
57
+ */
58
+ private canConsumeForm(consumes: string[]): boolean {
59
+ const form = 'multipart/form-data';
60
+ for (const consume of consumes) {
61
+ if (form === consume) {
62
+ return true;
63
+ }
64
+ }
65
+ return false;
66
+ }
67
+
68
+ private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
69
+ if (typeof value === "object" && value instanceof Date === false) {
70
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
71
+ } else {
72
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
73
+ }
74
+ return httpParams;
75
+ }
76
+
77
+ private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
78
+ if (value == null) {
79
+ return httpParams;
80
+ }
81
+
82
+ if (typeof value === "object") {
83
+ if (Array.isArray(value)) {
84
+ (value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
85
+ } else if (value instanceof Date) {
86
+ if (key != null) {
87
+ httpParams = httpParams.append(key,
88
+ (value as Date).toISOString().substr(0, 10));
89
+ } else {
90
+ throw Error("key may not be null if value is Date");
91
+ }
92
+ } else {
93
+ Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
94
+ httpParams, value[k], key != null ? `${key}.${k}` : k));
95
+ }
96
+ } else if (key != null) {
97
+ httpParams = httpParams.append(key, value);
98
+ } else {
99
+ throw Error("key may not be null if value is not object or array");
100
+ }
101
+ return httpParams;
102
+ }
103
+
104
+ /**
105
+ * @param name
106
+ * @param collectionId
107
+ * @param file
108
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
109
+ * @param reportProgress flag to report request and response progress.
110
+ */
111
+ public httpAssetUploadFile(name?: string, collectionId?: string, file?: Blob, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Asset>;
112
+ public httpAssetUploadFile(name?: string, collectionId?: string, file?: Blob, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Asset>>;
113
+ public httpAssetUploadFile(name?: string, collectionId?: string, file?: Blob, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Asset>>;
114
+ public httpAssetUploadFile(name?: string, collectionId?: string, file?: Blob, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
115
+
116
+ let headers = this.defaultHeaders;
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
+ // to determine the Content-Type header
131
+ const consumes: string[] = [
132
+ 'multipart/form-data'
133
+ ];
134
+
135
+ const canConsumeForm = this.canConsumeForm(consumes);
136
+
137
+ let formParams: { append(param: string, value: any): any; };
138
+ let useForm = false;
139
+ let convertFormParamsToString = false;
140
+ // use FormData to transmit files using content-type "multipart/form-data"
141
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
142
+ useForm = canConsumeForm;
143
+ if (useForm) {
144
+ formParams = new FormData();
145
+ } else {
146
+ formParams = new HttpParams({encoder: this.encoder});
147
+ }
148
+
149
+ if (name !== undefined) {
150
+ formParams = formParams.append('name', <any>name) as any || formParams;
151
+ }
152
+ if (collectionId !== undefined) {
153
+ formParams = formParams.append('collectionId', <any>collectionId) as any || formParams;
154
+ }
155
+ if (file !== undefined) {
156
+ formParams = formParams.append('file', <any>file) as any || formParams;
157
+ }
158
+
159
+ let responseType_: 'text' | 'json' = 'json';
160
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
161
+ responseType_ = 'text';
162
+ }
163
+
164
+ return this.httpClient.post<Asset>(`${this.configuration.basePath}/assetsupload`,
165
+ convertFormParamsToString ? formParams.toString() : formParams,
166
+ {
167
+ responseType: <any>responseType_,
168
+ withCredentials: this.configuration.withCredentials,
169
+ headers: headers,
170
+ observe: observe,
171
+ reportProgress: reportProgress
172
+ }
173
+ );
174
+ }
175
+
176
+ /**
177
+ * @param assetBulkUpdate The body has to be valid json which contains the reference asset, which for which collection (reference for collection type items) and which assets are to update. The containing keywords (tags) will be removed. Only custom values are replaces if they are part of the given collection id.
178
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
179
+ * @param reportProgress flag to report request and response progress.
180
+ */
181
+ public httpAssetsBulkDeleteUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
182
+ public httpAssetsBulkDeleteUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
183
+ public httpAssetsBulkDeleteUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
184
+ public httpAssetsBulkDeleteUpdate(assetBulkUpdate: AssetBulkUpdate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
185
+ if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
186
+ throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkDeleteUpdate.');
187
+ }
188
+
189
+ let headers = this.defaultHeaders;
190
+
191
+ let credential: string | undefined;
192
+ // authentication (msal_auth) required
193
+ credential = this.configuration.lookupCredential('msal_auth');
194
+ if (credential) {
195
+ headers = headers.set('Authorization', 'Bearer ' + credential);
196
+ }
197
+
198
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
199
+ if (httpHeaderAcceptSelected === undefined) {
200
+ // to determine the Accept header
201
+ const httpHeaderAccepts: string[] = [
202
+ 'application/json'
203
+ ];
204
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
205
+ }
206
+ if (httpHeaderAcceptSelected !== undefined) {
207
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
208
+ }
209
+
210
+
211
+ // to determine the Content-Type header
212
+ const consumes: string[] = [
213
+ 'application/json'
214
+ ];
215
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
216
+ if (httpContentTypeSelected !== undefined) {
217
+ headers = headers.set('Content-Type', httpContentTypeSelected);
218
+ }
219
+
220
+ let responseType_: 'text' | 'json' = 'json';
221
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
222
+ responseType_ = 'text';
223
+ }
224
+
225
+ return this.httpClient.delete<AgravityInfoResponse>(`${this.configuration.basePath}/assetsbulkupdate`,
226
+ {
227
+ responseType: <any>responseType_,
228
+ withCredentials: this.configuration.withCredentials,
229
+ headers: headers,
230
+ observe: observe,
231
+ reportProgress: reportProgress,
232
+ body: assetBulkUpdate
233
+ }
234
+ );
235
+ }
236
+
237
+ /**
238
+ * @param assetBulkUpdate The body has to be valid json which contains the reference asset, which for which collection (reference for collection type items) and which assets are to update. The containing keywords (tags) will be distinctly added (no removal). Only custom values are replaces if they are part of the given collection id.
239
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
240
+ * @param reportProgress flag to report request and response progress.
241
+ */
242
+ public httpAssetsBulkPostUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
243
+ public httpAssetsBulkPostUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
244
+ public httpAssetsBulkPostUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
245
+ public httpAssetsBulkPostUpdate(assetBulkUpdate: AssetBulkUpdate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
246
+ if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
247
+ throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkPostUpdate.');
248
+ }
249
+
250
+ let headers = this.defaultHeaders;
251
+
252
+ let credential: string | undefined;
253
+ // authentication (msal_auth) required
254
+ credential = this.configuration.lookupCredential('msal_auth');
255
+ if (credential) {
256
+ headers = headers.set('Authorization', 'Bearer ' + credential);
257
+ }
258
+
259
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
260
+ if (httpHeaderAcceptSelected === undefined) {
261
+ // to determine the Accept header
262
+ const httpHeaderAccepts: string[] = [
263
+ 'application/json'
264
+ ];
265
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
266
+ }
267
+ if (httpHeaderAcceptSelected !== undefined) {
268
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
269
+ }
270
+
271
+
272
+ // to determine the Content-Type header
273
+ const consumes: string[] = [
274
+ 'application/json'
275
+ ];
276
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
277
+ if (httpContentTypeSelected !== undefined) {
278
+ headers = headers.set('Content-Type', httpContentTypeSelected);
279
+ }
280
+
281
+ let responseType_: 'text' | 'json' = 'json';
282
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
283
+ responseType_ = 'text';
284
+ }
285
+
286
+ return this.httpClient.post<AgravityInfoResponse>(`${this.configuration.basePath}/assetsbulkupdate`,
287
+ assetBulkUpdate,
288
+ {
289
+ responseType: <any>responseType_,
290
+ withCredentials: this.configuration.withCredentials,
291
+ headers: headers,
292
+ observe: observe,
293
+ reportProgress: reportProgress
294
+ }
295
+ );
296
+ }
297
+
298
+ /**
299
+ * @param assetBulkUpdate The body has to be valid json which contains the reference asset, a collection (used as reference for collection type items) and which asset ids are to update. The containing keywords (tags) will be fully replaced. ONLY custom items are replaced which are in body (others in same collection will be ignored)!Only custom values are replaces if they are part of the given collection id.
300
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
301
+ * @param reportProgress flag to report request and response progress.
302
+ */
303
+ public httpAssetsBulkPutUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AgravityInfoResponse>;
304
+ public httpAssetsBulkPutUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AgravityInfoResponse>>;
305
+ public httpAssetsBulkPutUpdate(assetBulkUpdate: AssetBulkUpdate, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AgravityInfoResponse>>;
306
+ public httpAssetsBulkPutUpdate(assetBulkUpdate: AssetBulkUpdate, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
307
+ if (assetBulkUpdate === null || assetBulkUpdate === undefined) {
308
+ throw new Error('Required parameter assetBulkUpdate was null or undefined when calling httpAssetsBulkPutUpdate.');
309
+ }
310
+
311
+ let headers = this.defaultHeaders;
312
+
313
+ let credential: string | undefined;
314
+ // authentication (msal_auth) required
315
+ credential = this.configuration.lookupCredential('msal_auth');
316
+ if (credential) {
317
+ headers = headers.set('Authorization', 'Bearer ' + credential);
318
+ }
319
+
320
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
321
+ if (httpHeaderAcceptSelected === undefined) {
322
+ // to determine the Accept header
323
+ const httpHeaderAccepts: string[] = [
324
+ 'application/json'
325
+ ];
326
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
327
+ }
328
+ if (httpHeaderAcceptSelected !== undefined) {
329
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
330
+ }
331
+
332
+
333
+ // to determine the Content-Type header
334
+ const consumes: string[] = [
335
+ 'application/json'
336
+ ];
337
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
338
+ if (httpContentTypeSelected !== undefined) {
339
+ headers = headers.set('Content-Type', httpContentTypeSelected);
340
+ }
341
+
342
+ let responseType_: 'text' | 'json' = 'json';
343
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
344
+ responseType_ = 'text';
345
+ }
346
+
347
+ return this.httpClient.put<AgravityInfoResponse>(`${this.configuration.basePath}/assetsbulkupdate`,
348
+ assetBulkUpdate,
349
+ {
350
+ responseType: <any>responseType_,
351
+ withCredentials: this.configuration.withCredentials,
352
+ headers: headers,
353
+ observe: observe,
354
+ reportProgress: reportProgress
355
+ }
356
+ );
357
+ }
358
+
359
+ /**
360
+ * This endpoint creates one asset entry in the database.
361
+ * @param collectionid The ID of the collection where this assets should be assigned.
362
+ * @param asset This endpoint creates an unique asset ID and adds the information to the database.
363
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
364
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
365
+ * @param reportProgress flag to report request and response progress.
366
+ */
367
+ public httpAssetsCreate(collectionid: string, asset: Asset, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Asset>;
368
+ public httpAssetsCreate(collectionid: string, asset: Asset, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Asset>>;
369
+ public httpAssetsCreate(collectionid: string, asset: Asset, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Asset>>;
370
+ public httpAssetsCreate(collectionid: string, asset: Asset, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
371
+ if (collectionid === null || collectionid === undefined) {
372
+ throw new Error('Required parameter collectionid was null or undefined when calling httpAssetsCreate.');
373
+ }
374
+ if (asset === null || asset === undefined) {
375
+ throw new Error('Required parameter asset was null or undefined when calling httpAssetsCreate.');
376
+ }
377
+
378
+ let queryParameters = new HttpParams({encoder: this.encoder});
379
+ if (collectionid !== undefined && collectionid !== null) {
380
+ queryParameters = this.addToHttpParams(queryParameters,
381
+ <any>collectionid, 'collectionid');
382
+ }
383
+ if (translations !== undefined && translations !== null) {
384
+ queryParameters = this.addToHttpParams(queryParameters,
385
+ <any>translations, 'translations');
386
+ }
387
+
388
+ let headers = this.defaultHeaders;
389
+
390
+ let credential: string | undefined;
391
+ // authentication (msal_auth) required
392
+ credential = this.configuration.lookupCredential('msal_auth');
393
+ if (credential) {
394
+ headers = headers.set('Authorization', 'Bearer ' + credential);
395
+ }
396
+
397
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
398
+ if (httpHeaderAcceptSelected === undefined) {
399
+ // to determine the Accept header
400
+ const httpHeaderAccepts: string[] = [
401
+ 'application/json'
402
+ ];
403
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
404
+ }
405
+ if (httpHeaderAcceptSelected !== undefined) {
406
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
407
+ }
408
+
409
+
410
+ // to determine the Content-Type header
411
+ const consumes: string[] = [
412
+ 'application/json'
413
+ ];
414
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
415
+ if (httpContentTypeSelected !== undefined) {
416
+ headers = headers.set('Content-Type', httpContentTypeSelected);
417
+ }
418
+
419
+ let responseType_: 'text' | 'json' = 'json';
420
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
421
+ responseType_ = 'text';
422
+ }
423
+
424
+ return this.httpClient.post<Asset>(`${this.configuration.basePath}/assets`,
425
+ asset,
426
+ {
427
+ params: queryParameters,
428
+ responseType: <any>responseType_,
429
+ withCredentials: this.configuration.withCredentials,
430
+ headers: headers,
431
+ observe: observe,
432
+ reportProgress: reportProgress
433
+ }
434
+ );
435
+ }
436
+
437
+ /**
438
+ * @param id The ID of the asset.
439
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
440
+ * @param reportProgress flag to report request and response progress.
441
+ */
442
+ public httpAssetsDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<any>;
443
+ public httpAssetsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<any>>;
444
+ public httpAssetsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<any>>;
445
+ public httpAssetsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
446
+ if (id === null || id === undefined) {
447
+ throw new Error('Required parameter id was null or undefined when calling httpAssetsDeleteById.');
448
+ }
449
+
450
+ let headers = this.defaultHeaders;
451
+
452
+ let credential: string | undefined;
453
+ // authentication (msal_auth) required
454
+ credential = this.configuration.lookupCredential('msal_auth');
455
+ if (credential) {
456
+ headers = headers.set('Authorization', 'Bearer ' + credential);
457
+ }
458
+
459
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
460
+ if (httpHeaderAcceptSelected === undefined) {
461
+ // to determine the Accept header
462
+ const httpHeaderAccepts: string[] = [
463
+ 'application/json'
464
+ ];
465
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
466
+ }
467
+ if (httpHeaderAcceptSelected !== undefined) {
468
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
469
+ }
470
+
471
+
472
+ let responseType_: 'text' | 'json' = 'json';
473
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
474
+ responseType_ = 'text';
475
+ }
476
+
477
+ return this.httpClient.delete<any>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}`,
478
+ {
479
+ responseType: <any>responseType_,
480
+ withCredentials: this.configuration.withCredentials,
481
+ headers: headers,
482
+ observe: observe,
483
+ reportProgress: reportProgress
484
+ }
485
+ );
486
+ }
487
+
488
+ /**
489
+ * @param collectionid The ID of the collection where these assets should come from. (\&quot;empty\&quot; is allowed)
490
+ * @param fields This limits the fields which are returned, separated by comma (\&#39;,\&#39;). Blobs can be limited with \&#39;.\&#39; on their container. (i.e. fields&#x3D;blobs.thumbnails). Only if \&#39;thumbnails\&#39; is set, the placeholder of this asset type are returned if no thumbnail blob is found.
491
+ * @param expose This indicates if the given blobs should have URLs where these can be requested. (If not limited through \&#39;fields\&#39; parameter it will expose all URLs of all blobs.)
492
+ * @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!)
493
+ * @param limit This number limits the page result of assets.
494
+ * @param orderby How the return assets are sorted. Default is property: created_date (newest first).
495
+ * @param filter This will limit the output on specific parameters which are separated by \&#39;:\&#39;, \&#39;!:\&#39;, \&#39;&gt;\&#39;, \&#39;&gt;&#x3D;\&#39;, \&#39;&lt;\&#39;, \&#39;&lt;&#x3D;\&#39;
496
+ * @param items The items can be extended to fully filled items.
497
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
498
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
499
+ * @param reportProgress flag to report request and response progress.
500
+ */
501
+ public httpAssetsGet(collectionid?: string, fields?: string, expose?: boolean, continuationToken?: string, limit?: number, orderby?: string, filter?: string, items?: boolean, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<AssetPageResult>;
502
+ public httpAssetsGet(collectionid?: string, fields?: string, expose?: boolean, continuationToken?: string, limit?: number, orderby?: string, filter?: string, items?: boolean, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<AssetPageResult>>;
503
+ public httpAssetsGet(collectionid?: string, fields?: string, expose?: boolean, continuationToken?: string, limit?: number, orderby?: string, filter?: string, items?: boolean, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<AssetPageResult>>;
504
+ public httpAssetsGet(collectionid?: string, fields?: string, expose?: boolean, continuationToken?: string, limit?: number, orderby?: string, filter?: string, items?: boolean, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
505
+
506
+ let queryParameters = new HttpParams({encoder: this.encoder});
507
+ if (collectionid !== undefined && collectionid !== null) {
508
+ queryParameters = this.addToHttpParams(queryParameters,
509
+ <any>collectionid, 'collectionid');
510
+ }
511
+ if (fields !== undefined && fields !== null) {
512
+ queryParameters = this.addToHttpParams(queryParameters,
513
+ <any>fields, 'fields');
514
+ }
515
+ if (expose !== undefined && expose !== null) {
516
+ queryParameters = this.addToHttpParams(queryParameters,
517
+ <any>expose, 'expose');
518
+ }
519
+ if (continuationToken !== undefined && continuationToken !== null) {
520
+ queryParameters = this.addToHttpParams(queryParameters,
521
+ <any>continuationToken, 'continuation_token');
522
+ }
523
+ if (limit !== undefined && limit !== null) {
524
+ queryParameters = this.addToHttpParams(queryParameters,
525
+ <any>limit, 'limit');
526
+ }
527
+ if (orderby !== undefined && orderby !== null) {
528
+ queryParameters = this.addToHttpParams(queryParameters,
529
+ <any>orderby, 'orderby');
530
+ }
531
+ if (filter !== undefined && filter !== null) {
532
+ queryParameters = this.addToHttpParams(queryParameters,
533
+ <any>filter, 'filter');
534
+ }
535
+ if (items !== undefined && items !== null) {
536
+ queryParameters = this.addToHttpParams(queryParameters,
537
+ <any>items, 'items');
538
+ }
539
+ if (translations !== undefined && translations !== null) {
540
+ queryParameters = this.addToHttpParams(queryParameters,
541
+ <any>translations, 'translations');
542
+ }
543
+
544
+ let headers = this.defaultHeaders;
545
+
546
+ let credential: string | undefined;
547
+ // authentication (msal_auth) required
548
+ credential = this.configuration.lookupCredential('msal_auth');
549
+ if (credential) {
550
+ headers = headers.set('Authorization', 'Bearer ' + credential);
551
+ }
552
+
553
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
554
+ if (httpHeaderAcceptSelected === undefined) {
555
+ // to determine the Accept header
556
+ const httpHeaderAccepts: string[] = [
557
+ 'application/json'
558
+ ];
559
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
560
+ }
561
+ if (httpHeaderAcceptSelected !== undefined) {
562
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
563
+ }
564
+
565
+
566
+ let responseType_: 'text' | 'json' = 'json';
567
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
568
+ responseType_ = 'text';
569
+ }
570
+
571
+ return this.httpClient.get<AssetPageResult>(`${this.configuration.basePath}/assets`,
572
+ {
573
+ params: queryParameters,
574
+ responseType: <any>responseType_,
575
+ withCredentials: this.configuration.withCredentials,
576
+ headers: headers,
577
+ observe: observe,
578
+ reportProgress: reportProgress
579
+ }
580
+ );
581
+ }
582
+
583
+ /**
584
+ * This endpoint returns one single asset (from ID). If the returned asset is from a special asset type (e.g. \&quot;AssetImage\&quot;) it returns the full entity.
585
+ * @param id The ID of the asset.
586
+ * @param fields Which fields are need to be filled out with comma separated. If one is set all non mandatory fields are left out. No validation if field exist.
587
+ * @param expose This indicates if the given blobs should have URLs where these can be requested. It will expose placeholder blobs if no \&#39;thumbnail\&#39; is found.)
588
+ * @param items The items can be extended to fully filled items.
589
+ * @param techdata This parameter will include the techdata property inside orig_blob.
590
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
591
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
592
+ * @param reportProgress flag to report request and response progress.
593
+ */
594
+ public httpAssetsGetById(id: string, fields?: string, expose?: boolean, items?: boolean, techdata?: boolean, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Asset>;
595
+ public httpAssetsGetById(id: string, fields?: string, expose?: boolean, items?: boolean, techdata?: boolean, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Asset>>;
596
+ public httpAssetsGetById(id: string, fields?: string, expose?: boolean, items?: boolean, techdata?: boolean, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Asset>>;
597
+ public httpAssetsGetById(id: string, fields?: string, expose?: boolean, items?: boolean, techdata?: boolean, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
598
+ if (id === null || id === undefined) {
599
+ throw new Error('Required parameter id was null or undefined when calling httpAssetsGetById.');
600
+ }
601
+
602
+ let queryParameters = new HttpParams({encoder: this.encoder});
603
+ if (fields !== undefined && fields !== null) {
604
+ queryParameters = this.addToHttpParams(queryParameters,
605
+ <any>fields, 'fields');
606
+ }
607
+ if (expose !== undefined && expose !== null) {
608
+ queryParameters = this.addToHttpParams(queryParameters,
609
+ <any>expose, 'expose');
610
+ }
611
+ if (items !== undefined && items !== null) {
612
+ queryParameters = this.addToHttpParams(queryParameters,
613
+ <any>items, 'items');
614
+ }
615
+ if (techdata !== undefined && techdata !== null) {
616
+ queryParameters = this.addToHttpParams(queryParameters,
617
+ <any>techdata, 'techdata');
618
+ }
619
+ if (translations !== undefined && translations !== null) {
620
+ queryParameters = this.addToHttpParams(queryParameters,
621
+ <any>translations, 'translations');
622
+ }
623
+
624
+ let headers = this.defaultHeaders;
625
+
626
+ let credential: string | undefined;
627
+ // authentication (msal_auth) required
628
+ credential = this.configuration.lookupCredential('msal_auth');
629
+ if (credential) {
630
+ headers = headers.set('Authorization', 'Bearer ' + credential);
631
+ }
632
+
633
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
634
+ if (httpHeaderAcceptSelected === undefined) {
635
+ // to determine the Accept header
636
+ const httpHeaderAccepts: string[] = [
637
+ 'application/json'
638
+ ];
639
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
640
+ }
641
+ if (httpHeaderAcceptSelected !== undefined) {
642
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
643
+ }
644
+
645
+
646
+ let responseType_: 'text' | 'json' = 'json';
647
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
648
+ responseType_ = 'text';
649
+ }
650
+
651
+ return this.httpClient.get<Asset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}`,
652
+ {
653
+ params: queryParameters,
654
+ responseType: <any>responseType_,
655
+ withCredentials: this.configuration.withCredentials,
656
+ headers: headers,
657
+ observe: observe,
658
+ reportProgress: reportProgress
659
+ }
660
+ );
661
+ }
662
+
663
+ /**
664
+ * This endpoint updates one single asset (from ID)
665
+ * @param id The ID of the asset.
666
+ * @param asset The body has to contain one of the mentioned elements and a valid json. Not fitting properties are ignored.
667
+ * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
668
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
669
+ * @param reportProgress flag to report request and response progress.
670
+ */
671
+ public httpAssetsUpdateById(id: string, asset: Asset, translations?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Asset>;
672
+ public httpAssetsUpdateById(id: string, asset: Asset, translations?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Asset>>;
673
+ public httpAssetsUpdateById(id: string, asset: Asset, translations?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Asset>>;
674
+ public httpAssetsUpdateById(id: string, asset: Asset, translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
675
+ if (id === null || id === undefined) {
676
+ throw new Error('Required parameter id was null or undefined when calling httpAssetsUpdateById.');
677
+ }
678
+ if (asset === null || asset === undefined) {
679
+ throw new Error('Required parameter asset was null or undefined when calling httpAssetsUpdateById.');
680
+ }
681
+
682
+ let queryParameters = new HttpParams({encoder: this.encoder});
683
+ if (translations !== undefined && translations !== null) {
684
+ queryParameters = this.addToHttpParams(queryParameters,
685
+ <any>translations, 'translations');
686
+ }
687
+
688
+ let headers = this.defaultHeaders;
689
+
690
+ let credential: string | undefined;
691
+ // authentication (msal_auth) required
692
+ credential = this.configuration.lookupCredential('msal_auth');
693
+ if (credential) {
694
+ headers = headers.set('Authorization', 'Bearer ' + credential);
695
+ }
696
+
697
+ let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
698
+ if (httpHeaderAcceptSelected === undefined) {
699
+ // to determine the Accept header
700
+ const httpHeaderAccepts: string[] = [
701
+ 'application/json'
702
+ ];
703
+ httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
704
+ }
705
+ if (httpHeaderAcceptSelected !== undefined) {
706
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
707
+ }
708
+
709
+
710
+ // to determine the Content-Type header
711
+ const consumes: string[] = [
712
+ 'application/json'
713
+ ];
714
+ const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
715
+ if (httpContentTypeSelected !== undefined) {
716
+ headers = headers.set('Content-Type', httpContentTypeSelected);
717
+ }
718
+
719
+ let responseType_: 'text' | 'json' = 'json';
720
+ if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
721
+ responseType_ = 'text';
722
+ }
723
+
724
+ return this.httpClient.post<Asset>(`${this.configuration.basePath}/assets/${encodeURIComponent(String(id))}`,
725
+ asset,
726
+ {
727
+ params: queryParameters,
728
+ responseType: <any>responseType_,
729
+ withCredentials: this.configuration.withCredentials,
730
+ headers: headers,
731
+ observe: observe,
732
+ reportProgress: reportProgress
733
+ }
734
+ );
735
+ }
736
+
737
+ }