@agravity/private 5.2.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 +117 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +203 -0
- package/api/api.ts +67 -0
- package/api/assetIconRuleManagement.agravity.ts +400 -0
- package/api/assetManagement.agravity.ts +737 -0
- package/api/assetOperations.agravity.ts +1309 -0
- package/api/assetPublishing.agravity.ts +511 -0
- package/api/assetVersioning.agravity.ts +657 -0
- package/api/authenticationManagement.agravity.ts +502 -0
- package/api/collectionManagement.agravity.ts +618 -0
- package/api/collectionSharing.agravity.ts +329 -0
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +340 -0
- package/api/collectionTypeManagement.agravity.ts +533 -0
- package/api/configurationManagement.agravity.ts +311 -0
- package/api/downloadFormatManagement.agravity.ts +400 -0
- package/api/downloadZip.agravity.ts +151 -0
- package/api/generalManagement.agravity.ts +348 -0
- package/api/helperTools.agravity.ts +640 -0
- package/api/iccProfileManagement.agravity.ts +134 -0
- package/api/listBlobs.agravity.ts +185 -0
- package/api/listQueues.agravity.ts +134 -0
- package/api/permissionsManagement.agravity.ts +262 -0
- package/api/publishing.agravity.ts +148 -0
- package/api/quickshareManagement.agravity.ts +385 -0
- package/api/savedSearchManagement.agravity.ts +271 -0
- package/api/searchManagement.agravity.ts +345 -0
- package/api/secureUpload.agravity.ts +371 -0
- package/api/signalRConnectionManagement.agravity.ts +218 -0
- package/api/staticDefinedListManagement.agravity.ts +408 -0
- package/api/stockImport.agravity.ts +221 -0
- package/api/structureImport.agravity.ts +137 -0
- package/api/translationManagement.agravity.ts +404 -0
- package/api/upgradeManagement.agravity.ts +333 -0
- package/api/webAppData.agravity.ts +300 -0
- package/api/wordpressManagement.agravity.ts +282 -0
- package/api/workspaceManagement.agravity.ts +513 -0
- package/api.module.ts +63 -0
- package/configuration.ts +130 -0
- package/encoder.ts +20 -0
- package/git_push.sh +58 -0
- package/index.ts +5 -0
- package/model/agravityErrorResponse.agravity.ts +19 -0
- package/model/agravityInfoResponse.agravity.ts +19 -0
- package/model/agravityUser.agravity.ts +37 -0
- package/model/agravityVersion.agravity.ts +24 -0
- package/model/allWebAppData.agravity.ts +24 -0
- package/model/apiKeyResponse.agravity.ts +18 -0
- package/model/appConfigTableEntity.agravity.ts +25 -0
- package/model/artificialIntelligenceGroup.agravity.ts +20 -0
- package/model/asset.agravity.ts +47 -0
- package/model/assetAvailability.agravity.ts +19 -0
- package/model/assetBlob.agravity.ts +82 -0
- package/model/assetBulkUpdate.agravity.ts +20 -0
- package/model/assetCollectionLink.agravity.ts +18 -0
- package/model/assetIconRule.agravity.ts +35 -0
- package/model/assetIdContainer.agravity.ts +18 -0
- package/model/assetPageResult.agravity.ts +23 -0
- package/model/assetsOperationBody.agravity.ts +20 -0
- package/model/azSearchOptions.agravity.ts +25 -0
- package/model/azureIdentity.agravity.ts +30 -0
- package/model/blobInfoObj.agravity.ts +23 -0
- package/model/collTypeItem.agravity.ts +38 -0
- package/model/collTypeItemBlueprint.agravity.ts +31 -0
- package/model/collection.agravity.ts +35 -0
- package/model/collectionType.agravity.ts +35 -0
- package/model/collectionUDL.agravity.ts +21 -0
- package/model/createSftpUserResult.agravity.ts +18 -0
- package/model/dataResult.agravity.ts +22 -0
- package/model/distZipResponse.agravity.ts +19 -0
- package/model/downloadFormat.agravity.ts +34 -0
- package/model/downloadObject.agravity.ts +32 -0
- package/model/downloadZipRequest.agravity.ts +25 -0
- package/model/dynamicImageOperation.agravity.ts +18 -0
- package/model/emailAddress.agravity.ts +18 -0
- package/model/entityId.agravity.ts +17 -0
- package/model/entityIdName.agravity.ts +19 -0
- package/model/entityTranslations.agravity.ts +18 -0
- package/model/frontendAppConfig.agravity.ts +21 -0
- package/model/groupAllAppData.agravity.ts +26 -0
- package/model/infoEntitySkillEnhanced.agravity.ts +25 -0
- package/model/metadata.agravity.ts +19 -0
- package/model/models.ts +73 -0
- package/model/moveCollectionBody.agravity.ts +19 -0
- package/model/permissionChange.agravity.ts +29 -0
- package/model/permissionSetting.agravity.ts +27 -0
- package/model/publishEntity.agravity.ts +28 -0
- package/model/publishedAsset.agravity.ts +25 -0
- package/model/quickShare.agravity.ts +31 -0
- package/model/quickShareFull.agravity.ts +36 -0
- package/model/sasToken.agravity.ts +22 -0
- package/model/savedSearch.agravity.ts +31 -0
- package/model/searchAdminDataSourceStatus.agravity.ts +18 -0
- package/model/searchAdminIndexStatus.agravity.ts +20 -0
- package/model/searchAdminIndexerLastRun.agravity.ts +21 -0
- package/model/searchAdminIndexerStatus.agravity.ts +20 -0
- package/model/searchAdminSkillStatus.agravity.ts +18 -0
- package/model/searchAdminStatistics.agravity.ts +18 -0
- package/model/searchAdminStatus.agravity.ts +24 -0
- package/model/searchFacet.agravity.ts +19 -0
- package/model/searchFacetEntity.agravity.ts +19 -0
- package/model/searchResult.agravity.ts +23 -0
- package/model/searchableItem.agravity.ts +26 -0
- package/model/secureUploadEntity.agravity.ts +27 -0
- package/model/sharedAsset.agravity.ts +25 -0
- package/model/sharedCollection.agravity.ts +24 -0
- package/model/sharedCollectionFull.agravity.ts +29 -0
- package/model/signalRConnectionInfo.agravity.ts +18 -0
- package/model/simpleAsset.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +30 -0
- package/model/uiTutorials.agravity.ts +26 -0
- package/model/upgradeV2V3CollectionCustomItemTableEntity.agravity.ts +21 -0
- package/model/versionEntity.agravity.ts +28 -0
- package/model/versionedAsset.agravity.ts +20 -0
- package/model/whereParam.agravity.ts +43 -0
- package/model/workspace.agravity.ts +34 -0
- package/package.json +28 -0
- package/variables.ts +9 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
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 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
17
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
21
|
+
import { BlobInfoObj } from '../model/models';
|
|
22
|
+
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
|
+
import { AgravityConfiguration } from '../configuration';
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@Injectable({
|
|
29
|
+
providedIn: 'root'
|
|
30
|
+
})
|
|
31
|
+
export class StructureImportService {
|
|
32
|
+
|
|
33
|
+
protected basePath = 'http://localhost:7071/api';
|
|
34
|
+
public defaultHeaders = new HttpHeaders();
|
|
35
|
+
public configuration = new AgravityConfiguration();
|
|
36
|
+
public encoder: HttpParameterCodec;
|
|
37
|
+
|
|
38
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
|
|
39
|
+
if (configuration) {
|
|
40
|
+
this.configuration = configuration;
|
|
41
|
+
}
|
|
42
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
43
|
+
if (typeof basePath !== 'string') {
|
|
44
|
+
basePath = this.basePath;
|
|
45
|
+
}
|
|
46
|
+
this.configuration.basePath = basePath;
|
|
47
|
+
}
|
|
48
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
53
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
54
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
55
|
+
} else {
|
|
56
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
57
|
+
}
|
|
58
|
+
return httpParams;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return httpParams;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (typeof value === "object") {
|
|
67
|
+
if (Array.isArray(value)) {
|
|
68
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
69
|
+
} else if (value instanceof Date) {
|
|
70
|
+
if (key != null) {
|
|
71
|
+
httpParams = httpParams.append(key,
|
|
72
|
+
(value as Date).toISOString().substr(0, 10));
|
|
73
|
+
} else {
|
|
74
|
+
throw Error("key may not be null if value is Date");
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
78
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
79
|
+
}
|
|
80
|
+
} else if (key != null) {
|
|
81
|
+
httpParams = httpParams.append(key, value);
|
|
82
|
+
} else {
|
|
83
|
+
throw Error("key may not be null if value is not object or array");
|
|
84
|
+
}
|
|
85
|
+
return httpParams;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* This endpoint reads and creates structure elements for subfolders in the database based on container folder structure
|
|
90
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
91
|
+
* @param reportProgress flag to report request and response progress.
|
|
92
|
+
*/
|
|
93
|
+
public httpStructureCreateCollections(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<BlobInfoObj>>;
|
|
94
|
+
public httpStructureCreateCollections(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<BlobInfoObj>>>;
|
|
95
|
+
public httpStructureCreateCollections(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<BlobInfoObj>>>;
|
|
96
|
+
public httpStructureCreateCollections(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
97
|
+
|
|
98
|
+
let headers = this.defaultHeaders;
|
|
99
|
+
|
|
100
|
+
let credential: string | undefined;
|
|
101
|
+
// authentication (msal_auth) required
|
|
102
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
103
|
+
if (credential) {
|
|
104
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
108
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
109
|
+
// to determine the Accept header
|
|
110
|
+
const httpHeaderAccepts: string[] = [
|
|
111
|
+
'application/json'
|
|
112
|
+
];
|
|
113
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
114
|
+
}
|
|
115
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
116
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
121
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
122
|
+
responseType_ = 'text';
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return this.httpClient.put<Array<BlobInfoObj>>(`${this.configuration.basePath}/structure`,
|
|
126
|
+
null,
|
|
127
|
+
{
|
|
128
|
+
responseType: <any>responseType_,
|
|
129
|
+
withCredentials: this.configuration.withCredentials,
|
|
130
|
+
headers: headers,
|
|
131
|
+
observe: observe,
|
|
132
|
+
reportProgress: reportProgress
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
}
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Private Functions
|
|
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 2023. All Rights Reserved
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
|
+
* Contact: office@agravity.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
13
|
+
|
|
14
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
|
15
|
+
import { HttpClient, HttpHeaders, HttpParams,
|
|
16
|
+
HttpResponse, HttpEvent, HttpParameterCodec } from '@angular/common/http';
|
|
17
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
18
|
+
import { Observable } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
import { AgravityErrorResponse } from '../model/models';
|
|
21
|
+
import { EntityTranslations } from '../model/models';
|
|
22
|
+
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
|
+
import { AgravityConfiguration } from '../configuration';
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@Injectable({
|
|
29
|
+
providedIn: 'root'
|
|
30
|
+
})
|
|
31
|
+
export class TranslationManagementService {
|
|
32
|
+
|
|
33
|
+
protected basePath = 'http://localhost:7071/api';
|
|
34
|
+
public defaultHeaders = new HttpHeaders();
|
|
35
|
+
public configuration = new AgravityConfiguration();
|
|
36
|
+
public encoder: HttpParameterCodec;
|
|
37
|
+
|
|
38
|
+
constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: AgravityConfiguration) {
|
|
39
|
+
if (configuration) {
|
|
40
|
+
this.configuration = configuration;
|
|
41
|
+
}
|
|
42
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
43
|
+
if (typeof basePath !== 'string') {
|
|
44
|
+
basePath = this.basePath;
|
|
45
|
+
}
|
|
46
|
+
this.configuration.basePath = basePath;
|
|
47
|
+
}
|
|
48
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
53
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
54
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
55
|
+
} else {
|
|
56
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
57
|
+
}
|
|
58
|
+
return httpParams;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return httpParams;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (typeof value === "object") {
|
|
67
|
+
if (Array.isArray(value)) {
|
|
68
|
+
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
69
|
+
} else if (value instanceof Date) {
|
|
70
|
+
if (key != null) {
|
|
71
|
+
httpParams = httpParams.append(key,
|
|
72
|
+
(value as Date).toISOString().substr(0, 10));
|
|
73
|
+
} else {
|
|
74
|
+
throw Error("key may not be null if value is Date");
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
|
|
78
|
+
httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
79
|
+
}
|
|
80
|
+
} else if (key != null) {
|
|
81
|
+
httpParams = httpParams.append(key, value);
|
|
82
|
+
} else {
|
|
83
|
+
throw Error("key may not be null if value is not object or array");
|
|
84
|
+
}
|
|
85
|
+
return httpParams;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Get all the translations of a whole list of translatable entities.
|
|
90
|
+
* @param requestBody A list of entity IDs (can be assets, collections, collection types, download formats, etc.
|
|
91
|
+
* @param property If given the only translations of this property are returned.
|
|
92
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
93
|
+
* @param reportProgress flag to report request and response progress.
|
|
94
|
+
*/
|
|
95
|
+
public httpBulkTranslations(requestBody: Array<string>, property?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<Array<EntityTranslations>>;
|
|
96
|
+
public httpBulkTranslations(requestBody: Array<string>, property?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<Array<EntityTranslations>>>;
|
|
97
|
+
public httpBulkTranslations(requestBody: Array<string>, property?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<Array<EntityTranslations>>>;
|
|
98
|
+
public httpBulkTranslations(requestBody: Array<string>, property?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
99
|
+
if (requestBody === null || requestBody === undefined) {
|
|
100
|
+
throw new Error('Required parameter requestBody was null or undefined when calling httpBulkTranslations.');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
104
|
+
if (property !== undefined && property !== null) {
|
|
105
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
106
|
+
<any>property, 'property');
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
let headers = this.defaultHeaders;
|
|
110
|
+
|
|
111
|
+
let credential: string | undefined;
|
|
112
|
+
// authentication (msal_auth) required
|
|
113
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
114
|
+
if (credential) {
|
|
115
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
119
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
120
|
+
// to determine the Accept header
|
|
121
|
+
const httpHeaderAccepts: string[] = [
|
|
122
|
+
'application/json'
|
|
123
|
+
];
|
|
124
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
125
|
+
}
|
|
126
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
127
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
// to determine the Content-Type header
|
|
132
|
+
const consumes: string[] = [
|
|
133
|
+
'application/json'
|
|
134
|
+
];
|
|
135
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
136
|
+
if (httpContentTypeSelected !== undefined) {
|
|
137
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
141
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
142
|
+
responseType_ = 'text';
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return this.httpClient.post<Array<EntityTranslations>>(`${this.configuration.basePath}/translations`,
|
|
146
|
+
requestBody,
|
|
147
|
+
{
|
|
148
|
+
params: queryParameters,
|
|
149
|
+
responseType: <any>responseType_,
|
|
150
|
+
withCredentials: this.configuration.withCredentials,
|
|
151
|
+
headers: headers,
|
|
152
|
+
observe: observe,
|
|
153
|
+
reportProgress: reportProgress
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Get all the translations of a whole entity (Asset, Collection, Collection Type, Download Format)
|
|
160
|
+
* @param id The ID of any translateable entity (Asset, Collection, Collection Type, Download Format).
|
|
161
|
+
* @param items If the items should be included (only for entity type Collection and Asset).
|
|
162
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
163
|
+
* @param reportProgress flag to report request and response progress.
|
|
164
|
+
*/
|
|
165
|
+
public httpTranslationsById(id: string, items?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<{ [key: string]: { [key: string]: object; }; }>;
|
|
166
|
+
public httpTranslationsById(id: string, items?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<{ [key: string]: { [key: string]: object; }; }>>;
|
|
167
|
+
public httpTranslationsById(id: string, items?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<{ [key: string]: { [key: string]: object; }; }>>;
|
|
168
|
+
public httpTranslationsById(id: string, items?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
169
|
+
if (id === null || id === undefined) {
|
|
170
|
+
throw new Error('Required parameter id was null or undefined when calling httpTranslationsById.');
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
174
|
+
if (items !== undefined && items !== null) {
|
|
175
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
176
|
+
<any>items, 'items');
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
let headers = this.defaultHeaders;
|
|
180
|
+
|
|
181
|
+
let credential: string | undefined;
|
|
182
|
+
// authentication (msal_auth) required
|
|
183
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
184
|
+
if (credential) {
|
|
185
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
189
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
190
|
+
// to determine the Accept header
|
|
191
|
+
const httpHeaderAccepts: string[] = [
|
|
192
|
+
'application/json'
|
|
193
|
+
];
|
|
194
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
195
|
+
}
|
|
196
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
197
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
202
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
203
|
+
responseType_ = 'text';
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return this.httpClient.get<{ [key: string]: { [key: string]: object; }; }>(`${this.configuration.basePath}/translations/${encodeURIComponent(String(id))}`,
|
|
207
|
+
{
|
|
208
|
+
params: queryParameters,
|
|
209
|
+
responseType: <any>responseType_,
|
|
210
|
+
withCredentials: this.configuration.withCredentials,
|
|
211
|
+
headers: headers,
|
|
212
|
+
observe: observe,
|
|
213
|
+
reportProgress: reportProgress
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Get the translation of custom field on the entity (Asset, Collection)
|
|
220
|
+
* @param id The ID of only translateable entities with custom fields (Asset, Collection).
|
|
221
|
+
* @param customField Limit the output to a specific custom field key.
|
|
222
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
223
|
+
* @param reportProgress flag to report request and response progress.
|
|
224
|
+
*/
|
|
225
|
+
public httpTranslationsByIdFilterByCustomField(id: string, customField: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<{ [key: string]: { [key: string]: object; }; }>;
|
|
226
|
+
public httpTranslationsByIdFilterByCustomField(id: string, customField: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<{ [key: string]: { [key: string]: object; }; }>>;
|
|
227
|
+
public httpTranslationsByIdFilterByCustomField(id: string, customField: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<{ [key: string]: { [key: string]: object; }; }>>;
|
|
228
|
+
public httpTranslationsByIdFilterByCustomField(id: string, customField: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
229
|
+
if (id === null || id === undefined) {
|
|
230
|
+
throw new Error('Required parameter id was null or undefined when calling httpTranslationsByIdFilterByCustomField.');
|
|
231
|
+
}
|
|
232
|
+
if (customField === null || customField === undefined) {
|
|
233
|
+
throw new Error('Required parameter customField was null or undefined when calling httpTranslationsByIdFilterByCustomField.');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
let headers = this.defaultHeaders;
|
|
237
|
+
|
|
238
|
+
let credential: string | undefined;
|
|
239
|
+
// authentication (msal_auth) required
|
|
240
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
241
|
+
if (credential) {
|
|
242
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
246
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
247
|
+
// to determine the Accept header
|
|
248
|
+
const httpHeaderAccepts: string[] = [
|
|
249
|
+
'application/json'
|
|
250
|
+
];
|
|
251
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
252
|
+
}
|
|
253
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
254
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
259
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
260
|
+
responseType_ = 'text';
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
return this.httpClient.get<{ [key: string]: { [key: string]: object; }; }>(`${this.configuration.basePath}/translations/${encodeURIComponent(String(id))}/custom/${encodeURIComponent(String(customField))}`,
|
|
264
|
+
{
|
|
265
|
+
responseType: <any>responseType_,
|
|
266
|
+
withCredentials: this.configuration.withCredentials,
|
|
267
|
+
headers: headers,
|
|
268
|
+
observe: observe,
|
|
269
|
+
reportProgress: reportProgress
|
|
270
|
+
}
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Get the translations of a specific field on the entity (Asset, Collection, Collection Type, Download Format)
|
|
276
|
+
* @param id The ID of any translateable entity (Asset, Collection, Collection Type, Download Format).
|
|
277
|
+
* @param property Limit to one specific property (key)
|
|
278
|
+
* @param items If the items should be included (only for entity type Collection and Asset).
|
|
279
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
280
|
+
* @param reportProgress flag to report request and response progress.
|
|
281
|
+
*/
|
|
282
|
+
public httpTranslationsByIdFilterByProperty(id: string, property: string, items?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<{ [key: string]: { [key: string]: object; }; }>;
|
|
283
|
+
public httpTranslationsByIdFilterByProperty(id: string, property: string, items?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<{ [key: string]: { [key: string]: object; }; }>>;
|
|
284
|
+
public httpTranslationsByIdFilterByProperty(id: string, property: string, items?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<{ [key: string]: { [key: string]: object; }; }>>;
|
|
285
|
+
public httpTranslationsByIdFilterByProperty(id: string, property: string, items?: boolean, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
286
|
+
if (id === null || id === undefined) {
|
|
287
|
+
throw new Error('Required parameter id was null or undefined when calling httpTranslationsByIdFilterByProperty.');
|
|
288
|
+
}
|
|
289
|
+
if (property === null || property === undefined) {
|
|
290
|
+
throw new Error('Required parameter property was null or undefined when calling httpTranslationsByIdFilterByProperty.');
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
let queryParameters = new HttpParams({encoder: this.encoder});
|
|
294
|
+
if (items !== undefined && items !== null) {
|
|
295
|
+
queryParameters = this.addToHttpParams(queryParameters,
|
|
296
|
+
<any>items, 'items');
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
let headers = this.defaultHeaders;
|
|
300
|
+
|
|
301
|
+
let credential: string | undefined;
|
|
302
|
+
// authentication (msal_auth) required
|
|
303
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
304
|
+
if (credential) {
|
|
305
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
309
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
310
|
+
// to determine the Accept header
|
|
311
|
+
const httpHeaderAccepts: string[] = [
|
|
312
|
+
'application/json'
|
|
313
|
+
];
|
|
314
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
315
|
+
}
|
|
316
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
317
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
322
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
323
|
+
responseType_ = 'text';
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
return this.httpClient.get<{ [key: string]: { [key: string]: object; }; }>(`${this.configuration.basePath}/translations/${encodeURIComponent(String(id))}/${encodeURIComponent(String(property))}`,
|
|
327
|
+
{
|
|
328
|
+
params: queryParameters,
|
|
329
|
+
responseType: <any>responseType_,
|
|
330
|
+
withCredentials: this.configuration.withCredentials,
|
|
331
|
+
headers: headers,
|
|
332
|
+
observe: observe,
|
|
333
|
+
reportProgress: reportProgress
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Updates the translations of a whole entity (Asset, Collection, Collection Type, Download Format)
|
|
340
|
+
* @param id The ID of any translateable entity (Asset, Collection, Collection Type, Download Format).
|
|
341
|
+
* @param requestBody The body has to contain the dictionary of the dictionaries with all translations. Not fitting properties are ignored.
|
|
342
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
343
|
+
* @param reportProgress flag to report request and response progress.
|
|
344
|
+
*/
|
|
345
|
+
public httpUpdateTranslationsById(id: string, requestBody: { [key: string]: { [key: string]: object; }; }, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<{ [key: string]: { [key: string]: object; }; }>;
|
|
346
|
+
public httpUpdateTranslationsById(id: string, requestBody: { [key: string]: { [key: string]: object; }; }, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpResponse<{ [key: string]: { [key: string]: object; }; }>>;
|
|
347
|
+
public httpUpdateTranslationsById(id: string, requestBody: { [key: string]: { [key: string]: object; }; }, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json'}): Observable<HttpEvent<{ [key: string]: { [key: string]: object; }; }>>;
|
|
348
|
+
public httpUpdateTranslationsById(id: string, requestBody: { [key: string]: { [key: string]: object; }; }, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json'}): Observable<any> {
|
|
349
|
+
if (id === null || id === undefined) {
|
|
350
|
+
throw new Error('Required parameter id was null or undefined when calling httpUpdateTranslationsById.');
|
|
351
|
+
}
|
|
352
|
+
if (requestBody === null || requestBody === undefined) {
|
|
353
|
+
throw new Error('Required parameter requestBody was null or undefined when calling httpUpdateTranslationsById.');
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
let headers = this.defaultHeaders;
|
|
357
|
+
|
|
358
|
+
let credential: string | undefined;
|
|
359
|
+
// authentication (msal_auth) required
|
|
360
|
+
credential = this.configuration.lookupCredential('msal_auth');
|
|
361
|
+
if (credential) {
|
|
362
|
+
headers = headers.set('Authorization', 'Bearer ' + credential);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
let httpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
366
|
+
if (httpHeaderAcceptSelected === undefined) {
|
|
367
|
+
// to determine the Accept header
|
|
368
|
+
const httpHeaderAccepts: string[] = [
|
|
369
|
+
'application/json'
|
|
370
|
+
];
|
|
371
|
+
httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
372
|
+
}
|
|
373
|
+
if (httpHeaderAcceptSelected !== undefined) {
|
|
374
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
// to determine the Content-Type header
|
|
379
|
+
const consumes: string[] = [
|
|
380
|
+
'application/json'
|
|
381
|
+
];
|
|
382
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
383
|
+
if (httpContentTypeSelected !== undefined) {
|
|
384
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
let responseType_: 'text' | 'json' = 'json';
|
|
388
|
+
if(httpHeaderAcceptSelected && httpHeaderAcceptSelected.startsWith('text')) {
|
|
389
|
+
responseType_ = 'text';
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
return this.httpClient.post<{ [key: string]: { [key: string]: object; }; }>(`${this.configuration.basePath}/translations/${encodeURIComponent(String(id))}`,
|
|
393
|
+
requestBody,
|
|
394
|
+
{
|
|
395
|
+
responseType: <any>responseType_,
|
|
396
|
+
withCredentials: this.configuration.withCredentials,
|
|
397
|
+
headers: headers,
|
|
398
|
+
observe: observe,
|
|
399
|
+
reportProgress: reportProgress
|
|
400
|
+
}
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
}
|