@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.
- 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 +19 -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.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,42 @@
|
|
|
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 { SavedSearch } from '../model/savedSearch.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 HttpSavedSearchesCreateRequestParams {
|
|
28
|
+
/** This endpoint creates an unique saved search ID and adds the information to the database. */
|
|
29
|
+
savedSearch: SavedSearch;
|
|
30
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" 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 HttpSavedSearchesDeleteByIdRequestParams {
|
|
37
|
+
/** The ID of the saved search. */
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface HttpSavedSearchesGetAllRequestParams {
|
|
42
|
+
/** This parameter filters out all saved searches on basis this boolean. */
|
|
43
|
+
external?: boolean;
|
|
44
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
45
|
+
translations?: boolean;
|
|
46
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
47
|
+
acceptLanguage?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
25
50
|
@Injectable({
|
|
26
51
|
providedIn: 'root'
|
|
27
52
|
})
|
|
@@ -33,13 +58,18 @@ export class SavedSearchManagementService {
|
|
|
33
58
|
|
|
34
59
|
constructor(
|
|
35
60
|
protected httpClient: HttpClient,
|
|
36
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
61
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
37
62
|
@Optional() configuration: AgravityConfiguration
|
|
38
63
|
) {
|
|
39
64
|
if (configuration) {
|
|
40
65
|
this.configuration = configuration;
|
|
41
66
|
}
|
|
42
67
|
if (typeof this.configuration.basePath !== 'string') {
|
|
68
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
69
|
+
if (firstBasePath != undefined) {
|
|
70
|
+
basePath = firstBasePath;
|
|
71
|
+
}
|
|
72
|
+
|
|
43
73
|
if (typeof basePath !== 'string') {
|
|
44
74
|
basePath = this.basePath;
|
|
45
75
|
}
|
|
@@ -48,6 +78,7 @@ export class SavedSearchManagementService {
|
|
|
48
78
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
79
|
}
|
|
50
80
|
|
|
81
|
+
// @ts-ignore
|
|
51
82
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
83
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
84
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -67,7 +98,7 @@ export class SavedSearchManagementService {
|
|
|
67
98
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
99
|
} else if (value instanceof Date) {
|
|
69
100
|
if (key != null) {
|
|
70
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
101
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
71
102
|
} else {
|
|
72
103
|
throw Error('key may not be null if value is Date');
|
|
73
104
|
}
|
|
@@ -84,209 +115,291 @@ export class SavedSearchManagementService {
|
|
|
84
115
|
|
|
85
116
|
/**
|
|
86
117
|
* This endpoint creates one saved search entry in the database.
|
|
87
|
-
* @param
|
|
88
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
118
|
+
* @param requestParameters
|
|
89
119
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
90
120
|
* @param reportProgress flag to report request and response progress.
|
|
91
121
|
*/
|
|
92
122
|
public httpSavedSearchesCreate(
|
|
93
|
-
|
|
94
|
-
translations?: boolean,
|
|
123
|
+
requestParameters?: HttpSavedSearchesCreateRequestParams,
|
|
95
124
|
observe?: 'body',
|
|
96
125
|
reportProgress?: boolean,
|
|
97
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
126
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
98
127
|
): Observable<SavedSearch>;
|
|
99
128
|
public httpSavedSearchesCreate(
|
|
100
|
-
|
|
101
|
-
translations?: boolean,
|
|
129
|
+
requestParameters?: HttpSavedSearchesCreateRequestParams,
|
|
102
130
|
observe?: 'response',
|
|
103
131
|
reportProgress?: boolean,
|
|
104
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
132
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
105
133
|
): Observable<HttpResponse<SavedSearch>>;
|
|
106
134
|
public httpSavedSearchesCreate(
|
|
107
|
-
|
|
108
|
-
translations?: boolean,
|
|
135
|
+
requestParameters?: HttpSavedSearchesCreateRequestParams,
|
|
109
136
|
observe?: 'events',
|
|
110
137
|
reportProgress?: boolean,
|
|
111
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
138
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
112
139
|
): Observable<HttpEvent<SavedSearch>>;
|
|
113
140
|
public httpSavedSearchesCreate(
|
|
114
|
-
|
|
115
|
-
translations?: boolean,
|
|
141
|
+
requestParameters?: HttpSavedSearchesCreateRequestParams,
|
|
116
142
|
observe: any = 'body',
|
|
117
143
|
reportProgress: boolean = false,
|
|
118
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
144
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
119
145
|
): Observable<any> {
|
|
146
|
+
const savedSearch = requestParameters?.savedSearch;
|
|
120
147
|
if (savedSearch === null || savedSearch === undefined) {
|
|
121
148
|
throw new Error('Required parameter savedSearch was null or undefined when calling httpSavedSearchesCreate.');
|
|
122
149
|
}
|
|
150
|
+
const translations = requestParameters?.translations;
|
|
151
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
123
152
|
|
|
124
|
-
let
|
|
153
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
125
154
|
if (translations !== undefined && translations !== null) {
|
|
126
|
-
|
|
155
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
127
156
|
}
|
|
128
157
|
|
|
129
|
-
let
|
|
158
|
+
let localVarHeaders = this.defaultHeaders;
|
|
159
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
160
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
161
|
+
}
|
|
130
162
|
|
|
131
|
-
let
|
|
163
|
+
let localVarCredential: string | undefined;
|
|
132
164
|
// authentication (msal_auth) required
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
|
|
165
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
166
|
+
if (localVarCredential) {
|
|
167
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
136
168
|
}
|
|
137
169
|
|
|
138
|
-
let
|
|
139
|
-
if (
|
|
170
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
171
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
140
172
|
// to determine the Accept header
|
|
141
173
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
142
|
-
|
|
174
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
143
175
|
}
|
|
144
|
-
if (
|
|
145
|
-
|
|
176
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
177
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
181
|
+
if (localVarHttpContext === undefined) {
|
|
182
|
+
localVarHttpContext = new HttpContext();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
186
|
+
if (localVarTransferCache === undefined) {
|
|
187
|
+
localVarTransferCache = true;
|
|
146
188
|
}
|
|
147
189
|
|
|
148
190
|
// to determine the Content-Type header
|
|
149
191
|
const consumes: string[] = ['application/json'];
|
|
150
192
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
151
193
|
if (httpContentTypeSelected !== undefined) {
|
|
152
|
-
|
|
194
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
153
195
|
}
|
|
154
196
|
|
|
155
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
156
|
-
if (
|
|
157
|
-
|
|
197
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
198
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
199
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
200
|
+
responseType_ = 'text';
|
|
201
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
202
|
+
responseType_ = 'json';
|
|
203
|
+
} else {
|
|
204
|
+
responseType_ = 'blob';
|
|
205
|
+
}
|
|
158
206
|
}
|
|
159
207
|
|
|
160
|
-
|
|
161
|
-
|
|
208
|
+
let localVarPath = `/savedsearches`;
|
|
209
|
+
return this.httpClient.request<SavedSearch>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
210
|
+
context: localVarHttpContext,
|
|
211
|
+
body: savedSearch,
|
|
212
|
+
params: localVarQueryParameters,
|
|
162
213
|
responseType: <any>responseType_,
|
|
163
214
|
withCredentials: this.configuration.withCredentials,
|
|
164
|
-
headers:
|
|
215
|
+
headers: localVarHeaders,
|
|
165
216
|
observe: observe,
|
|
217
|
+
transferCache: localVarTransferCache,
|
|
166
218
|
reportProgress: reportProgress
|
|
167
219
|
});
|
|
168
220
|
}
|
|
169
221
|
|
|
170
222
|
/**
|
|
171
223
|
* This endpoint deletes a single saved search.
|
|
172
|
-
* @param
|
|
224
|
+
* @param requestParameters
|
|
173
225
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
174
226
|
* @param reportProgress flag to report request and response progress.
|
|
175
227
|
*/
|
|
176
|
-
public httpSavedSearchesDeleteById(
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
228
|
+
public httpSavedSearchesDeleteById(
|
|
229
|
+
requestParameters?: HttpSavedSearchesDeleteByIdRequestParams,
|
|
230
|
+
observe?: 'body',
|
|
231
|
+
reportProgress?: boolean,
|
|
232
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
233
|
+
): Observable<any>;
|
|
234
|
+
public httpSavedSearchesDeleteById(
|
|
235
|
+
requestParameters?: HttpSavedSearchesDeleteByIdRequestParams,
|
|
236
|
+
observe?: 'response',
|
|
237
|
+
reportProgress?: boolean,
|
|
238
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
239
|
+
): Observable<HttpResponse<any>>;
|
|
240
|
+
public httpSavedSearchesDeleteById(
|
|
241
|
+
requestParameters?: HttpSavedSearchesDeleteByIdRequestParams,
|
|
242
|
+
observe?: 'events',
|
|
243
|
+
reportProgress?: boolean,
|
|
244
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
245
|
+
): Observable<HttpEvent<any>>;
|
|
246
|
+
public httpSavedSearchesDeleteById(
|
|
247
|
+
requestParameters?: HttpSavedSearchesDeleteByIdRequestParams,
|
|
248
|
+
observe: any = 'body',
|
|
249
|
+
reportProgress: boolean = false,
|
|
250
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
251
|
+
): Observable<any> {
|
|
252
|
+
const id = requestParameters?.id;
|
|
180
253
|
if (id === null || id === undefined) {
|
|
181
254
|
throw new Error('Required parameter id was null or undefined when calling httpSavedSearchesDeleteById.');
|
|
182
255
|
}
|
|
183
256
|
|
|
184
|
-
let
|
|
257
|
+
let localVarHeaders = this.defaultHeaders;
|
|
185
258
|
|
|
186
|
-
let
|
|
259
|
+
let localVarCredential: string | undefined;
|
|
187
260
|
// authentication (msal_auth) required
|
|
188
|
-
|
|
189
|
-
if (
|
|
190
|
-
|
|
261
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
262
|
+
if (localVarCredential) {
|
|
263
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
191
264
|
}
|
|
192
265
|
|
|
193
|
-
let
|
|
194
|
-
if (
|
|
266
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
267
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
195
268
|
// to determine the Accept header
|
|
196
269
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
197
|
-
|
|
270
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
198
271
|
}
|
|
199
|
-
if (
|
|
200
|
-
|
|
272
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
273
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
201
274
|
}
|
|
202
275
|
|
|
203
|
-
let
|
|
204
|
-
if (
|
|
205
|
-
|
|
276
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
277
|
+
if (localVarHttpContext === undefined) {
|
|
278
|
+
localVarHttpContext = new HttpContext();
|
|
206
279
|
}
|
|
207
280
|
|
|
208
|
-
|
|
281
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
282
|
+
if (localVarTransferCache === undefined) {
|
|
283
|
+
localVarTransferCache = true;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
287
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
288
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
289
|
+
responseType_ = 'text';
|
|
290
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
291
|
+
responseType_ = 'json';
|
|
292
|
+
} else {
|
|
293
|
+
responseType_ = 'blob';
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
let localVarPath = `/savedsearches/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
298
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
299
|
+
context: localVarHttpContext,
|
|
209
300
|
responseType: <any>responseType_,
|
|
210
301
|
withCredentials: this.configuration.withCredentials,
|
|
211
|
-
headers:
|
|
302
|
+
headers: localVarHeaders,
|
|
212
303
|
observe: observe,
|
|
304
|
+
transferCache: localVarTransferCache,
|
|
213
305
|
reportProgress: reportProgress
|
|
214
306
|
});
|
|
215
307
|
}
|
|
216
308
|
|
|
217
309
|
/**
|
|
218
310
|
* This endpoint lists all saved searches in database.
|
|
219
|
-
* @param
|
|
220
|
-
* @param translations When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header)
|
|
311
|
+
* @param requestParameters
|
|
221
312
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
222
313
|
* @param reportProgress flag to report request and response progress.
|
|
223
314
|
*/
|
|
224
315
|
public httpSavedSearchesGetAll(
|
|
225
|
-
|
|
226
|
-
translations?: boolean,
|
|
316
|
+
requestParameters?: HttpSavedSearchesGetAllRequestParams,
|
|
227
317
|
observe?: 'body',
|
|
228
318
|
reportProgress?: boolean,
|
|
229
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
319
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
230
320
|
): Observable<Array<SavedSearch>>;
|
|
231
321
|
public httpSavedSearchesGetAll(
|
|
232
|
-
|
|
233
|
-
translations?: boolean,
|
|
322
|
+
requestParameters?: HttpSavedSearchesGetAllRequestParams,
|
|
234
323
|
observe?: 'response',
|
|
235
324
|
reportProgress?: boolean,
|
|
236
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
325
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
237
326
|
): Observable<HttpResponse<Array<SavedSearch>>>;
|
|
238
327
|
public httpSavedSearchesGetAll(
|
|
239
|
-
|
|
240
|
-
translations?: boolean,
|
|
328
|
+
requestParameters?: HttpSavedSearchesGetAllRequestParams,
|
|
241
329
|
observe?: 'events',
|
|
242
330
|
reportProgress?: boolean,
|
|
243
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
331
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
244
332
|
): Observable<HttpEvent<Array<SavedSearch>>>;
|
|
245
333
|
public httpSavedSearchesGetAll(
|
|
246
|
-
|
|
247
|
-
translations?: boolean,
|
|
334
|
+
requestParameters?: HttpSavedSearchesGetAllRequestParams,
|
|
248
335
|
observe: any = 'body',
|
|
249
336
|
reportProgress: boolean = false,
|
|
250
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
337
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
251
338
|
): Observable<any> {
|
|
252
|
-
|
|
339
|
+
const external = requestParameters?.external;
|
|
340
|
+
const translations = requestParameters?.translations;
|
|
341
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
342
|
+
|
|
343
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
253
344
|
if (external !== undefined && external !== null) {
|
|
254
|
-
|
|
345
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>external, 'external');
|
|
255
346
|
}
|
|
256
347
|
if (translations !== undefined && translations !== null) {
|
|
257
|
-
|
|
348
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
258
349
|
}
|
|
259
350
|
|
|
260
|
-
let
|
|
351
|
+
let localVarHeaders = this.defaultHeaders;
|
|
352
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
353
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
354
|
+
}
|
|
261
355
|
|
|
262
|
-
let
|
|
356
|
+
let localVarCredential: string | undefined;
|
|
263
357
|
// authentication (msal_auth) required
|
|
264
|
-
|
|
265
|
-
if (
|
|
266
|
-
|
|
358
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
359
|
+
if (localVarCredential) {
|
|
360
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
267
361
|
}
|
|
268
362
|
|
|
269
|
-
let
|
|
270
|
-
if (
|
|
363
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
364
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
271
365
|
// to determine the Accept header
|
|
272
366
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
273
|
-
|
|
367
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
274
368
|
}
|
|
275
|
-
if (
|
|
276
|
-
|
|
369
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
370
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
374
|
+
if (localVarHttpContext === undefined) {
|
|
375
|
+
localVarHttpContext = new HttpContext();
|
|
277
376
|
}
|
|
278
377
|
|
|
279
|
-
let
|
|
280
|
-
if (
|
|
281
|
-
|
|
378
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
379
|
+
if (localVarTransferCache === undefined) {
|
|
380
|
+
localVarTransferCache = true;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
384
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
385
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
386
|
+
responseType_ = 'text';
|
|
387
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
388
|
+
responseType_ = 'json';
|
|
389
|
+
} else {
|
|
390
|
+
responseType_ = 'blob';
|
|
391
|
+
}
|
|
282
392
|
}
|
|
283
393
|
|
|
284
|
-
|
|
285
|
-
|
|
394
|
+
let localVarPath = `/savedsearches`;
|
|
395
|
+
return this.httpClient.request<Array<SavedSearch>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
396
|
+
context: localVarHttpContext,
|
|
397
|
+
params: localVarQueryParameters,
|
|
286
398
|
responseType: <any>responseType_,
|
|
287
399
|
withCredentials: this.configuration.withCredentials,
|
|
288
|
-
headers:
|
|
400
|
+
headers: localVarHeaders,
|
|
289
401
|
observe: observe,
|
|
402
|
+
transferCache: localVarTransferCache,
|
|
290
403
|
reportProgress: reportProgress
|
|
291
404
|
});
|
|
292
405
|
}
|