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