@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 { AgravityPortalUser } from '../model/agravityPortalUser.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 HttpPortalsCreatePortalsUserRequestParams {
|
|
27
28
|
/** The created Agravity Portals User. */
|
|
@@ -48,67 +49,13 @@ export interface HttpPortalsUpdatePortalUserByIdRequestParams {
|
|
|
48
49
|
@Injectable({
|
|
49
50
|
providedIn: 'root'
|
|
50
51
|
})
|
|
51
|
-
export class PortalsUsersManagementService {
|
|
52
|
-
protected basePath = 'http://localhost:7071/api';
|
|
53
|
-
public defaultHeaders = new HttpHeaders();
|
|
54
|
-
public configuration = new AgravityConfiguration();
|
|
55
|
-
public encoder: HttpParameterCodec;
|
|
56
|
-
|
|
52
|
+
export class PortalsUsersManagementService extends BaseService {
|
|
57
53
|
constructor(
|
|
58
54
|
protected httpClient: HttpClient,
|
|
59
55
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
60
|
-
@Optional() configuration
|
|
56
|
+
@Optional() configuration?: AgravityConfiguration
|
|
61
57
|
) {
|
|
62
|
-
|
|
63
|
-
this.configuration = configuration;
|
|
64
|
-
}
|
|
65
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
66
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
67
|
-
if (firstBasePath != undefined) {
|
|
68
|
-
basePath = firstBasePath;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (typeof basePath !== 'string') {
|
|
72
|
-
basePath = this.basePath;
|
|
73
|
-
}
|
|
74
|
-
this.configuration.basePath = basePath;
|
|
75
|
-
}
|
|
76
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// @ts-ignore
|
|
80
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
81
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
82
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
83
|
-
} else {
|
|
84
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
85
|
-
}
|
|
86
|
-
return httpParams;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
90
|
-
if (value == null) {
|
|
91
|
-
return httpParams;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (typeof value === 'object') {
|
|
95
|
-
if (Array.isArray(value)) {
|
|
96
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
97
|
-
} else if (value instanceof Date) {
|
|
98
|
-
if (key != null) {
|
|
99
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
100
|
-
} else {
|
|
101
|
-
throw Error('key may not be null if value is Date');
|
|
102
|
-
}
|
|
103
|
-
} else {
|
|
104
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
105
|
-
}
|
|
106
|
-
} else if (key != null) {
|
|
107
|
-
httpParams = httpParams.append(key, value);
|
|
108
|
-
} else {
|
|
109
|
-
throw Error('key may not be null if value is not object or array');
|
|
110
|
-
}
|
|
111
|
-
return httpParams;
|
|
58
|
+
super(basePath, configuration);
|
|
112
59
|
}
|
|
113
60
|
|
|
114
61
|
/**
|
|
@@ -118,25 +65,25 @@ export class PortalsUsersManagementService {
|
|
|
118
65
|
* @param reportProgress flag to report request and response progress.
|
|
119
66
|
*/
|
|
120
67
|
public httpPortalsCreatePortalsUser(
|
|
121
|
-
requestParameters
|
|
68
|
+
requestParameters: HttpPortalsCreatePortalsUserRequestParams,
|
|
122
69
|
observe?: 'body',
|
|
123
70
|
reportProgress?: boolean,
|
|
124
71
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
125
72
|
): Observable<AgravityPortalUser>;
|
|
126
73
|
public httpPortalsCreatePortalsUser(
|
|
127
|
-
requestParameters
|
|
74
|
+
requestParameters: HttpPortalsCreatePortalsUserRequestParams,
|
|
128
75
|
observe?: 'response',
|
|
129
76
|
reportProgress?: boolean,
|
|
130
77
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
131
78
|
): Observable<HttpResponse<AgravityPortalUser>>;
|
|
132
79
|
public httpPortalsCreatePortalsUser(
|
|
133
|
-
requestParameters
|
|
80
|
+
requestParameters: HttpPortalsCreatePortalsUserRequestParams,
|
|
134
81
|
observe?: 'events',
|
|
135
82
|
reportProgress?: boolean,
|
|
136
83
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
137
84
|
): Observable<HttpEvent<AgravityPortalUser>>;
|
|
138
85
|
public httpPortalsCreatePortalsUser(
|
|
139
|
-
requestParameters
|
|
86
|
+
requestParameters: HttpPortalsCreatePortalsUserRequestParams,
|
|
140
87
|
observe: any = 'body',
|
|
141
88
|
reportProgress: boolean = false,
|
|
142
89
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -148,32 +95,17 @@ export class PortalsUsersManagementService {
|
|
|
148
95
|
|
|
149
96
|
let localVarHeaders = this.defaultHeaders;
|
|
150
97
|
|
|
151
|
-
let localVarCredential: string | undefined;
|
|
152
98
|
// authentication (msal_auth) required
|
|
153
|
-
|
|
154
|
-
if (localVarCredential) {
|
|
155
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
156
|
-
}
|
|
99
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
157
100
|
|
|
158
|
-
|
|
159
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
160
|
-
// to determine the Accept header
|
|
161
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
162
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
163
|
-
}
|
|
101
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
164
102
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
165
103
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
166
104
|
}
|
|
167
105
|
|
|
168
|
-
|
|
169
|
-
if (localVarHttpContext === undefined) {
|
|
170
|
-
localVarHttpContext = new HttpContext();
|
|
171
|
-
}
|
|
106
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
172
107
|
|
|
173
|
-
|
|
174
|
-
if (localVarTransferCache === undefined) {
|
|
175
|
-
localVarTransferCache = true;
|
|
176
|
-
}
|
|
108
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
177
109
|
|
|
178
110
|
// to determine the Content-Type header
|
|
179
111
|
const consumes: string[] = ['application/json'];
|
|
@@ -194,11 +126,12 @@ export class PortalsUsersManagementService {
|
|
|
194
126
|
}
|
|
195
127
|
|
|
196
128
|
let localVarPath = `/portalsusers`;
|
|
197
|
-
|
|
129
|
+
const { basePath, withCredentials } = this.configuration;
|
|
130
|
+
return this.httpClient.request<AgravityPortalUser>('post', `${basePath}${localVarPath}`, {
|
|
198
131
|
context: localVarHttpContext,
|
|
199
132
|
body: agravityPortalUser,
|
|
200
133
|
responseType: <any>responseType_,
|
|
201
|
-
withCredentials:
|
|
134
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
202
135
|
headers: localVarHeaders,
|
|
203
136
|
observe: observe,
|
|
204
137
|
transferCache: localVarTransferCache,
|
|
@@ -213,25 +146,25 @@ export class PortalsUsersManagementService {
|
|
|
213
146
|
* @param reportProgress flag to report request and response progress.
|
|
214
147
|
*/
|
|
215
148
|
public httpPortalsDeletePortalUser(
|
|
216
|
-
requestParameters
|
|
149
|
+
requestParameters: HttpPortalsDeletePortalUserRequestParams,
|
|
217
150
|
observe?: 'body',
|
|
218
151
|
reportProgress?: boolean,
|
|
219
152
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
220
153
|
): Observable<string>;
|
|
221
154
|
public httpPortalsDeletePortalUser(
|
|
222
|
-
requestParameters
|
|
155
|
+
requestParameters: HttpPortalsDeletePortalUserRequestParams,
|
|
223
156
|
observe?: 'response',
|
|
224
157
|
reportProgress?: boolean,
|
|
225
158
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
226
159
|
): Observable<HttpResponse<string>>;
|
|
227
160
|
public httpPortalsDeletePortalUser(
|
|
228
|
-
requestParameters
|
|
161
|
+
requestParameters: HttpPortalsDeletePortalUserRequestParams,
|
|
229
162
|
observe?: 'events',
|
|
230
163
|
reportProgress?: boolean,
|
|
231
164
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
232
165
|
): Observable<HttpEvent<string>>;
|
|
233
166
|
public httpPortalsDeletePortalUser(
|
|
234
|
-
requestParameters
|
|
167
|
+
requestParameters: HttpPortalsDeletePortalUserRequestParams,
|
|
235
168
|
observe: any = 'body',
|
|
236
169
|
reportProgress: boolean = false,
|
|
237
170
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -243,32 +176,17 @@ export class PortalsUsersManagementService {
|
|
|
243
176
|
|
|
244
177
|
let localVarHeaders = this.defaultHeaders;
|
|
245
178
|
|
|
246
|
-
let localVarCredential: string | undefined;
|
|
247
179
|
// authentication (msal_auth) required
|
|
248
|
-
|
|
249
|
-
if (localVarCredential) {
|
|
250
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
251
|
-
}
|
|
180
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
252
181
|
|
|
253
|
-
|
|
254
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
255
|
-
// to determine the Accept header
|
|
256
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
257
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
258
|
-
}
|
|
182
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
259
183
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
260
184
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
261
185
|
}
|
|
262
186
|
|
|
263
|
-
|
|
264
|
-
if (localVarHttpContext === undefined) {
|
|
265
|
-
localVarHttpContext = new HttpContext();
|
|
266
|
-
}
|
|
187
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
267
188
|
|
|
268
|
-
|
|
269
|
-
if (localVarTransferCache === undefined) {
|
|
270
|
-
localVarTransferCache = true;
|
|
271
|
-
}
|
|
189
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
272
190
|
|
|
273
191
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
274
192
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -282,10 +200,11 @@ export class PortalsUsersManagementService {
|
|
|
282
200
|
}
|
|
283
201
|
|
|
284
202
|
let localVarPath = `/portalsusers/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
285
|
-
|
|
203
|
+
const { basePath, withCredentials } = this.configuration;
|
|
204
|
+
return this.httpClient.request<string>('delete', `${basePath}${localVarPath}`, {
|
|
286
205
|
context: localVarHttpContext,
|
|
287
206
|
responseType: <any>responseType_,
|
|
288
|
-
withCredentials:
|
|
207
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
289
208
|
headers: localVarHeaders,
|
|
290
209
|
observe: observe,
|
|
291
210
|
transferCache: localVarTransferCache,
|
|
@@ -320,32 +239,17 @@ export class PortalsUsersManagementService {
|
|
|
320
239
|
): Observable<any> {
|
|
321
240
|
let localVarHeaders = this.defaultHeaders;
|
|
322
241
|
|
|
323
|
-
let localVarCredential: string | undefined;
|
|
324
242
|
// authentication (msal_auth) required
|
|
325
|
-
|
|
326
|
-
if (localVarCredential) {
|
|
327
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
328
|
-
}
|
|
243
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
329
244
|
|
|
330
|
-
|
|
331
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
332
|
-
// to determine the Accept header
|
|
333
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
334
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
335
|
-
}
|
|
245
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
336
246
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
337
247
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
338
248
|
}
|
|
339
249
|
|
|
340
|
-
|
|
341
|
-
if (localVarHttpContext === undefined) {
|
|
342
|
-
localVarHttpContext = new HttpContext();
|
|
343
|
-
}
|
|
250
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
344
251
|
|
|
345
|
-
|
|
346
|
-
if (localVarTransferCache === undefined) {
|
|
347
|
-
localVarTransferCache = true;
|
|
348
|
-
}
|
|
252
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
349
253
|
|
|
350
254
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
351
255
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -359,10 +263,11 @@ export class PortalsUsersManagementService {
|
|
|
359
263
|
}
|
|
360
264
|
|
|
361
265
|
let localVarPath = `/portalsusers`;
|
|
362
|
-
|
|
266
|
+
const { basePath, withCredentials } = this.configuration;
|
|
267
|
+
return this.httpClient.request<Array<AgravityPortalUser>>('get', `${basePath}${localVarPath}`, {
|
|
363
268
|
context: localVarHttpContext,
|
|
364
269
|
responseType: <any>responseType_,
|
|
365
|
-
withCredentials:
|
|
270
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
366
271
|
headers: localVarHeaders,
|
|
367
272
|
observe: observe,
|
|
368
273
|
transferCache: localVarTransferCache,
|
|
@@ -377,25 +282,25 @@ export class PortalsUsersManagementService {
|
|
|
377
282
|
* @param reportProgress flag to report request and response progress.
|
|
378
283
|
*/
|
|
379
284
|
public httpPortalsGetPortalUserById(
|
|
380
|
-
requestParameters
|
|
285
|
+
requestParameters: HttpPortalsGetPortalUserByIdRequestParams,
|
|
381
286
|
observe?: 'body',
|
|
382
287
|
reportProgress?: boolean,
|
|
383
288
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
384
289
|
): Observable<Array<AgravityPortalUser>>;
|
|
385
290
|
public httpPortalsGetPortalUserById(
|
|
386
|
-
requestParameters
|
|
291
|
+
requestParameters: HttpPortalsGetPortalUserByIdRequestParams,
|
|
387
292
|
observe?: 'response',
|
|
388
293
|
reportProgress?: boolean,
|
|
389
294
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
390
295
|
): Observable<HttpResponse<Array<AgravityPortalUser>>>;
|
|
391
296
|
public httpPortalsGetPortalUserById(
|
|
392
|
-
requestParameters
|
|
297
|
+
requestParameters: HttpPortalsGetPortalUserByIdRequestParams,
|
|
393
298
|
observe?: 'events',
|
|
394
299
|
reportProgress?: boolean,
|
|
395
300
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
396
301
|
): Observable<HttpEvent<Array<AgravityPortalUser>>>;
|
|
397
302
|
public httpPortalsGetPortalUserById(
|
|
398
|
-
requestParameters
|
|
303
|
+
requestParameters: HttpPortalsGetPortalUserByIdRequestParams,
|
|
399
304
|
observe: any = 'body',
|
|
400
305
|
reportProgress: boolean = false,
|
|
401
306
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -407,32 +312,17 @@ export class PortalsUsersManagementService {
|
|
|
407
312
|
|
|
408
313
|
let localVarHeaders = this.defaultHeaders;
|
|
409
314
|
|
|
410
|
-
let localVarCredential: string | undefined;
|
|
411
315
|
// authentication (msal_auth) required
|
|
412
|
-
|
|
413
|
-
if (localVarCredential) {
|
|
414
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
415
|
-
}
|
|
316
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
416
317
|
|
|
417
|
-
|
|
418
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
419
|
-
// to determine the Accept header
|
|
420
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
421
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
422
|
-
}
|
|
318
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
423
319
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
424
320
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
425
321
|
}
|
|
426
322
|
|
|
427
|
-
|
|
428
|
-
if (localVarHttpContext === undefined) {
|
|
429
|
-
localVarHttpContext = new HttpContext();
|
|
430
|
-
}
|
|
323
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
431
324
|
|
|
432
|
-
|
|
433
|
-
if (localVarTransferCache === undefined) {
|
|
434
|
-
localVarTransferCache = true;
|
|
435
|
-
}
|
|
325
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
436
326
|
|
|
437
327
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
438
328
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -446,10 +336,11 @@ export class PortalsUsersManagementService {
|
|
|
446
336
|
}
|
|
447
337
|
|
|
448
338
|
let localVarPath = `/portalsusers/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
449
|
-
|
|
339
|
+
const { basePath, withCredentials } = this.configuration;
|
|
340
|
+
return this.httpClient.request<Array<AgravityPortalUser>>('get', `${basePath}${localVarPath}`, {
|
|
450
341
|
context: localVarHttpContext,
|
|
451
342
|
responseType: <any>responseType_,
|
|
452
|
-
withCredentials:
|
|
343
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
453
344
|
headers: localVarHeaders,
|
|
454
345
|
observe: observe,
|
|
455
346
|
transferCache: localVarTransferCache,
|
|
@@ -464,25 +355,25 @@ export class PortalsUsersManagementService {
|
|
|
464
355
|
* @param reportProgress flag to report request and response progress.
|
|
465
356
|
*/
|
|
466
357
|
public httpPortalsUpdatePortalUserById(
|
|
467
|
-
requestParameters
|
|
358
|
+
requestParameters: HttpPortalsUpdatePortalUserByIdRequestParams,
|
|
468
359
|
observe?: 'body',
|
|
469
360
|
reportProgress?: boolean,
|
|
470
361
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
471
362
|
): Observable<AgravityPortalUser>;
|
|
472
363
|
public httpPortalsUpdatePortalUserById(
|
|
473
|
-
requestParameters
|
|
364
|
+
requestParameters: HttpPortalsUpdatePortalUserByIdRequestParams,
|
|
474
365
|
observe?: 'response',
|
|
475
366
|
reportProgress?: boolean,
|
|
476
367
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
477
368
|
): Observable<HttpResponse<AgravityPortalUser>>;
|
|
478
369
|
public httpPortalsUpdatePortalUserById(
|
|
479
|
-
requestParameters
|
|
370
|
+
requestParameters: HttpPortalsUpdatePortalUserByIdRequestParams,
|
|
480
371
|
observe?: 'events',
|
|
481
372
|
reportProgress?: boolean,
|
|
482
373
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
483
374
|
): Observable<HttpEvent<AgravityPortalUser>>;
|
|
484
375
|
public httpPortalsUpdatePortalUserById(
|
|
485
|
-
requestParameters
|
|
376
|
+
requestParameters: HttpPortalsUpdatePortalUserByIdRequestParams,
|
|
486
377
|
observe: any = 'body',
|
|
487
378
|
reportProgress: boolean = false,
|
|
488
379
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -498,32 +389,17 @@ export class PortalsUsersManagementService {
|
|
|
498
389
|
|
|
499
390
|
let localVarHeaders = this.defaultHeaders;
|
|
500
391
|
|
|
501
|
-
let localVarCredential: string | undefined;
|
|
502
392
|
// authentication (msal_auth) required
|
|
503
|
-
|
|
504
|
-
if (localVarCredential) {
|
|
505
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
506
|
-
}
|
|
393
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
507
394
|
|
|
508
|
-
|
|
509
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
510
|
-
// to determine the Accept header
|
|
511
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
512
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
513
|
-
}
|
|
395
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
514
396
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
515
397
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
516
398
|
}
|
|
517
399
|
|
|
518
|
-
|
|
519
|
-
if (localVarHttpContext === undefined) {
|
|
520
|
-
localVarHttpContext = new HttpContext();
|
|
521
|
-
}
|
|
400
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
522
401
|
|
|
523
|
-
|
|
524
|
-
if (localVarTransferCache === undefined) {
|
|
525
|
-
localVarTransferCache = true;
|
|
526
|
-
}
|
|
402
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
527
403
|
|
|
528
404
|
// to determine the Content-Type header
|
|
529
405
|
const consumes: string[] = ['application/json'];
|
|
@@ -544,11 +420,12 @@ export class PortalsUsersManagementService {
|
|
|
544
420
|
}
|
|
545
421
|
|
|
546
422
|
let localVarPath = `/portalsusers/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
547
|
-
|
|
423
|
+
const { basePath, withCredentials } = this.configuration;
|
|
424
|
+
return this.httpClient.request<AgravityPortalUser>('post', `${basePath}${localVarPath}`, {
|
|
548
425
|
context: localVarHttpContext,
|
|
549
426
|
body: agravityPortalUser,
|
|
550
427
|
responseType: <any>responseType_,
|
|
551
|
-
withCredentials:
|
|
428
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
552
429
|
headers: localVarHeaders,
|
|
553
430
|
observe: observe,
|
|
554
431
|
transferCache: localVarTransferCache,
|
|
@@ -20,6 +20,7 @@ import { PublishEntity } from '../model/publishEntity.agravity';
|
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
22
22
|
import { AgravityConfiguration } from '../configuration';
|
|
23
|
+
import { BaseService } from '../api.base.service';
|
|
23
24
|
|
|
24
25
|
export interface HttpPublishedAssetsGetAllRequestParams {
|
|
25
26
|
/** Filter response for collection */
|
|
@@ -31,67 +32,13 @@ export interface HttpPublishedAssetsGetAllRequestParams {
|
|
|
31
32
|
@Injectable({
|
|
32
33
|
providedIn: 'root'
|
|
33
34
|
})
|
|
34
|
-
export class PublishingService {
|
|
35
|
-
protected basePath = 'http://localhost:7071/api';
|
|
36
|
-
public defaultHeaders = new HttpHeaders();
|
|
37
|
-
public configuration = new AgravityConfiguration();
|
|
38
|
-
public encoder: HttpParameterCodec;
|
|
39
|
-
|
|
35
|
+
export class PublishingService extends BaseService {
|
|
40
36
|
constructor(
|
|
41
37
|
protected httpClient: HttpClient,
|
|
42
38
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
43
|
-
@Optional() configuration
|
|
39
|
+
@Optional() configuration?: AgravityConfiguration
|
|
44
40
|
) {
|
|
45
|
-
|
|
46
|
-
this.configuration = configuration;
|
|
47
|
-
}
|
|
48
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
49
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
50
|
-
if (firstBasePath != undefined) {
|
|
51
|
-
basePath = firstBasePath;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (typeof basePath !== 'string') {
|
|
55
|
-
basePath = this.basePath;
|
|
56
|
-
}
|
|
57
|
-
this.configuration.basePath = basePath;
|
|
58
|
-
}
|
|
59
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
64
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
65
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
66
|
-
} else {
|
|
67
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
68
|
-
}
|
|
69
|
-
return httpParams;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return httpParams;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (typeof value === 'object') {
|
|
78
|
-
if (Array.isArray(value)) {
|
|
79
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
80
|
-
} else if (value instanceof Date) {
|
|
81
|
-
if (key != null) {
|
|
82
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
83
|
-
} else {
|
|
84
|
-
throw Error('key may not be null if value is Date');
|
|
85
|
-
}
|
|
86
|
-
} else {
|
|
87
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
88
|
-
}
|
|
89
|
-
} else if (key != null) {
|
|
90
|
-
httpParams = httpParams.append(key, value);
|
|
91
|
-
} else {
|
|
92
|
-
throw Error('key may not be null if value is not object or array');
|
|
93
|
-
}
|
|
94
|
-
return httpParams;
|
|
41
|
+
super(basePath, configuration);
|
|
95
42
|
}
|
|
96
43
|
|
|
97
44
|
/**
|
|
@@ -128,41 +75,22 @@ export class PublishingService {
|
|
|
128
75
|
const incldescendants = requestParameters?.incldescendants;
|
|
129
76
|
|
|
130
77
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
if (incldescendants !== undefined && incldescendants !== null) {
|
|
135
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>incldescendants, 'incldescendants');
|
|
136
|
-
}
|
|
78
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>cid, 'cid');
|
|
79
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>incldescendants, 'incldescendants');
|
|
137
80
|
|
|
138
81
|
let localVarHeaders = this.defaultHeaders;
|
|
139
82
|
|
|
140
|
-
let localVarCredential: string | undefined;
|
|
141
83
|
// authentication (msal_auth) required
|
|
142
|
-
|
|
143
|
-
if (localVarCredential) {
|
|
144
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
145
|
-
}
|
|
84
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
146
85
|
|
|
147
|
-
|
|
148
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
149
|
-
// to determine the Accept header
|
|
150
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
151
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
152
|
-
}
|
|
86
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
153
87
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
154
88
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
155
89
|
}
|
|
156
90
|
|
|
157
|
-
|
|
158
|
-
if (localVarHttpContext === undefined) {
|
|
159
|
-
localVarHttpContext = new HttpContext();
|
|
160
|
-
}
|
|
91
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
161
92
|
|
|
162
|
-
|
|
163
|
-
if (localVarTransferCache === undefined) {
|
|
164
|
-
localVarTransferCache = true;
|
|
165
|
-
}
|
|
93
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
166
94
|
|
|
167
95
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
168
96
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -176,11 +104,12 @@ export class PublishingService {
|
|
|
176
104
|
}
|
|
177
105
|
|
|
178
106
|
let localVarPath = `/publish`;
|
|
179
|
-
|
|
107
|
+
const { basePath, withCredentials } = this.configuration;
|
|
108
|
+
return this.httpClient.request<PublishEntity>('get', `${basePath}${localVarPath}`, {
|
|
180
109
|
context: localVarHttpContext,
|
|
181
110
|
params: localVarQueryParameters,
|
|
182
111
|
responseType: <any>responseType_,
|
|
183
|
-
withCredentials:
|
|
112
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
184
113
|
headers: localVarHeaders,
|
|
185
114
|
observe: observe,
|
|
186
115
|
transferCache: localVarTransferCache,
|