@agravity/private 10.1.6 → 10.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.
@@ -41,6 +41,11 @@ export interface HttpDataExportAssetsAsExcelRequestParams {
41
41
  language?: string;
42
42
  }
43
43
 
44
+ export interface HttpDataExportCheckStatusRequestParams {
45
+ /** The ID of excel or translation export */
46
+ id: string;
47
+ }
48
+
44
49
  export interface HttpDataExportItemsAsExcelRequestParams {
45
50
  /** Used to specify what to be retured. Valid values are: asset, workspace, collection_type and/or only certain collection types (IDs) for exporting. When providing multiple values separate it with comma (\',\'). */
46
51
  filter?: string;
@@ -56,11 +61,6 @@ export interface HttpDataExportTranslationsCancelRequestParams {
56
61
  id: string;
57
62
  }
58
63
 
59
- export interface HttpDataExportTranslationsCheckStatusRequestParams {
60
- /** The ID of translation export */
61
- id: string;
62
- }
63
-
64
64
  export interface HttpDataImportAssetsAsExcelRequestParams {
65
65
  /** The filename of the Excel file to import (must be uploaded to the excel import container). */
66
66
  fileName: string;
@@ -178,6 +178,79 @@ export class DataImportExportManagementService extends BaseService {
178
178
  });
179
179
  }
180
180
 
181
+ /**
182
+ * This endpoint retrieves the status and if populated the url to the excel or translation export.
183
+ * @param requestParameters
184
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
185
+ * @param reportProgress flag to report request and response progress.
186
+ */
187
+ public httpDataExportCheckStatus(
188
+ requestParameters: HttpDataExportCheckStatusRequestParams,
189
+ observe?: 'body',
190
+ reportProgress?: boolean,
191
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
192
+ ): Observable<ExcelExportTableEntity>;
193
+ public httpDataExportCheckStatus(
194
+ requestParameters: HttpDataExportCheckStatusRequestParams,
195
+ observe?: 'response',
196
+ reportProgress?: boolean,
197
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
198
+ ): Observable<HttpResponse<ExcelExportTableEntity>>;
199
+ public httpDataExportCheckStatus(
200
+ requestParameters: HttpDataExportCheckStatusRequestParams,
201
+ observe?: 'events',
202
+ reportProgress?: boolean,
203
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
204
+ ): Observable<HttpEvent<ExcelExportTableEntity>>;
205
+ public httpDataExportCheckStatus(
206
+ requestParameters: HttpDataExportCheckStatusRequestParams,
207
+ observe: any = 'body',
208
+ reportProgress: boolean = false,
209
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
210
+ ): Observable<any> {
211
+ const id = requestParameters?.id;
212
+ if (id === null || id === undefined) {
213
+ throw new Error('Required parameter id was null or undefined when calling httpDataExportCheckStatus.');
214
+ }
215
+
216
+ let localVarHeaders = this.defaultHeaders;
217
+
218
+ // authentication (msal_auth) required
219
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
220
+
221
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
222
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
223
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
224
+ }
225
+
226
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
227
+
228
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
229
+
230
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
231
+ if (localVarHttpHeaderAcceptSelected) {
232
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
233
+ responseType_ = 'text';
234
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
235
+ responseType_ = 'json';
236
+ } else {
237
+ responseType_ = 'blob';
238
+ }
239
+ }
240
+
241
+ let localVarPath = `/data/excel/export/status/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
242
+ const { basePath, withCredentials } = this.configuration;
243
+ return this.httpClient.request<ExcelExportTableEntity>('get', `${basePath}${localVarPath}`, {
244
+ context: localVarHttpContext,
245
+ responseType: <any>responseType_,
246
+ ...(withCredentials ? { withCredentials } : {}),
247
+ headers: localVarHeaders,
248
+ observe: observe,
249
+ transferCache: localVarTransferCache,
250
+ reportProgress: reportProgress
251
+ });
252
+ }
253
+
181
254
  /**
182
255
  * This endpoint creates an excel export of the db
183
256
  * @param requestParameters
@@ -399,79 +472,6 @@ export class DataImportExportManagementService extends BaseService {
399
472
  });
400
473
  }
401
474
 
402
- /**
403
- * This endpoint retrieves the status and if populated the url to the excel export.
404
- * @param requestParameters
405
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
406
- * @param reportProgress flag to report request and response progress.
407
- */
408
- public httpDataExportTranslationsCheckStatus(
409
- requestParameters: HttpDataExportTranslationsCheckStatusRequestParams,
410
- observe?: 'body',
411
- reportProgress?: boolean,
412
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
413
- ): Observable<ExcelExportTableEntity>;
414
- public httpDataExportTranslationsCheckStatus(
415
- requestParameters: HttpDataExportTranslationsCheckStatusRequestParams,
416
- observe?: 'response',
417
- reportProgress?: boolean,
418
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
419
- ): Observable<HttpResponse<ExcelExportTableEntity>>;
420
- public httpDataExportTranslationsCheckStatus(
421
- requestParameters: HttpDataExportTranslationsCheckStatusRequestParams,
422
- observe?: 'events',
423
- reportProgress?: boolean,
424
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
425
- ): Observable<HttpEvent<ExcelExportTableEntity>>;
426
- public httpDataExportTranslationsCheckStatus(
427
- requestParameters: HttpDataExportTranslationsCheckStatusRequestParams,
428
- observe: any = 'body',
429
- reportProgress: boolean = false,
430
- options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
431
- ): Observable<any> {
432
- const id = requestParameters?.id;
433
- if (id === null || id === undefined) {
434
- throw new Error('Required parameter id was null or undefined when calling httpDataExportTranslationsCheckStatus.');
435
- }
436
-
437
- let localVarHeaders = this.defaultHeaders;
438
-
439
- // authentication (msal_auth) required
440
- localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
441
-
442
- const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
443
- if (localVarHttpHeaderAcceptSelected !== undefined) {
444
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
445
- }
446
-
447
- const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
448
-
449
- const localVarTransferCache: boolean = options?.transferCache ?? true;
450
-
451
- let responseType_: 'text' | 'json' | 'blob' = 'json';
452
- if (localVarHttpHeaderAcceptSelected) {
453
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
454
- responseType_ = 'text';
455
- } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
456
- responseType_ = 'json';
457
- } else {
458
- responseType_ = 'blob';
459
- }
460
- }
461
-
462
- let localVarPath = `/data/excel/export/translations/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
463
- const { basePath, withCredentials } = this.configuration;
464
- return this.httpClient.request<ExcelExportTableEntity>('get', `${basePath}${localVarPath}`, {
465
- context: localVarHttpContext,
466
- responseType: <any>responseType_,
467
- ...(withCredentials ? { withCredentials } : {}),
468
- headers: localVarHeaders,
469
- observe: observe,
470
- transferCache: localVarTransferCache,
471
- reportProgress: reportProgress
472
- });
473
- }
474
-
475
475
  /**
476
476
  * This endpoint starts an excel import of assets from an uploaded Excel file.
477
477
  * @param requestParameters
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Agravity OpenAPI Documentation - Private 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 { Feature } from '../model/feature.agravity';
19
+
20
+ // @ts-ignore
21
+ import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
22
+ import { AgravityConfiguration } from '../configuration';
23
+ import { BaseService } from '../api.base.service';
24
+
25
+ @Injectable({
26
+ providedIn: 'root'
27
+ })
28
+ export class FeaturesManagementService extends BaseService {
29
+ constructor(
30
+ protected httpClient: HttpClient,
31
+ @Optional() @Inject(BASE_PATH) basePath: string | string[],
32
+ @Optional() configuration?: AgravityConfiguration
33
+ ) {
34
+ super(basePath, configuration);
35
+ }
36
+
37
+ /**
38
+ * This endpoint lists all features available.
39
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
40
+ * @param reportProgress flag to report request and response progress.
41
+ */
42
+ public httpFeaturesGetAll(
43
+ observe?: 'body',
44
+ reportProgress?: boolean,
45
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
46
+ ): Observable<Array<Feature>>;
47
+ public httpFeaturesGetAll(
48
+ observe?: 'response',
49
+ reportProgress?: boolean,
50
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
51
+ ): Observable<HttpResponse<Array<Feature>>>;
52
+ public httpFeaturesGetAll(
53
+ observe?: 'events',
54
+ reportProgress?: boolean,
55
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
56
+ ): Observable<HttpEvent<Array<Feature>>>;
57
+ public httpFeaturesGetAll(
58
+ observe: any = 'body',
59
+ reportProgress: boolean = false,
60
+ options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
61
+ ): Observable<any> {
62
+ let localVarHeaders = this.defaultHeaders;
63
+
64
+ // authentication (msal_auth) required
65
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
66
+
67
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
68
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
69
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
70
+ }
71
+
72
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
73
+
74
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
75
+
76
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
77
+ if (localVarHttpHeaderAcceptSelected) {
78
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
79
+ responseType_ = 'text';
80
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
81
+ responseType_ = 'json';
82
+ } else {
83
+ responseType_ = 'blob';
84
+ }
85
+ }
86
+
87
+ let localVarPath = `/features`;
88
+ const { basePath, withCredentials } = this.configuration;
89
+ return this.httpClient.request<Array<Feature>>('get', `${basePath}${localVarPath}`, {
90
+ context: localVarHttpContext,
91
+ responseType: <any>responseType_,
92
+ ...(withCredentials ? { withCredentials } : {}),
93
+ headers: localVarHeaders,
94
+ observe: observe,
95
+ transferCache: localVarTransferCache,
96
+ reportProgress: reportProgress
97
+ });
98
+ }
99
+ }
@@ -17,9 +17,7 @@ import { Observable } from 'rxjs';
17
17
  // @ts-ignore
18
18
  import { AgravityErrorResponse } from '../model/agravityErrorResponse.agravity';
19
19
  // @ts-ignore
20
- import { Comment } from '../model/comment.agravity';
21
- // @ts-ignore
22
- import { NotificationSettingDto } from '../model/notificationSettingDto.agravity';
20
+ import { NotificationSettingsEntry } from '../model/notificationSettingsEntry.agravity';
23
21
 
24
22
  // @ts-ignore
25
23
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
@@ -33,7 +31,7 @@ export interface HttpNotificationSettingDeleteByIdRequestParams {
33
31
 
34
32
  export interface HttpNotificationSettingsCreateOrUpdateRequestParams {
35
33
  /** The notification setting to create */
36
- notificationSettingDto: NotificationSettingDto;
34
+ notificationSettingsEntry: NotificationSettingsEntry;
37
35
  }
38
36
 
39
37
  @Injectable({
@@ -132,28 +130,28 @@ export class NotificationManagementService extends BaseService {
132
130
  observe?: 'body',
133
131
  reportProgress?: boolean,
134
132
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
135
- ): Observable<Comment>;
133
+ ): Observable<NotificationSettingsEntry>;
136
134
  public httpNotificationSettingsCreateOrUpdate(
137
135
  requestParameters: HttpNotificationSettingsCreateOrUpdateRequestParams,
138
136
  observe?: 'response',
139
137
  reportProgress?: boolean,
140
138
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
141
- ): Observable<HttpResponse<Comment>>;
139
+ ): Observable<HttpResponse<NotificationSettingsEntry>>;
142
140
  public httpNotificationSettingsCreateOrUpdate(
143
141
  requestParameters: HttpNotificationSettingsCreateOrUpdateRequestParams,
144
142
  observe?: 'events',
145
143
  reportProgress?: boolean,
146
144
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
147
- ): Observable<HttpEvent<Comment>>;
145
+ ): Observable<HttpEvent<NotificationSettingsEntry>>;
148
146
  public httpNotificationSettingsCreateOrUpdate(
149
147
  requestParameters: HttpNotificationSettingsCreateOrUpdateRequestParams,
150
148
  observe: any = 'body',
151
149
  reportProgress: boolean = false,
152
150
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
153
151
  ): Observable<any> {
154
- const notificationSettingDto = requestParameters?.notificationSettingDto;
155
- if (notificationSettingDto === null || notificationSettingDto === undefined) {
156
- throw new Error('Required parameter notificationSettingDto was null or undefined when calling httpNotificationSettingsCreateOrUpdate.');
152
+ const notificationSettingsEntry = requestParameters?.notificationSettingsEntry;
153
+ if (notificationSettingsEntry === null || notificationSettingsEntry === undefined) {
154
+ throw new Error('Required parameter notificationSettingsEntry was null or undefined when calling httpNotificationSettingsCreateOrUpdate.');
157
155
  }
158
156
 
159
157
  let localVarHeaders = this.defaultHeaders;
@@ -190,9 +188,9 @@ export class NotificationManagementService extends BaseService {
190
188
 
191
189
  let localVarPath = `/notificationsettings`;
192
190
  const { basePath, withCredentials } = this.configuration;
193
- return this.httpClient.request<Comment>('post', `${basePath}${localVarPath}`, {
191
+ return this.httpClient.request<NotificationSettingsEntry>('post', `${basePath}${localVarPath}`, {
194
192
  context: localVarHttpContext,
195
- body: notificationSettingDto,
193
+ body: notificationSettingsEntry,
196
194
  responseType: <any>responseType_,
197
195
  ...(withCredentials ? { withCredentials } : {}),
198
196
  headers: localVarHeaders,
@@ -211,17 +209,17 @@ export class NotificationManagementService extends BaseService {
211
209
  observe?: 'body',
212
210
  reportProgress?: boolean,
213
211
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
214
- ): Observable<Array<NotificationSettingDto>>;
212
+ ): Observable<Array<NotificationSettingsEntry>>;
215
213
  public httpNotificationSettingsGetAll(
216
214
  observe?: 'response',
217
215
  reportProgress?: boolean,
218
216
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
219
- ): Observable<HttpResponse<Array<NotificationSettingDto>>>;
217
+ ): Observable<HttpResponse<Array<NotificationSettingsEntry>>>;
220
218
  public httpNotificationSettingsGetAll(
221
219
  observe?: 'events',
222
220
  reportProgress?: boolean,
223
221
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
224
- ): Observable<HttpEvent<Array<NotificationSettingDto>>>;
222
+ ): Observable<HttpEvent<Array<NotificationSettingsEntry>>>;
225
223
  public httpNotificationSettingsGetAll(
226
224
  observe: any = 'body',
227
225
  reportProgress: boolean = false,
@@ -254,7 +252,7 @@ export class NotificationManagementService extends BaseService {
254
252
 
255
253
  let localVarPath = `/notificationsettings`;
256
254
  const { basePath, withCredentials } = this.configuration;
257
- return this.httpClient.request<Array<NotificationSettingDto>>('get', `${basePath}${localVarPath}`, {
255
+ return this.httpClient.request<Array<NotificationSettingsEntry>>('get', `${basePath}${localVarPath}`, {
258
256
  context: localVarHttpContext,
259
257
  responseType: <any>responseType_,
260
258
  ...(withCredentials ? { withCredentials } : {}),