@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,15 +11,24 @@
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 { HistoryEntry } from '../model/models';
18
+ // @ts-ignore
19
+ import { HistoryEntry } from '../model/historyEntry.agravity';
20
20
 
21
+ // @ts-ignore
21
22
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
22
23
  import { AgravityConfiguration } from '../configuration';
23
24
 
25
+ export interface HttpHistoryEntriesGetByIdRequestParams {
26
+ /** The ID of the entity of which the history should be fetched. */
27
+ id: string;
28
+ /** The fields (comma separate) which should be included in the result. (i.e. collections on asset) */
29
+ include?: string;
30
+ }
31
+
24
32
  @Injectable({
25
33
  providedIn: 'root'
26
34
  })
@@ -32,13 +40,18 @@ export class HistoryEntryManagementService {
32
40
 
33
41
  constructor(
34
42
  protected httpClient: HttpClient,
35
- @Optional() @Inject(BASE_PATH) basePath: string,
43
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
36
44
  @Optional() configuration: AgravityConfiguration
37
45
  ) {
38
46
  if (configuration) {
39
47
  this.configuration = configuration;
40
48
  }
41
49
  if (typeof this.configuration.basePath !== 'string') {
50
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
51
+ if (firstBasePath != undefined) {
52
+ basePath = firstBasePath;
53
+ }
54
+
42
55
  if (typeof basePath !== 'string') {
43
56
  basePath = this.basePath;
44
57
  }
@@ -47,6 +60,7 @@ export class HistoryEntryManagementService {
47
60
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
48
61
  }
49
62
 
63
+ // @ts-ignore
50
64
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
51
65
  if (typeof value === 'object' && value instanceof Date === false) {
52
66
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -66,7 +80,7 @@ export class HistoryEntryManagementService {
66
80
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
67
81
  } else if (value instanceof Date) {
68
82
  if (key != null) {
69
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
83
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
70
84
  } else {
71
85
  throw Error('key may not be null if value is Date');
72
86
  }
@@ -83,66 +97,94 @@ export class HistoryEntryManagementService {
83
97
 
84
98
  /**
85
99
  * This endpoint gets the complete history of an entity.
86
- * @param id The ID of the entity of which the history should be fetched.
87
- * @param include The fields (comma separate) which should be included in the result. (i.e. collections on asset)
100
+ * @param requestParameters
88
101
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
89
102
  * @param reportProgress flag to report request and response progress.
90
103
  */
91
- public httpHistoryEntriesGetById(id: string, include?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<HistoryEntry>>;
92
104
  public httpHistoryEntriesGetById(
93
- id: string,
94
- include?: string,
105
+ requestParameters?: HttpHistoryEntriesGetByIdRequestParams,
106
+ observe?: 'body',
107
+ reportProgress?: boolean,
108
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
109
+ ): Observable<Array<HistoryEntry>>;
110
+ public httpHistoryEntriesGetById(
111
+ requestParameters?: HttpHistoryEntriesGetByIdRequestParams,
95
112
  observe?: 'response',
96
113
  reportProgress?: boolean,
97
- options?: { httpHeaderAccept?: 'application/json' }
114
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
98
115
  ): Observable<HttpResponse<Array<HistoryEntry>>>;
99
116
  public httpHistoryEntriesGetById(
100
- id: string,
101
- include?: string,
117
+ requestParameters?: HttpHistoryEntriesGetByIdRequestParams,
102
118
  observe?: 'events',
103
119
  reportProgress?: boolean,
104
- options?: { httpHeaderAccept?: 'application/json' }
120
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
105
121
  ): Observable<HttpEvent<Array<HistoryEntry>>>;
106
- public httpHistoryEntriesGetById(id: string, include?: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
122
+ public httpHistoryEntriesGetById(
123
+ requestParameters?: HttpHistoryEntriesGetByIdRequestParams,
124
+ observe: any = 'body',
125
+ reportProgress: boolean = false,
126
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
127
+ ): Observable<any> {
128
+ const id = requestParameters?.id;
107
129
  if (id === null || id === undefined) {
108
130
  throw new Error('Required parameter id was null or undefined when calling httpHistoryEntriesGetById.');
109
131
  }
132
+ const include = requestParameters?.include;
110
133
 
111
- let queryParameters = new HttpParams({ encoder: this.encoder });
134
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
112
135
  if (include !== undefined && include !== null) {
113
- queryParameters = this.addToHttpParams(queryParameters, <any>include, 'include');
136
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>include, 'include');
114
137
  }
115
138
 
116
- let headers = this.defaultHeaders;
139
+ let localVarHeaders = this.defaultHeaders;
117
140
 
118
- let credential: string | undefined;
141
+ let localVarCredential: string | undefined;
119
142
  // authentication (msal_auth) required
120
- credential = this.configuration.lookupCredential('msal_auth');
121
- if (credential) {
122
- headers = headers.set('Authorization', 'Bearer ' + credential);
143
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
144
+ if (localVarCredential) {
145
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
123
146
  }
124
147
 
125
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
126
- if (httpHeaderAcceptSelected === undefined) {
148
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
149
+ if (localVarHttpHeaderAcceptSelected === undefined) {
127
150
  // to determine the Accept header
128
151
  const httpHeaderAccepts: string[] = ['application/json'];
129
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
152
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
130
153
  }
131
- if (httpHeaderAcceptSelected !== undefined) {
132
- headers = headers.set('Accept', httpHeaderAcceptSelected);
154
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
155
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
133
156
  }
134
157
 
135
- let responseType_: 'text' | 'json' = 'json';
136
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
137
- responseType_ = 'text';
158
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
159
+ if (localVarHttpContext === undefined) {
160
+ localVarHttpContext = new HttpContext();
161
+ }
162
+
163
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
164
+ if (localVarTransferCache === undefined) {
165
+ localVarTransferCache = true;
166
+ }
167
+
168
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
169
+ if (localVarHttpHeaderAcceptSelected) {
170
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
171
+ responseType_ = 'text';
172
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
173
+ responseType_ = 'json';
174
+ } else {
175
+ responseType_ = 'blob';
176
+ }
138
177
  }
139
178
 
140
- return this.httpClient.get<Array<HistoryEntry>>(`${this.configuration.basePath}/history/${encodeURIComponent(String(id))}`, {
141
- params: queryParameters,
179
+ let localVarPath = `/history/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
180
+ return this.httpClient.request<Array<HistoryEntry>>('get', `${this.configuration.basePath}${localVarPath}`, {
181
+ context: localVarHttpContext,
182
+ params: localVarQueryParameters,
142
183
  responseType: <any>responseType_,
143
184
  withCredentials: this.configuration.withCredentials,
144
- headers: headers,
185
+ headers: localVarHeaders,
145
186
  observe: observe,
187
+ transferCache: localVarTransferCache,
146
188
  reportProgress: reportProgress
147
189
  });
148
190
  }
@@ -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,10 +11,11 @@
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
 
18
+ // @ts-ignore
19
19
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
20
20
  import { AgravityConfiguration } from '../configuration';
21
21
 
@@ -30,13 +30,18 @@ export class IccProfileManagementService {
30
30
 
31
31
  constructor(
32
32
  protected httpClient: HttpClient,
33
- @Optional() @Inject(BASE_PATH) basePath: string,
33
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
34
34
  @Optional() configuration: AgravityConfiguration
35
35
  ) {
36
36
  if (configuration) {
37
37
  this.configuration = configuration;
38
38
  }
39
39
  if (typeof this.configuration.basePath !== 'string') {
40
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
41
+ if (firstBasePath != undefined) {
42
+ basePath = firstBasePath;
43
+ }
44
+
40
45
  if (typeof basePath !== 'string') {
41
46
  basePath = this.basePath;
42
47
  }
@@ -45,6 +50,7 @@ export class IccProfileManagementService {
45
50
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
46
51
  }
47
52
 
53
+ // @ts-ignore
48
54
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
49
55
  if (typeof value === 'object' && value instanceof Date === false) {
50
56
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -64,7 +70,7 @@ export class IccProfileManagementService {
64
70
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
65
71
  } else if (value instanceof Date) {
66
72
  if (key != null) {
67
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
73
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
68
74
  } else {
69
75
  throw Error('key may not be null if value is Date');
70
76
  }
@@ -84,39 +90,74 @@ export class IccProfileManagementService {
84
90
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
85
91
  * @param reportProgress flag to report request and response progress.
86
92
  */
87
- public httpIccProfilesGetAll(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<Array<string>>;
88
- public httpIccProfilesGetAll(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<Array<string>>>;
89
- public httpIccProfilesGetAll(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<Array<string>>>;
90
- public httpIccProfilesGetAll(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
91
- let headers = this.defaultHeaders;
93
+ public httpIccProfilesGetAll(
94
+ observe?: 'body',
95
+ reportProgress?: boolean,
96
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
97
+ ): Observable<Array<string>>;
98
+ public httpIccProfilesGetAll(
99
+ observe?: 'response',
100
+ reportProgress?: boolean,
101
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
102
+ ): Observable<HttpResponse<Array<string>>>;
103
+ public httpIccProfilesGetAll(
104
+ observe?: 'events',
105
+ reportProgress?: boolean,
106
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
107
+ ): Observable<HttpEvent<Array<string>>>;
108
+ public httpIccProfilesGetAll(
109
+ observe: any = 'body',
110
+ reportProgress: boolean = false,
111
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
112
+ ): Observable<any> {
113
+ let localVarHeaders = this.defaultHeaders;
92
114
 
93
- let credential: string | undefined;
115
+ let localVarCredential: string | undefined;
94
116
  // authentication (msal_auth) required
95
- credential = this.configuration.lookupCredential('msal_auth');
96
- if (credential) {
97
- headers = headers.set('Authorization', 'Bearer ' + credential);
117
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
118
+ if (localVarCredential) {
119
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
98
120
  }
99
121
 
100
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
101
- if (httpHeaderAcceptSelected === undefined) {
122
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
123
+ if (localVarHttpHeaderAcceptSelected === undefined) {
102
124
  // to determine the Accept header
103
125
  const httpHeaderAccepts: string[] = ['application/json'];
104
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
126
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
127
+ }
128
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
129
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
130
+ }
131
+
132
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
133
+ if (localVarHttpContext === undefined) {
134
+ localVarHttpContext = new HttpContext();
105
135
  }
106
- if (httpHeaderAcceptSelected !== undefined) {
107
- headers = headers.set('Accept', httpHeaderAcceptSelected);
136
+
137
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
138
+ if (localVarTransferCache === undefined) {
139
+ localVarTransferCache = true;
108
140
  }
109
141
 
110
- let responseType_: 'text' | 'json' = 'json';
111
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
112
- responseType_ = 'text';
142
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
143
+ if (localVarHttpHeaderAcceptSelected) {
144
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
145
+ responseType_ = 'text';
146
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
147
+ responseType_ = 'json';
148
+ } else {
149
+ responseType_ = 'blob';
150
+ }
113
151
  }
114
152
 
115
- return this.httpClient.get<Array<string>>(`${this.configuration.basePath}/iccprofiles`, {
153
+ let localVarPath = `/iccprofiles`;
154
+ return this.httpClient.request<Array<string>>('get', `${this.configuration.basePath}${localVarPath}`, {
155
+ context: localVarHttpContext,
116
156
  responseType: <any>responseType_,
117
157
  withCredentials: this.configuration.withCredentials,
118
- headers: headers,
158
+ headers: localVarHeaders,
119
159
  observe: observe,
160
+ transferCache: localVarTransferCache,
120
161
  reportProgress: reportProgress
121
162
  });
122
163
  }
@@ -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,13 +11,16 @@
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 { AgravityInfoResponse } from '../model/models';
18
+ // @ts-ignore
19
+ import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
20
+ // @ts-ignore
21
+ import { AgravityInfoResponse } from '../model/agravityInfoResponse.agravity';
21
22
 
23
+ // @ts-ignore
22
24
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
25
  import { AgravityConfiguration } from '../configuration';
24
26
 
@@ -33,13 +35,18 @@ export class ListBlobsService {
33
35
 
34
36
  constructor(
35
37
  protected httpClient: HttpClient,
36
- @Optional() @Inject(BASE_PATH) basePath: string,
38
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
37
39
  @Optional() configuration: AgravityConfiguration
38
40
  ) {
39
41
  if (configuration) {
40
42
  this.configuration = configuration;
41
43
  }
42
44
  if (typeof this.configuration.basePath !== 'string') {
45
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
46
+ if (firstBasePath != undefined) {
47
+ basePath = firstBasePath;
48
+ }
49
+
43
50
  if (typeof basePath !== 'string') {
44
51
  basePath = this.basePath;
45
52
  }
@@ -48,6 +55,7 @@ export class ListBlobsService {
48
55
  this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
49
56
  }
50
57
 
58
+ // @ts-ignore
51
59
  private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
52
60
  if (typeof value === 'object' && value instanceof Date === false) {
53
61
  httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -67,7 +75,7 @@ export class ListBlobsService {
67
75
  (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
68
76
  } else if (value instanceof Date) {
69
77
  if (key != null) {
70
- httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
78
+ httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
71
79
  } else {
72
80
  throw Error('key may not be null if value is Date');
73
81
  }
@@ -87,39 +95,74 @@ export class ListBlobsService {
87
95
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
88
96
  * @param reportProgress flag to report request and response progress.
89
97
  */
90
- public httpDeleteAllBlobs(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityInfoResponse>;
91
- public httpDeleteAllBlobs(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<AgravityInfoResponse>>;
92
- public httpDeleteAllBlobs(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<AgravityInfoResponse>>;
93
- public httpDeleteAllBlobs(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
94
- let headers = this.defaultHeaders;
95
-
96
- let credential: string | undefined;
98
+ public httpDeleteAllBlobs(
99
+ observe?: 'body',
100
+ reportProgress?: boolean,
101
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
102
+ ): Observable<AgravityInfoResponse>;
103
+ public httpDeleteAllBlobs(
104
+ observe?: 'response',
105
+ reportProgress?: boolean,
106
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
107
+ ): Observable<HttpResponse<AgravityInfoResponse>>;
108
+ public httpDeleteAllBlobs(
109
+ observe?: 'events',
110
+ reportProgress?: boolean,
111
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
112
+ ): Observable<HttpEvent<AgravityInfoResponse>>;
113
+ public httpDeleteAllBlobs(
114
+ observe: any = 'body',
115
+ reportProgress: boolean = false,
116
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
117
+ ): Observable<any> {
118
+ let localVarHeaders = this.defaultHeaders;
119
+
120
+ let localVarCredential: string | undefined;
97
121
  // authentication (msal_auth) required
98
- credential = this.configuration.lookupCredential('msal_auth');
99
- if (credential) {
100
- headers = headers.set('Authorization', 'Bearer ' + credential);
122
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
123
+ if (localVarCredential) {
124
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
101
125
  }
102
126
 
103
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
104
- if (httpHeaderAcceptSelected === undefined) {
127
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
128
+ if (localVarHttpHeaderAcceptSelected === undefined) {
105
129
  // to determine the Accept header
106
130
  const httpHeaderAccepts: string[] = ['application/json'];
107
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
131
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
108
132
  }
109
- if (httpHeaderAcceptSelected !== undefined) {
110
- headers = headers.set('Accept', httpHeaderAcceptSelected);
133
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
134
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
135
+ }
136
+
137
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
138
+ if (localVarHttpContext === undefined) {
139
+ localVarHttpContext = new HttpContext();
111
140
  }
112
141
 
113
- let responseType_: 'text' | 'json' = 'json';
114
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
115
- responseType_ = 'text';
142
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
143
+ if (localVarTransferCache === undefined) {
144
+ localVarTransferCache = true;
145
+ }
146
+
147
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
148
+ if (localVarHttpHeaderAcceptSelected) {
149
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
150
+ responseType_ = 'text';
151
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
152
+ responseType_ = 'json';
153
+ } else {
154
+ responseType_ = 'blob';
155
+ }
116
156
  }
117
157
 
118
- return this.httpClient.delete<AgravityInfoResponse>(`${this.configuration.basePath}/blobs`, {
158
+ let localVarPath = `/blobs`;
159
+ return this.httpClient.request<AgravityInfoResponse>('delete', `${this.configuration.basePath}${localVarPath}`, {
160
+ context: localVarHttpContext,
119
161
  responseType: <any>responseType_,
120
162
  withCredentials: this.configuration.withCredentials,
121
- headers: headers,
163
+ headers: localVarHeaders,
122
164
  observe: observe,
165
+ transferCache: localVarTransferCache,
123
166
  reportProgress: reportProgress
124
167
  });
125
168
  }
@@ -129,39 +172,74 @@ export class ListBlobsService {
129
172
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
130
173
  * @param reportProgress flag to report request and response progress.
131
174
  */
132
- public httpListAllBlobs(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' }): Observable<string>;
133
- public httpListAllBlobs(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' }): Observable<HttpResponse<string>>;
134
- public httpListAllBlobs(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' }): Observable<HttpEvent<string>>;
135
- public httpListAllBlobs(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' }): Observable<any> {
136
- let headers = this.defaultHeaders;
137
-
138
- let credential: string | undefined;
175
+ public httpListAllBlobs(
176
+ observe?: 'body',
177
+ reportProgress?: boolean,
178
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
179
+ ): Observable<AgravityInfoResponse>;
180
+ public httpListAllBlobs(
181
+ observe?: 'response',
182
+ reportProgress?: boolean,
183
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
184
+ ): Observable<HttpResponse<AgravityInfoResponse>>;
185
+ public httpListAllBlobs(
186
+ observe?: 'events',
187
+ reportProgress?: boolean,
188
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
189
+ ): Observable<HttpEvent<AgravityInfoResponse>>;
190
+ public httpListAllBlobs(
191
+ observe: any = 'body',
192
+ reportProgress: boolean = false,
193
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
194
+ ): Observable<any> {
195
+ let localVarHeaders = this.defaultHeaders;
196
+
197
+ let localVarCredential: string | undefined;
139
198
  // authentication (msal_auth) required
140
- credential = this.configuration.lookupCredential('msal_auth');
141
- if (credential) {
142
- headers = headers.set('Authorization', 'Bearer ' + credential);
199
+ localVarCredential = this.configuration.lookupCredential('msal_auth');
200
+ if (localVarCredential) {
201
+ localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
143
202
  }
144
203
 
145
- let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
146
- if (httpHeaderAcceptSelected === undefined) {
204
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
205
+ if (localVarHttpHeaderAcceptSelected === undefined) {
147
206
  // to determine the Accept header
148
- const httpHeaderAccepts: string[] = ['text/plain', 'application/json'];
149
- httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
207
+ const httpHeaderAccepts: string[] = ['application/json'];
208
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
209
+ }
210
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
211
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
212
+ }
213
+
214
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
215
+ if (localVarHttpContext === undefined) {
216
+ localVarHttpContext = new HttpContext();
150
217
  }
151
- if (httpHeaderAcceptSelected !== undefined) {
152
- headers = headers.set('Accept', httpHeaderAcceptSelected);
218
+
219
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
220
+ if (localVarTransferCache === undefined) {
221
+ localVarTransferCache = true;
153
222
  }
154
223
 
155
- let responseType_: 'text' | 'json' = 'json';
156
- if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
157
- responseType_ = 'text';
224
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
225
+ if (localVarHttpHeaderAcceptSelected) {
226
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
227
+ responseType_ = 'text';
228
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
229
+ responseType_ = 'json';
230
+ } else {
231
+ responseType_ = 'blob';
232
+ }
158
233
  }
159
234
 
160
- return this.httpClient.get<string>(`${this.configuration.basePath}/blobs`, {
235
+ let localVarPath = `/blobs`;
236
+ return this.httpClient.request<AgravityInfoResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
237
+ context: localVarHttpContext,
161
238
  responseType: <any>responseType_,
162
239
  withCredentials: this.configuration.withCredentials,
163
- headers: headers,
240
+ headers: localVarHeaders,
164
241
  observe: observe,
242
+ transferCache: localVarTransferCache,
165
243
  reportProgress: reportProgress
166
244
  });
167
245
  }