@agravity/public 5.2.0 → 5.3.1
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 +4 -1
- package/README.md +10 -10
- package/api/api.ts +65 -43
- package/api/publicAssetManagement.pub.agravity.ts +615 -504
- package/api/publicAssetOperations.pub.agravity.ts +740 -633
- package/api/publicAssetPublishing.pub.agravity.ts +277 -263
- package/api/publicAssetVersioning.pub.agravity.ts +613 -552
- package/api/publicAuthenticationManagement.pub.agravity.ts +125 -135
- package/api/publicCollectionManagement.pub.agravity.ts +680 -562
- package/api/publicCollectionSecureUpload.pub.agravity.ts +243 -229
- package/api/publicCollectionTypeManagement.pub.agravity.ts +293 -266
- package/api/publicConfigurationManagement.pub.agravity.ts +118 -128
- package/api/publicDownloadFormatManagement.pub.agravity.ts +125 -135
- package/api/publicGeneralManagement.pub.agravity.ts +206 -221
- package/api/publicHelperTools.pub.agravity.ts +269 -288
- package/api/publicPublishing.pub.agravity.ts +160 -148
- package/api/publicSavedSearch.pub.agravity.ts +160 -148
- package/api/publicSearchManagement.pub.agravity.ts +237 -197
- package/api/publicSharingManagement.pub.agravity.ts +259 -215
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +125 -136
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +325 -203
- package/api/publicTranslationManagement.pub.agravity.ts +322 -267
- package/api/publicWebAppData.pub.agravity.ts +179 -193
- package/api/publicWorkspaceManagement.pub.agravity.ts +199 -204
- package/api.module.ts +49 -51
- package/configuration.ts +129 -132
- package/encoder.ts +20 -20
- package/index.ts +5 -5
- package/model/agravityErrorResponse.pub.agravity.ts +17 -19
- package/model/agravityVersion.pub.agravity.ts +22 -24
- package/model/allWebAppData.pub.agravity.ts +22 -24
- package/model/artificialIntelligenceGroup.pub.agravity.ts +18 -20
- package/model/asset.pub.agravity.ts +45 -47
- package/model/assetAvailability.pub.agravity.ts +17 -19
- package/model/assetBlob.pub.agravity.ts +79 -82
- package/model/{assetIdContainer.pub.agravity.ts → assetIdFormat.pub.agravity.ts} +17 -18
- package/model/assetPageResult.pub.agravity.ts +21 -23
- package/model/azSearchOptions.pub.agravity.ts +23 -25
- package/model/badRequestResult.pub.agravity.ts +15 -17
- package/model/collTypeItem.pub.agravity.ts +36 -38
- package/model/collection.pub.agravity.ts +33 -35
- package/model/collectionType.pub.agravity.ts +33 -35
- package/model/collectionUDL.pub.agravity.ts +19 -21
- package/model/createSftpUserResult.pub.agravity.ts +16 -18
- package/model/dataResult.pub.agravity.ts +20 -22
- package/model/distZipResponse.pub.agravity.ts +17 -19
- package/model/downloadFormat.pub.agravity.ts +32 -34
- package/model/dynamicImageOperation.pub.agravity.ts +16 -18
- package/model/entityId.pub.agravity.ts +15 -17
- package/model/entityIdName.pub.agravity.ts +17 -19
- package/model/frontendAppConfig.pub.agravity.ts +19 -21
- package/model/groupAllAppData.pub.agravity.ts +24 -26
- package/model/metadata.pub.agravity.ts +17 -19
- package/model/models.ts +44 -44
- package/model/okResult.pub.agravity.ts +15 -17
- package/model/publishEntity.pub.agravity.ts +26 -28
- package/model/publishedAsset.pub.agravity.ts +23 -25
- package/model/quickShareFull.pub.agravity.ts +35 -36
- package/model/sasToken.pub.agravity.ts +20 -22
- package/model/savedSearch.pub.agravity.ts +29 -31
- package/model/searchFacet.pub.agravity.ts +17 -19
- package/model/searchFacetEntity.pub.agravity.ts +17 -19
- package/model/searchResult.pub.agravity.ts +21 -23
- package/model/searchableItem.pub.agravity.ts +24 -26
- package/model/secureUploadEntity.pub.agravity.ts +25 -27
- package/model/sharedAsset.pub.agravity.ts +23 -25
- package/model/sharedCollectionFull.pub.agravity.ts +27 -29
- package/model/signalRConnectionInfo.pub.agravity.ts +16 -18
- package/model/staticDefinedList.pub.agravity.ts +28 -30
- package/model/versionEntity.pub.agravity.ts +26 -28
- package/model/versionedAsset.pub.agravity.ts +18 -20
- package/model/whereParam.pub.agravity.ts +40 -43
- package/model/workspace.pub.agravity.ts +32 -34
- package/ng-package.json +6 -0
- package/package.json +44 -27
- package/tsconfig.json +20 -0
- package/variables.ts +9 -9
|
@@ -1,221 +1,206 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agravity OpenAPI Documentation - Public Functions
|
|
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 2023. All Rights Reserved
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 5.
|
|
6
|
-
* Contact: office@agravity.io
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
-
|
|
14
|
-
import { Inject, Injectable, Optional }
|
|
15
|
-
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
-
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
responseType_ = 'text';
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return this.httpClient.get<OkResult>(`${this.configuration.basePath}/durable/scch/${encodeURIComponent(String(instanceId))}`,
|
|
211
|
-
{
|
|
212
|
-
responseType: <any>responseType_,
|
|
213
|
-
withCredentials: this.configuration.withCredentials,
|
|
214
|
-
headers: headers,
|
|
215
|
-
observe: observe,
|
|
216
|
-
reportProgress: reportProgress
|
|
217
|
-
}
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Public Functions
|
|
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 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.3.1
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
16
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
|
+
import { Observable } from 'rxjs';
|
|
18
|
+
|
|
19
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
20
|
+
import { AgravityVersion } from '../model/models';
|
|
21
|
+
import { BadRequestResult } from '../model/models';
|
|
22
|
+
import { OkResult } from '../model/models';
|
|
23
|
+
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
25
|
+
import { AgravityPublicConfiguration } from '../configuration';
|
|
26
|
+
|
|
27
|
+
@Injectable({
|
|
28
|
+
providedIn: 'root'
|
|
29
|
+
})
|
|
30
|
+
export class PublicGeneralManagementService {
|
|
31
|
+
protected basePath = 'http://localhost:7072/api';
|
|
32
|
+
public defaultHeaders = new HttpHeaders();
|
|
33
|
+
public configuration = new AgravityPublicConfiguration();
|
|
34
|
+
public encoder: HttpParameterCodec;
|
|
35
|
+
|
|
36
|
+
constructor(
|
|
37
|
+
protected httpClient: HttpClient,
|
|
38
|
+
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
39
|
+
@Optional() configuration: AgravityPublicConfiguration
|
|
40
|
+
) {
|
|
41
|
+
if (configuration) {
|
|
42
|
+
this.configuration = configuration;
|
|
43
|
+
}
|
|
44
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
45
|
+
if (typeof basePath !== 'string') {
|
|
46
|
+
basePath = this.basePath;
|
|
47
|
+
}
|
|
48
|
+
this.configuration.basePath = basePath;
|
|
49
|
+
}
|
|
50
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
54
|
+
if (typeof value === 'object' && value instanceof Date === false) {
|
|
55
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
56
|
+
} else {
|
|
57
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
58
|
+
}
|
|
59
|
+
return httpParams;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return httpParams;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (typeof value === 'object') {
|
|
68
|
+
if (Array.isArray(value)) {
|
|
69
|
+
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
70
|
+
} else if (value instanceof Date) {
|
|
71
|
+
if (key != null) {
|
|
72
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
|
|
73
|
+
} else {
|
|
74
|
+
throw Error('key may not be null if value is Date');
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
78
|
+
}
|
|
79
|
+
} else if (key != null) {
|
|
80
|
+
httpParams = httpParams.append(key, value);
|
|
81
|
+
} else {
|
|
82
|
+
throw Error('key may not be null if value is not object or array');
|
|
83
|
+
}
|
|
84
|
+
return httpParams;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get the current version of the backend. To see if backend was updated or not.
|
|
89
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
90
|
+
* @param reportProgress flag to report request and response progress.
|
|
91
|
+
*/
|
|
92
|
+
public httpAgravityVersionInfo(observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<AgravityVersion>;
|
|
93
|
+
public httpAgravityVersionInfo(observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<AgravityVersion>>;
|
|
94
|
+
public httpAgravityVersionInfo(observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<AgravityVersion>>;
|
|
95
|
+
public httpAgravityVersionInfo(observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
96
|
+
let headers = this.defaultHeaders;
|
|
97
|
+
|
|
98
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
99
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
100
|
+
// to determine the Accept header
|
|
101
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
102
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
103
|
+
}
|
|
104
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
105
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
109
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
110
|
+
responseType_ = 'text';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return this.httpClient.get<AgravityVersion>(`${this.configuration.basePath}/version`, {
|
|
114
|
+
responseType: <any>responseType_,
|
|
115
|
+
withCredentials: this.configuration.withCredentials,
|
|
116
|
+
headers: headers,
|
|
117
|
+
observe: observe,
|
|
118
|
+
reportProgress: reportProgress
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Trigger the durable execution to continue
|
|
124
|
+
* @param instanceId The instance ID of the durable function.
|
|
125
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
126
|
+
* @param reportProgress flag to report request and response progress.
|
|
127
|
+
*/
|
|
128
|
+
public httpTriggerDurableContinue(instanceId: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<OkResult>;
|
|
129
|
+
public httpTriggerDurableContinue(instanceId: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpResponse<OkResult>>;
|
|
130
|
+
public httpTriggerDurableContinue(instanceId: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<OkResult>>;
|
|
131
|
+
public httpTriggerDurableContinue(instanceId: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
132
|
+
if (instanceId === null || instanceId === undefined) {
|
|
133
|
+
throw new Error('Required parameter instanceId was null or undefined when calling httpTriggerDurableContinue.');
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
let headers = this.defaultHeaders;
|
|
137
|
+
|
|
138
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
139
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
140
|
+
// to determine the Accept header
|
|
141
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
142
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
143
|
+
}
|
|
144
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
145
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
149
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
150
|
+
responseType_ = 'text';
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return this.httpClient.get<OkResult>(`${this.configuration.basePath}/durable/${encodeURIComponent(String(instanceId))}`, {
|
|
154
|
+
responseType: <any>responseType_,
|
|
155
|
+
withCredentials: this.configuration.withCredentials,
|
|
156
|
+
headers: headers,
|
|
157
|
+
observe: observe,
|
|
158
|
+
reportProgress: reportProgress
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Trigger the durable execution to continue
|
|
164
|
+
* @param instanceId The instance ID of the durable function.
|
|
165
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
166
|
+
* @param reportProgress flag to report request and response progress.
|
|
167
|
+
*/
|
|
168
|
+
public httpTriggerDurableScchTrainingDone(instanceId: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<OkResult>;
|
|
169
|
+
public httpTriggerDurableScchTrainingDone(
|
|
170
|
+
instanceId: string,
|
|
171
|
+
observe?: 'response',
|
|
172
|
+
reportProgress?: boolean,
|
|
173
|
+
options?: { httpHeaderAccept?: 'application/json' }
|
|
174
|
+
): Observable<HttpResponse<OkResult>>;
|
|
175
|
+
public httpTriggerDurableScchTrainingDone(instanceId: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json' }): Observable<HttpEvent<OkResult>>;
|
|
176
|
+
public httpTriggerDurableScchTrainingDone(instanceId: string, observe: any = 'body', reportProgress: boolean = false, options?: { httpHeaderAccept?: 'application/json' }): Observable<any> {
|
|
177
|
+
if (instanceId === null || instanceId === undefined) {
|
|
178
|
+
throw new Error('Required parameter instanceId was null or undefined when calling httpTriggerDurableScchTrainingDone.');
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
let headers = this.defaultHeaders;
|
|
182
|
+
|
|
183
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
184
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
185
|
+
// to determine the Accept header
|
|
186
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
187
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
188
|
+
}
|
|
189
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
190
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
194
|
+
if (httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
195
|
+
responseType_ = 'text';
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return this.httpClient.get<OkResult>(`${this.configuration.basePath}/durable/scch/${encodeURIComponent(String(instanceId))}`, {
|
|
199
|
+
responseType: <any>responseType_,
|
|
200
|
+
withCredentials: this.configuration.withCredentials,
|
|
201
|
+
headers: headers,
|
|
202
|
+
observe: observe,
|
|
203
|
+
reportProgress: reportProgress
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
}
|