@agravity/public 9.0.2 → 9.1.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 +3 -1
- package/README.md +3 -3
- package/api/api.ts +3 -0
- package/api/publicAssetRelationManagement.pub.agravity.ts +619 -0
- package/api/publicSearchManagement.pub.agravity.ts +12 -0
- package/model/agravityVersion.pub.agravity.ts +3 -1
- package/model/asset.pub.agravity.ts +0 -2
- package/model/assetRelation.pub.agravity.ts +23 -0
- package/model/azSearchOptions.pub.agravity.ts +2 -0
- package/model/models.ts +2 -1
- package/model/quickShareFull.pub.agravity.ts +1 -0
- package/model/{artificialIntelligenceGroup.pub.agravity.ts → relatedAsset.pub.agravity.ts} +3 -5
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,7 @@ api/api.ts
|
|
|
6
6
|
api/publicAssetManagement.pub.agravity.ts
|
|
7
7
|
api/publicAssetOperations.pub.agravity.ts
|
|
8
8
|
api/publicAssetPublishing.pub.agravity.ts
|
|
9
|
+
api/publicAssetRelationManagement.pub.agravity.ts
|
|
9
10
|
api/publicAssetVersioning.pub.agravity.ts
|
|
10
11
|
api/publicAuthenticationManagement.pub.agravity.ts
|
|
11
12
|
api/publicCollectionManagement.pub.agravity.ts
|
|
@@ -34,13 +35,13 @@ model/agravityErrorResponse.pub.agravity.ts
|
|
|
34
35
|
model/agravityInfoResponse.pub.agravity.ts
|
|
35
36
|
model/agravityVersion.pub.agravity.ts
|
|
36
37
|
model/allWebAppData.pub.agravity.ts
|
|
37
|
-
model/artificialIntelligenceGroup.pub.agravity.ts
|
|
38
38
|
model/asset.pub.agravity.ts
|
|
39
39
|
model/assetAvailability.pub.agravity.ts
|
|
40
40
|
model/assetBlob.pub.agravity.ts
|
|
41
41
|
model/assetIconRule.pub.agravity.ts
|
|
42
42
|
model/assetIdFormat.pub.agravity.ts
|
|
43
43
|
model/assetPageResult.pub.agravity.ts
|
|
44
|
+
model/assetRelation.pub.agravity.ts
|
|
44
45
|
model/azSearchOptions.pub.agravity.ts
|
|
45
46
|
model/collTypeItem.pub.agravity.ts
|
|
46
47
|
model/collection.pub.agravity.ts
|
|
@@ -82,6 +83,7 @@ model/portalUserContext.pub.agravity.ts
|
|
|
82
83
|
model/publishEntity.pub.agravity.ts
|
|
83
84
|
model/publishedAsset.pub.agravity.ts
|
|
84
85
|
model/quickShareFull.pub.agravity.ts
|
|
86
|
+
model/relatedAsset.pub.agravity.ts
|
|
85
87
|
model/sasToken.pub.agravity.ts
|
|
86
88
|
model/savedSearch.pub.agravity.ts
|
|
87
89
|
model/searchAdminDataSourceStatus.pub.agravity.ts
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
## @agravity/public@9.0
|
|
1
|
+
## @agravity/public@9.1.0
|
|
2
2
|
|
|
3
3
|
<h1>Agravity API Reference</h1>This is the public 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>Collection Sharing (consume share)</li> <li>Secure Upload (validate + upload file)</li> <li>Download ZIP</li> <li>Search</li> <li>General management</li></ul><h2> Operations</h2>Agravity API performs the following operations:<ul> <li>List / get single collection types</li> <li>List / get single collections</li> <li>List / get single assets</li> <li>Operations on assets like: blobs, rotate, resize, similar, collections, customfields, download</li> <li>List / get single published asset</li> <li>Search for assets or collections</li> <li>Get version of deployment</li></ul><br/><b>API key is needed to access these endpoints.</b><br/><br/>Copyright © Agravity GmbH 2025. All Rights Reserved
|
|
4
4
|
|
|
5
|
-
The version of the OpenAPI document: 9.0
|
|
5
|
+
The version of the OpenAPI document: 9.1.0
|
|
6
6
|
|
|
7
7
|
### Building
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@ Navigate to the folder of your consuming project and run one of next commands.
|
|
|
23
23
|
_published:_
|
|
24
24
|
|
|
25
25
|
```
|
|
26
|
-
npm install @agravity/public@9.0
|
|
26
|
+
npm install @agravity/public@9.1.0 --save
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
_without publishing (not recommended):_
|
package/api/api.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from './publicAssetOperations.pub.agravity';
|
|
|
4
4
|
import { PublicAssetOperationsService } from './publicAssetOperations.pub.agravity';
|
|
5
5
|
export * from './publicAssetPublishing.pub.agravity';
|
|
6
6
|
import { PublicAssetPublishingService } from './publicAssetPublishing.pub.agravity';
|
|
7
|
+
export * from './publicAssetRelationManagement.pub.agravity';
|
|
8
|
+
import { PublicAssetRelationManagementService } from './publicAssetRelationManagement.pub.agravity';
|
|
7
9
|
export * from './publicAssetVersioning.pub.agravity';
|
|
8
10
|
import { PublicAssetVersioningService } from './publicAssetVersioning.pub.agravity';
|
|
9
11
|
export * from './publicAuthenticationManagement.pub.agravity';
|
|
@@ -48,6 +50,7 @@ export const APIS = [
|
|
|
48
50
|
PublicAssetManagementService,
|
|
49
51
|
PublicAssetOperationsService,
|
|
50
52
|
PublicAssetPublishingService,
|
|
53
|
+
PublicAssetRelationManagementService,
|
|
51
54
|
PublicAssetVersioningService,
|
|
52
55
|
PublicAuthenticationManagementService,
|
|
53
56
|
PublicCollectionManagementService,
|
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Public Functions
|
|
3
|
+
*
|
|
4
|
+
* Contact: office@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, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
14
|
+
import { CustomHttpParameterCodec } from '../encoder';
|
|
15
|
+
import { Observable } from 'rxjs';
|
|
16
|
+
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravity';
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { AssetRelation } from '../model/assetRelation.pub.agravity';
|
|
21
|
+
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
24
|
+
import { AgravityPublicConfiguration } from '../configuration';
|
|
25
|
+
|
|
26
|
+
export interface HttpAssetRelationCreateRequestParams {
|
|
27
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
28
|
+
translations?: boolean;
|
|
29
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
30
|
+
acceptLanguage?: string;
|
|
31
|
+
/** The ID of the asset relation type, where these asset relations should come from. */
|
|
32
|
+
assetrelationtypeid?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface HttpAssetRelationDeleteByIdRequestParams {
|
|
36
|
+
/** The ID of the asset relation. */
|
|
37
|
+
id: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface HttpAssetRelationGetAllRequestParams {
|
|
41
|
+
/** The ID of the asset relation type, where these asset relations should come from. */
|
|
42
|
+
assetrelationtypeid?: string;
|
|
43
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
44
|
+
acceptLanguage?: string;
|
|
45
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
46
|
+
translations?: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface HttpAssetRelationGetByIdRequestParams {
|
|
50
|
+
/** The ID of the asset relation. */
|
|
51
|
+
id: string;
|
|
52
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
53
|
+
translations?: boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface HttpAssetRelationUpdateByIdRequestParams {
|
|
57
|
+
/** The ID of the asset relation. */
|
|
58
|
+
id: string;
|
|
59
|
+
/** This endpoint updates an asset relation with ID in the database. */
|
|
60
|
+
assetRelation: AssetRelation;
|
|
61
|
+
/** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
|
|
62
|
+
translations?: boolean;
|
|
63
|
+
/** The requested language of the response. If not matching it falls back to default language. */
|
|
64
|
+
acceptLanguage?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@Injectable({
|
|
68
|
+
providedIn: 'root'
|
|
69
|
+
})
|
|
70
|
+
export class PublicAssetRelationManagementService {
|
|
71
|
+
protected basePath = 'http://localhost:7072/api';
|
|
72
|
+
public defaultHeaders = new HttpHeaders();
|
|
73
|
+
public configuration = new AgravityPublicConfiguration();
|
|
74
|
+
public encoder: HttpParameterCodec;
|
|
75
|
+
|
|
76
|
+
constructor(
|
|
77
|
+
protected httpClient: HttpClient,
|
|
78
|
+
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
79
|
+
@Optional() configuration: AgravityPublicConfiguration
|
|
80
|
+
) {
|
|
81
|
+
if (configuration) {
|
|
82
|
+
this.configuration = configuration;
|
|
83
|
+
}
|
|
84
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
85
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
86
|
+
if (firstBasePath != undefined) {
|
|
87
|
+
basePath = firstBasePath;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (typeof basePath !== 'string') {
|
|
91
|
+
basePath = this.basePath;
|
|
92
|
+
}
|
|
93
|
+
this.configuration.basePath = basePath;
|
|
94
|
+
}
|
|
95
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// @ts-ignore
|
|
99
|
+
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
100
|
+
if (typeof value === 'object' && value instanceof Date === false) {
|
|
101
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
102
|
+
} else {
|
|
103
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
104
|
+
}
|
|
105
|
+
return httpParams;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return httpParams;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (typeof value === 'object') {
|
|
114
|
+
if (Array.isArray(value)) {
|
|
115
|
+
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
116
|
+
} else if (value instanceof Date) {
|
|
117
|
+
if (key != null) {
|
|
118
|
+
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
119
|
+
} else {
|
|
120
|
+
throw Error('key may not be null if value is Date');
|
|
121
|
+
}
|
|
122
|
+
} else {
|
|
123
|
+
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
124
|
+
}
|
|
125
|
+
} else if (key != null) {
|
|
126
|
+
httpParams = httpParams.append(key, value);
|
|
127
|
+
} else {
|
|
128
|
+
throw Error('key may not be null if value is not object or array');
|
|
129
|
+
}
|
|
130
|
+
return httpParams;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* This endpoint creates one asset relation entry in the database.
|
|
135
|
+
* @param requestParameters
|
|
136
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
137
|
+
* @param reportProgress flag to report request and response progress.
|
|
138
|
+
*/
|
|
139
|
+
public httpAssetRelationCreate(
|
|
140
|
+
requestParameters?: HttpAssetRelationCreateRequestParams,
|
|
141
|
+
observe?: 'body',
|
|
142
|
+
reportProgress?: boolean,
|
|
143
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
144
|
+
): Observable<AssetRelation>;
|
|
145
|
+
public httpAssetRelationCreate(
|
|
146
|
+
requestParameters?: HttpAssetRelationCreateRequestParams,
|
|
147
|
+
observe?: 'response',
|
|
148
|
+
reportProgress?: boolean,
|
|
149
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
150
|
+
): Observable<HttpResponse<AssetRelation>>;
|
|
151
|
+
public httpAssetRelationCreate(
|
|
152
|
+
requestParameters?: HttpAssetRelationCreateRequestParams,
|
|
153
|
+
observe?: 'events',
|
|
154
|
+
reportProgress?: boolean,
|
|
155
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
156
|
+
): Observable<HttpEvent<AssetRelation>>;
|
|
157
|
+
public httpAssetRelationCreate(
|
|
158
|
+
requestParameters?: HttpAssetRelationCreateRequestParams,
|
|
159
|
+
observe: any = 'body',
|
|
160
|
+
reportProgress: boolean = false,
|
|
161
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
162
|
+
): Observable<any> {
|
|
163
|
+
const translations = requestParameters?.translations;
|
|
164
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
165
|
+
const assetrelationtypeid = requestParameters?.assetrelationtypeid;
|
|
166
|
+
|
|
167
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
168
|
+
if (translations !== undefined && translations !== null) {
|
|
169
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
170
|
+
}
|
|
171
|
+
if (assetrelationtypeid !== undefined && assetrelationtypeid !== null) {
|
|
172
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>assetrelationtypeid, 'assetrelationtypeid');
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
let localVarHeaders = this.defaultHeaders;
|
|
176
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
177
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
let localVarCredential: string | undefined;
|
|
181
|
+
// authentication (function_key) required
|
|
182
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
183
|
+
if (localVarCredential) {
|
|
184
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
188
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
189
|
+
// to determine the Accept header
|
|
190
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
191
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
192
|
+
}
|
|
193
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
194
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
198
|
+
if (localVarHttpContext === undefined) {
|
|
199
|
+
localVarHttpContext = new HttpContext();
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
203
|
+
if (localVarTransferCache === undefined) {
|
|
204
|
+
localVarTransferCache = true;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
208
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
209
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
210
|
+
responseType_ = 'text';
|
|
211
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
212
|
+
responseType_ = 'json';
|
|
213
|
+
} else {
|
|
214
|
+
responseType_ = 'blob';
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
let localVarPath = `/assetrelations`;
|
|
219
|
+
return this.httpClient.request<AssetRelation>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
220
|
+
context: localVarHttpContext,
|
|
221
|
+
params: localVarQueryParameters,
|
|
222
|
+
responseType: <any>responseType_,
|
|
223
|
+
withCredentials: this.configuration.withCredentials,
|
|
224
|
+
headers: localVarHeaders,
|
|
225
|
+
observe: observe,
|
|
226
|
+
transferCache: localVarTransferCache,
|
|
227
|
+
reportProgress: reportProgress
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* This endpoint deletes a single asset relation.
|
|
233
|
+
* @param requestParameters
|
|
234
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
235
|
+
* @param reportProgress flag to report request and response progress.
|
|
236
|
+
*/
|
|
237
|
+
public httpAssetRelationDeleteById(
|
|
238
|
+
requestParameters?: HttpAssetRelationDeleteByIdRequestParams,
|
|
239
|
+
observe?: 'body',
|
|
240
|
+
reportProgress?: boolean,
|
|
241
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
242
|
+
): Observable<any>;
|
|
243
|
+
public httpAssetRelationDeleteById(
|
|
244
|
+
requestParameters?: HttpAssetRelationDeleteByIdRequestParams,
|
|
245
|
+
observe?: 'response',
|
|
246
|
+
reportProgress?: boolean,
|
|
247
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
248
|
+
): Observable<HttpResponse<any>>;
|
|
249
|
+
public httpAssetRelationDeleteById(
|
|
250
|
+
requestParameters?: HttpAssetRelationDeleteByIdRequestParams,
|
|
251
|
+
observe?: 'events',
|
|
252
|
+
reportProgress?: boolean,
|
|
253
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
254
|
+
): Observable<HttpEvent<any>>;
|
|
255
|
+
public httpAssetRelationDeleteById(
|
|
256
|
+
requestParameters?: HttpAssetRelationDeleteByIdRequestParams,
|
|
257
|
+
observe: any = 'body',
|
|
258
|
+
reportProgress: boolean = false,
|
|
259
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
260
|
+
): Observable<any> {
|
|
261
|
+
const id = requestParameters?.id;
|
|
262
|
+
if (id === null || id === undefined) {
|
|
263
|
+
throw new Error('Required parameter id was null or undefined when calling httpAssetRelationDeleteById.');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
let localVarHeaders = this.defaultHeaders;
|
|
267
|
+
|
|
268
|
+
let localVarCredential: string | undefined;
|
|
269
|
+
// authentication (function_key) required
|
|
270
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
271
|
+
if (localVarCredential) {
|
|
272
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
276
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
277
|
+
// to determine the Accept header
|
|
278
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
279
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
280
|
+
}
|
|
281
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
282
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
286
|
+
if (localVarHttpContext === undefined) {
|
|
287
|
+
localVarHttpContext = new HttpContext();
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
291
|
+
if (localVarTransferCache === undefined) {
|
|
292
|
+
localVarTransferCache = true;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
296
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
297
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
298
|
+
responseType_ = 'text';
|
|
299
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
300
|
+
responseType_ = 'json';
|
|
301
|
+
} else {
|
|
302
|
+
responseType_ = 'blob';
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
let localVarPath = `/assetrelations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
307
|
+
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
308
|
+
context: localVarHttpContext,
|
|
309
|
+
responseType: <any>responseType_,
|
|
310
|
+
withCredentials: this.configuration.withCredentials,
|
|
311
|
+
headers: localVarHeaders,
|
|
312
|
+
observe: observe,
|
|
313
|
+
transferCache: localVarTransferCache,
|
|
314
|
+
reportProgress: reportProgress
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* This endpoint lists all asset relations in database.
|
|
320
|
+
* @param requestParameters
|
|
321
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
322
|
+
* @param reportProgress flag to report request and response progress.
|
|
323
|
+
*/
|
|
324
|
+
public httpAssetRelationGetAll(
|
|
325
|
+
requestParameters?: HttpAssetRelationGetAllRequestParams,
|
|
326
|
+
observe?: 'body',
|
|
327
|
+
reportProgress?: boolean,
|
|
328
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
329
|
+
): Observable<Array<AssetRelation>>;
|
|
330
|
+
public httpAssetRelationGetAll(
|
|
331
|
+
requestParameters?: HttpAssetRelationGetAllRequestParams,
|
|
332
|
+
observe?: 'response',
|
|
333
|
+
reportProgress?: boolean,
|
|
334
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
335
|
+
): Observable<HttpResponse<Array<AssetRelation>>>;
|
|
336
|
+
public httpAssetRelationGetAll(
|
|
337
|
+
requestParameters?: HttpAssetRelationGetAllRequestParams,
|
|
338
|
+
observe?: 'events',
|
|
339
|
+
reportProgress?: boolean,
|
|
340
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
341
|
+
): Observable<HttpEvent<Array<AssetRelation>>>;
|
|
342
|
+
public httpAssetRelationGetAll(
|
|
343
|
+
requestParameters?: HttpAssetRelationGetAllRequestParams,
|
|
344
|
+
observe: any = 'body',
|
|
345
|
+
reportProgress: boolean = false,
|
|
346
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
347
|
+
): Observable<any> {
|
|
348
|
+
const assetrelationtypeid = requestParameters?.assetrelationtypeid;
|
|
349
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
350
|
+
const translations = requestParameters?.translations;
|
|
351
|
+
|
|
352
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
353
|
+
if (assetrelationtypeid !== undefined && assetrelationtypeid !== null) {
|
|
354
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>assetrelationtypeid, 'assetrelationtypeid');
|
|
355
|
+
}
|
|
356
|
+
if (translations !== undefined && translations !== null) {
|
|
357
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
let localVarHeaders = this.defaultHeaders;
|
|
361
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
362
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
let localVarCredential: string | undefined;
|
|
366
|
+
// authentication (function_key) required
|
|
367
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
368
|
+
if (localVarCredential) {
|
|
369
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
373
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
374
|
+
// to determine the Accept header
|
|
375
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
376
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
377
|
+
}
|
|
378
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
379
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
383
|
+
if (localVarHttpContext === undefined) {
|
|
384
|
+
localVarHttpContext = new HttpContext();
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
388
|
+
if (localVarTransferCache === undefined) {
|
|
389
|
+
localVarTransferCache = true;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
393
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
394
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
395
|
+
responseType_ = 'text';
|
|
396
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
397
|
+
responseType_ = 'json';
|
|
398
|
+
} else {
|
|
399
|
+
responseType_ = 'blob';
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
let localVarPath = `/assetrelations`;
|
|
404
|
+
return this.httpClient.request<Array<AssetRelation>>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
405
|
+
context: localVarHttpContext,
|
|
406
|
+
params: localVarQueryParameters,
|
|
407
|
+
responseType: <any>responseType_,
|
|
408
|
+
withCredentials: this.configuration.withCredentials,
|
|
409
|
+
headers: localVarHeaders,
|
|
410
|
+
observe: observe,
|
|
411
|
+
transferCache: localVarTransferCache,
|
|
412
|
+
reportProgress: reportProgress
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* This endpoint gets a single asset relation.
|
|
418
|
+
* @param requestParameters
|
|
419
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
420
|
+
* @param reportProgress flag to report request and response progress.
|
|
421
|
+
*/
|
|
422
|
+
public httpAssetRelationGetById(
|
|
423
|
+
requestParameters?: HttpAssetRelationGetByIdRequestParams,
|
|
424
|
+
observe?: 'body',
|
|
425
|
+
reportProgress?: boolean,
|
|
426
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
427
|
+
): Observable<AssetRelation>;
|
|
428
|
+
public httpAssetRelationGetById(
|
|
429
|
+
requestParameters?: HttpAssetRelationGetByIdRequestParams,
|
|
430
|
+
observe?: 'response',
|
|
431
|
+
reportProgress?: boolean,
|
|
432
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
433
|
+
): Observable<HttpResponse<AssetRelation>>;
|
|
434
|
+
public httpAssetRelationGetById(
|
|
435
|
+
requestParameters?: HttpAssetRelationGetByIdRequestParams,
|
|
436
|
+
observe?: 'events',
|
|
437
|
+
reportProgress?: boolean,
|
|
438
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
439
|
+
): Observable<HttpEvent<AssetRelation>>;
|
|
440
|
+
public httpAssetRelationGetById(
|
|
441
|
+
requestParameters?: HttpAssetRelationGetByIdRequestParams,
|
|
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 httpAssetRelationGetById.');
|
|
449
|
+
}
|
|
450
|
+
const translations = requestParameters?.translations;
|
|
451
|
+
|
|
452
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
453
|
+
if (translations !== undefined && translations !== null) {
|
|
454
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
let localVarHeaders = this.defaultHeaders;
|
|
458
|
+
|
|
459
|
+
let localVarCredential: string | undefined;
|
|
460
|
+
// authentication (function_key) required
|
|
461
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
462
|
+
if (localVarCredential) {
|
|
463
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
467
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
468
|
+
// to determine the Accept header
|
|
469
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
470
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
471
|
+
}
|
|
472
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
473
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
477
|
+
if (localVarHttpContext === undefined) {
|
|
478
|
+
localVarHttpContext = new HttpContext();
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
482
|
+
if (localVarTransferCache === undefined) {
|
|
483
|
+
localVarTransferCache = true;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
487
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
488
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
489
|
+
responseType_ = 'text';
|
|
490
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
491
|
+
responseType_ = 'json';
|
|
492
|
+
} else {
|
|
493
|
+
responseType_ = 'blob';
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
let localVarPath = `/assetrelations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
498
|
+
return this.httpClient.request<AssetRelation>('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
499
|
+
context: localVarHttpContext,
|
|
500
|
+
params: localVarQueryParameters,
|
|
501
|
+
responseType: <any>responseType_,
|
|
502
|
+
withCredentials: this.configuration.withCredentials,
|
|
503
|
+
headers: localVarHeaders,
|
|
504
|
+
observe: observe,
|
|
505
|
+
transferCache: localVarTransferCache,
|
|
506
|
+
reportProgress: reportProgress
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* This endpoint updates an asset relation entry in the database.
|
|
512
|
+
* @param requestParameters
|
|
513
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
514
|
+
* @param reportProgress flag to report request and response progress.
|
|
515
|
+
*/
|
|
516
|
+
public httpAssetRelationUpdateById(
|
|
517
|
+
requestParameters?: HttpAssetRelationUpdateByIdRequestParams,
|
|
518
|
+
observe?: 'body',
|
|
519
|
+
reportProgress?: boolean,
|
|
520
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
521
|
+
): Observable<AssetRelation>;
|
|
522
|
+
public httpAssetRelationUpdateById(
|
|
523
|
+
requestParameters?: HttpAssetRelationUpdateByIdRequestParams,
|
|
524
|
+
observe?: 'response',
|
|
525
|
+
reportProgress?: boolean,
|
|
526
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
527
|
+
): Observable<HttpResponse<AssetRelation>>;
|
|
528
|
+
public httpAssetRelationUpdateById(
|
|
529
|
+
requestParameters?: HttpAssetRelationUpdateByIdRequestParams,
|
|
530
|
+
observe?: 'events',
|
|
531
|
+
reportProgress?: boolean,
|
|
532
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
533
|
+
): Observable<HttpEvent<AssetRelation>>;
|
|
534
|
+
public httpAssetRelationUpdateById(
|
|
535
|
+
requestParameters?: HttpAssetRelationUpdateByIdRequestParams,
|
|
536
|
+
observe: any = 'body',
|
|
537
|
+
reportProgress: boolean = false,
|
|
538
|
+
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
539
|
+
): Observable<any> {
|
|
540
|
+
const id = requestParameters?.id;
|
|
541
|
+
if (id === null || id === undefined) {
|
|
542
|
+
throw new Error('Required parameter id was null or undefined when calling httpAssetRelationUpdateById.');
|
|
543
|
+
}
|
|
544
|
+
const assetRelation = requestParameters?.assetRelation;
|
|
545
|
+
if (assetRelation === null || assetRelation === undefined) {
|
|
546
|
+
throw new Error('Required parameter assetRelation was null or undefined when calling httpAssetRelationUpdateById.');
|
|
547
|
+
}
|
|
548
|
+
const translations = requestParameters?.translations;
|
|
549
|
+
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
550
|
+
|
|
551
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
552
|
+
if (translations !== undefined && translations !== null) {
|
|
553
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
let localVarHeaders = this.defaultHeaders;
|
|
557
|
+
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
558
|
+
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
let localVarCredential: string | undefined;
|
|
562
|
+
// authentication (function_key) required
|
|
563
|
+
localVarCredential = this.configuration.lookupCredential('function_key');
|
|
564
|
+
if (localVarCredential) {
|
|
565
|
+
localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
569
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
570
|
+
// to determine the Accept header
|
|
571
|
+
const httpHeaderAccepts: string[] = ['application/json'];
|
|
572
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
573
|
+
}
|
|
574
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
575
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
579
|
+
if (localVarHttpContext === undefined) {
|
|
580
|
+
localVarHttpContext = new HttpContext();
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
let localVarTransferCache: boolean | undefined = options && options.transferCache;
|
|
584
|
+
if (localVarTransferCache === undefined) {
|
|
585
|
+
localVarTransferCache = true;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
// to determine the Content-Type header
|
|
589
|
+
const consumes: string[] = ['application/json'];
|
|
590
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
591
|
+
if (httpContentTypeSelected !== undefined) {
|
|
592
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
596
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
597
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
598
|
+
responseType_ = 'text';
|
|
599
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
600
|
+
responseType_ = 'json';
|
|
601
|
+
} else {
|
|
602
|
+
responseType_ = 'blob';
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
let localVarPath = `/assetrelations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
607
|
+
return this.httpClient.request<AssetRelation>('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
608
|
+
context: localVarHttpContext,
|
|
609
|
+
body: assetRelation,
|
|
610
|
+
params: localVarQueryParameters,
|
|
611
|
+
responseType: <any>responseType_,
|
|
612
|
+
withCredentials: this.configuration.withCredentials,
|
|
613
|
+
headers: localVarHeaders,
|
|
614
|
+
observe: observe,
|
|
615
|
+
transferCache: localVarTransferCache,
|
|
616
|
+
reportProgress: reportProgress
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
}
|
|
@@ -65,6 +65,10 @@ export interface HttpGlobalSearchRequestParams {
|
|
|
65
65
|
expose?: boolean;
|
|
66
66
|
/** Colon separated key value filter for filterable strings and string collections. For date or numbers \"<\", \"=\" and \">\" are possible. Mode influences AND (all) and OR (any) of all filters. Multiple filters are separated by semicolons. (Only if Azure Search is enabled) */
|
|
67
67
|
filter?: string;
|
|
68
|
+
/** Search Broadness: Can be 0, 1 or 2. (0 is the most exact search, 2 is the broadest search) (1, 2 is with AI) */
|
|
69
|
+
broadness?: number;
|
|
70
|
+
/** The ID of the relation which this search is limited to. (Only the assets in this relation are returend) */
|
|
71
|
+
relId?: string;
|
|
68
72
|
/** Colon separated key value filter for additional scopes. It applies the same conventions as for filter parameter. */
|
|
69
73
|
scopefilter?: string;
|
|
70
74
|
/** Sortable fields can be used. For descendant sorting use leading \"!\". (Only if Azure Search is enabled) */
|
|
@@ -319,6 +323,8 @@ export class PublicSearchManagementService {
|
|
|
319
323
|
const mode = requestParameters?.mode;
|
|
320
324
|
const expose = requestParameters?.expose;
|
|
321
325
|
const filter = requestParameters?.filter;
|
|
326
|
+
const broadness = requestParameters?.broadness;
|
|
327
|
+
const relId = requestParameters?.relId;
|
|
322
328
|
const scopefilter = requestParameters?.scopefilter;
|
|
323
329
|
const orderby = requestParameters?.orderby;
|
|
324
330
|
const ids = requestParameters?.ids;
|
|
@@ -351,6 +357,12 @@ export class PublicSearchManagementService {
|
|
|
351
357
|
if (filter !== undefined && filter !== null) {
|
|
352
358
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>filter, 'filter');
|
|
353
359
|
}
|
|
360
|
+
if (broadness !== undefined && broadness !== null) {
|
|
361
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>broadness, 'broadness');
|
|
362
|
+
}
|
|
363
|
+
if (relId !== undefined && relId !== null) {
|
|
364
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>relId, 'rel_id');
|
|
365
|
+
}
|
|
354
366
|
if (scopefilter !== undefined && scopefilter !== null) {
|
|
355
367
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>scopefilter, 'scopefilter');
|
|
356
368
|
}
|
|
@@ -15,7 +15,9 @@ export interface AgravityVersion {
|
|
|
15
15
|
contact?: string | null;
|
|
16
16
|
updated?: string | null;
|
|
17
17
|
client_id?: string | null;
|
|
18
|
+
tenant_id?: string | null;
|
|
19
|
+
base?: string | null;
|
|
18
20
|
version?: string | null;
|
|
19
|
-
|
|
21
|
+
vector_search_enabled?: boolean | null;
|
|
20
22
|
region?: string | null;
|
|
21
23
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { CollTypeItem } from './collTypeItem.pub.agravity';
|
|
11
11
|
import { AssetBlob } from './assetBlob.pub.agravity';
|
|
12
|
-
import { ArtificialIntelligenceGroup } from './artificialIntelligenceGroup.pub.agravity';
|
|
13
12
|
|
|
14
13
|
export interface Asset {
|
|
15
14
|
id?: string | null;
|
|
@@ -17,7 +16,6 @@ export interface Asset {
|
|
|
17
16
|
name?: string | null;
|
|
18
17
|
asset_type?: string | null;
|
|
19
18
|
duplicates?: Array<string> | null;
|
|
20
|
-
ai_groups?: Array<ArtificialIntelligenceGroup> | null;
|
|
21
19
|
keywords?: Array<string> | null;
|
|
22
20
|
orig_blob?: AssetBlob;
|
|
23
21
|
blobs?: Array<AssetBlob> | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agravity OpenAPI Documentation - Public Functions
|
|
3
|
+
*
|
|
4
|
+
* Contact: office@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
|
+
import { RelatedAsset } from './relatedAsset.pub.agravity';
|
|
11
|
+
|
|
12
|
+
export interface AssetRelation {
|
|
13
|
+
id?: string | null;
|
|
14
|
+
entity_type?: string | null;
|
|
15
|
+
assets?: Array<RelatedAsset> | null;
|
|
16
|
+
status?: string | null;
|
|
17
|
+
created_date?: string | null;
|
|
18
|
+
created_by?: string | null;
|
|
19
|
+
modified_date?: string | null;
|
|
20
|
+
modified_by?: string | null;
|
|
21
|
+
pk?: string | null;
|
|
22
|
+
_etag?: string | null;
|
|
23
|
+
}
|
package/model/models.ts
CHANGED
|
@@ -2,13 +2,13 @@ export * from './agravityErrorResponse.pub.agravity';
|
|
|
2
2
|
export * from './agravityInfoResponse.pub.agravity';
|
|
3
3
|
export * from './agravityVersion.pub.agravity';
|
|
4
4
|
export * from './allWebAppData.pub.agravity';
|
|
5
|
-
export * from './artificialIntelligenceGroup.pub.agravity';
|
|
6
5
|
export * from './asset.pub.agravity';
|
|
7
6
|
export * from './assetAvailability.pub.agravity';
|
|
8
7
|
export * from './assetBlob.pub.agravity';
|
|
9
8
|
export * from './assetIconRule.pub.agravity';
|
|
10
9
|
export * from './assetIdFormat.pub.agravity';
|
|
11
10
|
export * from './assetPageResult.pub.agravity';
|
|
11
|
+
export * from './assetRelation.pub.agravity';
|
|
12
12
|
export * from './azSearchOptions.pub.agravity';
|
|
13
13
|
export * from './collTypeItem.pub.agravity';
|
|
14
14
|
export * from './collection.pub.agravity';
|
|
@@ -49,6 +49,7 @@ export * from './portalUserContext.pub.agravity';
|
|
|
49
49
|
export * from './publishEntity.pub.agravity';
|
|
50
50
|
export * from './publishedAsset.pub.agravity';
|
|
51
51
|
export * from './quickShareFull.pub.agravity';
|
|
52
|
+
export * from './relatedAsset.pub.agravity';
|
|
52
53
|
export * from './sasToken.pub.agravity';
|
|
53
54
|
export * from './savedSearch.pub.agravity';
|
|
54
55
|
export * from './searchAdminDataSourceStatus.pub.agravity';
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
* Do not edit the class manually.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
export interface
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
min_confidence?: number | null;
|
|
15
|
-
values?: Array<{ [key: string]: object }> | null;
|
|
11
|
+
export interface RelatedAsset {
|
|
12
|
+
id?: string | null;
|
|
13
|
+
parent?: boolean | null;
|
|
16
14
|
}
|
package/package.json
CHANGED