@agravity/private 7.3.0 → 8.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 +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -4
- package/api/assetIconRuleManagement.agravity.ts +344 -150
- package/api/assetManagement.agravity.ts +709 -389
- package/api/assetOperations.agravity.ts +1414 -650
- package/api/assetPublishing.agravity.ts +562 -255
- package/api/assetVersioning.agravity.ts +598 -278
- package/api/authenticationManagement.agravity.ts +731 -274
- package/api/collectionManagement.agravity.ts +618 -309
- package/api/collectionShareManagement.agravity.ts +256 -121
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +271 -123
- package/api/collectionTypeManagement.agravity.ts +519 -250
- package/api/commentsManagement.agravity.ts +284 -90
- package/api/configurationManagement.agravity.ts +311 -128
- package/api/dashboardWidgetManagement.agravity.ts +342 -124
- package/api/dataImportExportManagement.agravity.ts +378 -148
- package/api/downloadFormatManagement.agravity.ts +450 -152
- package/api/downloadZip.agravity.ts +75 -30
- package/api/generalManagement.agravity.ts +374 -164
- package/api/helperTools.agravity.ts +804 -273
- package/api/historyEntryManagement.agravity.ts +75 -33
- package/api/iccProfileManagement.agravity.ts +64 -23
- package/api/listBlobs.agravity.ts +125 -47
- package/api/listQueues.agravity.ts +68 -24
- package/api/listTables.agravity.ts +68 -25
- package/api/permissionsManagement.agravity.ts +174 -77
- package/api/portalManagement.agravity.ts +511 -198
- package/api/publishing.agravity.ts +69 -38
- package/api/quickshareManagement.agravity.ts +349 -138
- package/api/savedSearchManagement.agravity.ts +205 -92
- package/api/searchManagement.agravity.ts +517 -297
- package/api/secureUpload.agravity.ts +325 -126
- package/api/signalRConnectionManagement.agravity.ts +175 -56
- package/api/staticDefinedListManagement.agravity.ts +342 -162
- package/api/stockImport.agravity.ts +138 -74
- package/api/structureImport.agravity.ts +68 -25
- package/api/translationManagement.agravity.ts +357 -206
- package/api/webAppData.agravity.ts +278 -88
- package/api/widgetLayoutManagement.agravity.ts +131 -47
- package/api/wordpressManagement.agravity.ts +152 -108
- package/api/workspaceManagement.agravity.ts +456 -197
- package/api.module.ts +0 -40
- package/configuration.ts +42 -0
- package/git_push.sh +3 -4
- package/index.ts +1 -0
- package/model/agravityErrorResponse.agravity.ts +3 -4
- package/model/agravityInfoResponse.agravity.ts +3 -4
- package/model/agravityUser.agravity.ts +16 -17
- package/model/agravityUserDto.agravity.ts +3 -4
- package/model/agravityVersion.agravity.ts +8 -9
- package/model/allWebAppData.agravity.ts +4 -5
- package/model/apiKeyResponse.agravity.ts +2 -3
- package/model/appConfigTableEntity.agravity.ts +8 -9
- package/model/artificialIntelligenceGroup.agravity.ts +3 -4
- package/model/asset.agravity.ts +22 -23
- package/model/assetAvailability.agravity.ts +1 -2
- package/model/assetBlob.agravity.ts +27 -28
- package/model/assetBulkUpdate.agravity.ts +2 -3
- package/model/assetCollectionLink.agravity.ts +2 -3
- package/model/assetIconRule.agravity.ts +17 -18
- package/model/assetIdFormat.agravity.ts +3 -4
- package/model/assetPageResult.agravity.ts +4 -5
- package/model/assetTextContent.agravity.ts +2 -3
- package/model/assetsOperationBody.agravity.ts +3 -4
- package/model/azSearchOptions.agravity.ts +8 -9
- package/model/azureIdentity.agravity.ts +4 -5
- package/model/blobInfoObj.agravity.ts +0 -1
- package/model/collTypeItem.agravity.ts +16 -17
- package/model/collTypeItemBlueprint.agravity.ts +12 -13
- package/model/collection.agravity.ts +15 -16
- package/model/collectionType.agravity.ts +14 -15
- package/model/collectionUDL.agravity.ts +4 -5
- package/model/collectionUDLListEntity.agravity.ts +9 -10
- package/model/collectionUDLReference.agravity.ts +3 -4
- package/model/comment.agravity.ts +9 -10
- package/model/createSftpUserResult.agravity.ts +2 -3
- package/model/dashboardWidget.agravity.ts +11 -12
- package/model/dataResult.agravity.ts +4 -5
- package/model/deletedEntities.agravity.ts +4 -5
- package/model/distZipResponse.agravity.ts +3 -4
- package/model/downloadFormat.agravity.ts +19 -16
- package/model/downloadObject.agravity.ts +16 -16
- package/model/downloadZipRequest.agravity.ts +9 -10
- package/model/dynamicImageOperation.agravity.ts +2 -3
- package/model/emailAddress.agravity.ts +2 -3
- package/model/entityId.agravity.ts +1 -2
- package/model/entityIdName.agravity.ts +3 -4
- package/model/entityTranslations.agravity.ts +2 -3
- package/model/excelExportTableEntity.agravity.ts +5 -5
- package/model/frontendAppConfig.agravity.ts +0 -1
- package/model/groupAllAppData.agravity.ts +5 -6
- package/model/historyEntry.agravity.ts +9 -10
- package/model/infoEntitySkillEnhanced.agravity.ts +10 -11
- package/model/metadata.agravity.ts +3 -4
- package/model/models.ts +0 -1
- package/model/moveCollectionBody.agravity.ts +3 -4
- package/model/permissionChange.agravity.ts +1 -2
- package/model/permissionEntity.agravity.ts +1 -2
- package/model/permissionSetting.agravity.ts +8 -9
- package/model/portal.agravity.ts +18 -20
- package/model/portalLinks.agravity.ts +3 -4
- package/model/portalTheme.agravity.ts +6 -7
- package/model/portalZipRequest.agravity.ts +14 -15
- package/model/publishEntity.agravity.ts +9 -10
- package/model/publishedAsset.agravity.ts +12 -13
- package/model/quickShare.agravity.ts +12 -13
- package/model/quickShareFull.agravity.ts +15 -16
- package/model/sasToken.agravity.ts +6 -7
- package/model/savedSearch.agravity.ts +13 -14
- package/model/searchAdminDataSourceStatus.agravity.ts +2 -3
- package/model/searchAdminIndexStatus.agravity.ts +3 -4
- package/model/searchAdminIndexerLastRun.agravity.ts +3 -4
- package/model/searchAdminIndexerStatus.agravity.ts +4 -5
- package/model/searchAdminSkillStatus.agravity.ts +2 -3
- package/model/searchAdminStatistics.agravity.ts +2 -3
- package/model/searchAdminStatus.agravity.ts +4 -5
- package/model/searchFacet.agravity.ts +2 -3
- package/model/searchFacetEntity.agravity.ts +2 -3
- package/model/searchResult.agravity.ts +3 -4
- package/model/searchableItem.agravity.ts +3 -4
- package/model/secureUploadEntity.agravity.ts +10 -11
- package/model/sharedAllowedFormat.agravity.ts +2 -3
- package/model/sharedAsset.agravity.ts +5 -6
- package/model/sharedCollection.agravity.ts +15 -16
- package/model/sharedCollectionFull.agravity.ts +18 -19
- package/model/signalRConnectionInfo.agravity.ts +0 -1
- package/model/simpleAsset.agravity.ts +10 -11
- package/model/staticDefinedList.agravity.ts +12 -13
- package/model/translation.agravity.ts +2 -3
- package/model/translationRequest.agravity.ts +3 -4
- package/model/uiTutorials.agravity.ts +0 -1
- package/model/versionEntity.agravity.ts +9 -10
- package/model/versionedAsset.agravity.ts +5 -6
- package/model/whereParam.agravity.ts +0 -1
- package/model/widgetLayout.agravity.ts +8 -9
- package/model/widgetProperties.agravity.ts +6 -7
- package/model/workspace.agravity.ts +14 -15
- package/package.json +16 -17
- package/param.ts +44 -0
- package/model/portalLanguages.agravity.ts +0 -16
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* Agravity OpenAPI Documentation - Private Functions
|
|
3
3
|
* <h1>Agravity API Reference</h1>This is the full API description of Agravity GmbH.<br/><h2>Resources</h2><ul> <li>Collection type management</li> <li>Collections management</li> <li>Assets management</li> <li>Assets operations</li> <li>Assets publishing</li> <li>Assets versioning</li> <li>Sharing collection</li> <li>Secure upload to collection</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li> <li>Authentication management</li> <li>Blob management</li> <li>Queue management</li> <li>Structure management</li> <li>Bulk get all data from collection / collection type</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>Create / update / list / delete collection types</li> <li>Create / update / list / delete collections</li> <li>Create / update / list / delete assets</li> <li>Operations on assets like: move to collection, renew asset(through queue pipe), rotate, resize, etc.</li> <li>Publish / de-publish an asset or specific variants of an asset</li> <li>Create / delete version of asset</li> <li>Bulk download of Assets</li> <li>Search for assets or collections</li> <li>Authenticated access like e.g. getting access to blobs directly (for upload on folder or generate SAS token)</li> <li>List / delete blobs</li> <li>Create structures based on blob storage input</li></ul><br/>Copyright © Agravity GmbH 2024. All Rights Reserved
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 7.3.0
|
|
6
5
|
* Contact: office@agravity.io
|
|
7
6
|
*
|
|
8
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,16 +11,45 @@
|
|
|
12
11
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
12
|
|
|
14
13
|
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
-
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
14
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
16
15
|
import { CustomHttpParameterCodec } from '../encoder';
|
|
17
16
|
import { Observable } from 'rxjs';
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
import {
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { Asset } from '../model/asset.agravity';
|
|
21
22
|
|
|
23
|
+
// @ts-ignore
|
|
22
24
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
23
25
|
import { AgravityConfiguration } from '../configuration';
|
|
24
26
|
|
|
27
|
+
export interface HttpWordpressPageRequestParams {
|
|
28
|
+
/** The title of the wordpress post. */
|
|
29
|
+
pageTitle: string;
|
|
30
|
+
/** The excerpt of the wordpress page as well as the first part of the page. */
|
|
31
|
+
pageContentBefore: string;
|
|
32
|
+
/** The URL where the image can be publically retrieved. */
|
|
33
|
+
pageImage: string;
|
|
34
|
+
/** The content of the wordpress page, which is shown below the image. */
|
|
35
|
+
pageContentAfter: string;
|
|
36
|
+
/** This endpoint creates a Wordpress Page */
|
|
37
|
+
asset: Asset;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface HttpWordpressPostRequestParams {
|
|
41
|
+
/** The title of the wordpress post. */
|
|
42
|
+
postTitle: string;
|
|
43
|
+
/** The excerpt of the wordpress post as well as the first part of the post. */
|
|
44
|
+
postContentBefore: string;
|
|
45
|
+
/** The URL where the image can be publically retrieved. */
|
|
46
|
+
postImage: string;
|
|
47
|
+
/** The content of the wordpress post, which is shown below the image. */
|
|
48
|
+
postContentAfter: string;
|
|
49
|
+
/** This endpoint creates a Wordpress Post */
|
|
50
|
+
asset: Asset;
|
|
51
|
+
}
|
|
52
|
+
|
|
25
53
|
@Injectable({
|
|
26
54
|
providedIn: 'root'
|
|
27
55
|
})
|
|
@@ -33,13 +61,18 @@ export class WordpressManagementService {
|
|
|
33
61
|
|
|
34
62
|
constructor(
|
|
35
63
|
protected httpClient: HttpClient,
|
|
36
|
-
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
64
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
37
65
|
@Optional() configuration: AgravityConfiguration
|
|
38
66
|
) {
|
|
39
67
|
if (configuration) {
|
|
40
68
|
this.configuration = configuration;
|
|
41
69
|
}
|
|
42
70
|
if (typeof this.configuration.basePath !== 'string') {
|
|
71
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
72
|
+
if (firstBasePath != undefined) {
|
|
73
|
+
basePath = firstBasePath;
|
|
74
|
+
}
|
|
75
|
+
|
|
43
76
|
if (typeof basePath !== 'string') {
|
|
44
77
|
basePath = this.basePath;
|
|
45
78
|
}
|
|
@@ -48,6 +81,7 @@ export class WordpressManagementService {
|
|
|
48
81
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
82
|
}
|
|
50
83
|
|
|
84
|
+
// @ts-ignore
|
|
51
85
|
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
52
86
|
if (typeof value === 'object' && value instanceof Date === false) {
|
|
53
87
|
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
@@ -67,7 +101,7 @@ export class WordpressManagementService {
|
|
|
67
101
|
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
68
102
|
} else if (value instanceof Date) {
|
|
69
103
|
if (key != null) {
|
|
70
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().
|
|
104
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
71
105
|
} else {
|
|
72
106
|
throw Error('key may not be null if value is Date');
|
|
73
107
|
}
|
|
@@ -84,242 +118,252 @@ export class WordpressManagementService {
|
|
|
84
118
|
|
|
85
119
|
/**
|
|
86
120
|
* This endpoint creates a Wordpress Page
|
|
87
|
-
* @param
|
|
88
|
-
* @param pageContentBefore The excerpt of the wordpress page as well as the first part of the page.
|
|
89
|
-
* @param pageImage The URL where the image can be publically retrieved.
|
|
90
|
-
* @param pageContentAfter The content of the wordpress page, which is shown below the image.
|
|
91
|
-
* @param asset This endpoint creates a Wordpress Page
|
|
121
|
+
* @param requestParameters
|
|
92
122
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
93
123
|
* @param reportProgress flag to report request and response progress.
|
|
94
124
|
*/
|
|
95
125
|
public httpWordpressPage(
|
|
96
|
-
|
|
97
|
-
pageContentBefore: string,
|
|
98
|
-
pageImage: string,
|
|
99
|
-
pageContentAfter: string,
|
|
100
|
-
asset: Asset,
|
|
126
|
+
requestParameters?: HttpWordpressPageRequestParams,
|
|
101
127
|
observe?: 'body',
|
|
102
128
|
reportProgress?: boolean,
|
|
103
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
129
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
104
130
|
): Observable<number>;
|
|
105
131
|
public httpWordpressPage(
|
|
106
|
-
|
|
107
|
-
pageContentBefore: string,
|
|
108
|
-
pageImage: string,
|
|
109
|
-
pageContentAfter: string,
|
|
110
|
-
asset: Asset,
|
|
132
|
+
requestParameters?: HttpWordpressPageRequestParams,
|
|
111
133
|
observe?: 'response',
|
|
112
134
|
reportProgress?: boolean,
|
|
113
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
135
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
114
136
|
): Observable<HttpResponse<number>>;
|
|
115
137
|
public httpWordpressPage(
|
|
116
|
-
|
|
117
|
-
pageContentBefore: string,
|
|
118
|
-
pageImage: string,
|
|
119
|
-
pageContentAfter: string,
|
|
120
|
-
asset: Asset,
|
|
138
|
+
requestParameters?: HttpWordpressPageRequestParams,
|
|
121
139
|
observe?: 'events',
|
|
122
140
|
reportProgress?: boolean,
|
|
123
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
141
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
124
142
|
): Observable<HttpEvent<number>>;
|
|
125
143
|
public httpWordpressPage(
|
|
126
|
-
|
|
127
|
-
pageContentBefore: string,
|
|
128
|
-
pageImage: string,
|
|
129
|
-
pageContentAfter: string,
|
|
130
|
-
asset: Asset,
|
|
144
|
+
requestParameters?: HttpWordpressPageRequestParams,
|
|
131
145
|
observe: any = 'body',
|
|
132
146
|
reportProgress: boolean = false,
|
|
133
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
147
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
134
148
|
): Observable<any> {
|
|
149
|
+
const pageTitle = requestParameters?.pageTitle;
|
|
135
150
|
if (pageTitle === null || pageTitle === undefined) {
|
|
136
151
|
throw new Error('Required parameter pageTitle was null or undefined when calling httpWordpressPage.');
|
|
137
152
|
}
|
|
153
|
+
const pageContentBefore = requestParameters?.pageContentBefore;
|
|
138
154
|
if (pageContentBefore === null || pageContentBefore === undefined) {
|
|
139
155
|
throw new Error('Required parameter pageContentBefore was null or undefined when calling httpWordpressPage.');
|
|
140
156
|
}
|
|
157
|
+
const pageImage = requestParameters?.pageImage;
|
|
141
158
|
if (pageImage === null || pageImage === undefined) {
|
|
142
159
|
throw new Error('Required parameter pageImage was null or undefined when calling httpWordpressPage.');
|
|
143
160
|
}
|
|
161
|
+
const pageContentAfter = requestParameters?.pageContentAfter;
|
|
144
162
|
if (pageContentAfter === null || pageContentAfter === undefined) {
|
|
145
163
|
throw new Error('Required parameter pageContentAfter was null or undefined when calling httpWordpressPage.');
|
|
146
164
|
}
|
|
165
|
+
const asset = requestParameters?.asset;
|
|
147
166
|
if (asset === null || asset === undefined) {
|
|
148
167
|
throw new Error('Required parameter asset was null or undefined when calling httpWordpressPage.');
|
|
149
168
|
}
|
|
150
169
|
|
|
151
|
-
let
|
|
170
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
152
171
|
if (pageTitle !== undefined && pageTitle !== null) {
|
|
153
|
-
|
|
172
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageTitle, 'page_title');
|
|
154
173
|
}
|
|
155
174
|
if (pageContentBefore !== undefined && pageContentBefore !== null) {
|
|
156
|
-
|
|
175
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageContentBefore, 'page_content_before');
|
|
157
176
|
}
|
|
158
177
|
if (pageImage !== undefined && pageImage !== null) {
|
|
159
|
-
|
|
178
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageImage, 'page_image');
|
|
160
179
|
}
|
|
161
180
|
if (pageContentAfter !== undefined && pageContentAfter !== null) {
|
|
162
|
-
|
|
181
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>pageContentAfter, 'page_content_after');
|
|
163
182
|
}
|
|
164
183
|
|
|
165
|
-
let
|
|
184
|
+
let localVarHeaders = this.defaultHeaders;
|
|
166
185
|
|
|
167
|
-
let
|
|
186
|
+
let localVarCredential: string | undefined;
|
|
168
187
|
// authentication (msal_auth) required
|
|
169
|
-
|
|
170
|
-
if (
|
|
171
|
-
|
|
188
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
189
|
+
if (localVarCredential) {
|
|
190
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
172
191
|
}
|
|
173
192
|
|
|
174
|
-
let
|
|
175
|
-
if (
|
|
193
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
194
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
176
195
|
// to determine the Accept header
|
|
177
196
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
178
|
-
|
|
197
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
198
|
+
}
|
|
199
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
200
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
204
|
+
if (localVarHttpContext === undefined) {
|
|
205
|
+
localVarHttpContext = new HttpContext();
|
|
179
206
|
}
|
|
180
|
-
|
|
181
|
-
|
|
207
|
+
|
|
208
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
209
|
+
if (localVarTransferCache === undefined) {
|
|
210
|
+
localVarTransferCache = true;
|
|
182
211
|
}
|
|
183
212
|
|
|
184
213
|
// to determine the Content-Type header
|
|
185
214
|
const consumes: string[] = ['application/json'];
|
|
186
215
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
187
216
|
if (httpContentTypeSelected !== undefined) {
|
|
188
|
-
|
|
217
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
189
218
|
}
|
|
190
219
|
|
|
191
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
192
|
-
if (
|
|
193
|
-
|
|
220
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
221
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
222
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
223
|
+
responseType_ = 'text';
|
|
224
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
225
|
+
responseType_ = 'json';
|
|
226
|
+
} else {
|
|
227
|
+
responseType_ = 'blob';
|
|
228
|
+
}
|
|
194
229
|
}
|
|
195
230
|
|
|
196
|
-
|
|
197
|
-
|
|
231
|
+
let localVarPath = `/wordpresspage`;
|
|
232
|
+
return this.httpClient.request<number>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
233
|
+
context: localVarHttpContext,
|
|
234
|
+
body: asset,
|
|
235
|
+
params: localVarQueryParameters,
|
|
198
236
|
responseType: <any>responseType_,
|
|
199
237
|
withCredentials: this.configuration.withCredentials,
|
|
200
|
-
headers:
|
|
238
|
+
headers: localVarHeaders,
|
|
201
239
|
observe: observe,
|
|
240
|
+
transferCache: localVarTransferCache,
|
|
202
241
|
reportProgress: reportProgress
|
|
203
242
|
});
|
|
204
243
|
}
|
|
205
244
|
|
|
206
245
|
/**
|
|
207
246
|
* This endpoint creates a Wordpress Post
|
|
208
|
-
* @param
|
|
209
|
-
* @param postContentBefore The excerpt of the wordpress post as well as the first part of the post.
|
|
210
|
-
* @param postImage The URL where the image can be publically retrieved.
|
|
211
|
-
* @param postContentAfter The content of the wordpress post, which is shown below the image.
|
|
212
|
-
* @param asset This endpoint creates a Wordpress Post
|
|
247
|
+
* @param requestParameters
|
|
213
248
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
214
249
|
* @param reportProgress flag to report request and response progress.
|
|
215
250
|
*/
|
|
216
251
|
public httpWordpressPost(
|
|
217
|
-
|
|
218
|
-
postContentBefore: string,
|
|
219
|
-
postImage: string,
|
|
220
|
-
postContentAfter: string,
|
|
221
|
-
asset: Asset,
|
|
252
|
+
requestParameters?: HttpWordpressPostRequestParams,
|
|
222
253
|
observe?: 'body',
|
|
223
254
|
reportProgress?: boolean,
|
|
224
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
255
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
225
256
|
): Observable<number>;
|
|
226
257
|
public httpWordpressPost(
|
|
227
|
-
|
|
228
|
-
postContentBefore: string,
|
|
229
|
-
postImage: string,
|
|
230
|
-
postContentAfter: string,
|
|
231
|
-
asset: Asset,
|
|
258
|
+
requestParameters?: HttpWordpressPostRequestParams,
|
|
232
259
|
observe?: 'response',
|
|
233
260
|
reportProgress?: boolean,
|
|
234
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
261
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
235
262
|
): Observable<HttpResponse<number>>;
|
|
236
263
|
public httpWordpressPost(
|
|
237
|
-
|
|
238
|
-
postContentBefore: string,
|
|
239
|
-
postImage: string,
|
|
240
|
-
postContentAfter: string,
|
|
241
|
-
asset: Asset,
|
|
264
|
+
requestParameters?: HttpWordpressPostRequestParams,
|
|
242
265
|
observe?: 'events',
|
|
243
266
|
reportProgress?: boolean,
|
|
244
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
267
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
245
268
|
): Observable<HttpEvent<number>>;
|
|
246
269
|
public httpWordpressPost(
|
|
247
|
-
|
|
248
|
-
postContentBefore: string,
|
|
249
|
-
postImage: string,
|
|
250
|
-
postContentAfter: string,
|
|
251
|
-
asset: Asset,
|
|
270
|
+
requestParameters?: HttpWordpressPostRequestParams,
|
|
252
271
|
observe: any = 'body',
|
|
253
272
|
reportProgress: boolean = false,
|
|
254
|
-
options?: { httpHeaderAccept?: 'application/json' }
|
|
273
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
255
274
|
): Observable<any> {
|
|
275
|
+
const postTitle = requestParameters?.postTitle;
|
|
256
276
|
if (postTitle === null || postTitle === undefined) {
|
|
257
277
|
throw new Error('Required parameter postTitle was null or undefined when calling httpWordpressPost.');
|
|
258
278
|
}
|
|
279
|
+
const postContentBefore = requestParameters?.postContentBefore;
|
|
259
280
|
if (postContentBefore === null || postContentBefore === undefined) {
|
|
260
281
|
throw new Error('Required parameter postContentBefore was null or undefined when calling httpWordpressPost.');
|
|
261
282
|
}
|
|
283
|
+
const postImage = requestParameters?.postImage;
|
|
262
284
|
if (postImage === null || postImage === undefined) {
|
|
263
285
|
throw new Error('Required parameter postImage was null or undefined when calling httpWordpressPost.');
|
|
264
286
|
}
|
|
287
|
+
const postContentAfter = requestParameters?.postContentAfter;
|
|
265
288
|
if (postContentAfter === null || postContentAfter === undefined) {
|
|
266
289
|
throw new Error('Required parameter postContentAfter was null or undefined when calling httpWordpressPost.');
|
|
267
290
|
}
|
|
291
|
+
const asset = requestParameters?.asset;
|
|
268
292
|
if (asset === null || asset === undefined) {
|
|
269
293
|
throw new Error('Required parameter asset was null or undefined when calling httpWordpressPost.');
|
|
270
294
|
}
|
|
271
295
|
|
|
272
|
-
let
|
|
296
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
273
297
|
if (postTitle !== undefined && postTitle !== null) {
|
|
274
|
-
|
|
298
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postTitle, 'post_title');
|
|
275
299
|
}
|
|
276
300
|
if (postContentBefore !== undefined && postContentBefore !== null) {
|
|
277
|
-
|
|
301
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postContentBefore, 'post_content_before');
|
|
278
302
|
}
|
|
279
303
|
if (postImage !== undefined && postImage !== null) {
|
|
280
|
-
|
|
304
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postImage, 'post_image');
|
|
281
305
|
}
|
|
282
306
|
if (postContentAfter !== undefined && postContentAfter !== null) {
|
|
283
|
-
|
|
307
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>postContentAfter, 'post_content_after');
|
|
284
308
|
}
|
|
285
309
|
|
|
286
|
-
let
|
|
310
|
+
let localVarHeaders = this.defaultHeaders;
|
|
287
311
|
|
|
288
|
-
let
|
|
312
|
+
let localVarCredential: string | undefined;
|
|
289
313
|
// authentication (msal_auth) required
|
|
290
|
-
|
|
291
|
-
if (
|
|
292
|
-
|
|
314
|
+
localVarCredential = this.configuration.lookupCredential('msal_auth');
|
|
315
|
+
if (localVarCredential) {
|
|
316
|
+
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
293
317
|
}
|
|
294
318
|
|
|
295
|
-
let
|
|
296
|
-
if (
|
|
319
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
320
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
297
321
|
// to determine the Accept header
|
|
298
322
|
const httpHeaderAccepts: string[] = ['application/json'];
|
|
299
|
-
|
|
323
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
300
324
|
}
|
|
301
|
-
if (
|
|
302
|
-
|
|
325
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
326
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
330
|
+
if (localVarHttpContext === undefined) {
|
|
331
|
+
localVarHttpContext = new HttpContext();
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
335
|
+
if (localVarTransferCache === undefined) {
|
|
336
|
+
localVarTransferCache = true;
|
|
303
337
|
}
|
|
304
338
|
|
|
305
339
|
// to determine the Content-Type header
|
|
306
340
|
const consumes: string[] = ['application/json'];
|
|
307
341
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
308
342
|
if (httpContentTypeSelected !== undefined) {
|
|
309
|
-
|
|
343
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
310
344
|
}
|
|
311
345
|
|
|
312
|
-
let responseType_: 'text' | 'json' = 'json';
|
|
313
|
-
if (
|
|
314
|
-
|
|
346
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
347
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
348
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
349
|
+
responseType_ = 'text';
|
|
350
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
351
|
+
responseType_ = 'json';
|
|
352
|
+
} else {
|
|
353
|
+
responseType_ = 'blob';
|
|
354
|
+
}
|
|
315
355
|
}
|
|
316
356
|
|
|
317
|
-
|
|
318
|
-
|
|
357
|
+
let localVarPath = `/wordpresspost`;
|
|
358
|
+
return this.httpClient.request<number>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
359
|
+
context: localVarHttpContext,
|
|
360
|
+
body: asset,
|
|
361
|
+
params: localVarQueryParameters,
|
|
319
362
|
responseType: <any>responseType_,
|
|
320
363
|
withCredentials: this.configuration.withCredentials,
|
|
321
|
-
headers:
|
|
364
|
+
headers: localVarHeaders,
|
|
322
365
|
observe: observe,
|
|
366
|
+
transferCache: localVarTransferCache,
|
|
323
367
|
reportProgress: reportProgress
|
|
324
368
|
});
|
|
325
369
|
}
|