@agravity/public 8.1.2 → 8.2.1

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.
@@ -46,6 +46,8 @@ model/collTypeItem.pub.agravity.ts
46
46
  model/collection.pub.agravity.ts
47
47
  model/collectionType.pub.agravity.ts
48
48
  model/collectionUDL.pub.agravity.ts
49
+ model/collectionUDLListEntity.pub.agravity.ts
50
+ model/collectionUDLReference.pub.agravity.ts
49
51
  model/createSftpUserResult.pub.agravity.ts
50
52
  model/dataResult.pub.agravity.ts
51
53
  model/deletedEntities.pub.agravity.ts
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- ## @agravity/public@8.1.2
1
+ ## @agravity/public@8.2.1
2
2
 
3
- The version of the OpenAPI document: 8.1.2
3
+ The version of the OpenAPI document: 8.2.1
4
4
 
5
5
  ### Building
6
6
 
@@ -21,7 +21,7 @@ Navigate to the folder of your consuming project and run one of next commands.
21
21
  _published:_
22
22
 
23
23
  ```
24
- npm install @agravity/public@8.1.2 --save
24
+ npm install @agravity/public@8.2.1 --save
25
25
  ```
26
26
 
27
27
  _without publishing (not recommended):_
@@ -22,6 +22,13 @@ import { SasToken } from '../model/sasToken.pub.agravity';
22
22
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
23
23
  import { AgravityPublicConfiguration } from '../configuration';
24
24
 
25
+ export interface HttpAuthGetContainerWriteSasTokenRequestParams {
26
+ /** The name of the blob container */
27
+ containerName: string;
28
+ /** The API key to access this endpoint. (Alternative using header x-function-keys with same value) */
29
+ code: string;
30
+ }
31
+
25
32
  @Injectable({
26
33
  providedIn: 'root'
27
34
  })
@@ -89,9 +96,107 @@ export class PublicAuthenticationManagementService {
89
96
  }
90
97
 
91
98
  /**
92
- * This endpoint creates and returns a SAS-Token with write access for the inbox container
99
+ * This endpoint creates and returns a SAS-Token with write access for the requested container
100
+ * @param requestParameters
101
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
102
+ * @param reportProgress flag to report request and response progress.
103
+ */
104
+ public httpAuthGetContainerWriteSasToken(
105
+ requestParameters?: HttpAuthGetContainerWriteSasTokenRequestParams,
106
+ observe?: 'body',
107
+ reportProgress?: boolean,
108
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
109
+ ): Observable<SasToken>;
110
+ public httpAuthGetContainerWriteSasToken(
111
+ requestParameters?: HttpAuthGetContainerWriteSasTokenRequestParams,
112
+ observe?: 'response',
113
+ reportProgress?: boolean,
114
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
115
+ ): Observable<HttpResponse<SasToken>>;
116
+ public httpAuthGetContainerWriteSasToken(
117
+ requestParameters?: HttpAuthGetContainerWriteSasTokenRequestParams,
118
+ observe?: 'events',
119
+ reportProgress?: boolean,
120
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
121
+ ): Observable<HttpEvent<SasToken>>;
122
+ public httpAuthGetContainerWriteSasToken(
123
+ requestParameters?: HttpAuthGetContainerWriteSasTokenRequestParams,
124
+ observe: any = 'body',
125
+ reportProgress: boolean = false,
126
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
127
+ ): Observable<any> {
128
+ const containerName = requestParameters?.containerName;
129
+ if (containerName === null || containerName === undefined) {
130
+ throw new Error('Required parameter containerName was null or undefined when calling httpAuthGetContainerWriteSasToken.');
131
+ }
132
+ const code = requestParameters?.code;
133
+ if (code === null || code === undefined) {
134
+ throw new Error('Required parameter code was null or undefined when calling httpAuthGetContainerWriteSasToken.');
135
+ }
136
+
137
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
138
+ if (code !== undefined && code !== null) {
139
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>code, 'code');
140
+ }
141
+
142
+ let localVarHeaders = this.defaultHeaders;
143
+
144
+ let localVarCredential: string | undefined;
145
+ // authentication (function_key) required
146
+ localVarCredential = this.configuration.lookupCredential('function_key');
147
+ if (localVarCredential) {
148
+ localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
149
+ }
150
+
151
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
152
+ if (localVarHttpHeaderAcceptSelected === undefined) {
153
+ // to determine the Accept header
154
+ const httpHeaderAccepts: string[] = ['application/json'];
155
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
156
+ }
157
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
158
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
159
+ }
160
+
161
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
162
+ if (localVarHttpContext === undefined) {
163
+ localVarHttpContext = new HttpContext();
164
+ }
165
+
166
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
167
+ if (localVarTransferCache === undefined) {
168
+ localVarTransferCache = true;
169
+ }
170
+
171
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
172
+ if (localVarHttpHeaderAcceptSelected) {
173
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
174
+ responseType_ = 'text';
175
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
176
+ responseType_ = 'json';
177
+ } else {
178
+ responseType_ = 'blob';
179
+ }
180
+ }
181
+
182
+ let localVarPath = `/auth/containerwrite/${this.configuration.encodeParam({ name: 'containerName', value: containerName, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
183
+ return this.httpClient.request<SasToken>('get', `${this.configuration.basePath}${localVarPath}`, {
184
+ context: localVarHttpContext,
185
+ params: localVarQueryParameters,
186
+ responseType: <any>responseType_,
187
+ withCredentials: this.configuration.withCredentials,
188
+ headers: localVarHeaders,
189
+ observe: observe,
190
+ transferCache: localVarTransferCache,
191
+ reportProgress: reportProgress
192
+ });
193
+ }
194
+
195
+ /**
196
+ * This endpoint creates and returns a SAS-Token with write access for the inbox container. Do not use this any longer. Use HttpAuthGetContainerWriteSasToken with inbox as container name.
93
197
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
94
198
  * @param reportProgress flag to report request and response progress.
199
+ * @deprecated
95
200
  */
96
201
  public httpAuthGetInboxContainerWriteSasToken(
97
202
  observe?: 'body',
@@ -20,6 +20,8 @@ import { AgravityErrorResponse } from '../model/agravityErrorResponse.pub.agravi
20
20
  // @ts-ignore
21
21
  import { CollectionUDL } from '../model/collectionUDL.pub.agravity';
22
22
  // @ts-ignore
23
+ import { CollectionUDLListEntity } from '../model/collectionUDLListEntity.pub.agravity';
24
+ // @ts-ignore
23
25
  import { SearchableItem } from '../model/searchableItem.pub.agravity';
24
26
 
25
27
  // @ts-ignore
@@ -477,4 +479,81 @@ export class PublicHelperToolsService {
477
479
  reportProgress: reportProgress
478
480
  });
479
481
  }
482
+
483
+ /**
484
+ * This updates the cached user defined lists and store it in the system.
485
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
486
+ * @param reportProgress flag to report request and response progress.
487
+ */
488
+ public httpPatchUpdateCachedUserDefinedLists(
489
+ observe?: 'body',
490
+ reportProgress?: boolean,
491
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
492
+ ): Observable<CollectionUDLListEntity>;
493
+ public httpPatchUpdateCachedUserDefinedLists(
494
+ observe?: 'response',
495
+ reportProgress?: boolean,
496
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
497
+ ): Observable<HttpResponse<CollectionUDLListEntity>>;
498
+ public httpPatchUpdateCachedUserDefinedLists(
499
+ observe?: 'events',
500
+ reportProgress?: boolean,
501
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
502
+ ): Observable<HttpEvent<CollectionUDLListEntity>>;
503
+ public httpPatchUpdateCachedUserDefinedLists(
504
+ observe: any = 'body',
505
+ reportProgress: boolean = false,
506
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
507
+ ): Observable<any> {
508
+ let localVarHeaders = this.defaultHeaders;
509
+
510
+ let localVarCredential: string | undefined;
511
+ // authentication (function_key) required
512
+ localVarCredential = this.configuration.lookupCredential('function_key');
513
+ if (localVarCredential) {
514
+ localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
515
+ }
516
+
517
+ let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
518
+ if (localVarHttpHeaderAcceptSelected === undefined) {
519
+ // to determine the Accept header
520
+ const httpHeaderAccepts: string[] = ['application/json'];
521
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
522
+ }
523
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
524
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
525
+ }
526
+
527
+ let localVarHttpContext: HttpContext | undefined = options && options.context;
528
+ if (localVarHttpContext === undefined) {
529
+ localVarHttpContext = new HttpContext();
530
+ }
531
+
532
+ let localVarTransferCache: boolean | undefined = options && options.transferCache;
533
+ if (localVarTransferCache === undefined) {
534
+ localVarTransferCache = true;
535
+ }
536
+
537
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
538
+ if (localVarHttpHeaderAcceptSelected) {
539
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
540
+ responseType_ = 'text';
541
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
542
+ responseType_ = 'json';
543
+ } else {
544
+ responseType_ = 'blob';
545
+ }
546
+ }
547
+
548
+ let localVarPath = `/helper/userdefinedlists`;
549
+ return this.httpClient.request<CollectionUDLListEntity>('patch', `${this.configuration.basePath}${localVarPath}`, {
550
+ context: localVarHttpContext,
551
+ responseType: <any>responseType_,
552
+ withCredentials: this.configuration.withCredentials,
553
+ headers: localVarHeaders,
554
+ observe: observe,
555
+ transferCache: localVarTransferCache,
556
+ reportProgress: reportProgress
557
+ });
558
+ }
480
559
  }
@@ -20,4 +20,5 @@ export interface AzSearchOptions {
20
20
  mode?: string | null;
21
21
  ids?: string | null;
22
22
  portal_id?: string | null;
23
+ scopefilter?: string | null;
23
24
  }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
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 2024. All Rights Reserved
4
+ *
5
+ * Contact: office@agravity.io
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import { CollectionUDLReference } from './collectionUDLReference.pub.agravity';
12
+ import { CollectionUDL } from './collectionUDL.pub.agravity';
13
+
14
+ export interface CollectionUDLListEntity {
15
+ id?: string | null;
16
+ entity_type?: string | null;
17
+ udl_refs?: Array<CollectionUDLReference> | null;
18
+ udl_entries?: Array<CollectionUDL> | null;
19
+ status?: string | null;
20
+ created_date?: string | null;
21
+ created_by?: string | null;
22
+ modified_date?: string | null;
23
+ modified_by?: string | null;
24
+ pk?: string | null;
25
+ _etag?: string | null;
26
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Public Functions
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 2024. All Rights Reserved
4
+ *
5
+ * Contact: office@agravity.io
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import { PermissionEntity } from './permissionEntity.pub.agravity';
12
+
13
+ export interface CollectionUDLReference {
14
+ parent?: string | null;
15
+ coll_types?: Array<string> | null;
16
+ permissions?: Array<PermissionEntity> | null;
17
+ }
package/model/models.ts CHANGED
@@ -14,6 +14,8 @@ export * from './collTypeItem.pub.agravity';
14
14
  export * from './collection.pub.agravity';
15
15
  export * from './collectionType.pub.agravity';
16
16
  export * from './collectionUDL.pub.agravity';
17
+ export * from './collectionUDLListEntity.pub.agravity';
18
+ export * from './collectionUDLReference.pub.agravity';
17
19
  export * from './createSftpUserResult.pub.agravity';
18
20
  export * from './dataResult.pub.agravity';
19
21
  export * from './deletedEntities.pub.agravity';
@@ -14,6 +14,7 @@ import { AgravityErrorResponse } from './agravityErrorResponse.pub.agravity';
14
14
  export interface PortalZipRequest {
15
15
  zip_type?: string | null;
16
16
  portal_id?: string | null;
17
+ language?: string | null;
17
18
  asset_ids?: Array<string> | null;
18
19
  id?: string | null;
19
20
  entity_type?: string | null;
@@ -14,5 +14,6 @@ export interface SearchAdminIndexerStatus {
14
14
  name?: string | null;
15
15
  status?: string | null;
16
16
  error?: string | null;
17
- lastrun?: SearchAdminIndexerLastRun | null;
17
+ lastrun?: SearchAdminIndexerLastRun;
18
+ history?: Array<SearchAdminIndexerLastRun> | null;
18
19
  }
@@ -14,6 +14,7 @@ import { AgravityErrorResponse } from './agravityErrorResponse.pub.agravity';
14
14
  export interface SharedCollectionZipRequest {
15
15
  sharedcoll_id?: string | null;
16
16
  password?: string | null;
17
+ language?: string | null;
17
18
  id?: string | null;
18
19
  entity_type?: string | null;
19
20
  zip_type?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agravity/public",
3
- "version": "8.1.2",
3
+ "version": "8.2.1",
4
4
  "description": "The Agravity GlobalDAM API which allowes API key authenticated access the Agravity GlobalDAM Backend",
5
5
  "author": "Philipp Losbichler",
6
6
  "repository": {