@agravity/private 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 +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/comment.agravity.ts +1 -0
- 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 { Asset } from '../model/asset.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 HttpWordpressPageRequestParams {
|
|
27
28
|
/** The title of the wordpress post. */
|
|
@@ -52,67 +53,13 @@ export interface HttpWordpressPostRequestParams {
|
|
|
52
53
|
@Injectable({
|
|
53
54
|
providedIn: 'root'
|
|
54
55
|
})
|
|
55
|
-
export class WordpressManagementService {
|
|
56
|
-
protected basePath = 'http://localhost:7071/api';
|
|
57
|
-
public defaultHeaders = new HttpHeaders();
|
|
58
|
-
public configuration = new AgravityConfiguration();
|
|
59
|
-
public encoder: HttpParameterCodec;
|
|
60
|
-
|
|
56
|
+
export class WordpressManagementService extends BaseService {
|
|
61
57
|
constructor(
|
|
62
58
|
protected httpClient: HttpClient,
|
|
63
59
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
64
|
-
@Optional() configuration
|
|
60
|
+
@Optional() configuration?: AgravityConfiguration
|
|
65
61
|
) {
|
|
66
|
-
|
|
67
|
-
this.configuration = configuration;
|
|
68
|
-
}
|
|
69
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
70
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
71
|
-
if (firstBasePath != undefined) {
|
|
72
|
-
basePath = firstBasePath;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (typeof basePath !== 'string') {
|
|
76
|
-
basePath = this.basePath;
|
|
77
|
-
}
|
|
78
|
-
this.configuration.basePath = basePath;
|
|
79
|
-
}
|
|
80
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
85
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
86
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
87
|
-
} else {
|
|
88
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
89
|
-
}
|
|
90
|
-
return httpParams;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
94
|
-
if (value == null) {
|
|
95
|
-
return httpParams;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (typeof value === 'object') {
|
|
99
|
-
if (Array.isArray(value)) {
|
|
100
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
101
|
-
} else if (value instanceof Date) {
|
|
102
|
-
if (key != null) {
|
|
103
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
104
|
-
} else {
|
|
105
|
-
throw Error('key may not be null if value is Date');
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
109
|
-
}
|
|
110
|
-
} else if (key != null) {
|
|
111
|
-
httpParams = httpParams.append(key, value);
|
|
112
|
-
} else {
|
|
113
|
-
throw Error('key may not be null if value is not object or array');
|
|
114
|
-
}
|
|
115
|
-
return httpParams;
|
|
62
|
+
super(basePath, configuration);
|
|
116
63
|
}
|
|
117
64
|
|
|
118
65
|
/**
|
|
@@ -122,25 +69,25 @@ export class WordpressManagementService {
|
|
|
122
69
|
* @param reportProgress flag to report request and response progress.
|
|
123
70
|
*/
|
|
124
71
|
public httpWordpressPage(
|
|
125
|
-
requestParameters
|
|
72
|
+
requestParameters: HttpWordpressPageRequestParams,
|
|
126
73
|
observe?: 'body',
|
|
127
74
|
reportProgress?: boolean,
|
|
128
75
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
129
76
|
): Observable<number>;
|
|
130
77
|
public httpWordpressPage(
|
|
131
|
-
requestParameters
|
|
78
|
+
requestParameters: HttpWordpressPageRequestParams,
|
|
132
79
|
observe?: 'response',
|
|
133
80
|
reportProgress?: boolean,
|
|
134
81
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
135
82
|
): Observable<HttpResponse<number>>;
|
|
136
83
|
public httpWordpressPage(
|
|
137
|
-
requestParameters
|
|
84
|
+
requestParameters: HttpWordpressPageRequestParams,
|
|
138
85
|
observe?: 'events',
|
|
139
86
|
reportProgress?: boolean,
|
|
140
87
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
141
88
|
): Observable<HttpEvent<number>>;
|
|
142
89
|
public httpWordpressPage(
|
|
143
|
-
requestParameters
|
|
90
|
+
requestParameters: HttpWordpressPageRequestParams,
|
|
144
91
|
observe: any = 'body',
|
|
145
92
|
reportProgress: boolean = false,
|
|
146
93
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -167,47 +114,24 @@ export class WordpressManagementService {
|
|
|
167
114
|
}
|
|
168
115
|
|
|
169
116
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageContentBefore, 'page_content_before');
|
|
175
|
-
}
|
|
176
|
-
if (pageImage !== undefined && pageImage !== null) {
|
|
177
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageImage, 'page_image');
|
|
178
|
-
}
|
|
179
|
-
if (pageContentAfter !== undefined && pageContentAfter !== null) {
|
|
180
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageContentAfter, 'page_content_after');
|
|
181
|
-
}
|
|
117
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageTitle, 'page_title');
|
|
118
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageContentBefore, 'page_content_before');
|
|
119
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageImage, 'page_image');
|
|
120
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageContentAfter, 'page_content_after');
|
|
182
121
|
|
|
183
122
|
let localVarHeaders = this.defaultHeaders;
|
|
184
123
|
|
|
185
|
-
let localVarCredential: string | undefined;
|
|
186
124
|
// authentication (msal_auth) required
|
|
187
|
-
|
|
188
|
-
if (localVarCredential) {
|
|
189
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
190
|
-
}
|
|
125
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
191
126
|
|
|
192
|
-
|
|
193
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
194
|
-
// to determine the Accept header
|
|
195
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
196
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
197
|
-
}
|
|
127
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
198
128
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
199
129
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
200
130
|
}
|
|
201
131
|
|
|
202
|
-
|
|
203
|
-
if (localVarHttpContext === undefined) {
|
|
204
|
-
localVarHttpContext = new HttpContext();
|
|
205
|
-
}
|
|
132
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
206
133
|
|
|
207
|
-
|
|
208
|
-
if (localVarTransferCache === undefined) {
|
|
209
|
-
localVarTransferCache = true;
|
|
210
|
-
}
|
|
134
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
211
135
|
|
|
212
136
|
// to determine the Content-Type header
|
|
213
137
|
const consumes: string[] = ['application/json'];
|
|
@@ -228,12 +152,13 @@ export class WordpressManagementService {
|
|
|
228
152
|
}
|
|
229
153
|
|
|
230
154
|
let localVarPath = `/wordpresspage`;
|
|
231
|
-
|
|
155
|
+
const { basePath, withCredentials } = this.configuration;
|
|
156
|
+
return this.httpClient.request<number>('post', `${basePath}${localVarPath}`, {
|
|
232
157
|
context: localVarHttpContext,
|
|
233
158
|
body: asset,
|
|
234
159
|
params: localVarQueryParameters,
|
|
235
160
|
responseType: <any>responseType_,
|
|
236
|
-
withCredentials:
|
|
161
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
237
162
|
headers: localVarHeaders,
|
|
238
163
|
observe: observe,
|
|
239
164
|
transferCache: localVarTransferCache,
|
|
@@ -248,25 +173,25 @@ export class WordpressManagementService {
|
|
|
248
173
|
* @param reportProgress flag to report request and response progress.
|
|
249
174
|
*/
|
|
250
175
|
public httpWordpressPost(
|
|
251
|
-
requestParameters
|
|
176
|
+
requestParameters: HttpWordpressPostRequestParams,
|
|
252
177
|
observe?: 'body',
|
|
253
178
|
reportProgress?: boolean,
|
|
254
179
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
255
180
|
): Observable<number>;
|
|
256
181
|
public httpWordpressPost(
|
|
257
|
-
requestParameters
|
|
182
|
+
requestParameters: HttpWordpressPostRequestParams,
|
|
258
183
|
observe?: 'response',
|
|
259
184
|
reportProgress?: boolean,
|
|
260
185
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
261
186
|
): Observable<HttpResponse<number>>;
|
|
262
187
|
public httpWordpressPost(
|
|
263
|
-
requestParameters
|
|
188
|
+
requestParameters: HttpWordpressPostRequestParams,
|
|
264
189
|
observe?: 'events',
|
|
265
190
|
reportProgress?: boolean,
|
|
266
191
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
267
192
|
): Observable<HttpEvent<number>>;
|
|
268
193
|
public httpWordpressPost(
|
|
269
|
-
requestParameters
|
|
194
|
+
requestParameters: HttpWordpressPostRequestParams,
|
|
270
195
|
observe: any = 'body',
|
|
271
196
|
reportProgress: boolean = false,
|
|
272
197
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -293,47 +218,24 @@ export class WordpressManagementService {
|
|
|
293
218
|
}
|
|
294
219
|
|
|
295
220
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postContentBefore, 'post_content_before');
|
|
301
|
-
}
|
|
302
|
-
if (postImage !== undefined && postImage !== null) {
|
|
303
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postImage, 'post_image');
|
|
304
|
-
}
|
|
305
|
-
if (postContentAfter !== undefined && postContentAfter !== null) {
|
|
306
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postContentAfter, 'post_content_after');
|
|
307
|
-
}
|
|
221
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postTitle, 'post_title');
|
|
222
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postContentBefore, 'post_content_before');
|
|
223
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postImage, 'post_image');
|
|
224
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postContentAfter, 'post_content_after');
|
|
308
225
|
|
|
309
226
|
let localVarHeaders = this.defaultHeaders;
|
|
310
227
|
|
|
311
|
-
let localVarCredential: string | undefined;
|
|
312
228
|
// authentication (msal_auth) required
|
|
313
|
-
|
|
314
|
-
if (localVarCredential) {
|
|
315
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
316
|
-
}
|
|
229
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
317
230
|
|
|
318
|
-
|
|
319
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
320
|
-
// to determine the Accept header
|
|
321
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
322
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
323
|
-
}
|
|
231
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
324
232
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
325
233
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
326
234
|
}
|
|
327
235
|
|
|
328
|
-
|
|
329
|
-
if (localVarHttpContext === undefined) {
|
|
330
|
-
localVarHttpContext = new HttpContext();
|
|
331
|
-
}
|
|
236
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
332
237
|
|
|
333
|
-
|
|
334
|
-
if (localVarTransferCache === undefined) {
|
|
335
|
-
localVarTransferCache = true;
|
|
336
|
-
}
|
|
238
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
337
239
|
|
|
338
240
|
// to determine the Content-Type header
|
|
339
241
|
const consumes: string[] = ['application/json'];
|
|
@@ -354,12 +256,13 @@ export class WordpressManagementService {
|
|
|
354
256
|
}
|
|
355
257
|
|
|
356
258
|
let localVarPath = `/wordpresspost`;
|
|
357
|
-
|
|
259
|
+
const { basePath, withCredentials } = this.configuration;
|
|
260
|
+
return this.httpClient.request<number>('post', `${basePath}${localVarPath}`, {
|
|
358
261
|
context: localVarHttpContext,
|
|
359
262
|
body: asset,
|
|
360
263
|
params: localVarQueryParameters,
|
|
361
264
|
responseType: <any>responseType_,
|
|
362
|
-
withCredentials:
|
|
265
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
363
266
|
headers: localVarHeaders,
|
|
364
267
|
observe: observe,
|
|
365
268
|
transferCache: localVarTransferCache,
|