@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.
- package/.openapi-generator/FILES +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/assetIconRuleManagement.agravity.ts +344 -150
- package/api/assetManagement.agravity.ts +709 -389
- package/api/assetOperations.agravity.ts +1414 -650
- package/api/assetPublishing.agravity.ts +562 -255
- package/api/assetVersioning.agravity.ts +598 -278
- package/api/authenticationManagement.agravity.ts +731 -274
- package/api/collectionManagement.agravity.ts +618 -309
- package/api/collectionShareManagement.agravity.ts +256 -121
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
- package/api/collectionTypeManagement.agravity.ts +519 -250
- package/api/commentsManagement.agravity.ts +284 -90
- package/api/configurationManagement.agravity.ts +311 -128
- package/api/dashboardWidgetManagement.agravity.ts +342 -124
- package/api/dataImportExportManagement.agravity.ts +378 -148
- package/api/downloadFormatManagement.agravity.ts +450 -152
- package/api/downloadZip.agravity.ts +75 -30
- package/api/generalManagement.agravity.ts +374 -164
- package/api/helperTools.agravity.ts +804 -273
- package/api/historyEntryManagement.agravity.ts +75 -33
- package/api/iccProfileManagement.agravity.ts +64 -23
- package/api/listBlobs.agravity.ts +125 -47
- package/api/listQueues.agravity.ts +68 -24
- package/api/listTables.agravity.ts +68 -25
- package/api/permissionsManagement.agravity.ts +174 -77
- package/api/portalManagement.agravity.ts +511 -198
- package/api/publishing.agravity.ts +69 -38
- package/api/quickshareManagement.agravity.ts +349 -138
- package/api/savedSearchManagement.agravity.ts +205 -92
- package/api/searchManagement.agravity.ts +517 -297
- package/api/secureUpload.agravity.ts +325 -126
- package/api/signalRConnectionManagement.agravity.ts +175 -56
- package/api/staticDefinedListManagement.agravity.ts +342 -162
- package/api/stockImport.agravity.ts +138 -74
- package/api/structureImport.agravity.ts +68 -25
- package/api/translationManagement.agravity.ts +357 -206
- package/api/webAppData.agravity.ts +278 -88
- package/api/widgetLayoutManagement.agravity.ts +131 -47
- package/api/wordpressManagement.agravity.ts +152 -108
- package/api/workspaceManagement.agravity.ts +456 -197
- package/api.module.ts +0 -40
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.agravity.ts +3 -4
- package/model/agravityInfoResponse.agravity.ts +3 -4
- package/model/agravityUser.agravity.ts +16 -17
- package/model/agravityUserDto.agravity.ts +3 -4
- package/model/agravityVersion.agravity.ts +8 -9
- package/model/allWebAppData.agravity.ts +4 -5
- package/model/apiKeyResponse.agravity.ts +2 -3
- package/model/appConfigTableEntity.agravity.ts +8 -9
- package/model/artificialIntelligenceGroup.agravity.ts +3 -4
- package/model/asset.agravity.ts +22 -23
- package/model/assetAvailability.agravity.ts +1 -2
- package/model/assetBlob.agravity.ts +27 -28
- package/model/assetBulkUpdate.agravity.ts +2 -3
- package/model/assetCollectionLink.agravity.ts +2 -3
- package/model/assetIconRule.agravity.ts +17 -18
- package/model/assetIdFormat.agravity.ts +3 -4
- package/model/assetPageResult.agravity.ts +4 -5
- package/model/assetTextContent.agravity.ts +2 -3
- package/model/assetsOperationBody.agravity.ts +3 -4
- package/model/azSearchOptions.agravity.ts +8 -9
- package/model/azureIdentity.agravity.ts +4 -5
- package/model/blobInfoObj.agravity.ts +0 -1
- package/model/collTypeItem.agravity.ts +16 -17
- package/model/collTypeItemBlueprint.agravity.ts +12 -13
- package/model/collection.agravity.ts +15 -16
- package/model/collectionType.agravity.ts +14 -15
- package/model/collectionUDL.agravity.ts +4 -5
- package/model/collectionUDLListEntity.agravity.ts +9 -10
- package/model/collectionUDLReference.agravity.ts +3 -4
- package/model/comment.agravity.ts +9 -10
- package/model/createSftpUserResult.agravity.ts +2 -3
- package/model/dashboardWidget.agravity.ts +11 -12
- package/model/dataResult.agravity.ts +4 -5
- package/model/deletedEntities.agravity.ts +4 -5
- package/model/distZipResponse.agravity.ts +3 -4
- package/model/downloadFormat.agravity.ts +18 -16
- package/model/downloadObject.agravity.ts +16 -16
- package/model/downloadZipRequest.agravity.ts +9 -10
- package/model/dynamicImageOperation.agravity.ts +2 -3
- package/model/emailAddress.agravity.ts +2 -3
- package/model/entityId.agravity.ts +1 -2
- package/model/entityIdName.agravity.ts +3 -4
- package/model/entityTranslations.agravity.ts +2 -3
- package/model/excelExportTableEntity.agravity.ts +5 -5
- package/model/frontendAppConfig.agravity.ts +0 -1
- package/model/groupAllAppData.agravity.ts +5 -6
- package/model/historyEntry.agravity.ts +9 -10
- package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
- package/model/metadata.agravity.ts +3 -4
- package/model/models.ts +0 -1
- package/model/moveCollectionBody.agravity.ts +3 -4
- package/model/permissionChange.agravity.ts +1 -2
- package/model/permissionEntity.agravity.ts +1 -2
- package/model/permissionSetting.agravity.ts +8 -9
- package/model/portal.agravity.ts +18 -20
- package/model/portalLinks.agravity.ts +3 -4
- package/model/portalTheme.agravity.ts +6 -7
- package/model/portalZipRequest.agravity.ts +14 -15
- package/model/publishEntity.agravity.ts +9 -10
- package/model/publishedAsset.agravity.ts +12 -13
- package/model/quickShare.agravity.ts +12 -13
- package/model/quickShareFull.agravity.ts +15 -16
- package/model/sasToken.agravity.ts +6 -7
- package/model/savedSearch.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.agravity.ts +2 -3
- package/model/searchAdminStatistics.agravity.ts +2 -3
- package/model/searchAdminStatus.agravity.ts +4 -5
- package/model/searchFacet.agravity.ts +2 -3
- package/model/searchFacetEntity.agravity.ts +2 -3
- package/model/searchResult.agravity.ts +3 -4
- package/model/searchableItem.agravity.ts +3 -4
- package/model/secureUploadEntity.agravity.ts +10 -11
- package/model/sharedAllowedFormat.agravity.ts +2 -3
- package/model/sharedAsset.agravity.ts +5 -6
- package/model/sharedCollection.agravity.ts +15 -16
- package/model/sharedCollectionFull.agravity.ts +18 -19
- package/model/signalRConnectionInfo.agravity.ts +0 -1
- package/model/simpleAsset.agravity.ts +10 -11
- package/model/staticDefinedList.agravity.ts +12 -13
- package/model/translation.agravity.ts +2 -3
- package/model/translationRequest.agravity.ts +3 -4
- package/model/uiTutorials.agravity.ts +0 -1
- package/model/versionEntity.agravity.ts +9 -10
- package/model/versionedAsset.agravity.ts +5 -6
- package/model/whereParam.agravity.ts +0 -1
- package/model/widgetLayout.agravity.ts +8 -9
- package/model/widgetProperties.agravity.ts +6 -7
- package/model/workspace.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- 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,16 +11,35 @@
|
|
|
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
|
-
|
|
20
|
-
import {
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { GroupAllAppData } from '../model/groupAllAppData.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 HttpStockImportPixabayRequestParams {
|
|
28
|
+
/** The query term which should be found on Pixabay. */
|
|
29
|
+
q: string;
|
|
30
|
+
/** The maximum count of images which should be imported (Default 10). */
|
|
31
|
+
count?: number;
|
|
32
|
+
/** This optional parameter indicates if it should be video (default: image) */
|
|
33
|
+
mediaType?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HttpStockImportUnsplashRequestParams {
|
|
37
|
+
/** The query term which should be found on Unsplash. */
|
|
38
|
+
q: string;
|
|
39
|
+
/** The maximum count of images which should be imported (Default 10). */
|
|
40
|
+
count?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
25
43
|
@Injectable({
|
|
26
44
|
providedIn: 'root'
|
|
27
45
|
})
|
|
@@ -33,13 +51,18 @@ export class StockImportService {
|
|
|
33
51
|
|
|
34
52
|
constructor(
|
|
35
53
|
protected httpClient: HttpClient,
|
|
36
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
54
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
37
55
|
@Optional() configuration: AgravityConfiguration
|
|
38
56
|
) {
|
|
39
57
|
if (configuration) {
|
|
40
58
|
this.configuration = configuration;
|
|
41
59
|
}
|
|
42
60
|
if (typeof this.configuration.basePath !== 'string') {
|
|
61
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
62
|
+
if (firstBasePath != undefined) {
|
|
63
|
+
basePath = firstBasePath;
|
|
64
|
+
}
|
|
65
|
+
|
|
43
66
|
if (typeof basePath !== 'string') {
|
|
44
67
|
basePath = this.basePath;
|
|
45
68
|
}
|
|
@@ -48,6 +71,7 @@ export class StockImportService {
|
|
|
48
71
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
72
|
}
|
|
50
73
|
|
|
74
|
+
// @ts-ignore
|
|
51
75
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
76
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
77
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -67,7 +91,7 @@ export class StockImportService {
|
|
|
67
91
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
92
|
} else if (value instanceof Date) {
|
|
69
93
|
if (key != null) {
|
|
70
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
94
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
71
95
|
} else {
|
|
72
96
|
throw Error('key may not be null if value is Date');
|
|
73
97
|
}
|
|
@@ -84,158 +108,198 @@ export class StockImportService {
|
|
|
84
108
|
|
|
85
109
|
/**
|
|
86
110
|
* This imports 10 images from Pixabay into new collection type with specific id: t111111111111
|
|
87
|
-
* @param
|
|
88
|
-
* @param count The maximum count of images which should be imported (Default 10).
|
|
89
|
-
* @param mediaType This optional parameter indicates if it should be video (default: image)
|
|
111
|
+
* @param requestParameters
|
|
90
112
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
91
113
|
* @param reportProgress flag to report request and response progress.
|
|
92
114
|
*/
|
|
93
115
|
public httpStockImportPixabay(
|
|
94
|
-
|
|
95
|
-
count?: number,
|
|
96
|
-
mediaType?: string,
|
|
116
|
+
requestParameters?: HttpStockImportPixabayRequestParams,
|
|
97
117
|
observe?: 'body',
|
|
98
118
|
reportProgress?: boolean,
|
|
99
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
119
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
100
120
|
): Observable<GroupAllAppData>;
|
|
101
121
|
public httpStockImportPixabay(
|
|
102
|
-
|
|
103
|
-
count?: number,
|
|
104
|
-
mediaType?: string,
|
|
122
|
+
requestParameters?: HttpStockImportPixabayRequestParams,
|
|
105
123
|
observe?: 'response',
|
|
106
124
|
reportProgress?: boolean,
|
|
107
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
125
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
108
126
|
): Observable<HttpResponse<GroupAllAppData>>;
|
|
109
127
|
public httpStockImportPixabay(
|
|
110
|
-
|
|
111
|
-
count?: number,
|
|
112
|
-
mediaType?: string,
|
|
128
|
+
requestParameters?: HttpStockImportPixabayRequestParams,
|
|
113
129
|
observe?: 'events',
|
|
114
130
|
reportProgress?: boolean,
|
|
115
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
131
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
116
132
|
): Observable<HttpEvent<GroupAllAppData>>;
|
|
117
133
|
public httpStockImportPixabay(
|
|
118
|
-
|
|
119
|
-
count?: number,
|
|
120
|
-
mediaType?: string,
|
|
134
|
+
requestParameters?: HttpStockImportPixabayRequestParams,
|
|
121
135
|
observe: any = 'body',
|
|
122
136
|
reportProgress: boolean = false,
|
|
123
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
137
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
124
138
|
): Observable<any> {
|
|
139
|
+
const q = requestParameters?.q;
|
|
125
140
|
if (q === null || q === undefined) {
|
|
126
141
|
throw new Error('Required parameter q was null or undefined when calling httpStockImportPixabay.');
|
|
127
142
|
}
|
|
143
|
+
const count = requestParameters?.count;
|
|
144
|
+
const mediaType = requestParameters?.mediaType;
|
|
128
145
|
|
|
129
|
-
let
|
|
146
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
130
147
|
if (q !== undefined && q !== null) {
|
|
131
|
-
|
|
148
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>q, 'q');
|
|
132
149
|
}
|
|
133
150
|
if (count !== undefined && count !== null) {
|
|
134
|
-
|
|
151
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>count, 'count');
|
|
135
152
|
}
|
|
136
153
|
if (mediaType !== undefined && mediaType !== null) {
|
|
137
|
-
|
|
154
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mediaType, 'media_type');
|
|
138
155
|
}
|
|
139
156
|
|
|
140
|
-
let
|
|
157
|
+
let localVarHeaders = this.defaultHeaders;
|
|
141
158
|
|
|
142
|
-
let
|
|
159
|
+
let localVarCredential: string | undefined;
|
|
143
160
|
// authentication (msal_auth) required
|
|
144
|
-
|
|
145
|
-
if (
|
|
146
|
-
|
|
161
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
162
|
+
if (localVarCredential) {
|
|
163
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
147
164
|
}
|
|
148
165
|
|
|
149
|
-
let
|
|
150
|
-
if (
|
|
166
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
167
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
151
168
|
// to determine the Accept header
|
|
152
169
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
153
|
-
|
|
170
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
154
171
|
}
|
|
155
|
-
if (
|
|
156
|
-
|
|
172
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
173
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
157
174
|
}
|
|
158
175
|
|
|
159
|
-
let
|
|
160
|
-
if (
|
|
161
|
-
|
|
176
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
177
|
+
if (localVarHttpContext === undefined) {
|
|
178
|
+
localVarHttpContext = new HttpContext();
|
|
162
179
|
}
|
|
163
180
|
|
|
164
|
-
|
|
165
|
-
|
|
181
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
182
|
+
if (localVarTransferCache === undefined) {
|
|
183
|
+
localVarTransferCache = true;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
187
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
188
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
189
|
+
responseType_ = 'text';
|
|
190
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
191
|
+
responseType_ = 'json';
|
|
192
|
+
} else {
|
|
193
|
+
responseType_ = 'blob';
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
let localVarPath = `/stockimport/pixabay`;
|
|
198
|
+
return this.httpClient.request<GroupAllAppData>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
199
|
+
context: localVarHttpContext,
|
|
200
|
+
params: localVarQueryParameters,
|
|
166
201
|
responseType: <any>responseType_,
|
|
167
202
|
withCredentials: this.configuration.withCredentials,
|
|
168
|
-
headers:
|
|
203
|
+
headers: localVarHeaders,
|
|
169
204
|
observe: observe,
|
|
205
|
+
transferCache: localVarTransferCache,
|
|
170
206
|
reportProgress: reportProgress
|
|
171
207
|
});
|
|
172
208
|
}
|
|
173
209
|
|
|
174
210
|
/**
|
|
175
211
|
* This imports 10 images from Unsplash into new collection type with specific id: t10000000-0000-0000-0000-000000000000
|
|
176
|
-
* @param
|
|
177
|
-
* @param count The maximum count of images which should be imported (Default 10).
|
|
212
|
+
* @param requestParameters
|
|
178
213
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
179
214
|
* @param reportProgress flag to report request and response progress.
|
|
180
215
|
*/
|
|
181
|
-
public httpStockImportUnsplash(q: string, count?: number, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<GroupAllAppData>;
|
|
182
216
|
public httpStockImportUnsplash(
|
|
183
|
-
|
|
184
|
-
|
|
217
|
+
requestParameters?: HttpStockImportUnsplashRequestParams,
|
|
218
|
+
observe?: 'body',
|
|
219
|
+
reportProgress?: boolean,
|
|
220
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
221
|
+
): Observable<GroupAllAppData>;
|
|
222
|
+
public httpStockImportUnsplash(
|
|
223
|
+
requestParameters?: HttpStockImportUnsplashRequestParams,
|
|
185
224
|
observe?: 'response',
|
|
186
225
|
reportProgress?: boolean,
|
|
187
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
226
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
188
227
|
): Observable<HttpResponse<GroupAllAppData>>;
|
|
189
228
|
public httpStockImportUnsplash(
|
|
190
|
-
|
|
191
|
-
count?: number,
|
|
229
|
+
requestParameters?: HttpStockImportUnsplashRequestParams,
|
|
192
230
|
observe?: 'events',
|
|
193
231
|
reportProgress?: boolean,
|
|
194
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
232
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
195
233
|
): Observable<HttpEvent<GroupAllAppData>>;
|
|
196
|
-
public httpStockImportUnsplash(
|
|
234
|
+
public httpStockImportUnsplash(
|
|
235
|
+
requestParameters?: HttpStockImportUnsplashRequestParams,
|
|
236
|
+
observe: any = 'body',
|
|
237
|
+
reportProgress: boolean = false,
|
|
238
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
239
|
+
): Observable<any> {
|
|
240
|
+
const q = requestParameters?.q;
|
|
197
241
|
if (q === null || q === undefined) {
|
|
198
242
|
throw new Error('Required parameter q was null or undefined when calling httpStockImportUnsplash.');
|
|
199
243
|
}
|
|
244
|
+
const count = requestParameters?.count;
|
|
200
245
|
|
|
201
|
-
let
|
|
246
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
202
247
|
if (q !== undefined && q !== null) {
|
|
203
|
-
|
|
248
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>q, 'q');
|
|
204
249
|
}
|
|
205
250
|
if (count !== undefined && count !== null) {
|
|
206
|
-
|
|
251
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>count, 'count');
|
|
207
252
|
}
|
|
208
253
|
|
|
209
|
-
let
|
|
254
|
+
let localVarHeaders = this.defaultHeaders;
|
|
210
255
|
|
|
211
|
-
let
|
|
256
|
+
let localVarCredential: string | undefined;
|
|
212
257
|
// authentication (msal_auth) required
|
|
213
|
-
|
|
214
|
-
if (
|
|
215
|
-
|
|
258
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
259
|
+
if (localVarCredential) {
|
|
260
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
216
261
|
}
|
|
217
262
|
|
|
218
|
-
let
|
|
219
|
-
if (
|
|
263
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
264
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
220
265
|
// to determine the Accept header
|
|
221
266
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
222
|
-
|
|
267
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
223
268
|
}
|
|
224
|
-
if (
|
|
225
|
-
|
|
269
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
270
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
226
271
|
}
|
|
227
272
|
|
|
228
|
-
let
|
|
229
|
-
if (
|
|
230
|
-
|
|
273
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
274
|
+
if (localVarHttpContext === undefined) {
|
|
275
|
+
localVarHttpContext = new HttpContext();
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
279
|
+
if (localVarTransferCache === undefined) {
|
|
280
|
+
localVarTransferCache = true;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
284
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
285
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
286
|
+
responseType_ = 'text';
|
|
287
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
288
|
+
responseType_ = 'json';
|
|
289
|
+
} else {
|
|
290
|
+
responseType_ = 'blob';
|
|
291
|
+
}
|
|
231
292
|
}
|
|
232
293
|
|
|
233
|
-
|
|
234
|
-
|
|
294
|
+
let localVarPath = `/stockimport/unsplash`;
|
|
295
|
+
return this.httpClient.request<GroupAllAppData>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
296
|
+
context: localVarHttpContext,
|
|
297
|
+
params: localVarQueryParameters,
|
|
235
298
|
responseType: <any>responseType_,
|
|
236
299
|
withCredentials: this.configuration.withCredentials,
|
|
237
|
-
headers:
|
|
300
|
+
headers: localVarHeaders,
|
|
238
301
|
observe: observe,
|
|
302
|
+
transferCache: localVarTransferCache,
|
|
239
303
|
reportProgress: reportProgress
|
|
240
304
|
});
|
|
241
305
|
}
|
|
@@ -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
|
-
|
|
20
|
-
import {
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { BlobInfoObj } from '../model/blobInfoObj.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 StructureImportService {
|
|
|
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 StructureImportService {
|
|
|
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 StructureImportService {
|
|
|
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().
|
|
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 StructureImportService {
|
|
|
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 httpStructureCreateCollections(
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
public httpStructureCreateCollections(
|
|
99
|
+
observe?: 'body',
|
|
100
|
+
reportProgress?: boolean,
|
|
101
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
102
|
+
): Observable<Array<BlobInfoObj>>;
|
|
103
|
+
public httpStructureCreateCollections(
|
|
104
|
+
observe?: 'response',
|
|
105
|
+
reportProgress?: boolean,
|
|
106
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
107
|
+
): Observable<HttpResponse<Array<BlobInfoObj>>>;
|
|
108
|
+
public httpStructureCreateCollections(
|
|
109
|
+
observe?: 'events',
|
|
110
|
+
reportProgress?: boolean,
|
|
111
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
112
|
+
): Observable<HttpEvent<Array<BlobInfoObj>>>;
|
|
113
|
+
public httpStructureCreateCollections(
|
|
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;
|
|
95
119
|
|
|
96
|
-
let
|
|
120
|
+
let localVarCredential: string | undefined;
|
|
97
121
|
// authentication (msal_auth) required
|
|
98
|
-
|
|
99
|
-
if (
|
|
100
|
-
|
|
122
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
123
|
+
if (localVarCredential) {
|
|
124
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
101
125
|
}
|
|
102
126
|
|
|
103
|
-
let
|
|
104
|
-
if (
|
|
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
|
-
|
|
131
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
132
|
+
}
|
|
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();
|
|
108
140
|
}
|
|
109
|
-
|
|
110
|
-
|
|
141
|
+
|
|
142
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
143
|
+
if (localVarTransferCache === undefined) {
|
|
144
|
+
localVarTransferCache = true;
|
|
111
145
|
}
|
|
112
146
|
|
|
113
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
114
|
-
if (
|
|
115
|
-
|
|
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
|
-
|
|
158
|
+
let localVarPath = `/structure`;
|
|
159
|
+
return this.httpClient.request<Array<BlobInfoObj>>('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
160
|
+
context: localVarHttpContext,
|
|
119
161
|
responseType: <any>responseType_,
|
|
120
162
|
withCredentials: this.configuration.withCredentials,
|
|
121
|
-
headers:
|
|
163
|
+
headers: localVarHeaders,
|
|
122
164
|
observe: observe,
|
|
165
|
+
transferCache: localVarTransferCache,
|
|
123
166
|
reportProgress: reportProgress
|
|
124
167
|
});
|
|
125
168
|
}
|