@agravity/private 7.3.1 → 8.0.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 (141) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +29 -4
  4. package/api/assetIconRuleManagement.agravity.ts +344 -150
  5. package/api/assetManagement.agravity.ts +709 -389
  6. package/api/assetOperations.agravity.ts +1414 -650
  7. package/api/assetPublishing.agravity.ts +562 -255
  8. package/api/assetVersioning.agravity.ts +598 -278
  9. package/api/authenticationManagement.agravity.ts +731 -274
  10. package/api/collectionManagement.agravity.ts +618 -309
  11. package/api/collectionShareManagement.agravity.ts +256 -121
  12. package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
  13. package/api/collectionTypeManagement.agravity.ts +519 -250
  14. package/api/commentsManagement.agravity.ts +284 -90
  15. package/api/configurationManagement.agravity.ts +311 -128
  16. package/api/dashboardWidgetManagement.agravity.ts +342 -124
  17. package/api/dataImportExportManagement.agravity.ts +378 -148
  18. package/api/downloadFormatManagement.agravity.ts +450 -152
  19. package/api/downloadZip.agravity.ts +75 -30
  20. package/api/generalManagement.agravity.ts +374 -164
  21. package/api/helperTools.agravity.ts +804 -273
  22. package/api/historyEntryManagement.agravity.ts +75 -33
  23. package/api/iccProfileManagement.agravity.ts +64 -23
  24. package/api/listBlobs.agravity.ts +125 -47
  25. package/api/listQueues.agravity.ts +68 -24
  26. package/api/listTables.agravity.ts +68 -25
  27. package/api/permissionsManagement.agravity.ts +174 -77
  28. package/api/portalManagement.agravity.ts +511 -198
  29. package/api/publishing.agravity.ts +69 -38
  30. package/api/quickshareManagement.agravity.ts +349 -138
  31. package/api/savedSearchManagement.agravity.ts +205 -92
  32. package/api/searchManagement.agravity.ts +517 -297
  33. package/api/secureUpload.agravity.ts +325 -126
  34. package/api/signalRConnectionManagement.agravity.ts +175 -56
  35. package/api/staticDefinedListManagement.agravity.ts +342 -162
  36. package/api/stockImport.agravity.ts +138 -74
  37. package/api/structureImport.agravity.ts +68 -25
  38. package/api/translationManagement.agravity.ts +357 -206
  39. package/api/webAppData.agravity.ts +278 -88
  40. package/api/widgetLayoutManagement.agravity.ts +131 -47
  41. package/api/wordpressManagement.agravity.ts +152 -108
  42. package/api/workspaceManagement.agravity.ts +456 -197
  43. package/api.module.ts +0 -40
  44. package/configuration.ts +42 -0
  45. package/git_push.sh +3 -4
  46. package/index.ts +1 -0
  47. package/model/agravityErrorResponse.agravity.ts +3 -4
  48. package/model/agravityInfoResponse.agravity.ts +3 -4
  49. package/model/agravityUser.agravity.ts +16 -17
  50. package/model/agravityUserDto.agravity.ts +3 -4
  51. package/model/agravityVersion.agravity.ts +8 -9
  52. package/model/allWebAppData.agravity.ts +4 -5
  53. package/model/apiKeyResponse.agravity.ts +2 -3
  54. package/model/appConfigTableEntity.agravity.ts +8 -9
  55. package/model/artificialIntelligenceGroup.agravity.ts +3 -4
  56. package/model/asset.agravity.ts +22 -23
  57. package/model/assetAvailability.agravity.ts +1 -2
  58. package/model/assetBlob.agravity.ts +27 -28
  59. package/model/assetBulkUpdate.agravity.ts +2 -3
  60. package/model/assetCollectionLink.agravity.ts +2 -3
  61. package/model/assetIconRule.agravity.ts +17 -18
  62. package/model/assetIdFormat.agravity.ts +3 -4
  63. package/model/assetPageResult.agravity.ts +4 -5
  64. package/model/assetTextContent.agravity.ts +2 -3
  65. package/model/assetsOperationBody.agravity.ts +3 -4
  66. package/model/azSearchOptions.agravity.ts +8 -9
  67. package/model/azureIdentity.agravity.ts +4 -5
  68. package/model/blobInfoObj.agravity.ts +0 -1
  69. package/model/collTypeItem.agravity.ts +16 -17
  70. package/model/collTypeItemBlueprint.agravity.ts +12 -13
  71. package/model/collection.agravity.ts +15 -16
  72. package/model/collectionType.agravity.ts +14 -15
  73. package/model/collectionUDL.agravity.ts +4 -5
  74. package/model/collectionUDLListEntity.agravity.ts +9 -10
  75. package/model/collectionUDLReference.agravity.ts +3 -4
  76. package/model/comment.agravity.ts +9 -10
  77. package/model/createSftpUserResult.agravity.ts +2 -3
  78. package/model/dashboardWidget.agravity.ts +11 -12
  79. package/model/dataResult.agravity.ts +4 -5
  80. package/model/deletedEntities.agravity.ts +4 -5
  81. package/model/distZipResponse.agravity.ts +3 -4
  82. package/model/downloadFormat.agravity.ts +18 -16
  83. package/model/downloadObject.agravity.ts +16 -16
  84. package/model/downloadZipRequest.agravity.ts +9 -10
  85. package/model/dynamicImageOperation.agravity.ts +2 -3
  86. package/model/emailAddress.agravity.ts +2 -3
  87. package/model/entityId.agravity.ts +1 -2
  88. package/model/entityIdName.agravity.ts +3 -4
  89. package/model/entityTranslations.agravity.ts +2 -3
  90. package/model/excelExportTableEntity.agravity.ts +5 -5
  91. package/model/frontendAppConfig.agravity.ts +0 -1
  92. package/model/groupAllAppData.agravity.ts +5 -6
  93. package/model/historyEntry.agravity.ts +9 -10
  94. package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
  95. package/model/metadata.agravity.ts +3 -4
  96. package/model/models.ts +0 -1
  97. package/model/moveCollectionBody.agravity.ts +3 -4
  98. package/model/permissionChange.agravity.ts +1 -2
  99. package/model/permissionEntity.agravity.ts +1 -2
  100. package/model/permissionSetting.agravity.ts +8 -9
  101. package/model/portal.agravity.ts +18 -20
  102. package/model/portalLinks.agravity.ts +3 -4
  103. package/model/portalTheme.agravity.ts +6 -7
  104. package/model/portalZipRequest.agravity.ts +14 -15
  105. package/model/publishEntity.agravity.ts +9 -10
  106. package/model/publishedAsset.agravity.ts +12 -13
  107. package/model/quickShare.agravity.ts +12 -13
  108. package/model/quickShareFull.agravity.ts +15 -16
  109. package/model/sasToken.agravity.ts +6 -7
  110. package/model/savedSearch.agravity.ts +13 -14
  111. package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
  112. package/model/searchAdminIndexStatus.agravity.ts +3 -4
  113. package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
  114. package/model/searchAdminIndexerStatus.agravity.ts +4 -5
  115. package/model/searchAdminSkillStatus.agravity.ts +2 -3
  116. package/model/searchAdminStatistics.agravity.ts +2 -3
  117. package/model/searchAdminStatus.agravity.ts +4 -5
  118. package/model/searchFacet.agravity.ts +2 -3
  119. package/model/searchFacetEntity.agravity.ts +2 -3
  120. package/model/searchResult.agravity.ts +3 -4
  121. package/model/searchableItem.agravity.ts +3 -4
  122. package/model/secureUploadEntity.agravity.ts +10 -11
  123. package/model/sharedAllowedFormat.agravity.ts +2 -3
  124. package/model/sharedAsset.agravity.ts +5 -6
  125. package/model/sharedCollection.agravity.ts +15 -16
  126. package/model/sharedCollectionFull.agravity.ts +18 -19
  127. package/model/signalRConnectionInfo.agravity.ts +0 -1
  128. package/model/simpleAsset.agravity.ts +10 -11
  129. package/model/staticDefinedList.agravity.ts +12 -13
  130. package/model/translation.agravity.ts +2 -3
  131. package/model/translationRequest.agravity.ts +3 -4
  132. package/model/uiTutorials.agravity.ts +0 -1
  133. package/model/versionEntity.agravity.ts +9 -10
  134. package/model/versionedAsset.agravity.ts +5 -6
  135. package/model/whereParam.agravity.ts +0 -1
  136. package/model/widgetLayout.agravity.ts +8 -9
  137. package/model/widgetProperties.agravity.ts +6 -7
  138. package/model/workspace.agravity.ts +14 -15
  139. package/package.json +16 -17
  140. package/param.ts +44 -0
  141. package/model/portalLanguages.agravity.ts +0 -16
@@ -2,7 +2,6 @@
2
2
  * Agravity OpenAPI Documentation - Private Functions
3
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 2024. All Rights Reserved
4
4
  *
5
- * The version of the OpenAPI document: 7.3.1
6
5
  * Contact: office@agravity.io
7
6
  *
8
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,17 +11,52 @@
12
11
  /* tslint:disable:no-unused-variable member-ordering */
13
12
 
14
13
  import { Inject, Injectable, Optional } from '@angular/core';
15
- import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
14
+ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
16
15
  import { CustomHttpParameterCodec } from '../encoder';
17
16
  import { Observable } from 'rxjs';
18
17
 
19
- import { AgravityErrorResponse } from '../model/models';
20
- import { QuickShare } from '../model/models';
21
- import { QuickShareFull } from '../model/models';
18
+ // @ts-ignore
19
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
20
+ // @ts-ignore
21
+ import { QuickShare } from '../model/quickShare.agravity';
22
+ // @ts-ignore
23
+ import { QuickShareFull } from '../model/quickShareFull.agravity';
22
24
 
25
+ // @ts-ignore
23
26
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
27
  import { AgravityConfiguration } from '../configuration';
25
28
 
29
+ export interface HttpQuickShareGetByIdRequestParams {
30
+ /** The ID of the quick share. */
31
+ id: string;
32
+ /** Each result returns the continous token if more results are available than requested. With this token, the next page could be fetched. (URL encoded!) */
33
+ continuationToken?: string;
34
+ /** This number limits the page result of assets. */
35
+ limit?: number;
36
+ /** How the return assets are sorted. Default is property: created_date (newest first). */
37
+ orderby?: string;
38
+ }
39
+
40
+ export interface HttpQuickSharesCreateRequestParams {
41
+ /** This creates / adds an unique quick share ID and adds the information to the collection (in DB). */
42
+ quickShare: QuickShare;
43
+ }
44
+
45
+ export interface HttpQuickSharesDeleteRequestParams {
46
+ /** (Optional): The ID of the user. Only admins can query other users quick shares. */
47
+ userid?: string;
48
+ }
49
+
50
+ export interface HttpQuickSharesDeleteByIdRequestParams {
51
+ /** The ID of the quick share. */
52
+ id: string;
53
+ }
54
+
55
+ export interface HttpQuickSharesGetRequestParams {
56
+ /** (Optional): The ID of the user. Only admins can query other users quick shares. */
57
+ userid?: string;
58
+ }
59
+
26
60
  @Injectable({
27
61
  providedIn: 'root'
28
62
  })
@@ -34,13 +68,18 @@ export class QuickshareManagementService {
34
68
 
35
69
  constructor(
36
70
  protected httpClient: HttpClient,
37
- @Optional() @Inject(BASE_PATH) basePath: string,
71
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
38
72
  @Optional() configuration: AgravityConfiguration
39
73
  ) {
40
74
  if (configuration) {
41
75
  this.configuration = configuration;
42
76
  }
43
77
  if (typeof this.configuration.basePath !== 'string') {
78
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
79
+ if (firstBasePath != undefined) {
80
+ basePath = firstBasePath;
81
+ }
82
+
44
83
  if (typeof basePath !== 'string') {
45
84
  basePath = this.basePath;
46
85
  }
@@ -49,6 +88,7 @@ export class QuickshareManagementService {
49
88
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
50
89
  }
51
90
 
91
+ // @ts-ignore
52
92
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
53
93
  if (typeof value === 'object' && value instanceof Date === false) {
54
94
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -68,7 +108,7 @@ export class QuickshareManagementService {
68
108
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
69
109
  } else if (value instanceof Date) {
70
110
  if (key != null) {
71
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
111
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
72
112
  } else {
73
113
  throw Error('key may not be null if value is Date');
74
114
  }
@@ -85,293 +125,464 @@ export class QuickshareManagementService {
85
125
 
86
126
  /**
87
127
  * Returns one single quick share (from ID)
88
- * @param id The ID of the quick share.
89
- * @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!)
90
- * @param limit This number limits the page result of assets.
91
- * @param orderby How the return assets are sorted. Default is property: created_date (newest first).
128
+ * @param requestParameters
92
129
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
93
130
  * @param reportProgress flag to report request and response progress.
94
131
  */
95
132
  public httpQuickShareGetById(
96
- id: string,
97
- continuationToken?: string,
98
- limit?: number,
99
- orderby?: string,
133
+ requestParameters?: HttpQuickShareGetByIdRequestParams,
100
134
  observe?: 'body',
101
135
  reportProgress?: boolean,
102
- options?: { httpHeaderAccept?: 'application/json' }
136
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
103
137
  ): Observable<QuickShareFull>;
104
138
  public httpQuickShareGetById(
105
- id: string,
106
- continuationToken?: string,
107
- limit?: number,
108
- orderby?: string,
139
+ requestParameters?: HttpQuickShareGetByIdRequestParams,
109
140
  observe?: 'response',
110
141
  reportProgress?: boolean,
111
- options?: { httpHeaderAccept?: 'application/json' }
142
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
112
143
  ): Observable<HttpResponse<QuickShareFull>>;
113
144
  public httpQuickShareGetById(
114
- id: string,
115
- continuationToken?: string,
116
- limit?: number,
117
- orderby?: string,
145
+ requestParameters?: HttpQuickShareGetByIdRequestParams,
118
146
  observe?: 'events',
119
147
  reportProgress?: boolean,
120
- options?: { httpHeaderAccept?: 'application/json' }
148
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
121
149
  ): Observable<HttpEvent<QuickShareFull>>;
122
150
  public httpQuickShareGetById(
123
- id: string,
124
- continuationToken?: string,
125
- limit?: number,
126
- orderby?: string,
151
+ requestParameters?: HttpQuickShareGetByIdRequestParams,
127
152
  observe: any = 'body',
128
153
  reportProgress: boolean = false,
129
- options?: { httpHeaderAccept?: 'application/json' }
154
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
130
155
  ): Observable<any> {
156
+ const id = requestParameters?.id;
131
157
  if (id === null || id === undefined) {
132
158
  throw new Error('Required parameter id was null or undefined when calling httpQuickShareGetById.');
133
159
  }
160
+ const continuationToken = requestParameters?.continuationToken;
161
+ const limit = requestParameters?.limit;
162
+ const orderby = requestParameters?.orderby;
134
163
 
135
- let queryParameters = new HttpParams({ encoder: this.encoder });
164
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
136
165
  if (continuationToken !== undefined && continuationToken !== null) {
137
- queryParameters = this.addToHttpParams(queryParameters, <any>continuationToken, 'continuation_token');
166
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>continuationToken, 'continuation_token');
138
167
  }
139
168
  if (limit !== undefined && limit !== null) {
140
- queryParameters = this.addToHttpParams(queryParameters, <any>limit, 'limit');
169
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
141
170
  }
142
171
  if (orderby !== undefined && orderby !== null) {
143
- queryParameters = this.addToHttpParams(queryParameters, <any>orderby, 'orderby');
172
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
144
173
  }
145
174
 
146
- let headers = this.defaultHeaders;
175
+ let localVarHeaders = this.defaultHeaders;
147
176
 
148
- let credential: string | undefined;
177
+ let localVarCredential: string | undefined;
149
178
  // authentication (msal_auth) required
150
- credential = this.configuration.lookupCredential('msal_auth');
151
- if (credential) {
152
- headers = headers.set('Authorization', 'Bearer ' + credential);
179
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
180
+ if (localVarCredential) {
181
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
153
182
  }
154
183
 
155
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
156
- if (httpHeaderAcceptSelected === undefined) {
184
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
185
+ if (localVarHttpHeaderAcceptSelected === undefined) {
157
186
  // to determine the Accept header
158
187
  const httpHeaderAccepts: string[] = ['application/json'];
159
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
188
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
189
+ }
190
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
191
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
192
+ }
193
+
194
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
195
+ if (localVarHttpContext === undefined) {
196
+ localVarHttpContext = new HttpContext();
160
197
  }
161
- if (httpHeaderAcceptSelected !== undefined) {
162
- headers = headers.set('Accept', httpHeaderAcceptSelected);
198
+
199
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
200
+ if (localVarTransferCache === undefined) {
201
+ localVarTransferCache = true;
163
202
  }
164
203
 
165
- let responseType_: 'text' | 'json' = 'json';
166
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
167
- responseType_ = 'text';
204
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
205
+ if (localVarHttpHeaderAcceptSelected) {
206
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
207
+ responseType_ = 'text';
208
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
209
+ responseType_ = 'json';
210
+ } else {
211
+ responseType_ = 'blob';
212
+ }
168
213
  }
169
214
 
170
- return this.httpClient.get<QuickShareFull>(`${this.configuration.basePath}/quickshares/${encodeURIComponent(String(id))}`, {
171
- params: queryParameters,
215
+ let localVarPath = `/quickshares/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
216
+ return this.httpClient.request<QuickShareFull>('get', `${this.configuration.basePath}${localVarPath}`, {
217
+ context: localVarHttpContext,
218
+ params: localVarQueryParameters,
172
219
  responseType: <any>responseType_,
173
220
  withCredentials: this.configuration.withCredentials,
174
- headers: headers,
221
+ headers: localVarHeaders,
175
222
  observe: observe,
223
+ transferCache: localVarTransferCache,
176
224
  reportProgress: reportProgress
177
225
  });
178
226
  }
179
227
 
180
228
  /**
181
229
  * Creates an additional quick share
182
- * @param quickShare This creates / adds an unique quick share ID and adds the information to the collection (in DB).
230
+ * @param requestParameters
183
231
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
184
232
  * @param reportProgress flag to report request and response progress.
185
233
  */
186
- public httpQuickSharesCreate(quickShare: QuickShare, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<QuickShare>;
187
- public httpQuickSharesCreate(quickShare: QuickShare, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<QuickShare>>;
188
- public httpQuickSharesCreate(quickShare: QuickShare, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<QuickShare>>;
189
- public httpQuickSharesCreate(quickShare: QuickShare, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
234
+ public httpQuickSharesCreate(
235
+ requestParameters?: HttpQuickSharesCreateRequestParams,
236
+ observe?: 'body',
237
+ reportProgress?: boolean,
238
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
239
+ ): Observable<QuickShare>;
240
+ public httpQuickSharesCreate(
241
+ requestParameters?: HttpQuickSharesCreateRequestParams,
242
+ observe?: 'response',
243
+ reportProgress?: boolean,
244
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
245
+ ): Observable<HttpResponse<QuickShare>>;
246
+ public httpQuickSharesCreate(
247
+ requestParameters?: HttpQuickSharesCreateRequestParams,
248
+ observe?: 'events',
249
+ reportProgress?: boolean,
250
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
251
+ ): Observable<HttpEvent<QuickShare>>;
252
+ public httpQuickSharesCreate(
253
+ requestParameters?: HttpQuickSharesCreateRequestParams,
254
+ observe: any = 'body',
255
+ reportProgress: boolean = false,
256
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
257
+ ): Observable<any> {
258
+ const quickShare = requestParameters?.quickShare;
190
259
  if (quickShare === null || quickShare === undefined) {
191
260
  throw new Error('Required parameter quickShare was null or undefined when calling httpQuickSharesCreate.');
192
261
  }
193
262
 
194
- let headers = this.defaultHeaders;
263
+ let localVarHeaders = this.defaultHeaders;
195
264
 
196
- let credential: string | undefined;
265
+ let localVarCredential: string | undefined;
197
266
  // authentication (msal_auth) required
198
- credential = this.configuration.lookupCredential('msal_auth');
199
- if (credential) {
200
- headers = headers.set('Authorization', 'Bearer ' + credential);
267
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
268
+ if (localVarCredential) {
269
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
201
270
  }
202
271
 
203
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
204
- if (httpHeaderAcceptSelected === undefined) {
272
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
273
+ if (localVarHttpHeaderAcceptSelected === undefined) {
205
274
  // to determine the Accept header
206
275
  const httpHeaderAccepts: string[] = ['application/json'];
207
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
276
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
277
+ }
278
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
279
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
280
+ }
281
+
282
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
283
+ if (localVarHttpContext === undefined) {
284
+ localVarHttpContext = new HttpContext();
208
285
  }
209
- if (httpHeaderAcceptSelected !== undefined) {
210
- headers = headers.set('Accept', httpHeaderAcceptSelected);
286
+
287
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
288
+ if (localVarTransferCache === undefined) {
289
+ localVarTransferCache = true;
211
290
  }
212
291
 
213
292
  // to determine the Content-Type header
214
293
  const consumes: string[] = ['application/json'];
215
294
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
216
295
  if (httpContentTypeSelected !== undefined) {
217
- headers = headers.set('Content-Type', httpContentTypeSelected);
296
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
218
297
  }
219
298
 
220
- let responseType_: 'text' | 'json' = 'json';
221
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
222
- responseType_ = 'text';
299
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
300
+ if (localVarHttpHeaderAcceptSelected) {
301
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
302
+ responseType_ = 'text';
303
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
304
+ responseType_ = 'json';
305
+ } else {
306
+ responseType_ = 'blob';
307
+ }
223
308
  }
224
309
 
225
- return this.httpClient.post<QuickShare>(`${this.configuration.basePath}/quickshares`, quickShare, {
310
+ let localVarPath = `/quickshares`;
311
+ return this.httpClient.request<QuickShare>('post', `${this.configuration.basePath}${localVarPath}`, {
312
+ context: localVarHttpContext,
313
+ body: quickShare,
226
314
  responseType: <any>responseType_,
227
315
  withCredentials: this.configuration.withCredentials,
228
- headers: headers,
316
+ headers: localVarHeaders,
229
317
  observe: observe,
318
+ transferCache: localVarTransferCache,
230
319
  reportProgress: reportProgress
231
320
  });
232
321
  }
233
322
 
234
323
  /**
235
324
  * Dele tes all the quick shares of a specific user. If no userid is added, the user from the OAuth2 token is used.
236
- * @param userid (Optional): The ID of the user. Only admins can query other users quick shares.
325
+ * @param requestParameters
237
326
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
238
327
  * @param reportProgress flag to report request and response progress.
239
328
  */
240
- public httpQuickSharesDelete(userid?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
241
- public httpQuickSharesDelete(userid?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
242
- public httpQuickSharesDelete(userid?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
243
- public httpQuickSharesDelete(userid?: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
244
- let queryParameters = new HttpParams({ encoder: this.encoder });
329
+ public httpQuickSharesDelete(
330
+ requestParameters?: HttpQuickSharesDeleteRequestParams,
331
+ observe?: 'body',
332
+ reportProgress?: boolean,
333
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
334
+ ): Observable<any>;
335
+ public httpQuickSharesDelete(
336
+ requestParameters?: HttpQuickSharesDeleteRequestParams,
337
+ observe?: 'response',
338
+ reportProgress?: boolean,
339
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
340
+ ): Observable<HttpResponse<any>>;
341
+ public httpQuickSharesDelete(
342
+ requestParameters?: HttpQuickSharesDeleteRequestParams,
343
+ observe?: 'events',
344
+ reportProgress?: boolean,
345
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
346
+ ): Observable<HttpEvent<any>>;
347
+ public httpQuickSharesDelete(
348
+ requestParameters?: HttpQuickSharesDeleteRequestParams,
349
+ observe: any = 'body',
350
+ reportProgress: boolean = false,
351
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
352
+ ): Observable<any> {
353
+ const userid = requestParameters?.userid;
354
+
355
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
245
356
  if (userid !== undefined && userid !== null) {
246
- queryParameters = this.addToHttpParams(queryParameters, <any>userid, 'userid');
357
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>userid, 'userid');
247
358
  }
248
359
 
249
- let headers = this.defaultHeaders;
360
+ let localVarHeaders = this.defaultHeaders;
250
361
 
251
- let credential: string | undefined;
362
+ let localVarCredential: string | undefined;
252
363
  // authentication (msal_auth) required
253
- credential = this.configuration.lookupCredential('msal_auth');
254
- if (credential) {
255
- headers = headers.set('Authorization', 'Bearer ' + credential);
364
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
365
+ if (localVarCredential) {
366
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
256
367
  }
257
368
 
258
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
259
- if (httpHeaderAcceptSelected === undefined) {
369
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
370
+ if (localVarHttpHeaderAcceptSelected === undefined) {
260
371
  // to determine the Accept header
261
372
  const httpHeaderAccepts: string[] = ['application/json'];
262
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
373
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
374
+ }
375
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
376
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
377
+ }
378
+
379
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
380
+ if (localVarHttpContext === undefined) {
381
+ localVarHttpContext = new HttpContext();
263
382
  }
264
- if (httpHeaderAcceptSelected !== undefined) {
265
- headers = headers.set('Accept', httpHeaderAcceptSelected);
383
+
384
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
385
+ if (localVarTransferCache === undefined) {
386
+ localVarTransferCache = true;
266
387
  }
267
388
 
268
- let responseType_: 'text' | 'json' = 'json';
269
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
270
- responseType_ = 'text';
389
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
390
+ if (localVarHttpHeaderAcceptSelected) {
391
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
392
+ responseType_ = 'text';
393
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
394
+ responseType_ = 'json';
395
+ } else {
396
+ responseType_ = 'blob';
397
+ }
271
398
  }
272
399
 
273
- return this.httpClient.delete<any>(`${this.configuration.basePath}/quickshares`, {
274
- params: queryParameters,
400
+ let localVarPath = `/quickshares`;
401
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
402
+ context: localVarHttpContext,
403
+ params: localVarQueryParameters,
275
404
  responseType: <any>responseType_,
276
405
  withCredentials: this.configuration.withCredentials,
277
- headers: headers,
406
+ headers: localVarHeaders,
278
407
  observe: observe,
408
+ transferCache: localVarTransferCache,
279
409
  reportProgress: reportProgress
280
410
  });
281
411
  }
282
412
 
283
413
  /**
284
414
  * Deletes the quick share with the given ID.
285
- * @param id The ID of the quick share.
415
+ * @param requestParameters
286
416
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
287
417
  * @param reportProgress flag to report request and response progress.
288
418
  */
289
- public httpQuickSharesDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
290
- public httpQuickSharesDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
291
- public httpQuickSharesDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
292
- public httpQuickSharesDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
419
+ public httpQuickSharesDeleteById(
420
+ requestParameters?: HttpQuickSharesDeleteByIdRequestParams,
421
+ observe?: 'body',
422
+ reportProgress?: boolean,
423
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
424
+ ): Observable<any>;
425
+ public httpQuickSharesDeleteById(
426
+ requestParameters?: HttpQuickSharesDeleteByIdRequestParams,
427
+ observe?: 'response',
428
+ reportProgress?: boolean,
429
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
430
+ ): Observable<HttpResponse<any>>;
431
+ public httpQuickSharesDeleteById(
432
+ requestParameters?: HttpQuickSharesDeleteByIdRequestParams,
433
+ observe?: 'events',
434
+ reportProgress?: boolean,
435
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
436
+ ): Observable<HttpEvent<any>>;
437
+ public httpQuickSharesDeleteById(
438
+ requestParameters?: HttpQuickSharesDeleteByIdRequestParams,
439
+ observe: any = 'body',
440
+ reportProgress: boolean = false,
441
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
442
+ ): Observable<any> {
443
+ const id = requestParameters?.id;
293
444
  if (id === null || id === undefined) {
294
445
  throw new Error('Required parameter id was null or undefined when calling httpQuickSharesDeleteById.');
295
446
  }
296
447
 
297
- let headers = this.defaultHeaders;
448
+ let localVarHeaders = this.defaultHeaders;
298
449
 
299
- let credential: string | undefined;
450
+ let localVarCredential: string | undefined;
300
451
  // authentication (msal_auth) required
301
- credential = this.configuration.lookupCredential('msal_auth');
302
- if (credential) {
303
- headers = headers.set('Authorization', 'Bearer ' + credential);
452
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
453
+ if (localVarCredential) {
454
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
304
455
  }
305
456
 
306
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
307
- if (httpHeaderAcceptSelected === undefined) {
457
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
458
+ if (localVarHttpHeaderAcceptSelected === undefined) {
308
459
  // to determine the Accept header
309
460
  const httpHeaderAccepts: string[] = ['application/json'];
310
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
461
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
462
+ }
463
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
464
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
465
+ }
466
+
467
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
468
+ if (localVarHttpContext === undefined) {
469
+ localVarHttpContext = new HttpContext();
311
470
  }
312
- if (httpHeaderAcceptSelected !== undefined) {
313
- headers = headers.set('Accept', httpHeaderAcceptSelected);
471
+
472
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
473
+ if (localVarTransferCache === undefined) {
474
+ localVarTransferCache = true;
314
475
  }
315
476
 
316
- let responseType_: 'text' | 'json' = 'json';
317
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
318
- responseType_ = 'text';
477
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
478
+ if (localVarHttpHeaderAcceptSelected) {
479
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
480
+ responseType_ = 'text';
481
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
482
+ responseType_ = 'json';
483
+ } else {
484
+ responseType_ = 'blob';
485
+ }
319
486
  }
320
487
 
321
- return this.httpClient.delete<any>(`${this.configuration.basePath}/quickshares/${encodeURIComponent(String(id))}`, {
488
+ let localVarPath = `/quickshares/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
489
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
490
+ context: localVarHttpContext,
322
491
  responseType: <any>responseType_,
323
492
  withCredentials: this.configuration.withCredentials,
324
- headers: headers,
493
+ headers: localVarHeaders,
325
494
  observe: observe,
495
+ transferCache: localVarTransferCache,
326
496
  reportProgress: reportProgress
327
497
  });
328
498
  }
329
499
 
330
500
  /**
331
501
  * This lists all the quick shares which are stored in the database for a specific user.
332
- * @param userid (Optional): The ID of the user. Only admins can query other users quick shares.
502
+ * @param requestParameters
333
503
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
334
504
  * @param reportProgress flag to report request and response progress.
335
505
  */
336
- public httpQuickSharesGet(userid?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<QuickShare>>;
337
- public httpQuickSharesGet(userid?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<QuickShare>>>;
338
- public httpQuickSharesGet(userid?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<QuickShare>>>;
339
- public httpQuickSharesGet(userid?: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
340
- let queryParameters = new HttpParams({ encoder: this.encoder });
506
+ public httpQuickSharesGet(
507
+ requestParameters?: HttpQuickSharesGetRequestParams,
508
+ observe?: 'body',
509
+ reportProgress?: boolean,
510
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
511
+ ): Observable<Array<QuickShare>>;
512
+ public httpQuickSharesGet(
513
+ requestParameters?: HttpQuickSharesGetRequestParams,
514
+ observe?: 'response',
515
+ reportProgress?: boolean,
516
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
517
+ ): Observable<HttpResponse<Array<QuickShare>>>;
518
+ public httpQuickSharesGet(
519
+ requestParameters?: HttpQuickSharesGetRequestParams,
520
+ observe?: 'events',
521
+ reportProgress?: boolean,
522
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
523
+ ): Observable<HttpEvent<Array<QuickShare>>>;
524
+ public httpQuickSharesGet(
525
+ requestParameters?: HttpQuickSharesGetRequestParams,
526
+ observe: any = 'body',
527
+ reportProgress: boolean = false,
528
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
529
+ ): Observable<any> {
530
+ const userid = requestParameters?.userid;
531
+
532
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
341
533
  if (userid !== undefined && userid !== null) {
342
- queryParameters = this.addToHttpParams(queryParameters, <any>userid, 'userid');
534
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>userid, 'userid');
343
535
  }
344
536
 
345
- let headers = this.defaultHeaders;
537
+ let localVarHeaders = this.defaultHeaders;
346
538
 
347
- let credential: string | undefined;
539
+ let localVarCredential: string | undefined;
348
540
  // authentication (msal_auth) required
349
- credential = this.configuration.lookupCredential('msal_auth');
350
- if (credential) {
351
- headers = headers.set('Authorization', 'Bearer ' + credential);
541
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
542
+ if (localVarCredential) {
543
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
352
544
  }
353
545
 
354
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
355
- if (httpHeaderAcceptSelected === undefined) {
546
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
547
+ if (localVarHttpHeaderAcceptSelected === undefined) {
356
548
  // to determine the Accept header
357
549
  const httpHeaderAccepts: string[] = ['application/json'];
358
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
550
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
551
+ }
552
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
553
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
359
554
  }
360
- if (httpHeaderAcceptSelected !== undefined) {
361
- headers = headers.set('Accept', httpHeaderAcceptSelected);
555
+
556
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
557
+ if (localVarHttpContext === undefined) {
558
+ localVarHttpContext = new HttpContext();
559
+ }
560
+
561
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
562
+ if (localVarTransferCache === undefined) {
563
+ localVarTransferCache = true;
362
564
  }
363
565
 
364
- let responseType_: 'text' | 'json' = 'json';
365
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
366
- responseType_ = 'text';
566
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
567
+ if (localVarHttpHeaderAcceptSelected) {
568
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
569
+ responseType_ = 'text';
570
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
571
+ responseType_ = 'json';
572
+ } else {
573
+ responseType_ = 'blob';
574
+ }
367
575
  }
368
576
 
369
- return this.httpClient.get<Array<QuickShare>>(`${this.configuration.basePath}/quickshares`, {
370
- params: queryParameters,
577
+ let localVarPath = `/quickshares`;
578
+ return this.httpClient.request<Array<QuickShare>>('get', `${this.configuration.basePath}${localVarPath}`, {
579
+ context: localVarHttpContext,
580
+ params: localVarQueryParameters,
371
581
  responseType: <any>responseType_,
372
582
  withCredentials: this.configuration.withCredentials,
373
- headers: headers,
583
+ headers: localVarHeaders,
374
584
  observe: observe,
585
+ transferCache: localVarTransferCache,
375
586
  reportProgress: reportProgress
376
587
  });
377
588
  }