@agravity/public 7.3.1 → 8.1.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 +3 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/publicAssetManagement.pub.agravity.ts +389 -265
- package/api/publicAssetOperations.pub.agravity.ts +636 -425
- package/api/publicAssetPublishing.pub.agravity.ts +195 -82
- package/api/publicAssetVersioning.pub.agravity.ts +469 -239
- package/api/publicAuthenticationManagement.pub.agravity.ts +66 -24
- package/api/publicCollectionManagement.pub.agravity.ts +525 -295
- package/api/publicCollectionSecureUpload.pub.agravity.ts +142 -69
- package/api/publicCollectionTypeManagement.pub.agravity.ts +211 -95
- package/api/publicConfigurationManagement.pub.agravity.ts +69 -26
- package/api/publicDownloadFormatManagement.pub.agravity.ts +139 -53
- package/api/publicEndpoints.pub.agravity.ts +63 -43
- package/api/publicGeneralManagement.pub.agravity.ts +253 -104
- package/api/publicHelperTools.pub.agravity.ts +270 -106
- package/api/publicPortalManagement.pub.agravity.ts +323 -124
- package/api/publicPublishing.pub.agravity.ts +69 -38
- package/api/publicSavedSearch.pub.agravity.ts +75 -38
- package/api/publicSearchManagement.pub.agravity.ts +265 -194
- package/api/publicSharingManagement.pub.agravity.ts +252 -157
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +68 -24
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +212 -107
- package/api/publicTranslationManagement.pub.agravity.ts +189 -115
- package/api/publicWebAppData.pub.agravity.ts +146 -47
- package/api/publicWorkspaceManagement.pub.agravity.ts +158 -57
- package/api.module.ts +0 -24
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.pub.agravity.ts +3 -4
- package/model/{badRequestResult.pub.agravity.ts → agravityInfoResponse.pub.agravity.ts} +4 -3
- package/model/agravityVersion.pub.agravity.ts +8 -9
- package/model/allWebAppData.pub.agravity.ts +4 -5
- package/model/artificialIntelligenceGroup.pub.agravity.ts +3 -4
- package/model/asset.pub.agravity.ts +22 -23
- package/model/assetAvailability.pub.agravity.ts +1 -2
- package/model/assetBlob.pub.agravity.ts +27 -28
- package/model/{okResult.pub.agravity.ts → assetIconRule.pub.agravity.ts} +20 -3
- package/model/assetIdFormat.pub.agravity.ts +3 -4
- package/model/assetPageResult.pub.agravity.ts +4 -5
- package/model/azSearchOptions.pub.agravity.ts +8 -9
- package/model/collTypeItem.pub.agravity.ts +16 -17
- package/model/collection.pub.agravity.ts +15 -16
- package/model/collectionType.pub.agravity.ts +14 -15
- package/model/collectionUDL.pub.agravity.ts +4 -5
- package/model/createSftpUserResult.pub.agravity.ts +2 -3
- package/model/dataResult.pub.agravity.ts +4 -5
- package/model/deletedEntities.pub.agravity.ts +4 -5
- package/model/distZipResponse.pub.agravity.ts +3 -4
- package/model/downloadFormat.pub.agravity.ts +18 -16
- package/model/dynamicImageOperation.pub.agravity.ts +2 -3
- package/model/entityId.pub.agravity.ts +1 -2
- package/model/entityIdName.pub.agravity.ts +3 -4
- package/model/frontendAppConfig.pub.agravity.ts +0 -1
- package/model/groupAllAppData.pub.agravity.ts +5 -6
- package/model/models.ts +2 -3
- package/model/moveCollectionBody.pub.agravity.ts +3 -4
- package/model/permissionEntity.pub.agravity.ts +1 -2
- package/model/portal.pub.agravity.ts +20 -20
- package/model/portalConfiguration.pub.agravity.ts +25 -25
- package/model/portalLinks.pub.agravity.ts +3 -4
- package/model/portalTheme.pub.agravity.ts +6 -7
- package/model/portalZipRequest.pub.agravity.ts +14 -15
- package/model/publishEntity.pub.agravity.ts +9 -10
- package/model/publishedAsset.pub.agravity.ts +12 -13
- package/model/quickShareFull.pub.agravity.ts +15 -16
- package/model/sasToken.pub.agravity.ts +6 -7
- package/model/savedSearch.pub.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.pub.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.pub.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.pub.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.pub.agravity.ts +2 -3
- package/model/searchAdminStatistics.pub.agravity.ts +2 -3
- package/model/searchAdminStatus.pub.agravity.ts +4 -5
- package/model/searchFacet.pub.agravity.ts +2 -3
- package/model/searchFacetEntity.pub.agravity.ts +2 -3
- package/model/searchResult.pub.agravity.ts +3 -4
- package/model/searchableItem.pub.agravity.ts +3 -4
- package/model/secureUploadEntity.pub.agravity.ts +10 -11
- package/model/sharedAllowedFormat.pub.agravity.ts +2 -3
- package/model/sharedAsset.pub.agravity.ts +5 -6
- package/model/sharedCollectionFull.pub.agravity.ts +18 -19
- package/model/sharedCollectionZipRequest.pub.agravity.ts +14 -15
- package/model/signalRConnectionInfo.pub.agravity.ts +0 -1
- package/model/staticDefinedList.pub.agravity.ts +12 -13
- package/model/versionEntity.pub.agravity.ts +9 -10
- package/model/versionedAsset.pub.agravity.ts +5 -6
- package/model/whereParam.pub.agravity.ts +0 -1
- package/model/workspace.pub.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/portalLanguages.pub.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Public Functions
|
|
3
3
|
* <h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><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,19 +11,44 @@
|
|
|
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 {
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { AgravityInfoResponse } from '../model/agravityInfoResponse.pub.agravity';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { AgravityVersion } from '../model/agravityVersion.pub.agravity';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import { DeletedEntities } from '../model/deletedEntities.pub.agravity';
|
|
24
26
|
|
|
27
|
+
// @ts-ignore
|
|
25
28
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
29
|
import { AgravityPublicConfiguration } from '../configuration';
|
|
27
30
|
|
|
31
|
+
export interface HttpGetDeletedEntitiesRequestParams {
|
|
32
|
+
/** The type of the entity (e.g. \'asset\', \'collection_type\', \'collection_type\' */
|
|
33
|
+
entityType?: string;
|
|
34
|
+
/** The date in the past since the entities are marked as deleted in the database. */
|
|
35
|
+
since?: string;
|
|
36
|
+
/** The date in the past until the entities are marked as deleted in the database. */
|
|
37
|
+
until?: string;
|
|
38
|
+
/** If the request comes from portal this is the indicator. */
|
|
39
|
+
portalId?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface HttpTriggerDurableContinueRequestParams {
|
|
43
|
+
/** The instance ID of the durable function. */
|
|
44
|
+
instanceId: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface HttpTriggerDurableScchTrainingDoneRequestParams {
|
|
48
|
+
/** The instance ID of the durable function. */
|
|
49
|
+
instanceId: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
28
52
|
@Injectable({
|
|
29
53
|
providedIn: 'root'
|
|
30
54
|
})
|
|
@@ -36,13 +60,18 @@ export class PublicGeneralManagementService {
|
|
|
36
60
|
|
|
37
61
|
constructor(
|
|
38
62
|
protected httpClient: HttpClient,
|
|
39
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
63
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
40
64
|
@Optional() configuration: AgravityPublicConfiguration
|
|
41
65
|
) {
|
|
42
66
|
if (configuration) {
|
|
43
67
|
this.configuration = configuration;
|
|
44
68
|
}
|
|
45
69
|
if (typeof this.configuration.basePath !== 'string') {
|
|
70
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
71
|
+
if (firstBasePath != undefined) {
|
|
72
|
+
basePath = firstBasePath;
|
|
73
|
+
}
|
|
74
|
+
|
|
46
75
|
if (typeof basePath !== 'string') {
|
|
47
76
|
basePath = this.basePath;
|
|
48
77
|
}
|
|
@@ -51,6 +80,7 @@ export class PublicGeneralManagementService {
|
|
|
51
80
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
52
81
|
}
|
|
53
82
|
|
|
83
|
+
// @ts-ignore
|
|
54
84
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
55
85
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
56
86
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -70,7 +100,7 @@ export class PublicGeneralManagementService {
|
|
|
70
100
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
71
101
|
} else if (value instanceof Date) {
|
|
72
102
|
if (key != null) {
|
|
73
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
103
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
74
104
|
} else {
|
|
75
105
|
throw Error('key may not be null if value is Date');
|
|
76
106
|
}
|
|
@@ -90,210 +120,329 @@ export class PublicGeneralManagementService {
|
|
|
90
120
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
91
121
|
* @param reportProgress flag to report request and response progress.
|
|
92
122
|
*/
|
|
93
|
-
public httpAgravityVersionInfo(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
123
|
+
public httpAgravityVersionInfo(
|
|
124
|
+
observe?: 'body',
|
|
125
|
+
reportProgress?: boolean,
|
|
126
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
127
|
+
): Observable<AgravityVersion>;
|
|
128
|
+
public httpAgravityVersionInfo(
|
|
129
|
+
observe?: 'response',
|
|
130
|
+
reportProgress?: boolean,
|
|
131
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
132
|
+
): Observable<HttpResponse<AgravityVersion>>;
|
|
133
|
+
public httpAgravityVersionInfo(
|
|
134
|
+
observe?: 'events',
|
|
135
|
+
reportProgress?: boolean,
|
|
136
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
137
|
+
): Observable<HttpEvent<AgravityVersion>>;
|
|
138
|
+
public httpAgravityVersionInfo(
|
|
139
|
+
observe: any = 'body',
|
|
140
|
+
reportProgress: boolean = false,
|
|
141
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
142
|
+
): Observable<any> {
|
|
143
|
+
let localVarHeaders = this.defaultHeaders;
|
|
144
|
+
|
|
145
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
146
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
101
147
|
// to determine the Accept header
|
|
102
148
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
103
|
-
|
|
149
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
150
|
+
}
|
|
151
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
152
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
156
|
+
if (localVarHttpContext === undefined) {
|
|
157
|
+
localVarHttpContext = new HttpContext();
|
|
104
158
|
}
|
|
105
|
-
|
|
106
|
-
|
|
159
|
+
|
|
160
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
161
|
+
if (localVarTransferCache === undefined) {
|
|
162
|
+
localVarTransferCache = true;
|
|
107
163
|
}
|
|
108
164
|
|
|
109
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
110
|
-
if (
|
|
111
|
-
|
|
165
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
166
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
167
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
168
|
+
responseType_ = 'text';
|
|
169
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
170
|
+
responseType_ = 'json';
|
|
171
|
+
} else {
|
|
172
|
+
responseType_ = 'blob';
|
|
173
|
+
}
|
|
112
174
|
}
|
|
113
175
|
|
|
114
|
-
|
|
176
|
+
let localVarPath = `/version`;
|
|
177
|
+
return this.httpClient.request<AgravityVersion>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
178
|
+
context: localVarHttpContext,
|
|
115
179
|
responseType: <any>responseType_,
|
|
116
180
|
withCredentials: this.configuration.withCredentials,
|
|
117
|
-
headers:
|
|
181
|
+
headers: localVarHeaders,
|
|
118
182
|
observe: observe,
|
|
183
|
+
transferCache: localVarTransferCache,
|
|
119
184
|
reportProgress: reportProgress
|
|
120
185
|
});
|
|
121
186
|
}
|
|
122
187
|
|
|
123
188
|
/**
|
|
124
189
|
* This endpoint checks all deleted entities in the database until a specific date and returns the elements which are deleted.
|
|
125
|
-
* @param
|
|
126
|
-
* @param since The date in the past since the entities are marked as deleted in the database.
|
|
127
|
-
* @param until The date in the past until the entities are marked as deleted in the database.
|
|
128
|
-
* @param portalId If the request comes from portal this is the indicator.
|
|
190
|
+
* @param requestParameters
|
|
129
191
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
130
192
|
* @param reportProgress flag to report request and response progress.
|
|
131
193
|
*/
|
|
132
194
|
public httpGetDeletedEntities(
|
|
133
|
-
|
|
134
|
-
since?: string,
|
|
135
|
-
until?: string,
|
|
136
|
-
portalId?: string,
|
|
195
|
+
requestParameters?: HttpGetDeletedEntitiesRequestParams,
|
|
137
196
|
observe?: 'body',
|
|
138
197
|
reportProgress?: boolean,
|
|
139
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
198
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
140
199
|
): Observable<Array<DeletedEntities>>;
|
|
141
200
|
public httpGetDeletedEntities(
|
|
142
|
-
|
|
143
|
-
since?: string,
|
|
144
|
-
until?: string,
|
|
145
|
-
portalId?: string,
|
|
201
|
+
requestParameters?: HttpGetDeletedEntitiesRequestParams,
|
|
146
202
|
observe?: 'response',
|
|
147
203
|
reportProgress?: boolean,
|
|
148
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
204
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
149
205
|
): Observable<HttpResponse<Array<DeletedEntities>>>;
|
|
150
206
|
public httpGetDeletedEntities(
|
|
151
|
-
|
|
152
|
-
since?: string,
|
|
153
|
-
until?: string,
|
|
154
|
-
portalId?: string,
|
|
207
|
+
requestParameters?: HttpGetDeletedEntitiesRequestParams,
|
|
155
208
|
observe?: 'events',
|
|
156
209
|
reportProgress?: boolean,
|
|
157
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
210
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
158
211
|
): Observable<HttpEvent<Array<DeletedEntities>>>;
|
|
159
212
|
public httpGetDeletedEntities(
|
|
160
|
-
|
|
161
|
-
since?: string,
|
|
162
|
-
until?: string,
|
|
163
|
-
portalId?: string,
|
|
213
|
+
requestParameters?: HttpGetDeletedEntitiesRequestParams,
|
|
164
214
|
observe: any = 'body',
|
|
165
215
|
reportProgress: boolean = false,
|
|
166
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
216
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
167
217
|
): Observable<any> {
|
|
168
|
-
|
|
218
|
+
const entityType = requestParameters?.entityType;
|
|
219
|
+
const since = requestParameters?.since;
|
|
220
|
+
const until = requestParameters?.until;
|
|
221
|
+
const portalId = requestParameters?.portalId;
|
|
222
|
+
|
|
223
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
169
224
|
if (entityType !== undefined && entityType !== null) {
|
|
170
|
-
|
|
225
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>entityType, 'entity_type');
|
|
171
226
|
}
|
|
172
227
|
if (since !== undefined && since !== null) {
|
|
173
|
-
|
|
228
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>since, 'since');
|
|
174
229
|
}
|
|
175
230
|
if (until !== undefined && until !== null) {
|
|
176
|
-
|
|
231
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>until, 'until');
|
|
177
232
|
}
|
|
178
233
|
if (portalId !== undefined && portalId !== null) {
|
|
179
|
-
|
|
234
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
|
|
180
235
|
}
|
|
181
236
|
|
|
182
|
-
let
|
|
237
|
+
let localVarHeaders = this.defaultHeaders;
|
|
183
238
|
|
|
184
|
-
let
|
|
239
|
+
let localVarCredential: string | undefined;
|
|
185
240
|
// authentication (function_key) required
|
|
186
|
-
|
|
187
|
-
if (
|
|
188
|
-
|
|
241
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
242
|
+
if (localVarCredential) {
|
|
243
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
189
244
|
}
|
|
190
245
|
|
|
191
|
-
let
|
|
192
|
-
if (
|
|
246
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
247
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
193
248
|
// to determine the Accept header
|
|
194
249
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
195
|
-
|
|
250
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
251
|
+
}
|
|
252
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
253
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
196
254
|
}
|
|
197
|
-
|
|
198
|
-
|
|
255
|
+
|
|
256
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
257
|
+
if (localVarHttpContext === undefined) {
|
|
258
|
+
localVarHttpContext = new HttpContext();
|
|
199
259
|
}
|
|
200
260
|
|
|
201
|
-
let
|
|
202
|
-
if (
|
|
203
|
-
|
|
261
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
262
|
+
if (localVarTransferCache === undefined) {
|
|
263
|
+
localVarTransferCache = true;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
267
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
268
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
269
|
+
responseType_ = 'text';
|
|
270
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
271
|
+
responseType_ = 'json';
|
|
272
|
+
} else {
|
|
273
|
+
responseType_ = 'blob';
|
|
274
|
+
}
|
|
204
275
|
}
|
|
205
276
|
|
|
206
|
-
|
|
207
|
-
|
|
277
|
+
let localVarPath = `/deleted`;
|
|
278
|
+
return this.httpClient.request<Array<DeletedEntities>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
279
|
+
context: localVarHttpContext,
|
|
280
|
+
params: localVarQueryParameters,
|
|
208
281
|
responseType: <any>responseType_,
|
|
209
282
|
withCredentials: this.configuration.withCredentials,
|
|
210
|
-
headers:
|
|
283
|
+
headers: localVarHeaders,
|
|
211
284
|
observe: observe,
|
|
285
|
+
transferCache: localVarTransferCache,
|
|
212
286
|
reportProgress: reportProgress
|
|
213
287
|
});
|
|
214
288
|
}
|
|
215
289
|
|
|
216
290
|
/**
|
|
217
291
|
* Trigger the durable execution to continue
|
|
218
|
-
* @param
|
|
292
|
+
* @param requestParameters
|
|
219
293
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
220
294
|
* @param reportProgress flag to report request and response progress.
|
|
221
295
|
*/
|
|
222
|
-
public httpTriggerDurableContinue(
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
296
|
+
public httpTriggerDurableContinue(
|
|
297
|
+
requestParameters?: HttpTriggerDurableContinueRequestParams,
|
|
298
|
+
observe?: 'body',
|
|
299
|
+
reportProgress?: boolean,
|
|
300
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
301
|
+
): Observable<AgravityInfoResponse>;
|
|
302
|
+
public httpTriggerDurableContinue(
|
|
303
|
+
requestParameters?: HttpTriggerDurableContinueRequestParams,
|
|
304
|
+
observe?: 'response',
|
|
305
|
+
reportProgress?: boolean,
|
|
306
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
307
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
308
|
+
public httpTriggerDurableContinue(
|
|
309
|
+
requestParameters?: HttpTriggerDurableContinueRequestParams,
|
|
310
|
+
observe?: 'events',
|
|
311
|
+
reportProgress?: boolean,
|
|
312
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
313
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
314
|
+
public httpTriggerDurableContinue(
|
|
315
|
+
requestParameters?: HttpTriggerDurableContinueRequestParams,
|
|
316
|
+
observe: any = 'body',
|
|
317
|
+
reportProgress: boolean = false,
|
|
318
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
319
|
+
): Observable<any> {
|
|
320
|
+
const instanceId = requestParameters?.instanceId;
|
|
226
321
|
if (instanceId === null || instanceId === undefined) {
|
|
227
322
|
throw new Error('Required parameter instanceId was null or undefined when calling httpTriggerDurableContinue.');
|
|
228
323
|
}
|
|
229
324
|
|
|
230
|
-
let
|
|
325
|
+
let localVarHeaders = this.defaultHeaders;
|
|
231
326
|
|
|
232
|
-
let
|
|
233
|
-
if (
|
|
327
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
328
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
234
329
|
// to determine the Accept header
|
|
235
330
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
236
|
-
|
|
331
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
332
|
+
}
|
|
333
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
334
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
338
|
+
if (localVarHttpContext === undefined) {
|
|
339
|
+
localVarHttpContext = new HttpContext();
|
|
237
340
|
}
|
|
238
|
-
|
|
239
|
-
|
|
341
|
+
|
|
342
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
343
|
+
if (localVarTransferCache === undefined) {
|
|
344
|
+
localVarTransferCache = true;
|
|
240
345
|
}
|
|
241
346
|
|
|
242
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
243
|
-
if (
|
|
244
|
-
|
|
347
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
348
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
349
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
350
|
+
responseType_ = 'text';
|
|
351
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
352
|
+
responseType_ = 'json';
|
|
353
|
+
} else {
|
|
354
|
+
responseType_ = 'blob';
|
|
355
|
+
}
|
|
245
356
|
}
|
|
246
357
|
|
|
247
|
-
|
|
358
|
+
let localVarPath = `/durable/${this.configuration.encodeParam({ name: 'instanceId', value: instanceId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
359
|
+
return this.httpClient.request<AgravityInfoResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
360
|
+
context: localVarHttpContext,
|
|
248
361
|
responseType: <any>responseType_,
|
|
249
362
|
withCredentials: this.configuration.withCredentials,
|
|
250
|
-
headers:
|
|
363
|
+
headers: localVarHeaders,
|
|
251
364
|
observe: observe,
|
|
365
|
+
transferCache: localVarTransferCache,
|
|
252
366
|
reportProgress: reportProgress
|
|
253
367
|
});
|
|
254
368
|
}
|
|
255
369
|
|
|
256
370
|
/**
|
|
257
371
|
* Trigger the durable execution to continue
|
|
258
|
-
* @param
|
|
372
|
+
* @param requestParameters
|
|
259
373
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
260
374
|
* @param reportProgress flag to report request and response progress.
|
|
261
375
|
*/
|
|
262
|
-
public httpTriggerDurableScchTrainingDone(instanceId: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<OkResult>;
|
|
263
376
|
public httpTriggerDurableScchTrainingDone(
|
|
264
|
-
|
|
377
|
+
requestParameters?: HttpTriggerDurableScchTrainingDoneRequestParams,
|
|
378
|
+
observe?: 'body',
|
|
379
|
+
reportProgress?: boolean,
|
|
380
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
381
|
+
): Observable<AgravityInfoResponse>;
|
|
382
|
+
public httpTriggerDurableScchTrainingDone(
|
|
383
|
+
requestParameters?: HttpTriggerDurableScchTrainingDoneRequestParams,
|
|
265
384
|
observe?: 'response',
|
|
266
385
|
reportProgress?: boolean,
|
|
267
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
268
|
-
): Observable<HttpResponse<
|
|
269
|
-
public httpTriggerDurableScchTrainingDone(
|
|
270
|
-
|
|
386
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
387
|
+
): Observable<HttpResponse<AgravityInfoResponse>>;
|
|
388
|
+
public httpTriggerDurableScchTrainingDone(
|
|
389
|
+
requestParameters?: HttpTriggerDurableScchTrainingDoneRequestParams,
|
|
390
|
+
observe?: 'events',
|
|
391
|
+
reportProgress?: boolean,
|
|
392
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
393
|
+
): Observable<HttpEvent<AgravityInfoResponse>>;
|
|
394
|
+
public httpTriggerDurableScchTrainingDone(
|
|
395
|
+
requestParameters?: HttpTriggerDurableScchTrainingDoneRequestParams,
|
|
396
|
+
observe: any = 'body',
|
|
397
|
+
reportProgress: boolean = false,
|
|
398
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
399
|
+
): Observable<any> {
|
|
400
|
+
const instanceId = requestParameters?.instanceId;
|
|
271
401
|
if (instanceId === null || instanceId === undefined) {
|
|
272
402
|
throw new Error('Required parameter instanceId was null or undefined when calling httpTriggerDurableScchTrainingDone.');
|
|
273
403
|
}
|
|
274
404
|
|
|
275
|
-
let
|
|
405
|
+
let localVarHeaders = this.defaultHeaders;
|
|
276
406
|
|
|
277
|
-
let
|
|
278
|
-
if (
|
|
407
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
408
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
279
409
|
// to determine the Accept header
|
|
280
410
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
281
|
-
|
|
411
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
412
|
+
}
|
|
413
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
414
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
282
415
|
}
|
|
283
|
-
|
|
284
|
-
|
|
416
|
+
|
|
417
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
418
|
+
if (localVarHttpContext === undefined) {
|
|
419
|
+
localVarHttpContext = new HttpContext();
|
|
285
420
|
}
|
|
286
421
|
|
|
287
|
-
let
|
|
288
|
-
if (
|
|
289
|
-
|
|
422
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
423
|
+
if (localVarTransferCache === undefined) {
|
|
424
|
+
localVarTransferCache = true;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
428
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
429
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
430
|
+
responseType_ = 'text';
|
|
431
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
432
|
+
responseType_ = 'json';
|
|
433
|
+
} else {
|
|
434
|
+
responseType_ = 'blob';
|
|
435
|
+
}
|
|
290
436
|
}
|
|
291
437
|
|
|
292
|
-
|
|
438
|
+
let localVarPath = `/durable/scch/${this.configuration.encodeParam({ name: 'instanceId', value: instanceId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
439
|
+
return this.httpClient.request<AgravityInfoResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
440
|
+
context: localVarHttpContext,
|
|
293
441
|
responseType: <any>responseType_,
|
|
294
442
|
withCredentials: this.configuration.withCredentials,
|
|
295
|
-
headers:
|
|
443
|
+
headers: localVarHeaders,
|
|
296
444
|
observe: observe,
|
|
445
|
+
transferCache: localVarTransferCache,
|
|
297
446
|
reportProgress: reportProgress
|
|
298
447
|
});
|
|
299
448
|
}
|