@agravity/private 9.4.0 → 10.0.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 +11 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +97 -142
- package/api/aIOperations.agravity.ts +878 -0
- package/api/api.ts +9 -3
- package/api/assetIconRuleManagement.agravity.ts +59 -190
- package/api/assetManagement.agravity.ts +118 -355
- package/api/assetOperations.agravity.ts +290 -917
- package/api/assetPublishing.agravity.ts +107 -288
- package/api/assetRelationManagement.agravity.ts +61 -196
- package/api/assetRelationTypeManagement.agravity.ts +70 -215
- package/api/assetVersioning.agravity.ts +105 -300
- package/api/authenticationManagement.agravity.ts +137 -392
- package/api/collectionManagement.agravity.ts +217 -376
- package/api/collectionShareManagement.agravity.ts +59 -190
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
- package/api/collectionTypeManagement.agravity.ts +91 -270
- package/api/commentsManagement.agravity.ts +48 -157
- package/api/configurationManagement.agravity.ts +53 -180
- package/api/dashboardWidgetManagement.agravity.ts +56 -181
- package/api/dataImportExportManagement.agravity.ts +58 -203
- package/api/downloadFormatManagement.agravity.ts +70 -215
- package/api/downloadZip.agravity.ts +37 -132
- package/api/generalManagement.agravity.ts +64 -229
- package/api/helperTools.agravity.ts +214 -404
- package/api/historyEntryManagement.agravity.ts +16 -85
- package/api/iccProfileManagement.agravity.ts +11 -78
- package/api/listBlobs.agravity.ts +18 -99
- package/api/listQueues.agravity.ts +11 -78
- package/api/listTables.agravity.ts +11 -78
- package/api/notificationManagement.agravity.ts +267 -0
- package/api/permissionsManagement.agravity.ts +44 -153
- package/api/portalManagement.agravity.ts +88 -253
- package/api/portalsUsersManagement.agravity.ts +55 -178
- package/api/publishing.agravity.ts +13 -84
- package/api/quickshareManagement.agravity.ts +67 -214
- package/api/savedSearchManagement.agravity.ts +37 -140
- package/api/searchManagement.agravity.ts +102 -327
- package/api/searchSettingsOperations.agravity.ts +187 -0
- package/api/secureUpload.agravity.ts +68 -209
- package/api/signalRConnectionManagement.agravity.ts +26 -109
- package/api/staticDefinedListManagement.agravity.ts +60 -193
- package/api/stockImport.agravity.ts +31 -122
- package/api/structureImport.agravity.ts +11 -78
- package/api/translationManagement.agravity.ts +86 -229
- package/api/webAppData.agravity.ts +48 -157
- package/api/widgetLayoutManagement.agravity.ts +22 -103
- package/api/wordpressManagement.agravity.ts +34 -131
- package/api/workspaceManagement.agravity.ts +77 -236
- package/api.base.service.ts +78 -0
- package/configuration.ts +33 -17
- package/index.ts +1 -0
- package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
- package/model/aiFieldGeneration.agravity.ts +1 -5
- package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
- package/model/aiSettings.agravity.ts +4 -3
- package/model/aiTypeSettings.agravity.ts +17 -0
- package/model/asset.agravity.ts +6 -6
- package/model/assetBlob.agravity.ts +15 -15
- package/model/assetIconRule.agravity.ts +1 -1
- package/model/assetRelationType.agravity.ts +1 -1
- package/model/azureIdentity.agravity.ts +7 -7
- package/model/collTypeItem.agravity.ts +1 -1
- package/model/collTypeItemBlueprint.agravity.ts +1 -1
- package/model/collection.agravity.ts +6 -6
- package/model/collectionType.agravity.ts +6 -6
- package/model/collectionUDL.agravity.ts +1 -1
- package/model/dashboardWidget.agravity.ts +1 -1
- package/model/downloadFormat.agravity.ts +1 -1
- package/model/downloadZipRequest.agravity.ts +6 -6
- package/model/downloadZipStatus.agravity.ts +6 -6
- package/model/entityIdName.agravity.ts +1 -1
- package/model/entityTranslations.agravity.ts +1 -1
- package/model/groupAllAppData.agravity.ts +1 -1
- package/model/historyEntry.agravity.ts +16 -30
- package/model/models.ts +5 -2
- package/model/notificationSettingDto.agravity.ts +18 -0
- package/model/permissionChange.agravity.ts +7 -7
- package/model/permissionEntity.agravity.ts +5 -5
- package/model/portalAuthentication.agravity.ts +7 -7
- package/model/portalTheme.agravity.ts +1 -1
- package/model/publishedAsset.agravity.ts +1 -1
- package/model/savedSearch.agravity.ts +1 -1
- package/model/searchSettings.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +1 -1
- package/model/uiTutorials.agravity.ts +4 -4
- package/model/whereParam.agravity.ts +17 -17
- package/model/workspace.agravity.ts +1 -1
- package/package.json +5 -4
- package/provide-api.ts +15 -0
- package/tsconfig.json +2 -0
- package/api/aISettingsManagement.agravity.ts +0 -264
|
@@ -22,6 +22,7 @@ import { GroupAllAppData } from '../model/groupAllAppData.agravity';
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
24
|
import { AgravityConfiguration } from '../configuration';
|
|
25
|
+
import { BaseService } from '../api.base.service';
|
|
25
26
|
|
|
26
27
|
export interface HttpStockImportPixabayRequestParams {
|
|
27
28
|
/** The query term which should be found on Pixabay. */
|
|
@@ -42,67 +43,13 @@ export interface HttpStockImportUnsplashRequestParams {
|
|
|
42
43
|
@Injectable({
|
|
43
44
|
providedIn: 'root'
|
|
44
45
|
})
|
|
45
|
-
export class StockImportService {
|
|
46
|
-
protected basePath = 'http://localhost:7071/api';
|
|
47
|
-
public defaultHeaders = new HttpHeaders();
|
|
48
|
-
public configuration = new AgravityConfiguration();
|
|
49
|
-
public encoder: HttpParameterCodec;
|
|
50
|
-
|
|
46
|
+
export class StockImportService extends BaseService {
|
|
51
47
|
constructor(
|
|
52
48
|
protected httpClient: HttpClient,
|
|
53
49
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
54
|
-
@Optional() configuration
|
|
50
|
+
@Optional() configuration?: AgravityConfiguration
|
|
55
51
|
) {
|
|
56
|
-
|
|
57
|
-
this.configuration = configuration;
|
|
58
|
-
}
|
|
59
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
60
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
61
|
-
if (firstBasePath != undefined) {
|
|
62
|
-
basePath = firstBasePath;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (typeof basePath !== 'string') {
|
|
66
|
-
basePath = this.basePath;
|
|
67
|
-
}
|
|
68
|
-
this.configuration.basePath = basePath;
|
|
69
|
-
}
|
|
70
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// @ts-ignore
|
|
74
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
75
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
76
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
77
|
-
} else {
|
|
78
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
79
|
-
}
|
|
80
|
-
return httpParams;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
84
|
-
if (value == null) {
|
|
85
|
-
return httpParams;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (typeof value === 'object') {
|
|
89
|
-
if (Array.isArray(value)) {
|
|
90
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
91
|
-
} else if (value instanceof Date) {
|
|
92
|
-
if (key != null) {
|
|
93
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
94
|
-
} else {
|
|
95
|
-
throw Error('key may not be null if value is Date');
|
|
96
|
-
}
|
|
97
|
-
} else {
|
|
98
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
99
|
-
}
|
|
100
|
-
} else if (key != null) {
|
|
101
|
-
httpParams = httpParams.append(key, value);
|
|
102
|
-
} else {
|
|
103
|
-
throw Error('key may not be null if value is not object or array');
|
|
104
|
-
}
|
|
105
|
-
return httpParams;
|
|
52
|
+
super(basePath, configuration);
|
|
106
53
|
}
|
|
107
54
|
|
|
108
55
|
/**
|
|
@@ -112,25 +59,25 @@ export class StockImportService {
|
|
|
112
59
|
* @param reportProgress flag to report request and response progress.
|
|
113
60
|
*/
|
|
114
61
|
public httpStockImportPixabay(
|
|
115
|
-
requestParameters
|
|
62
|
+
requestParameters: HttpStockImportPixabayRequestParams,
|
|
116
63
|
observe?: 'body',
|
|
117
64
|
reportProgress?: boolean,
|
|
118
65
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
119
66
|
): Observable<GroupAllAppData>;
|
|
120
67
|
public httpStockImportPixabay(
|
|
121
|
-
requestParameters
|
|
68
|
+
requestParameters: HttpStockImportPixabayRequestParams,
|
|
122
69
|
observe?: 'response',
|
|
123
70
|
reportProgress?: boolean,
|
|
124
71
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
125
72
|
): Observable<HttpResponse<GroupAllAppData>>;
|
|
126
73
|
public httpStockImportPixabay(
|
|
127
|
-
requestParameters
|
|
74
|
+
requestParameters: HttpStockImportPixabayRequestParams,
|
|
128
75
|
observe?: 'events',
|
|
129
76
|
reportProgress?: boolean,
|
|
130
77
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
131
78
|
): Observable<HttpEvent<GroupAllAppData>>;
|
|
132
79
|
public httpStockImportPixabay(
|
|
133
|
-
requestParameters
|
|
80
|
+
requestParameters: HttpStockImportPixabayRequestParams,
|
|
134
81
|
observe: any = 'body',
|
|
135
82
|
reportProgress: boolean = false,
|
|
136
83
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -143,44 +90,23 @@ export class StockImportService {
|
|
|
143
90
|
const mediaType = requestParameters?.mediaType;
|
|
144
91
|
|
|
145
92
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
if (count !== undefined && count !== null) {
|
|
150
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>count, 'count');
|
|
151
|
-
}
|
|
152
|
-
if (mediaType !== undefined && mediaType !== null) {
|
|
153
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mediaType, 'media_type');
|
|
154
|
-
}
|
|
93
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>q, 'q');
|
|
94
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>count, 'count');
|
|
95
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>mediaType, 'media_type');
|
|
155
96
|
|
|
156
97
|
let localVarHeaders = this.defaultHeaders;
|
|
157
98
|
|
|
158
|
-
let localVarCredential: string | undefined;
|
|
159
99
|
// authentication (msal_auth) required
|
|
160
|
-
|
|
161
|
-
if (localVarCredential) {
|
|
162
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
163
|
-
}
|
|
100
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
164
101
|
|
|
165
|
-
|
|
166
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
167
|
-
// to determine the Accept header
|
|
168
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
169
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
170
|
-
}
|
|
102
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
171
103
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
172
104
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
173
105
|
}
|
|
174
106
|
|
|
175
|
-
|
|
176
|
-
if (localVarHttpContext === undefined) {
|
|
177
|
-
localVarHttpContext = new HttpContext();
|
|
178
|
-
}
|
|
107
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
179
108
|
|
|
180
|
-
|
|
181
|
-
if (localVarTransferCache === undefined) {
|
|
182
|
-
localVarTransferCache = true;
|
|
183
|
-
}
|
|
109
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
184
110
|
|
|
185
111
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
186
112
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -194,11 +120,12 @@ export class StockImportService {
|
|
|
194
120
|
}
|
|
195
121
|
|
|
196
122
|
let localVarPath = `/stockimport/pixabay`;
|
|
197
|
-
|
|
123
|
+
const { basePath, withCredentials } = this.configuration;
|
|
124
|
+
return this.httpClient.request<GroupAllAppData>('get', `${basePath}${localVarPath}`, {
|
|
198
125
|
context: localVarHttpContext,
|
|
199
126
|
params: localVarQueryParameters,
|
|
200
127
|
responseType: <any>responseType_,
|
|
201
|
-
withCredentials:
|
|
128
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
202
129
|
headers: localVarHeaders,
|
|
203
130
|
observe: observe,
|
|
204
131
|
transferCache: localVarTransferCache,
|
|
@@ -213,25 +140,25 @@ export class StockImportService {
|
|
|
213
140
|
* @param reportProgress flag to report request and response progress.
|
|
214
141
|
*/
|
|
215
142
|
public httpStockImportUnsplash(
|
|
216
|
-
requestParameters
|
|
143
|
+
requestParameters: HttpStockImportUnsplashRequestParams,
|
|
217
144
|
observe?: 'body',
|
|
218
145
|
reportProgress?: boolean,
|
|
219
146
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
220
147
|
): Observable<GroupAllAppData>;
|
|
221
148
|
public httpStockImportUnsplash(
|
|
222
|
-
requestParameters
|
|
149
|
+
requestParameters: HttpStockImportUnsplashRequestParams,
|
|
223
150
|
observe?: 'response',
|
|
224
151
|
reportProgress?: boolean,
|
|
225
152
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
226
153
|
): Observable<HttpResponse<GroupAllAppData>>;
|
|
227
154
|
public httpStockImportUnsplash(
|
|
228
|
-
requestParameters
|
|
155
|
+
requestParameters: HttpStockImportUnsplashRequestParams,
|
|
229
156
|
observe?: 'events',
|
|
230
157
|
reportProgress?: boolean,
|
|
231
158
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
232
159
|
): Observable<HttpEvent<GroupAllAppData>>;
|
|
233
160
|
public httpStockImportUnsplash(
|
|
234
|
-
requestParameters
|
|
161
|
+
requestParameters: HttpStockImportUnsplashRequestParams,
|
|
235
162
|
observe: any = 'body',
|
|
236
163
|
reportProgress: boolean = false,
|
|
237
164
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -243,41 +170,22 @@ export class StockImportService {
|
|
|
243
170
|
const count = requestParameters?.count;
|
|
244
171
|
|
|
245
172
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
if (count !== undefined && count !== null) {
|
|
250
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>count, 'count');
|
|
251
|
-
}
|
|
173
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>q, 'q');
|
|
174
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>count, 'count');
|
|
252
175
|
|
|
253
176
|
let localVarHeaders = this.defaultHeaders;
|
|
254
177
|
|
|
255
|
-
let localVarCredential: string | undefined;
|
|
256
178
|
// authentication (msal_auth) required
|
|
257
|
-
|
|
258
|
-
if (localVarCredential) {
|
|
259
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
260
|
-
}
|
|
179
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
261
180
|
|
|
262
|
-
|
|
263
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
264
|
-
// to determine the Accept header
|
|
265
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
266
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
267
|
-
}
|
|
181
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
268
182
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
269
183
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
270
184
|
}
|
|
271
185
|
|
|
272
|
-
|
|
273
|
-
if (localVarHttpContext === undefined) {
|
|
274
|
-
localVarHttpContext = new HttpContext();
|
|
275
|
-
}
|
|
186
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
276
187
|
|
|
277
|
-
|
|
278
|
-
if (localVarTransferCache === undefined) {
|
|
279
|
-
localVarTransferCache = true;
|
|
280
|
-
}
|
|
188
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
281
189
|
|
|
282
190
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
283
191
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -291,11 +199,12 @@ export class StockImportService {
|
|
|
291
199
|
}
|
|
292
200
|
|
|
293
201
|
let localVarPath = `/stockimport/unsplash`;
|
|
294
|
-
|
|
202
|
+
const { basePath, withCredentials } = this.configuration;
|
|
203
|
+
return this.httpClient.request<GroupAllAppData>('get', `${basePath}${localVarPath}`, {
|
|
295
204
|
context: localVarHttpContext,
|
|
296
205
|
params: localVarQueryParameters,
|
|
297
206
|
responseType: <any>responseType_,
|
|
298
|
-
withCredentials:
|
|
207
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
299
208
|
headers: localVarHeaders,
|
|
300
209
|
observe: observe,
|
|
301
210
|
transferCache: localVarTransferCache,
|
|
@@ -22,71 +22,18 @@ import { BlobInfoObj } from '../model/blobInfoObj.agravity';
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
24
|
import { AgravityConfiguration } from '../configuration';
|
|
25
|
+
import { BaseService } from '../api.base.service';
|
|
25
26
|
|
|
26
27
|
@Injectable({
|
|
27
28
|
providedIn: 'root'
|
|
28
29
|
})
|
|
29
|
-
export class StructureImportService {
|
|
30
|
-
protected basePath = 'http://localhost:7071/api';
|
|
31
|
-
public defaultHeaders = new HttpHeaders();
|
|
32
|
-
public configuration = new AgravityConfiguration();
|
|
33
|
-
public encoder: HttpParameterCodec;
|
|
34
|
-
|
|
30
|
+
export class StructureImportService extends BaseService {
|
|
35
31
|
constructor(
|
|
36
32
|
protected httpClient: HttpClient,
|
|
37
33
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
38
|
-
@Optional() configuration
|
|
34
|
+
@Optional() configuration?: AgravityConfiguration
|
|
39
35
|
) {
|
|
40
|
-
|
|
41
|
-
this.configuration = configuration;
|
|
42
|
-
}
|
|
43
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
44
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
45
|
-
if (firstBasePath != undefined) {
|
|
46
|
-
basePath = firstBasePath;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (typeof basePath !== 'string') {
|
|
50
|
-
basePath = this.basePath;
|
|
51
|
-
}
|
|
52
|
-
this.configuration.basePath = basePath;
|
|
53
|
-
}
|
|
54
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
59
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
60
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
61
|
-
} else {
|
|
62
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
63
|
-
}
|
|
64
|
-
return httpParams;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
68
|
-
if (value == null) {
|
|
69
|
-
return httpParams;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (typeof value === 'object') {
|
|
73
|
-
if (Array.isArray(value)) {
|
|
74
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
75
|
-
} else if (value instanceof Date) {
|
|
76
|
-
if (key != null) {
|
|
77
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
78
|
-
} else {
|
|
79
|
-
throw Error('key may not be null if value is Date');
|
|
80
|
-
}
|
|
81
|
-
} else {
|
|
82
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
83
|
-
}
|
|
84
|
-
} else if (key != null) {
|
|
85
|
-
httpParams = httpParams.append(key, value);
|
|
86
|
-
} else {
|
|
87
|
-
throw Error('key may not be null if value is not object or array');
|
|
88
|
-
}
|
|
89
|
-
return httpParams;
|
|
36
|
+
super(basePath, configuration);
|
|
90
37
|
}
|
|
91
38
|
|
|
92
39
|
/**
|
|
@@ -116,32 +63,17 @@ export class StructureImportService {
|
|
|
116
63
|
): Observable<any> {
|
|
117
64
|
let localVarHeaders = this.defaultHeaders;
|
|
118
65
|
|
|
119
|
-
let localVarCredential: string | undefined;
|
|
120
66
|
// authentication (msal_auth) required
|
|
121
|
-
|
|
122
|
-
if (localVarCredential) {
|
|
123
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
124
|
-
}
|
|
67
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
125
68
|
|
|
126
|
-
|
|
127
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
128
|
-
// to determine the Accept header
|
|
129
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
130
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
131
|
-
}
|
|
69
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
132
70
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
133
71
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
134
72
|
}
|
|
135
73
|
|
|
136
|
-
|
|
137
|
-
if (localVarHttpContext === undefined) {
|
|
138
|
-
localVarHttpContext = new HttpContext();
|
|
139
|
-
}
|
|
74
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
140
75
|
|
|
141
|
-
|
|
142
|
-
if (localVarTransferCache === undefined) {
|
|
143
|
-
localVarTransferCache = true;
|
|
144
|
-
}
|
|
76
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
145
77
|
|
|
146
78
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
147
79
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -155,10 +87,11 @@ export class StructureImportService {
|
|
|
155
87
|
}
|
|
156
88
|
|
|
157
89
|
let localVarPath = `/structure`;
|
|
158
|
-
|
|
90
|
+
const { basePath, withCredentials } = this.configuration;
|
|
91
|
+
return this.httpClient.request<Array<BlobInfoObj>>('put', `${basePath}${localVarPath}`, {
|
|
159
92
|
context: localVarHttpContext,
|
|
160
93
|
responseType: <any>responseType_,
|
|
161
|
-
withCredentials:
|
|
94
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
162
95
|
headers: localVarHeaders,
|
|
163
96
|
observe: observe,
|
|
164
97
|
transferCache: localVarTransferCache,
|