@agravity/public 9.3.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +97 -142
- package/api/api.ts +3 -0
- package/api/publicAIOperations.pub.agravity.ts +160 -0
- package/api/publicAssetManagement.pub.agravity.ts +67 -236
- package/api/publicAssetOperations.pub.agravity.ts +139 -380
- package/api/publicAssetPublishing.pub.agravity.ts +37 -132
- package/api/publicAssetRelationManagement.pub.agravity.ts +57 -192
- package/api/publicAssetVersioning.pub.agravity.ts +82 -249
- package/api/publicAuthenticationManagement.pub.agravity.ts +23 -106
- package/api/publicCollectionManagement.pub.agravity.ts +116 -321
- package/api/publicCollectionSecureUpload.pub.agravity.ts +29 -114
- package/api/publicCollectionTypeManagement.pub.agravity.ts +33 -136
- package/api/publicConfigurationManagement.pub.agravity.ts +11 -76
- package/api/publicDownloadFormatManagement.pub.agravity.ts +22 -101
- package/api/publicEndpoints.pub.agravity.ts +18 -89
- package/api/publicGeneralManagement.pub.agravity.ts +41 -146
- package/api/publicHelperTools.pub.agravity.ts +43 -174
- package/api/publicPortalManagement.pub.agravity.ts +74 -227
- package/api/publicPublishing.pub.agravity.ts +13 -84
- package/api/publicSavedSearch.pub.agravity.ts +13 -84
- package/api/publicSearchManagement.pub.agravity.ts +58 -203
- package/api/publicSharingManagement.pub.agravity.ts +50 -155
- package/api/publicSignalRConnectionManagement.pub.agravity.ts +11 -78
- package/api/publicStaticDefinedListManagement.pub.agravity.ts +37 -140
- package/api/publicTranslationManagement.pub.agravity.ts +48 -147
- package/api/publicWebAppData.pub.agravity.ts +26 -107
- package/api/publicWorkspaceManagement.pub.agravity.ts +24 -109
- package/api.base.service.ts +78 -0
- package/configuration.ts +33 -17
- package/index.ts +1 -0
- package/model/asset.pub.agravity.ts +6 -6
- package/model/assetBlob.pub.agravity.ts +15 -15
- package/model/assetIconRule.pub.agravity.ts +1 -1
- package/model/collTypeItem.pub.agravity.ts +1 -1
- package/model/collection.pub.agravity.ts +6 -6
- package/model/collectionType.pub.agravity.ts +6 -6
- package/model/collectionUDL.pub.agravity.ts +1 -1
- package/model/downloadFormat.pub.agravity.ts +1 -1
- package/model/downloadZipRequest.pub.agravity.ts +6 -6
- package/model/downloadZipStatus.pub.agravity.ts +6 -6
- package/model/entityIdName.pub.agravity.ts +1 -1
- package/model/groupAllAppData.pub.agravity.ts +1 -1
- package/model/permissionEntity.pub.agravity.ts +5 -5
- package/model/portalAuthentication.pub.agravity.ts +7 -7
- package/model/portalTheme.pub.agravity.ts +1 -1
- package/model/publishedAsset.pub.agravity.ts +1 -1
- package/model/savedSearch.pub.agravity.ts +1 -1
- package/model/staticDefinedList.pub.agravity.ts +1 -1
- package/model/whereParam.pub.agravity.ts +17 -17
- package/model/workspace.pub.agravity.ts +1 -1
- package/package.json +5 -4
- package/provide-api.ts +15 -0
- package/tsconfig.json +2 -0
|
@@ -32,6 +32,7 @@ import { PortalConfiguration } from '../model/portalConfiguration.pub.agravity';
|
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
34
34
|
import { AgravityPublicConfiguration } from '../configuration';
|
|
35
|
+
import { BaseService } from '../api.base.service';
|
|
35
36
|
|
|
36
37
|
export interface HttpPortalGetAllAssetIdsByIdRequestParams {
|
|
37
38
|
/** The ID of the portal. */
|
|
@@ -69,67 +70,13 @@ export interface HttpPortalsGetByIdRequestParams {
|
|
|
69
70
|
@Injectable({
|
|
70
71
|
providedIn: 'root'
|
|
71
72
|
})
|
|
72
|
-
export class PublicPortalManagementService {
|
|
73
|
-
protected basePath = 'http://localhost:7072/api';
|
|
74
|
-
public defaultHeaders = new HttpHeaders();
|
|
75
|
-
public configuration = new AgravityPublicConfiguration();
|
|
76
|
-
public encoder: HttpParameterCodec;
|
|
77
|
-
|
|
73
|
+
export class PublicPortalManagementService extends BaseService {
|
|
78
74
|
constructor(
|
|
79
75
|
protected httpClient: HttpClient,
|
|
80
76
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
81
|
-
@Optional() configuration
|
|
77
|
+
@Optional() configuration?: AgravityPublicConfiguration
|
|
82
78
|
) {
|
|
83
|
-
|
|
84
|
-
this.configuration = configuration;
|
|
85
|
-
}
|
|
86
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
87
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
88
|
-
if (firstBasePath != undefined) {
|
|
89
|
-
basePath = firstBasePath;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
if (typeof basePath !== 'string') {
|
|
93
|
-
basePath = this.basePath;
|
|
94
|
-
}
|
|
95
|
-
this.configuration.basePath = basePath;
|
|
96
|
-
}
|
|
97
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// @ts-ignore
|
|
101
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
102
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
103
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
104
|
-
} else {
|
|
105
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
106
|
-
}
|
|
107
|
-
return httpParams;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
111
|
-
if (value == null) {
|
|
112
|
-
return httpParams;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (typeof value === 'object') {
|
|
116
|
-
if (Array.isArray(value)) {
|
|
117
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
118
|
-
} else if (value instanceof Date) {
|
|
119
|
-
if (key != null) {
|
|
120
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
121
|
-
} else {
|
|
122
|
-
throw Error('key may not be null if value is Date');
|
|
123
|
-
}
|
|
124
|
-
} else {
|
|
125
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
126
|
-
}
|
|
127
|
-
} else if (key != null) {
|
|
128
|
-
httpParams = httpParams.append(key, value);
|
|
129
|
-
} else {
|
|
130
|
-
throw Error('key may not be null if value is not object or array');
|
|
131
|
-
}
|
|
132
|
-
return httpParams;
|
|
79
|
+
super(basePath, configuration);
|
|
133
80
|
}
|
|
134
81
|
|
|
135
82
|
/**
|
|
@@ -139,25 +86,25 @@ export class PublicPortalManagementService {
|
|
|
139
86
|
* @param reportProgress flag to report request and response progress.
|
|
140
87
|
*/
|
|
141
88
|
public httpPortalGetAllAssetIdsById(
|
|
142
|
-
requestParameters
|
|
89
|
+
requestParameters: HttpPortalGetAllAssetIdsByIdRequestParams,
|
|
143
90
|
observe?: 'body',
|
|
144
91
|
reportProgress?: boolean,
|
|
145
92
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
146
93
|
): Observable<Array<string>>;
|
|
147
94
|
public httpPortalGetAllAssetIdsById(
|
|
148
|
-
requestParameters
|
|
95
|
+
requestParameters: HttpPortalGetAllAssetIdsByIdRequestParams,
|
|
149
96
|
observe?: 'response',
|
|
150
97
|
reportProgress?: boolean,
|
|
151
98
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
152
99
|
): Observable<HttpResponse<Array<string>>>;
|
|
153
100
|
public httpPortalGetAllAssetIdsById(
|
|
154
|
-
requestParameters
|
|
101
|
+
requestParameters: HttpPortalGetAllAssetIdsByIdRequestParams,
|
|
155
102
|
observe?: 'events',
|
|
156
103
|
reportProgress?: boolean,
|
|
157
104
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
158
105
|
): Observable<HttpEvent<Array<string>>>;
|
|
159
106
|
public httpPortalGetAllAssetIdsById(
|
|
160
|
-
requestParameters
|
|
107
|
+
requestParameters: HttpPortalGetAllAssetIdsByIdRequestParams,
|
|
161
108
|
observe: any = 'body',
|
|
162
109
|
reportProgress: boolean = false,
|
|
163
110
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -169,32 +116,17 @@ export class PublicPortalManagementService {
|
|
|
169
116
|
|
|
170
117
|
let localVarHeaders = this.defaultHeaders;
|
|
171
118
|
|
|
172
|
-
let localVarCredential: string | undefined;
|
|
173
119
|
// authentication (function_key) required
|
|
174
|
-
|
|
175
|
-
if (localVarCredential) {
|
|
176
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
177
|
-
}
|
|
120
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
178
121
|
|
|
179
|
-
|
|
180
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
181
|
-
// to determine the Accept header
|
|
182
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
183
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
184
|
-
}
|
|
122
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
185
123
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
186
124
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
187
125
|
}
|
|
188
126
|
|
|
189
|
-
|
|
190
|
-
if (localVarHttpContext === undefined) {
|
|
191
|
-
localVarHttpContext = new HttpContext();
|
|
192
|
-
}
|
|
127
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
193
128
|
|
|
194
|
-
|
|
195
|
-
if (localVarTransferCache === undefined) {
|
|
196
|
-
localVarTransferCache = true;
|
|
197
|
-
}
|
|
129
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
198
130
|
|
|
199
131
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
200
132
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -208,10 +140,11 @@ export class PublicPortalManagementService {
|
|
|
208
140
|
}
|
|
209
141
|
|
|
210
142
|
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/assetids`;
|
|
211
|
-
|
|
143
|
+
const { basePath, withCredentials } = this.configuration;
|
|
144
|
+
return this.httpClient.request<Array<string>>('get', `${basePath}${localVarPath}`, {
|
|
212
145
|
context: localVarHttpContext,
|
|
213
146
|
responseType: <any>responseType_,
|
|
214
|
-
withCredentials:
|
|
147
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
215
148
|
headers: localVarHeaders,
|
|
216
149
|
observe: observe,
|
|
217
150
|
transferCache: localVarTransferCache,
|
|
@@ -226,25 +159,25 @@ export class PublicPortalManagementService {
|
|
|
226
159
|
* @param reportProgress flag to report request and response progress.
|
|
227
160
|
*/
|
|
228
161
|
public httpPortalGetStatusZipById(
|
|
229
|
-
requestParameters
|
|
162
|
+
requestParameters: HttpPortalGetStatusZipByIdRequestParams,
|
|
230
163
|
observe?: 'body',
|
|
231
164
|
reportProgress?: boolean,
|
|
232
165
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
233
166
|
): Observable<DownloadZipStatus>;
|
|
234
167
|
public httpPortalGetStatusZipById(
|
|
235
|
-
requestParameters
|
|
168
|
+
requestParameters: HttpPortalGetStatusZipByIdRequestParams,
|
|
236
169
|
observe?: 'response',
|
|
237
170
|
reportProgress?: boolean,
|
|
238
171
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
239
172
|
): Observable<HttpResponse<DownloadZipStatus>>;
|
|
240
173
|
public httpPortalGetStatusZipById(
|
|
241
|
-
requestParameters
|
|
174
|
+
requestParameters: HttpPortalGetStatusZipByIdRequestParams,
|
|
242
175
|
observe?: 'events',
|
|
243
176
|
reportProgress?: boolean,
|
|
244
177
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
245
178
|
): Observable<HttpEvent<DownloadZipStatus>>;
|
|
246
179
|
public httpPortalGetStatusZipById(
|
|
247
|
-
requestParameters
|
|
180
|
+
requestParameters: HttpPortalGetStatusZipByIdRequestParams,
|
|
248
181
|
observe: any = 'body',
|
|
249
182
|
reportProgress: boolean = false,
|
|
250
183
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -260,32 +193,17 @@ export class PublicPortalManagementService {
|
|
|
260
193
|
|
|
261
194
|
let localVarHeaders = this.defaultHeaders;
|
|
262
195
|
|
|
263
|
-
let localVarCredential: string | undefined;
|
|
264
196
|
// authentication (function_key) required
|
|
265
|
-
|
|
266
|
-
if (localVarCredential) {
|
|
267
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
268
|
-
}
|
|
197
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
269
198
|
|
|
270
|
-
|
|
271
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
272
|
-
// to determine the Accept header
|
|
273
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
274
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
275
|
-
}
|
|
199
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
276
200
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
277
201
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
278
202
|
}
|
|
279
203
|
|
|
280
|
-
|
|
281
|
-
if (localVarHttpContext === undefined) {
|
|
282
|
-
localVarHttpContext = new HttpContext();
|
|
283
|
-
}
|
|
204
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
284
205
|
|
|
285
|
-
|
|
286
|
-
if (localVarTransferCache === undefined) {
|
|
287
|
-
localVarTransferCache = true;
|
|
288
|
-
}
|
|
206
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
289
207
|
|
|
290
208
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
291
209
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -299,10 +217,11 @@ export class PublicPortalManagementService {
|
|
|
299
217
|
}
|
|
300
218
|
|
|
301
219
|
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/zip/${this.configuration.encodeParam({ name: 'zipId', value: zipId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
302
|
-
|
|
220
|
+
const { basePath, withCredentials } = this.configuration;
|
|
221
|
+
return this.httpClient.request<DownloadZipStatus>('get', `${basePath}${localVarPath}`, {
|
|
303
222
|
context: localVarHttpContext,
|
|
304
223
|
responseType: <any>responseType_,
|
|
305
|
-
withCredentials:
|
|
224
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
306
225
|
headers: localVarHeaders,
|
|
307
226
|
observe: observe,
|
|
308
227
|
transferCache: localVarTransferCache,
|
|
@@ -317,25 +236,25 @@ export class PublicPortalManagementService {
|
|
|
317
236
|
* @param reportProgress flag to report request and response progress.
|
|
318
237
|
*/
|
|
319
238
|
public httpPortalRequestZipById(
|
|
320
|
-
requestParameters
|
|
239
|
+
requestParameters: HttpPortalRequestZipByIdRequestParams,
|
|
321
240
|
observe?: 'body',
|
|
322
241
|
reportProgress?: boolean,
|
|
323
242
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
324
243
|
): Observable<DownloadZipRequest>;
|
|
325
244
|
public httpPortalRequestZipById(
|
|
326
|
-
requestParameters
|
|
245
|
+
requestParameters: HttpPortalRequestZipByIdRequestParams,
|
|
327
246
|
observe?: 'response',
|
|
328
247
|
reportProgress?: boolean,
|
|
329
248
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
330
249
|
): Observable<HttpResponse<DownloadZipRequest>>;
|
|
331
250
|
public httpPortalRequestZipById(
|
|
332
|
-
requestParameters
|
|
251
|
+
requestParameters: HttpPortalRequestZipByIdRequestParams,
|
|
333
252
|
observe?: 'events',
|
|
334
253
|
reportProgress?: boolean,
|
|
335
254
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
336
255
|
): Observable<HttpEvent<DownloadZipRequest>>;
|
|
337
256
|
public httpPortalRequestZipById(
|
|
338
|
-
requestParameters
|
|
257
|
+
requestParameters: HttpPortalRequestZipByIdRequestParams,
|
|
339
258
|
observe: any = 'body',
|
|
340
259
|
reportProgress: boolean = false,
|
|
341
260
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -351,32 +270,17 @@ export class PublicPortalManagementService {
|
|
|
351
270
|
|
|
352
271
|
let localVarHeaders = this.defaultHeaders;
|
|
353
272
|
|
|
354
|
-
let localVarCredential: string | undefined;
|
|
355
273
|
// authentication (function_key) required
|
|
356
|
-
|
|
357
|
-
if (localVarCredential) {
|
|
358
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
359
|
-
}
|
|
274
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
360
275
|
|
|
361
|
-
|
|
362
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
363
|
-
// to determine the Accept header
|
|
364
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
365
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
366
|
-
}
|
|
276
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
367
277
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
368
278
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
369
279
|
}
|
|
370
280
|
|
|
371
|
-
|
|
372
|
-
if (localVarHttpContext === undefined) {
|
|
373
|
-
localVarHttpContext = new HttpContext();
|
|
374
|
-
}
|
|
281
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
375
282
|
|
|
376
|
-
|
|
377
|
-
if (localVarTransferCache === undefined) {
|
|
378
|
-
localVarTransferCache = true;
|
|
379
|
-
}
|
|
283
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
380
284
|
|
|
381
285
|
// to determine the Content-Type header
|
|
382
286
|
const consumes: string[] = ['application/json'];
|
|
@@ -397,11 +301,12 @@ export class PublicPortalManagementService {
|
|
|
397
301
|
}
|
|
398
302
|
|
|
399
303
|
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/zip`;
|
|
400
|
-
|
|
304
|
+
const { basePath, withCredentials } = this.configuration;
|
|
305
|
+
return this.httpClient.request<DownloadZipRequest>('post', `${basePath}${localVarPath}`, {
|
|
401
306
|
context: localVarHttpContext,
|
|
402
307
|
body: downloadZipRequest,
|
|
403
308
|
responseType: <any>responseType_,
|
|
404
|
-
withCredentials:
|
|
309
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
405
310
|
headers: localVarHeaders,
|
|
406
311
|
observe: observe,
|
|
407
312
|
transferCache: localVarTransferCache,
|
|
@@ -416,25 +321,25 @@ export class PublicPortalManagementService {
|
|
|
416
321
|
* @param reportProgress flag to report request and response progress.
|
|
417
322
|
*/
|
|
418
323
|
public httpPortalsConfigurationGetById(
|
|
419
|
-
requestParameters
|
|
324
|
+
requestParameters: HttpPortalsConfigurationGetByIdRequestParams,
|
|
420
325
|
observe?: 'body',
|
|
421
326
|
reportProgress?: boolean,
|
|
422
327
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
423
328
|
): Observable<PortalConfiguration>;
|
|
424
329
|
public httpPortalsConfigurationGetById(
|
|
425
|
-
requestParameters
|
|
330
|
+
requestParameters: HttpPortalsConfigurationGetByIdRequestParams,
|
|
426
331
|
observe?: 'response',
|
|
427
332
|
reportProgress?: boolean,
|
|
428
333
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
429
334
|
): Observable<HttpResponse<PortalConfiguration>>;
|
|
430
335
|
public httpPortalsConfigurationGetById(
|
|
431
|
-
requestParameters
|
|
336
|
+
requestParameters: HttpPortalsConfigurationGetByIdRequestParams,
|
|
432
337
|
observe?: 'events',
|
|
433
338
|
reportProgress?: boolean,
|
|
434
339
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
435
340
|
): Observable<HttpEvent<PortalConfiguration>>;
|
|
436
341
|
public httpPortalsConfigurationGetById(
|
|
437
|
-
requestParameters
|
|
342
|
+
requestParameters: HttpPortalsConfigurationGetByIdRequestParams,
|
|
438
343
|
observe: any = 'body',
|
|
439
344
|
reportProgress: boolean = false,
|
|
440
345
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -447,41 +352,24 @@ export class PublicPortalManagementService {
|
|
|
447
352
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
448
353
|
|
|
449
354
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
450
|
-
|
|
451
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
452
|
-
}
|
|
355
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
453
356
|
|
|
454
357
|
let localVarHeaders = this.defaultHeaders;
|
|
455
358
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
456
359
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
457
360
|
}
|
|
458
361
|
|
|
459
|
-
let localVarCredential: string | undefined;
|
|
460
362
|
// authentication (function_key) required
|
|
461
|
-
|
|
462
|
-
if (localVarCredential) {
|
|
463
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
464
|
-
}
|
|
363
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
465
364
|
|
|
466
|
-
|
|
467
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
468
|
-
// to determine the Accept header
|
|
469
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
470
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
471
|
-
}
|
|
365
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
472
366
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
473
367
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
474
368
|
}
|
|
475
369
|
|
|
476
|
-
|
|
477
|
-
if (localVarHttpContext === undefined) {
|
|
478
|
-
localVarHttpContext = new HttpContext();
|
|
479
|
-
}
|
|
370
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
480
371
|
|
|
481
|
-
|
|
482
|
-
if (localVarTransferCache === undefined) {
|
|
483
|
-
localVarTransferCache = true;
|
|
484
|
-
}
|
|
372
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
485
373
|
|
|
486
374
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
487
375
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -495,11 +383,12 @@ export class PublicPortalManagementService {
|
|
|
495
383
|
}
|
|
496
384
|
|
|
497
385
|
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}/config`;
|
|
498
|
-
|
|
386
|
+
const { basePath, withCredentials } = this.configuration;
|
|
387
|
+
return this.httpClient.request<PortalConfiguration>('get', `${basePath}${localVarPath}`, {
|
|
499
388
|
context: localVarHttpContext,
|
|
500
389
|
params: localVarQueryParameters,
|
|
501
390
|
responseType: <any>responseType_,
|
|
502
|
-
withCredentials:
|
|
391
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
503
392
|
headers: localVarHeaders,
|
|
504
393
|
observe: observe,
|
|
505
394
|
transferCache: localVarTransferCache,
|
|
@@ -534,32 +423,17 @@ export class PublicPortalManagementService {
|
|
|
534
423
|
): Observable<any> {
|
|
535
424
|
let localVarHeaders = this.defaultHeaders;
|
|
536
425
|
|
|
537
|
-
let localVarCredential: string | undefined;
|
|
538
426
|
// authentication (function_key) required
|
|
539
|
-
|
|
540
|
-
if (localVarCredential) {
|
|
541
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
542
|
-
}
|
|
427
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
543
428
|
|
|
544
|
-
|
|
545
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
546
|
-
// to determine the Accept header
|
|
547
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
548
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
549
|
-
}
|
|
429
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
550
430
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
551
431
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
552
432
|
}
|
|
553
433
|
|
|
554
|
-
|
|
555
|
-
if (localVarHttpContext === undefined) {
|
|
556
|
-
localVarHttpContext = new HttpContext();
|
|
557
|
-
}
|
|
434
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
558
435
|
|
|
559
|
-
|
|
560
|
-
if (localVarTransferCache === undefined) {
|
|
561
|
-
localVarTransferCache = true;
|
|
562
|
-
}
|
|
436
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
563
437
|
|
|
564
438
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
565
439
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -573,10 +447,11 @@ export class PublicPortalManagementService {
|
|
|
573
447
|
}
|
|
574
448
|
|
|
575
449
|
let localVarPath = `/portalsenhancetoken`;
|
|
576
|
-
|
|
450
|
+
const { basePath, withCredentials } = this.configuration;
|
|
451
|
+
return this.httpClient.request<CustomClaimsProviderResponseContentTokenIssuanceStart>('post', `${basePath}${localVarPath}`, {
|
|
577
452
|
context: localVarHttpContext,
|
|
578
453
|
responseType: <any>responseType_,
|
|
579
|
-
withCredentials:
|
|
454
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
580
455
|
headers: localVarHeaders,
|
|
581
456
|
observe: observe,
|
|
582
457
|
transferCache: localVarTransferCache,
|
|
@@ -591,25 +466,25 @@ export class PublicPortalManagementService {
|
|
|
591
466
|
* @param reportProgress flag to report request and response progress.
|
|
592
467
|
*/
|
|
593
468
|
public httpPortalsGetById(
|
|
594
|
-
requestParameters
|
|
469
|
+
requestParameters: HttpPortalsGetByIdRequestParams,
|
|
595
470
|
observe?: 'body',
|
|
596
471
|
reportProgress?: boolean,
|
|
597
472
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
598
473
|
): Observable<Portal>;
|
|
599
474
|
public httpPortalsGetById(
|
|
600
|
-
requestParameters
|
|
475
|
+
requestParameters: HttpPortalsGetByIdRequestParams,
|
|
601
476
|
observe?: 'response',
|
|
602
477
|
reportProgress?: boolean,
|
|
603
478
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
604
479
|
): Observable<HttpResponse<Portal>>;
|
|
605
480
|
public httpPortalsGetById(
|
|
606
|
-
requestParameters
|
|
481
|
+
requestParameters: HttpPortalsGetByIdRequestParams,
|
|
607
482
|
observe?: 'events',
|
|
608
483
|
reportProgress?: boolean,
|
|
609
484
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
610
485
|
): Observable<HttpEvent<Portal>>;
|
|
611
486
|
public httpPortalsGetById(
|
|
612
|
-
requestParameters
|
|
487
|
+
requestParameters: HttpPortalsGetByIdRequestParams,
|
|
613
488
|
observe: any = 'body',
|
|
614
489
|
reportProgress: boolean = false,
|
|
615
490
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -621,32 +496,17 @@ export class PublicPortalManagementService {
|
|
|
621
496
|
|
|
622
497
|
let localVarHeaders = this.defaultHeaders;
|
|
623
498
|
|
|
624
|
-
let localVarCredential: string | undefined;
|
|
625
499
|
// authentication (function_key) required
|
|
626
|
-
|
|
627
|
-
if (localVarCredential) {
|
|
628
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
629
|
-
}
|
|
500
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
630
501
|
|
|
631
|
-
|
|
632
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
633
|
-
// to determine the Accept header
|
|
634
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
635
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
636
|
-
}
|
|
502
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
637
503
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
638
504
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
639
505
|
}
|
|
640
506
|
|
|
641
|
-
|
|
642
|
-
if (localVarHttpContext === undefined) {
|
|
643
|
-
localVarHttpContext = new HttpContext();
|
|
644
|
-
}
|
|
507
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
645
508
|
|
|
646
|
-
|
|
647
|
-
if (localVarTransferCache === undefined) {
|
|
648
|
-
localVarTransferCache = true;
|
|
649
|
-
}
|
|
509
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
650
510
|
|
|
651
511
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
652
512
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -660,10 +520,11 @@ export class PublicPortalManagementService {
|
|
|
660
520
|
}
|
|
661
521
|
|
|
662
522
|
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
663
|
-
|
|
523
|
+
const { basePath, withCredentials } = this.configuration;
|
|
524
|
+
return this.httpClient.request<Portal>('get', `${basePath}${localVarPath}`, {
|
|
664
525
|
context: localVarHttpContext,
|
|
665
526
|
responseType: <any>responseType_,
|
|
666
|
-
withCredentials:
|
|
527
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
667
528
|
headers: localVarHeaders,
|
|
668
529
|
observe: observe,
|
|
669
530
|
transferCache: localVarTransferCache,
|
|
@@ -698,32 +559,17 @@ export class PublicPortalManagementService {
|
|
|
698
559
|
): Observable<any> {
|
|
699
560
|
let localVarHeaders = this.defaultHeaders;
|
|
700
561
|
|
|
701
|
-
let localVarCredential: string | undefined;
|
|
702
562
|
// authentication (function_key) required
|
|
703
|
-
|
|
704
|
-
if (localVarCredential) {
|
|
705
|
-
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
706
|
-
}
|
|
563
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
|
|
707
564
|
|
|
708
|
-
|
|
709
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
710
|
-
// to determine the Accept header
|
|
711
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
712
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
713
|
-
}
|
|
565
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
714
566
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
715
567
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
716
568
|
}
|
|
717
569
|
|
|
718
|
-
|
|
719
|
-
if (localVarHttpContext === undefined) {
|
|
720
|
-
localVarHttpContext = new HttpContext();
|
|
721
|
-
}
|
|
570
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
722
571
|
|
|
723
|
-
|
|
724
|
-
if (localVarTransferCache === undefined) {
|
|
725
|
-
localVarTransferCache = true;
|
|
726
|
-
}
|
|
572
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
727
573
|
|
|
728
574
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
729
575
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -737,10 +583,11 @@ export class PublicPortalManagementService {
|
|
|
737
583
|
}
|
|
738
584
|
|
|
739
585
|
let localVarPath = `/portalssaveuserattributes`;
|
|
740
|
-
|
|
586
|
+
const { basePath, withCredentials } = this.configuration;
|
|
587
|
+
return this.httpClient.request<CustomClaimsProviderResponseContentAttributeCollectionSubmit>('post', `${basePath}${localVarPath}`, {
|
|
741
588
|
context: localVarHttpContext,
|
|
742
589
|
responseType: <any>responseType_,
|
|
743
|
-
withCredentials:
|
|
590
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
744
591
|
headers: localVarHeaders,
|
|
745
592
|
observe: observe,
|
|
746
593
|
transferCache: localVarTransferCache,
|