@agravity/private 11.1.2 → 12.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 +19 -1
- package/README.md +3 -3
- package/api/aIOperations.agravity.ts +5 -0
- package/api/analyticsManagement.agravity.ts +262 -0
- package/api/api.ts +12 -3
- package/api/assetManagement.agravity.ts +7 -2
- package/api/assetVersioning.agravity.ts +5 -0
- package/api/{wordpressManagement.agravity.ts → assistantOperations.agravity.ts} +50 -116
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +98 -4
- package/api/collectionTypeItemRefsManagement.agravity.ts +693 -0
- package/api/collectionTypeManagement.agravity.ts +24 -187
- package/api/generalManagement.agravity.ts +65 -0
- package/api/itemGroupsManagement.agravity.ts +510 -0
- package/api/portalManagement.agravity.ts +94 -0
- package/api/searchManagement.agravity.ts +15 -15
- package/api/secureUpload.agravity.ts +1 -1
- package/api/stockImport.agravity.ts +1 -1
- package/api/translationManagement.agravity.ts +6 -6
- package/api/workspaceManagement.agravity.ts +10 -0
- package/model/asset.agravity.ts +1 -0
- package/model/assistantChatMessage.agravity.ts +14 -0
- package/model/assistantChatRequest.agravity.ts +15 -0
- package/model/assistantChatResponse.agravity.ts +14 -0
- package/model/assistantFeedbackRequest.agravity.ts +15 -0
- package/model/collTypeItem.agravity.ts +4 -1
- package/model/collTypeItemBlueprint.agravity.ts +2 -0
- package/model/collTypeItemRef.agravity.ts +15 -0
- package/model/collection.agravity.ts +1 -0
- package/model/collectionType.agravity.ts +2 -0
- package/model/exportFieldDefinition.agravity.ts +1 -1
- package/model/itemGroup.agravity.ts +25 -0
- package/model/models.ts +15 -0
- package/model/reportingAnalyticsCatalogResponse.agravity.ts +14 -0
- package/model/reportingAnalyticsMetricCatalogItem.agravity.ts +19 -0
- package/model/reportingAnalyticsMetricRequest.agravity.ts +15 -0
- package/model/reportingAnalyticsMetricResult.agravity.ts +21 -0
- package/model/reportingAnalyticsRequest.agravity.ts +17 -0
- package/model/reportingAnalyticsResponse.agravity.ts +17 -0
- package/model/reportingNamedUsage.agravity.ts +15 -0
- package/model/reportingSystemSnapshot.agravity.ts +17 -0
- package/model/reportingTimeSeriesPoint.agravity.ts +14 -0
- package/model/searchAdminIndexerStatus.agravity.ts +1 -0
- package/model/secureUploadEntity.agravity.ts +9 -0
- package/model/versionEntity.agravity.ts +1 -0
- package/model/versionedAsset.agravity.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
3
|
+
*
|
|
4
|
+
* Contact: support@agravity.io
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
+
* https://openapi-generator.tech
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*/
|
|
10
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
11
|
+
|
|
12
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
13
|
+
import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
14
|
+
import { Observable } from 'rxjs';
|
|
15
|
+
import { OpenApiHttpParams, QueryParamStyle } from '../query.params';
|
|
16
|
+
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { ItemGroup } from '../model/itemGroup.agravity';
|
|
21
|
+
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
|
+
import { AgravityConfiguration } from '../configuration';
|
|
25
|
+
import { BaseService } from '../api.base.service';
|
|
26
|
+
|
|
27
|
+
export interface HttpItemGroupsCreateRequestParams {
|
|
28
|
+
/** The item group to create. */
|
|
29
|
+
itemGroup: ItemGroup;
|
|
30
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
31
|
+
translations?: boolean;
|
|
32
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
33
|
+
acceptLanguage?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HttpItemGroupsDeleteByIdRequestParams {
|
|
37
|
+
/** The ID of the item group. */
|
|
38
|
+
id: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface HttpItemGroupsGetAllRequestParams {
|
|
42
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
43
|
+
translations?: boolean;
|
|
44
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
45
|
+
acceptLanguage?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface HttpItemGroupsGetByIdRequestParams {
|
|
49
|
+
/** The ID of the item group. */
|
|
50
|
+
id: string;
|
|
51
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
52
|
+
translations?: boolean;
|
|
53
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
54
|
+
acceptLanguage?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface HttpItemGroupsUpdateByIdRequestParams {
|
|
58
|
+
/** The ID of the item group. */
|
|
59
|
+
id: string;
|
|
60
|
+
/** Body has to be a valid item group. */
|
|
61
|
+
itemGroup: ItemGroup;
|
|
62
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
63
|
+
translations?: boolean;
|
|
64
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
65
|
+
acceptLanguage?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@Injectable({
|
|
69
|
+
providedIn: 'root'
|
|
70
|
+
})
|
|
71
|
+
export class ItemGroupsManagementService extends BaseService {
|
|
72
|
+
constructor(
|
|
73
|
+
protected httpClient: HttpClient,
|
|
74
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
75
|
+
@Optional() configuration?: AgravityConfiguration
|
|
76
|
+
) {
|
|
77
|
+
super(basePath, configuration);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* This endpoint creates an item group and adds the information to the database.
|
|
82
|
+
* @endpoint post /itemgroups
|
|
83
|
+
* @param requestParameters
|
|
84
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
85
|
+
* @param reportProgress flag to report request and response progress.
|
|
86
|
+
* @param options additional options
|
|
87
|
+
*/
|
|
88
|
+
public httpItemGroupsCreate(
|
|
89
|
+
requestParameters: HttpItemGroupsCreateRequestParams,
|
|
90
|
+
observe?: 'body',
|
|
91
|
+
reportProgress?: boolean,
|
|
92
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
93
|
+
): Observable<ItemGroup>;
|
|
94
|
+
public httpItemGroupsCreate(
|
|
95
|
+
requestParameters: HttpItemGroupsCreateRequestParams,
|
|
96
|
+
observe?: 'response',
|
|
97
|
+
reportProgress?: boolean,
|
|
98
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
99
|
+
): Observable<HttpResponse<ItemGroup>>;
|
|
100
|
+
public httpItemGroupsCreate(
|
|
101
|
+
requestParameters: HttpItemGroupsCreateRequestParams,
|
|
102
|
+
observe?: 'events',
|
|
103
|
+
reportProgress?: boolean,
|
|
104
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
105
|
+
): Observable<HttpEvent<ItemGroup>>;
|
|
106
|
+
public httpItemGroupsCreate(
|
|
107
|
+
requestParameters: HttpItemGroupsCreateRequestParams,
|
|
108
|
+
observe: any = 'body',
|
|
109
|
+
reportProgress: boolean = false,
|
|
110
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
111
|
+
): Observable<any> {
|
|
112
|
+
const itemGroup = requestParameters?.itemGroup;
|
|
113
|
+
if (itemGroup === null || itemGroup === undefined) {
|
|
114
|
+
throw new Error('Required parameter itemGroup was null or undefined when calling httpItemGroupsCreate.');
|
|
115
|
+
}
|
|
116
|
+
const translations = requestParameters?.translations;
|
|
117
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
118
|
+
|
|
119
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
120
|
+
|
|
121
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
122
|
+
|
|
123
|
+
let localVarHeaders = this.defaultHeaders;
|
|
124
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
125
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// authentication (msal_auth) required
|
|
129
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
130
|
+
|
|
131
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
132
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
133
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
137
|
+
|
|
138
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
139
|
+
|
|
140
|
+
// to determine the Content-Type header
|
|
141
|
+
const consumes: string[] = ['application/json'];
|
|
142
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
143
|
+
if (httpContentTypeSelected !== undefined) {
|
|
144
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
148
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
149
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
150
|
+
responseType_ = 'text';
|
|
151
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
152
|
+
responseType_ = 'json';
|
|
153
|
+
} else {
|
|
154
|
+
responseType_ = 'blob';
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
let localVarPath = `/itemgroups`;
|
|
159
|
+
const { basePath, withCredentials } = this.configuration;
|
|
160
|
+
return this.httpClient.request<ItemGroup>('post', `${basePath}${localVarPath}`, {
|
|
161
|
+
context: localVarHttpContext,
|
|
162
|
+
body: itemGroup,
|
|
163
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
164
|
+
responseType: <any>responseType_,
|
|
165
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
166
|
+
headers: localVarHeaders,
|
|
167
|
+
observe: observe,
|
|
168
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
169
|
+
reportProgress: reportProgress
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* This endpoint deletes a single item group. An item group which is referenced by a collection type or a collection type item blueprint can not be deleted.
|
|
175
|
+
* @endpoint delete /itemgroups/{id}
|
|
176
|
+
* @param requestParameters
|
|
177
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
178
|
+
* @param reportProgress flag to report request and response progress.
|
|
179
|
+
* @param options additional options
|
|
180
|
+
*/
|
|
181
|
+
public httpItemGroupsDeleteById(
|
|
182
|
+
requestParameters: HttpItemGroupsDeleteByIdRequestParams,
|
|
183
|
+
observe?: 'body',
|
|
184
|
+
reportProgress?: boolean,
|
|
185
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
186
|
+
): Observable<any>;
|
|
187
|
+
public httpItemGroupsDeleteById(
|
|
188
|
+
requestParameters: HttpItemGroupsDeleteByIdRequestParams,
|
|
189
|
+
observe?: 'response',
|
|
190
|
+
reportProgress?: boolean,
|
|
191
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
192
|
+
): Observable<HttpResponse<any>>;
|
|
193
|
+
public httpItemGroupsDeleteById(
|
|
194
|
+
requestParameters: HttpItemGroupsDeleteByIdRequestParams,
|
|
195
|
+
observe?: 'events',
|
|
196
|
+
reportProgress?: boolean,
|
|
197
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
198
|
+
): Observable<HttpEvent<any>>;
|
|
199
|
+
public httpItemGroupsDeleteById(
|
|
200
|
+
requestParameters: HttpItemGroupsDeleteByIdRequestParams,
|
|
201
|
+
observe: any = 'body',
|
|
202
|
+
reportProgress: boolean = false,
|
|
203
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
204
|
+
): Observable<any> {
|
|
205
|
+
const id = requestParameters?.id;
|
|
206
|
+
if (id === null || id === undefined) {
|
|
207
|
+
throw new Error('Required parameter id was null or undefined when calling httpItemGroupsDeleteById.');
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
let localVarHeaders = this.defaultHeaders;
|
|
211
|
+
|
|
212
|
+
// authentication (msal_auth) required
|
|
213
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
214
|
+
|
|
215
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
216
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
217
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
221
|
+
|
|
222
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
223
|
+
|
|
224
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
225
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
226
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
227
|
+
responseType_ = 'text';
|
|
228
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
229
|
+
responseType_ = 'json';
|
|
230
|
+
} else {
|
|
231
|
+
responseType_ = 'blob';
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
let localVarPath = `/itemgroups/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
236
|
+
const { basePath, withCredentials } = this.configuration;
|
|
237
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
238
|
+
context: localVarHttpContext,
|
|
239
|
+
responseType: <any>responseType_,
|
|
240
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
241
|
+
headers: localVarHeaders,
|
|
242
|
+
observe: observe,
|
|
243
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
244
|
+
reportProgress: reportProgress
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* This endpoint lists all item groups in database.
|
|
250
|
+
* @endpoint get /itemgroups
|
|
251
|
+
* @param requestParameters
|
|
252
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
253
|
+
* @param reportProgress flag to report request and response progress.
|
|
254
|
+
* @param options additional options
|
|
255
|
+
*/
|
|
256
|
+
public httpItemGroupsGetAll(
|
|
257
|
+
requestParameters?: HttpItemGroupsGetAllRequestParams,
|
|
258
|
+
observe?: 'body',
|
|
259
|
+
reportProgress?: boolean,
|
|
260
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
261
|
+
): Observable<Array<ItemGroup>>;
|
|
262
|
+
public httpItemGroupsGetAll(
|
|
263
|
+
requestParameters?: HttpItemGroupsGetAllRequestParams,
|
|
264
|
+
observe?: 'response',
|
|
265
|
+
reportProgress?: boolean,
|
|
266
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
267
|
+
): Observable<HttpResponse<Array<ItemGroup>>>;
|
|
268
|
+
public httpItemGroupsGetAll(
|
|
269
|
+
requestParameters?: HttpItemGroupsGetAllRequestParams,
|
|
270
|
+
observe?: 'events',
|
|
271
|
+
reportProgress?: boolean,
|
|
272
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
273
|
+
): Observable<HttpEvent<Array<ItemGroup>>>;
|
|
274
|
+
public httpItemGroupsGetAll(
|
|
275
|
+
requestParameters?: HttpItemGroupsGetAllRequestParams,
|
|
276
|
+
observe: any = 'body',
|
|
277
|
+
reportProgress: boolean = false,
|
|
278
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
279
|
+
): Observable<any> {
|
|
280
|
+
const translations = requestParameters?.translations;
|
|
281
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
282
|
+
|
|
283
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
284
|
+
|
|
285
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
286
|
+
|
|
287
|
+
let localVarHeaders = this.defaultHeaders;
|
|
288
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
289
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// authentication (msal_auth) required
|
|
293
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
294
|
+
|
|
295
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
296
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
297
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
301
|
+
|
|
302
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
303
|
+
|
|
304
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
305
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
306
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
307
|
+
responseType_ = 'text';
|
|
308
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
309
|
+
responseType_ = 'json';
|
|
310
|
+
} else {
|
|
311
|
+
responseType_ = 'blob';
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
let localVarPath = `/itemgroups`;
|
|
316
|
+
const { basePath, withCredentials } = this.configuration;
|
|
317
|
+
return this.httpClient.request<Array<ItemGroup>>('get', `${basePath}${localVarPath}`, {
|
|
318
|
+
context: localVarHttpContext,
|
|
319
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
320
|
+
responseType: <any>responseType_,
|
|
321
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
322
|
+
headers: localVarHeaders,
|
|
323
|
+
observe: observe,
|
|
324
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
325
|
+
reportProgress: reportProgress
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* This endpoint returns a single item group by ID.
|
|
331
|
+
* @endpoint get /itemgroups/{id}
|
|
332
|
+
* @param requestParameters
|
|
333
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
334
|
+
* @param reportProgress flag to report request and response progress.
|
|
335
|
+
* @param options additional options
|
|
336
|
+
*/
|
|
337
|
+
public httpItemGroupsGetById(
|
|
338
|
+
requestParameters: HttpItemGroupsGetByIdRequestParams,
|
|
339
|
+
observe?: 'body',
|
|
340
|
+
reportProgress?: boolean,
|
|
341
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
342
|
+
): Observable<ItemGroup>;
|
|
343
|
+
public httpItemGroupsGetById(
|
|
344
|
+
requestParameters: HttpItemGroupsGetByIdRequestParams,
|
|
345
|
+
observe?: 'response',
|
|
346
|
+
reportProgress?: boolean,
|
|
347
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
348
|
+
): Observable<HttpResponse<ItemGroup>>;
|
|
349
|
+
public httpItemGroupsGetById(
|
|
350
|
+
requestParameters: HttpItemGroupsGetByIdRequestParams,
|
|
351
|
+
observe?: 'events',
|
|
352
|
+
reportProgress?: boolean,
|
|
353
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
354
|
+
): Observable<HttpEvent<ItemGroup>>;
|
|
355
|
+
public httpItemGroupsGetById(
|
|
356
|
+
requestParameters: HttpItemGroupsGetByIdRequestParams,
|
|
357
|
+
observe: any = 'body',
|
|
358
|
+
reportProgress: boolean = false,
|
|
359
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
360
|
+
): Observable<any> {
|
|
361
|
+
const id = requestParameters?.id;
|
|
362
|
+
if (id === null || id === undefined) {
|
|
363
|
+
throw new Error('Required parameter id was null or undefined when calling httpItemGroupsGetById.');
|
|
364
|
+
}
|
|
365
|
+
const translations = requestParameters?.translations;
|
|
366
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
367
|
+
|
|
368
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
369
|
+
|
|
370
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
371
|
+
|
|
372
|
+
let localVarHeaders = this.defaultHeaders;
|
|
373
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
374
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// authentication (msal_auth) required
|
|
378
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
379
|
+
|
|
380
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
381
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
382
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
386
|
+
|
|
387
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
388
|
+
|
|
389
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
390
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
391
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
392
|
+
responseType_ = 'text';
|
|
393
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
394
|
+
responseType_ = 'json';
|
|
395
|
+
} else {
|
|
396
|
+
responseType_ = 'blob';
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
let localVarPath = `/itemgroups/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
401
|
+
const { basePath, withCredentials } = this.configuration;
|
|
402
|
+
return this.httpClient.request<ItemGroup>('get', `${basePath}${localVarPath}`, {
|
|
403
|
+
context: localVarHttpContext,
|
|
404
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
405
|
+
responseType: <any>responseType_,
|
|
406
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
407
|
+
headers: localVarHeaders,
|
|
408
|
+
observe: observe,
|
|
409
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
410
|
+
reportProgress: reportProgress
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* This endpoint updates an item group.
|
|
416
|
+
* @endpoint post /itemgroups/{id}
|
|
417
|
+
* @param requestParameters
|
|
418
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
419
|
+
* @param reportProgress flag to report request and response progress.
|
|
420
|
+
* @param options additional options
|
|
421
|
+
*/
|
|
422
|
+
public httpItemGroupsUpdateById(
|
|
423
|
+
requestParameters: HttpItemGroupsUpdateByIdRequestParams,
|
|
424
|
+
observe?: 'body',
|
|
425
|
+
reportProgress?: boolean,
|
|
426
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
427
|
+
): Observable<ItemGroup>;
|
|
428
|
+
public httpItemGroupsUpdateById(
|
|
429
|
+
requestParameters: HttpItemGroupsUpdateByIdRequestParams,
|
|
430
|
+
observe?: 'response',
|
|
431
|
+
reportProgress?: boolean,
|
|
432
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
433
|
+
): Observable<HttpResponse<ItemGroup>>;
|
|
434
|
+
public httpItemGroupsUpdateById(
|
|
435
|
+
requestParameters: HttpItemGroupsUpdateByIdRequestParams,
|
|
436
|
+
observe?: 'events',
|
|
437
|
+
reportProgress?: boolean,
|
|
438
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
439
|
+
): Observable<HttpEvent<ItemGroup>>;
|
|
440
|
+
public httpItemGroupsUpdateById(
|
|
441
|
+
requestParameters: HttpItemGroupsUpdateByIdRequestParams,
|
|
442
|
+
observe: any = 'body',
|
|
443
|
+
reportProgress: boolean = false,
|
|
444
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
445
|
+
): Observable<any> {
|
|
446
|
+
const id = requestParameters?.id;
|
|
447
|
+
if (id === null || id === undefined) {
|
|
448
|
+
throw new Error('Required parameter id was null or undefined when calling httpItemGroupsUpdateById.');
|
|
449
|
+
}
|
|
450
|
+
const itemGroup = requestParameters?.itemGroup;
|
|
451
|
+
if (itemGroup === null || itemGroup === undefined) {
|
|
452
|
+
throw new Error('Required parameter itemGroup was null or undefined when calling httpItemGroupsUpdateById.');
|
|
453
|
+
}
|
|
454
|
+
const translations = requestParameters?.translations;
|
|
455
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
456
|
+
|
|
457
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
458
|
+
|
|
459
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'translations', <any>translations, QueryParamStyle.Form, true);
|
|
460
|
+
|
|
461
|
+
let localVarHeaders = this.defaultHeaders;
|
|
462
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
463
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
// authentication (msal_auth) required
|
|
467
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
468
|
+
|
|
469
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
470
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
471
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
475
|
+
|
|
476
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
477
|
+
|
|
478
|
+
// to determine the Content-Type header
|
|
479
|
+
const consumes: string[] = ['application/json'];
|
|
480
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
481
|
+
if (httpContentTypeSelected !== undefined) {
|
|
482
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
486
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
487
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
488
|
+
responseType_ = 'text';
|
|
489
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
490
|
+
responseType_ = 'json';
|
|
491
|
+
} else {
|
|
492
|
+
responseType_ = 'blob';
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
let localVarPath = `/itemgroups/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
497
|
+
const { basePath, withCredentials } = this.configuration;
|
|
498
|
+
return this.httpClient.request<ItemGroup>('post', `${basePath}${localVarPath}`, {
|
|
499
|
+
context: localVarHttpContext,
|
|
500
|
+
body: itemGroup,
|
|
501
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
502
|
+
responseType: <any>responseType_,
|
|
503
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
504
|
+
headers: localVarHeaders,
|
|
505
|
+
observe: observe,
|
|
506
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
507
|
+
reportProgress: reportProgress
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}
|
|
@@ -71,6 +71,13 @@ export interface HttpPortalsGetByIdRequestParams {
|
|
|
71
71
|
id: string;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
export interface HttpPortalsUpdateByIdRequestParams {
|
|
75
|
+
/** The ID of the portal. */
|
|
76
|
+
id: string;
|
|
77
|
+
/** The portal with the changed add_properties and theme. All other fields are ignored. */
|
|
78
|
+
portal: Portal;
|
|
79
|
+
}
|
|
80
|
+
|
|
74
81
|
@Injectable({
|
|
75
82
|
providedIn: 'root'
|
|
76
83
|
})
|
|
@@ -704,4 +711,91 @@ export class PortalManagementService extends BaseService {
|
|
|
704
711
|
reportProgress: reportProgress
|
|
705
712
|
});
|
|
706
713
|
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* This endpoint updates the additional properties (e.g. the page builder) and the theme of an existing portal. All other fields of the portal are ignored.<br><b>add_properties</b> are merged by key: a sent key replaces the stored value, a key with null or an empty string is removed, keys which are not sent stay. The key \'simulate\' can not be changed (sending its stored value is allowed). The values, e.g. \'page_builder\', are stored as sent without a structure validation.<br><b>theme</b> is merged by field: a missing or null field stays, an empty string clears it. \'colors\' is merged per palette; a palette with null or an empty string is removed. Only theme values which differ from the stored theme are validated (colours #RRGGBB, image URLs https:// or root-relative).<br>The updated portal must fit into a Cosmos DB document (2 MB).
|
|
717
|
+
* @endpoint post /portals/{id}
|
|
718
|
+
* @param requestParameters
|
|
719
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
720
|
+
* @param reportProgress flag to report request and response progress.
|
|
721
|
+
* @param options additional options
|
|
722
|
+
*/
|
|
723
|
+
public httpPortalsUpdateById(
|
|
724
|
+
requestParameters: HttpPortalsUpdateByIdRequestParams,
|
|
725
|
+
observe?: 'body',
|
|
726
|
+
reportProgress?: boolean,
|
|
727
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
728
|
+
): Observable<Portal>;
|
|
729
|
+
public httpPortalsUpdateById(
|
|
730
|
+
requestParameters: HttpPortalsUpdateByIdRequestParams,
|
|
731
|
+
observe?: 'response',
|
|
732
|
+
reportProgress?: boolean,
|
|
733
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
734
|
+
): Observable<HttpResponse<Portal>>;
|
|
735
|
+
public httpPortalsUpdateById(
|
|
736
|
+
requestParameters: HttpPortalsUpdateByIdRequestParams,
|
|
737
|
+
observe?: 'events',
|
|
738
|
+
reportProgress?: boolean,
|
|
739
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
740
|
+
): Observable<HttpEvent<Portal>>;
|
|
741
|
+
public httpPortalsUpdateById(
|
|
742
|
+
requestParameters: HttpPortalsUpdateByIdRequestParams,
|
|
743
|
+
observe: any = 'body',
|
|
744
|
+
reportProgress: boolean = false,
|
|
745
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
746
|
+
): Observable<any> {
|
|
747
|
+
const id = requestParameters?.id;
|
|
748
|
+
if (id === null || id === undefined) {
|
|
749
|
+
throw new Error('Required parameter id was null or undefined when calling httpPortalsUpdateById.');
|
|
750
|
+
}
|
|
751
|
+
const portal = requestParameters?.portal;
|
|
752
|
+
if (portal === null || portal === undefined) {
|
|
753
|
+
throw new Error('Required parameter portal was null or undefined when calling httpPortalsUpdateById.');
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
let localVarHeaders = this.defaultHeaders;
|
|
757
|
+
|
|
758
|
+
// authentication (msal_auth) required
|
|
759
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
760
|
+
|
|
761
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
762
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
763
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
767
|
+
|
|
768
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
769
|
+
|
|
770
|
+
// to determine the Content-Type header
|
|
771
|
+
const consumes: string[] = ['application/json'];
|
|
772
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
773
|
+
if (httpContentTypeSelected !== undefined) {
|
|
774
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
778
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
779
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
780
|
+
responseType_ = 'text';
|
|
781
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
782
|
+
responseType_ = 'json';
|
|
783
|
+
} else {
|
|
784
|
+
responseType_ = 'blob';
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
let localVarPath = `/portals/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
789
|
+
const { basePath, withCredentials } = this.configuration;
|
|
790
|
+
return this.httpClient.request<Portal>('post', `${basePath}${localVarPath}`, {
|
|
791
|
+
context: localVarHttpContext,
|
|
792
|
+
body: portal,
|
|
793
|
+
responseType: <any>responseType_,
|
|
794
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
795
|
+
headers: localVarHeaders,
|
|
796
|
+
observe: observe,
|
|
797
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
798
|
+
reportProgress: reportProgress
|
|
799
|
+
});
|
|
800
|
+
}
|
|
707
801
|
}
|