@agravity/private 7.3.0 → 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 +19 -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.0
6
5
  * Contact: office@agravity.io
7
6
  *
8
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,16 +11,51 @@
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 { CollTypeItemBlueprint } from '../model/models';
18
+ // @ts-ignore
19
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
20
+ // @ts-ignore
21
+ import { CollTypeItemBlueprint } from '../model/collTypeItemBlueprint.agravity';
21
22
 
23
+ // @ts-ignore
22
24
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
25
  import { AgravityConfiguration } from '../configuration';
24
26
 
27
+ export interface HttpCollTypeItemBlueprintsCreateRequestParams {
28
+ /** This endpoint creates an unique blueprint and adds the information to the database. */
29
+ collTypeItemBlueprint: CollTypeItemBlueprint;
30
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
31
+ translations?: boolean;
32
+ /** The requested language of the response. If not matching it falls back to default language. */
33
+ acceptLanguage?: string;
34
+ }
35
+
36
+ export interface HttpCollTypeItemBlueprintsDeleteByIdRequestParams {
37
+ /** The ID of the blueprint. */
38
+ id: string;
39
+ }
40
+
41
+ export interface HttpCollTypeItemBlueprintsGetAllRequestParams {
42
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
43
+ translations?: boolean;
44
+ /** The requested language of the response. If not matching it falls back to default language. */
45
+ acceptLanguage?: string;
46
+ }
47
+
48
+ export interface HttpCollTypeItemBlueprintsUpdateByIdRequestParams {
49
+ /** The ID of the blueprint. */
50
+ id: string;
51
+ /** This endpoint updates an the given blueprint with ID and adds the information to the database. */
52
+ collTypeItemBlueprint: CollTypeItemBlueprint;
53
+ /** When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header) */
54
+ translations?: boolean;
55
+ /** The requested language of the response. If not matching it falls back to default language. */
56
+ acceptLanguage?: string;
57
+ }
58
+
25
59
  @Injectable({
26
60
  providedIn: 'root'
27
61
  })
@@ -33,13 +67,18 @@ export class CollectionTypeItemBlueprintManagementService {
33
67
 
34
68
  constructor(
35
69
  protected httpClient: HttpClient,
36
- @Optional() @Inject(BASE_PATH) basePath: string,
70
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
37
71
  @Optional() configuration: AgravityConfiguration
38
72
  ) {
39
73
  if (configuration) {
40
74
  this.configuration = configuration;
41
75
  }
42
76
  if (typeof this.configuration.basePath !== 'string') {
77
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
78
+ if (firstBasePath != undefined) {
79
+ basePath = firstBasePath;
80
+ }
81
+
43
82
  if (typeof basePath !== 'string') {
44
83
  basePath = this.basePath;
45
84
  }
@@ -48,6 +87,7 @@ export class CollectionTypeItemBlueprintManagementService {
48
87
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
88
  }
50
89
 
90
+ // @ts-ignore
51
91
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
92
  if (typeof value === 'object' && value instanceof Date === false) {
53
93
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -67,7 +107,7 @@ export class CollectionTypeItemBlueprintManagementService {
67
107
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
68
108
  } else if (value instanceof Date) {
69
109
  if (key != null) {
70
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
110
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
71
111
  } else {
72
112
  throw Error('key may not be null if value is Date');
73
113
  }
@@ -84,289 +124,397 @@ export class CollectionTypeItemBlueprintManagementService {
84
124
 
85
125
  /**
86
126
  * This endpoint creates one collection type item blueprint entry in the database.
87
- * @param collTypeItemBlueprint This endpoint creates an unique blueprint and adds the information to the database.
88
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
127
+ * @param requestParameters
89
128
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
90
129
  * @param reportProgress flag to report request and response progress.
91
130
  */
92
131
  public httpCollTypeItemBlueprintsCreate(
93
- collTypeItemBlueprint: CollTypeItemBlueprint,
94
- translations?: boolean,
132
+ requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
95
133
  observe?: 'body',
96
134
  reportProgress?: boolean,
97
- options?: { httpHeaderAccept?: 'application/json' }
135
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
98
136
  ): Observable<CollTypeItemBlueprint>;
99
137
  public httpCollTypeItemBlueprintsCreate(
100
- collTypeItemBlueprint: CollTypeItemBlueprint,
101
- translations?: boolean,
138
+ requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
102
139
  observe?: 'response',
103
140
  reportProgress?: boolean,
104
- options?: { httpHeaderAccept?: 'application/json' }
141
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
105
142
  ): Observable<HttpResponse<CollTypeItemBlueprint>>;
106
143
  public httpCollTypeItemBlueprintsCreate(
107
- collTypeItemBlueprint: CollTypeItemBlueprint,
108
- translations?: boolean,
144
+ requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
109
145
  observe?: 'events',
110
146
  reportProgress?: boolean,
111
- options?: { httpHeaderAccept?: 'application/json' }
147
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
112
148
  ): Observable<HttpEvent<CollTypeItemBlueprint>>;
113
149
  public httpCollTypeItemBlueprintsCreate(
114
- collTypeItemBlueprint: CollTypeItemBlueprint,
115
- translations?: boolean,
150
+ requestParameters?: HttpCollTypeItemBlueprintsCreateRequestParams,
116
151
  observe: any = 'body',
117
152
  reportProgress: boolean = false,
118
- options?: { httpHeaderAccept?: 'application/json' }
153
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
119
154
  ): Observable<any> {
155
+ const collTypeItemBlueprint = requestParameters?.collTypeItemBlueprint;
120
156
  if (collTypeItemBlueprint === null || collTypeItemBlueprint === undefined) {
121
157
  throw new Error('Required parameter collTypeItemBlueprint was null or undefined when calling httpCollTypeItemBlueprintsCreate.');
122
158
  }
159
+ const translations = requestParameters?.translations;
160
+ const acceptLanguage = requestParameters?.acceptLanguage;
123
161
 
124
- let queryParameters = new HttpParams({ encoder: this.encoder });
162
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
125
163
  if (translations !== undefined && translations !== null) {
126
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
164
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
127
165
  }
128
166
 
129
- let headers = this.defaultHeaders;
167
+ let localVarHeaders = this.defaultHeaders;
168
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
169
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
170
+ }
130
171
 
131
- let credential: string | undefined;
172
+ let localVarCredential: string | undefined;
132
173
  // authentication (msal_auth) required
133
- credential = this.configuration.lookupCredential('msal_auth');
134
- if (credential) {
135
- headers = headers.set('Authorization', 'Bearer ' + credential);
174
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
175
+ if (localVarCredential) {
176
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
136
177
  }
137
178
 
138
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
139
- if (httpHeaderAcceptSelected === undefined) {
179
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
180
+ if (localVarHttpHeaderAcceptSelected === undefined) {
140
181
  // to determine the Accept header
141
182
  const httpHeaderAccepts: string[] = ['application/json'];
142
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
183
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
184
+ }
185
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
186
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
187
+ }
188
+
189
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
190
+ if (localVarHttpContext === undefined) {
191
+ localVarHttpContext = new HttpContext();
143
192
  }
144
- if (httpHeaderAcceptSelected !== undefined) {
145
- headers = headers.set('Accept', httpHeaderAcceptSelected);
193
+
194
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
195
+ if (localVarTransferCache === undefined) {
196
+ localVarTransferCache = true;
146
197
  }
147
198
 
148
199
  // to determine the Content-Type header
149
200
  const consumes: string[] = ['application/json'];
150
201
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
151
202
  if (httpContentTypeSelected !== undefined) {
152
- headers = headers.set('Content-Type', httpContentTypeSelected);
203
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
153
204
  }
154
205
 
155
- let responseType_: 'text' | 'json' = 'json';
156
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
157
- responseType_ = 'text';
206
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
207
+ if (localVarHttpHeaderAcceptSelected) {
208
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
209
+ responseType_ = 'text';
210
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
211
+ responseType_ = 'json';
212
+ } else {
213
+ responseType_ = 'blob';
214
+ }
158
215
  }
159
216
 
160
- return this.httpClient.post<CollTypeItemBlueprint>(`${this.configuration.basePath}/colltypeitemblueprints`, collTypeItemBlueprint, {
161
- params: queryParameters,
217
+ let localVarPath = `/colltypeitemblueprints`;
218
+ return this.httpClient.request<CollTypeItemBlueprint>('post', `${this.configuration.basePath}${localVarPath}`, {
219
+ context: localVarHttpContext,
220
+ body: collTypeItemBlueprint,
221
+ params: localVarQueryParameters,
162
222
  responseType: <any>responseType_,
163
223
  withCredentials: this.configuration.withCredentials,
164
- headers: headers,
224
+ headers: localVarHeaders,
165
225
  observe: observe,
226
+ transferCache: localVarTransferCache,
166
227
  reportProgress: reportProgress
167
228
  });
168
229
  }
169
230
 
170
231
  /**
171
232
  * This endpoint deletes a single collection type item blueprint.
172
- * @param id The ID of the blueprint.
233
+ * @param requestParameters
173
234
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
174
235
  * @param reportProgress flag to report request and response progress.
175
236
  */
176
- public httpCollTypeItemBlueprintsDeleteById(id: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<any>;
177
- public httpCollTypeItemBlueprintsDeleteById(id: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<any>>;
178
- public httpCollTypeItemBlueprintsDeleteById(id: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<any>>;
179
- public httpCollTypeItemBlueprintsDeleteById(id: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
237
+ public httpCollTypeItemBlueprintsDeleteById(
238
+ requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
239
+ observe?: 'body',
240
+ reportProgress?: boolean,
241
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
242
+ ): Observable<any>;
243
+ public httpCollTypeItemBlueprintsDeleteById(
244
+ requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
245
+ observe?: 'response',
246
+ reportProgress?: boolean,
247
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
248
+ ): Observable<HttpResponse<any>>;
249
+ public httpCollTypeItemBlueprintsDeleteById(
250
+ requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
251
+ observe?: 'events',
252
+ reportProgress?: boolean,
253
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
254
+ ): Observable<HttpEvent<any>>;
255
+ public httpCollTypeItemBlueprintsDeleteById(
256
+ requestParameters?: HttpCollTypeItemBlueprintsDeleteByIdRequestParams,
257
+ observe: any = 'body',
258
+ reportProgress: boolean = false,
259
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
260
+ ): Observable<any> {
261
+ const id = requestParameters?.id;
180
262
  if (id === null || id === undefined) {
181
263
  throw new Error('Required parameter id was null or undefined when calling httpCollTypeItemBlueprintsDeleteById.');
182
264
  }
183
265
 
184
- let headers = this.defaultHeaders;
266
+ let localVarHeaders = this.defaultHeaders;
185
267
 
186
- let credential: string | undefined;
268
+ let localVarCredential: string | undefined;
187
269
  // authentication (msal_auth) required
188
- credential = this.configuration.lookupCredential('msal_auth');
189
- if (credential) {
190
- headers = headers.set('Authorization', 'Bearer ' + credential);
270
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
271
+ if (localVarCredential) {
272
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
191
273
  }
192
274
 
193
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
194
- if (httpHeaderAcceptSelected === undefined) {
275
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
276
+ if (localVarHttpHeaderAcceptSelected === undefined) {
195
277
  // to determine the Accept header
196
278
  const httpHeaderAccepts: string[] = ['application/json'];
197
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
279
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
198
280
  }
199
- if (httpHeaderAcceptSelected !== undefined) {
200
- headers = headers.set('Accept', httpHeaderAcceptSelected);
281
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
282
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
201
283
  }
202
284
 
203
- let responseType_: 'text' | 'json' = 'json';
204
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
205
- responseType_ = 'text';
285
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
286
+ if (localVarHttpContext === undefined) {
287
+ localVarHttpContext = new HttpContext();
206
288
  }
207
289
 
208
- return this.httpClient.delete<any>(`${this.configuration.basePath}/colltypeitemblueprints/${encodeURIComponent(String(id))}`, {
290
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
291
+ if (localVarTransferCache === undefined) {
292
+ localVarTransferCache = true;
293
+ }
294
+
295
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
296
+ if (localVarHttpHeaderAcceptSelected) {
297
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
298
+ responseType_ = 'text';
299
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
300
+ responseType_ = 'json';
301
+ } else {
302
+ responseType_ = 'blob';
303
+ }
304
+ }
305
+
306
+ let localVarPath = `/colltypeitemblueprints/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
307
+ return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
308
+ context: localVarHttpContext,
209
309
  responseType: <any>responseType_,
210
310
  withCredentials: this.configuration.withCredentials,
211
- headers: headers,
311
+ headers: localVarHeaders,
212
312
  observe: observe,
313
+ transferCache: localVarTransferCache,
213
314
  reportProgress: reportProgress
214
315
  });
215
316
  }
216
317
 
217
318
  /**
218
319
  * This endpoint lists all collection type item blueprint in database.
219
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
320
+ * @param requestParameters
220
321
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
221
322
  * @param reportProgress flag to report request and response progress.
222
323
  */
223
324
  public httpCollTypeItemBlueprintsGetAll(
224
- translations?: boolean,
325
+ requestParameters?: HttpCollTypeItemBlueprintsGetAllRequestParams,
225
326
  observe?: 'body',
226
327
  reportProgress?: boolean,
227
- options?: { httpHeaderAccept?: 'application/json' }
328
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
228
329
  ): Observable<Array<CollTypeItemBlueprint>>;
229
330
  public httpCollTypeItemBlueprintsGetAll(
230
- translations?: boolean,
331
+ requestParameters?: HttpCollTypeItemBlueprintsGetAllRequestParams,
231
332
  observe?: 'response',
232
333
  reportProgress?: boolean,
233
- options?: { httpHeaderAccept?: 'application/json' }
334
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
234
335
  ): Observable<HttpResponse<Array<CollTypeItemBlueprint>>>;
235
336
  public httpCollTypeItemBlueprintsGetAll(
236
- translations?: boolean,
337
+ requestParameters?: HttpCollTypeItemBlueprintsGetAllRequestParams,
237
338
  observe?: 'events',
238
339
  reportProgress?: boolean,
239
- options?: { httpHeaderAccept?: 'application/json' }
340
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
240
341
  ): Observable<HttpEvent<Array<CollTypeItemBlueprint>>>;
241
- public httpCollTypeItemBlueprintsGetAll(translations?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
242
- let queryParameters = new HttpParams({ encoder: this.encoder });
342
+ public httpCollTypeItemBlueprintsGetAll(
343
+ requestParameters?: HttpCollTypeItemBlueprintsGetAllRequestParams,
344
+ observe: any = 'body',
345
+ reportProgress: boolean = false,
346
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
347
+ ): Observable<any> {
348
+ const translations = requestParameters?.translations;
349
+ const acceptLanguage = requestParameters?.acceptLanguage;
350
+
351
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
243
352
  if (translations !== undefined && translations !== null) {
244
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
353
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
245
354
  }
246
355
 
247
- let headers = this.defaultHeaders;
356
+ let localVarHeaders = this.defaultHeaders;
357
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
358
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
359
+ }
248
360
 
249
- let credential: string | undefined;
361
+ let localVarCredential: string | undefined;
250
362
  // authentication (msal_auth) required
251
- credential = this.configuration.lookupCredential('msal_auth');
252
- if (credential) {
253
- headers = headers.set('Authorization', 'Bearer ' + credential);
363
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
364
+ if (localVarCredential) {
365
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
254
366
  }
255
367
 
256
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
257
- if (httpHeaderAcceptSelected === undefined) {
368
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
369
+ if (localVarHttpHeaderAcceptSelected === undefined) {
258
370
  // to determine the Accept header
259
371
  const httpHeaderAccepts: string[] = ['application/json'];
260
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
372
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
261
373
  }
262
- if (httpHeaderAcceptSelected !== undefined) {
263
- headers = headers.set('Accept', httpHeaderAcceptSelected);
374
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
375
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
264
376
  }
265
377
 
266
- let responseType_: 'text' | 'json' = 'json';
267
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
268
- responseType_ = 'text';
378
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
379
+ if (localVarHttpContext === undefined) {
380
+ localVarHttpContext = new HttpContext();
269
381
  }
270
382
 
271
- return this.httpClient.get<Array<CollTypeItemBlueprint>>(`${this.configuration.basePath}/colltypeitemblueprints`, {
272
- params: queryParameters,
383
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
384
+ if (localVarTransferCache === undefined) {
385
+ localVarTransferCache = true;
386
+ }
387
+
388
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
389
+ if (localVarHttpHeaderAcceptSelected) {
390
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
391
+ responseType_ = 'text';
392
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
393
+ responseType_ = 'json';
394
+ } else {
395
+ responseType_ = 'blob';
396
+ }
397
+ }
398
+
399
+ let localVarPath = `/colltypeitemblueprints`;
400
+ return this.httpClient.request<Array<CollTypeItemBlueprint>>('get', `${this.configuration.basePath}${localVarPath}`, {
401
+ context: localVarHttpContext,
402
+ params: localVarQueryParameters,
273
403
  responseType: <any>responseType_,
274
404
  withCredentials: this.configuration.withCredentials,
275
- headers: headers,
405
+ headers: localVarHeaders,
276
406
  observe: observe,
407
+ transferCache: localVarTransferCache,
277
408
  reportProgress: reportProgress
278
409
  });
279
410
  }
280
411
 
281
412
  /**
282
413
  * This endpoint updates a single collection type item blueprint.
283
- * @param id The ID of the blueprint.
284
- * @param collTypeItemBlueprint This endpoint updates an the given blueprint with ID and adds the information to the database.
285
- * @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \&quot;Accept-Language\&quot; header)
414
+ * @param requestParameters
286
415
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
287
416
  * @param reportProgress flag to report request and response progress.
288
417
  */
289
418
  public httpCollTypeItemBlueprintsUpdateById(
290
- id: string,
291
- collTypeItemBlueprint: CollTypeItemBlueprint,
292
- translations?: boolean,
419
+ requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
293
420
  observe?: 'body',
294
421
  reportProgress?: boolean,
295
- options?: { httpHeaderAccept?: 'application/json' }
422
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
296
423
  ): Observable<CollTypeItemBlueprint>;
297
424
  public httpCollTypeItemBlueprintsUpdateById(
298
- id: string,
299
- collTypeItemBlueprint: CollTypeItemBlueprint,
300
- translations?: boolean,
425
+ requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
301
426
  observe?: 'response',
302
427
  reportProgress?: boolean,
303
- options?: { httpHeaderAccept?: 'application/json' }
428
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
304
429
  ): Observable<HttpResponse<CollTypeItemBlueprint>>;
305
430
  public httpCollTypeItemBlueprintsUpdateById(
306
- id: string,
307
- collTypeItemBlueprint: CollTypeItemBlueprint,
308
- translations?: boolean,
431
+ requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
309
432
  observe?: 'events',
310
433
  reportProgress?: boolean,
311
- options?: { httpHeaderAccept?: 'application/json' }
434
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
312
435
  ): Observable<HttpEvent<CollTypeItemBlueprint>>;
313
436
  public httpCollTypeItemBlueprintsUpdateById(
314
- id: string,
315
- collTypeItemBlueprint: CollTypeItemBlueprint,
316
- translations?: boolean,
437
+ requestParameters?: HttpCollTypeItemBlueprintsUpdateByIdRequestParams,
317
438
  observe: any = 'body',
318
439
  reportProgress: boolean = false,
319
- options?: { httpHeaderAccept?: 'application/json' }
440
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
320
441
  ): Observable<any> {
442
+ const id = requestParameters?.id;
321
443
  if (id === null || id === undefined) {
322
444
  throw new Error('Required parameter id was null or undefined when calling httpCollTypeItemBlueprintsUpdateById.');
323
445
  }
446
+ const collTypeItemBlueprint = requestParameters?.collTypeItemBlueprint;
324
447
  if (collTypeItemBlueprint === null || collTypeItemBlueprint === undefined) {
325
448
  throw new Error('Required parameter collTypeItemBlueprint was null or undefined when calling httpCollTypeItemBlueprintsUpdateById.');
326
449
  }
450
+ const translations = requestParameters?.translations;
451
+ const acceptLanguage = requestParameters?.acceptLanguage;
327
452
 
328
- let queryParameters = new HttpParams({ encoder: this.encoder });
453
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
329
454
  if (translations !== undefined && translations !== null) {
330
- queryParameters = this.addToHttpParams(queryParameters, <any>translations, 'translations');
455
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
331
456
  }
332
457
 
333
- let headers = this.defaultHeaders;
458
+ let localVarHeaders = this.defaultHeaders;
459
+ if (acceptLanguage !== undefined && acceptLanguage !== null) {
460
+ localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
461
+ }
334
462
 
335
- let credential: string | undefined;
463
+ let localVarCredential: string | undefined;
336
464
  // authentication (msal_auth) required
337
- credential = this.configuration.lookupCredential('msal_auth');
338
- if (credential) {
339
- headers = headers.set('Authorization', 'Bearer ' + credential);
465
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
466
+ if (localVarCredential) {
467
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
340
468
  }
341
469
 
342
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
343
- if (httpHeaderAcceptSelected === undefined) {
470
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
471
+ if (localVarHttpHeaderAcceptSelected === undefined) {
344
472
  // to determine the Accept header
345
473
  const httpHeaderAccepts: string[] = ['application/json'];
346
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
474
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
347
475
  }
348
- if (httpHeaderAcceptSelected !== undefined) {
349
- headers = headers.set('Accept', httpHeaderAcceptSelected);
476
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
477
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
478
+ }
479
+
480
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
481
+ if (localVarHttpContext === undefined) {
482
+ localVarHttpContext = new HttpContext();
483
+ }
484
+
485
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
486
+ if (localVarTransferCache === undefined) {
487
+ localVarTransferCache = true;
350
488
  }
351
489
 
352
490
  // to determine the Content-Type header
353
491
  const consumes: string[] = ['application/json'];
354
492
  const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
355
493
  if (httpContentTypeSelected !== undefined) {
356
- headers = headers.set('Content-Type', httpContentTypeSelected);
494
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
357
495
  }
358
496
 
359
- let responseType_: 'text' | 'json' = 'json';
360
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
361
- responseType_ = 'text';
497
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
498
+ if (localVarHttpHeaderAcceptSelected) {
499
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
500
+ responseType_ = 'text';
501
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
502
+ responseType_ = 'json';
503
+ } else {
504
+ responseType_ = 'blob';
505
+ }
362
506
  }
363
507
 
364
- return this.httpClient.post<CollTypeItemBlueprint>(`${this.configuration.basePath}/colltypeitemblueprints/${encodeURIComponent(String(id))}`, collTypeItemBlueprint, {
365
- params: queryParameters,
508
+ let localVarPath = `/colltypeitemblueprints/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
509
+ return this.httpClient.request<CollTypeItemBlueprint>('post', `${this.configuration.basePath}${localVarPath}`, {
510
+ context: localVarHttpContext,
511
+ body: collTypeItemBlueprint,
512
+ params: localVarQueryParameters,
366
513
  responseType: <any>responseType_,
367
514
  withCredentials: this.configuration.withCredentials,
368
- headers: headers,
515
+ headers: localVarHeaders,
369
516
  observe: observe,
517
+ transferCache: localVarTransferCache,
370
518
  reportProgress: reportProgress
371
519
  });
372
520
  }