@agravity/public 9.4.0 → 10.0.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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +97 -142
  4. package/api/api.ts +3 -0
  5. package/api/publicAIOperations.pub.agravity.ts +160 -0
  6. package/api/publicAssetManagement.pub.agravity.ts +67 -236
  7. package/api/publicAssetOperations.pub.agravity.ts +139 -380
  8. package/api/publicAssetPublishing.pub.agravity.ts +37 -132
  9. package/api/publicAssetRelationManagement.pub.agravity.ts +57 -192
  10. package/api/publicAssetVersioning.pub.agravity.ts +82 -249
  11. package/api/publicAuthenticationManagement.pub.agravity.ts +23 -106
  12. package/api/publicCollectionManagement.pub.agravity.ts +116 -321
  13. package/api/publicCollectionSecureUpload.pub.agravity.ts +29 -114
  14. package/api/publicCollectionTypeManagement.pub.agravity.ts +33 -136
  15. package/api/publicConfigurationManagement.pub.agravity.ts +11 -76
  16. package/api/publicDownloadFormatManagement.pub.agravity.ts +22 -101
  17. package/api/publicEndpoints.pub.agravity.ts +18 -89
  18. package/api/publicGeneralManagement.pub.agravity.ts +41 -146
  19. package/api/publicHelperTools.pub.agravity.ts +43 -174
  20. package/api/publicPortalManagement.pub.agravity.ts +74 -227
  21. package/api/publicPublishing.pub.agravity.ts +13 -84
  22. package/api/publicSavedSearch.pub.agravity.ts +13 -84
  23. package/api/publicSearchManagement.pub.agravity.ts +58 -203
  24. package/api/publicSharingManagement.pub.agravity.ts +50 -155
  25. package/api/publicSignalRConnectionManagement.pub.agravity.ts +11 -78
  26. package/api/publicStaticDefinedListManagement.pub.agravity.ts +37 -140
  27. package/api/publicTranslationManagement.pub.agravity.ts +48 -147
  28. package/api/publicWebAppData.pub.agravity.ts +26 -107
  29. package/api/publicWorkspaceManagement.pub.agravity.ts +24 -109
  30. package/api.base.service.ts +78 -0
  31. package/configuration.ts +33 -17
  32. package/index.ts +1 -0
  33. package/model/asset.pub.agravity.ts +6 -6
  34. package/model/assetBlob.pub.agravity.ts +15 -15
  35. package/model/assetIconRule.pub.agravity.ts +1 -1
  36. package/model/collTypeItem.pub.agravity.ts +1 -1
  37. package/model/collection.pub.agravity.ts +6 -6
  38. package/model/collectionType.pub.agravity.ts +6 -6
  39. package/model/collectionUDL.pub.agravity.ts +1 -1
  40. package/model/downloadFormat.pub.agravity.ts +1 -1
  41. package/model/downloadZipRequest.pub.agravity.ts +6 -6
  42. package/model/downloadZipStatus.pub.agravity.ts +6 -6
  43. package/model/entityIdName.pub.agravity.ts +1 -1
  44. package/model/groupAllAppData.pub.agravity.ts +1 -1
  45. package/model/permissionEntity.pub.agravity.ts +5 -5
  46. package/model/portalAuthentication.pub.agravity.ts +7 -7
  47. package/model/portalTheme.pub.agravity.ts +1 -1
  48. package/model/publishedAsset.pub.agravity.ts +1 -1
  49. package/model/savedSearch.pub.agravity.ts +1 -1
  50. package/model/staticDefinedList.pub.agravity.ts +1 -1
  51. package/model/whereParam.pub.agravity.ts +17 -17
  52. package/model/workspace.pub.agravity.ts +1 -1
  53. package/package.json +5 -4
  54. package/provide-api.ts +15 -0
  55. package/tsconfig.json +2 -0
@@ -22,6 +22,7 @@ import { StaticDefinedList } from '../model/staticDefinedList.pub.agravity';
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
24
24
  import { AgravityPublicConfiguration } from '../configuration';
25
+ import { BaseService } from '../api.base.service';
25
26
 
26
27
  export interface HttpStaticDefinedListsGetAllRequestParams {
27
28
  /** When default language should be returned and the translation dictionary is delivered. (Ignores the \"Accept-Language\" header) */
@@ -55,67 +56,13 @@ export interface HttpStaticDefinedListsUpdateByIdRequestParams {
55
56
  @Injectable({
56
57
  providedIn: 'root'
57
58
  })
58
- export class PublicStaticDefinedListManagementService {
59
- protected basePath = 'http://localhost:7072/api';
60
- public defaultHeaders = new HttpHeaders();
61
- public configuration = new AgravityPublicConfiguration();
62
- public encoder: HttpParameterCodec;
63
-
59
+ export class PublicStaticDefinedListManagementService extends BaseService {
64
60
  constructor(
65
61
  protected httpClient: HttpClient,
66
62
  @Optional() @Inject(BASE_PATH) basePath: string | string[],
67
- @Optional() configuration: AgravityPublicConfiguration
63
+ @Optional() configuration?: AgravityPublicConfiguration
68
64
  ) {
69
- if (configuration) {
70
- this.configuration = configuration;
71
- }
72
- if (typeof this.configuration.basePath !== 'string') {
73
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
74
- if (firstBasePath != undefined) {
75
- basePath = firstBasePath;
76
- }
77
-
78
- if (typeof basePath !== 'string') {
79
- basePath = this.basePath;
80
- }
81
- this.configuration.basePath = basePath;
82
- }
83
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
84
- }
85
-
86
- // @ts-ignore
87
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
88
- if (typeof value === 'object' && value instanceof Date === false) {
89
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
90
- } else {
91
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
92
- }
93
- return httpParams;
94
- }
95
-
96
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
97
- if (value == null) {
98
- return httpParams;
99
- }
100
-
101
- if (typeof value === 'object') {
102
- if (Array.isArray(value)) {
103
- (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
104
- } else if (value instanceof Date) {
105
- if (key != null) {
106
- httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
107
- } else {
108
- throw Error('key may not be null if value is Date');
109
- }
110
- } else {
111
- Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
112
- }
113
- } else if (key != null) {
114
- httpParams = httpParams.append(key, value);
115
- } else {
116
- throw Error('key may not be null if value is not object or array');
117
- }
118
- return httpParams;
65
+ super(basePath, configuration);
119
66
  }
120
67
 
121
68
  /**
@@ -152,41 +99,24 @@ export class PublicStaticDefinedListManagementService {
152
99
  const acceptLanguage = requestParameters?.acceptLanguage;
153
100
 
154
101
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
155
- if (translations !== undefined && translations !== null) {
156
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
157
- }
102
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
158
103
 
159
104
  let localVarHeaders = this.defaultHeaders;
160
105
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
161
106
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
162
107
  }
163
108
 
164
- let localVarCredential: string | undefined;
165
109
  // authentication (function_key) required
166
- localVarCredential = this.configuration.lookupCredential('function_key');
167
- if (localVarCredential) {
168
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
169
- }
110
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
170
111
 
171
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
172
- if (localVarHttpHeaderAcceptSelected === undefined) {
173
- // to determine the Accept header
174
- const httpHeaderAccepts: string[] = ['application/json'];
175
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
176
- }
112
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
177
113
  if (localVarHttpHeaderAcceptSelected !== undefined) {
178
114
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
179
115
  }
180
116
 
181
- let localVarHttpContext: HttpContext | undefined = options && options.context;
182
- if (localVarHttpContext === undefined) {
183
- localVarHttpContext = new HttpContext();
184
- }
117
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
185
118
 
186
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
187
- if (localVarTransferCache === undefined) {
188
- localVarTransferCache = true;
189
- }
119
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
190
120
 
191
121
  let responseType_: 'text' | 'json' | 'blob' = 'json';
192
122
  if (localVarHttpHeaderAcceptSelected) {
@@ -200,11 +130,12 @@ export class PublicStaticDefinedListManagementService {
200
130
  }
201
131
 
202
132
  let localVarPath = `/staticdefinedlists`;
203
- return this.httpClient.request<Array<StaticDefinedList>>('get', `${this.configuration.basePath}${localVarPath}`, {
133
+ const { basePath, withCredentials } = this.configuration;
134
+ return this.httpClient.request<Array<StaticDefinedList>>('get', `${basePath}${localVarPath}`, {
204
135
  context: localVarHttpContext,
205
136
  params: localVarQueryParameters,
206
137
  responseType: <any>responseType_,
207
- withCredentials: this.configuration.withCredentials,
138
+ ...(withCredentials ? { withCredentials } : {}),
208
139
  headers: localVarHeaders,
209
140
  observe: observe,
210
141
  transferCache: localVarTransferCache,
@@ -219,25 +150,25 @@ export class PublicStaticDefinedListManagementService {
219
150
  * @param reportProgress flag to report request and response progress.
220
151
  */
221
152
  public httpStaticDefinedListsGetById(
222
- requestParameters?: HttpStaticDefinedListsGetByIdRequestParams,
153
+ requestParameters: HttpStaticDefinedListsGetByIdRequestParams,
223
154
  observe?: 'body',
224
155
  reportProgress?: boolean,
225
156
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
226
157
  ): Observable<StaticDefinedList>;
227
158
  public httpStaticDefinedListsGetById(
228
- requestParameters?: HttpStaticDefinedListsGetByIdRequestParams,
159
+ requestParameters: HttpStaticDefinedListsGetByIdRequestParams,
229
160
  observe?: 'response',
230
161
  reportProgress?: boolean,
231
162
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
232
163
  ): Observable<HttpResponse<StaticDefinedList>>;
233
164
  public httpStaticDefinedListsGetById(
234
- requestParameters?: HttpStaticDefinedListsGetByIdRequestParams,
165
+ requestParameters: HttpStaticDefinedListsGetByIdRequestParams,
235
166
  observe?: 'events',
236
167
  reportProgress?: boolean,
237
168
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
238
169
  ): Observable<HttpEvent<StaticDefinedList>>;
239
170
  public httpStaticDefinedListsGetById(
240
- requestParameters?: HttpStaticDefinedListsGetByIdRequestParams,
171
+ requestParameters: HttpStaticDefinedListsGetByIdRequestParams,
241
172
  observe: any = 'body',
242
173
  reportProgress: boolean = false,
243
174
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -250,41 +181,24 @@ export class PublicStaticDefinedListManagementService {
250
181
  const acceptLanguage = requestParameters?.acceptLanguage;
251
182
 
252
183
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
253
- if (translations !== undefined && translations !== null) {
254
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
255
- }
184
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
256
185
 
257
186
  let localVarHeaders = this.defaultHeaders;
258
187
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
259
188
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
260
189
  }
261
190
 
262
- let localVarCredential: string | undefined;
263
191
  // authentication (function_key) required
264
- localVarCredential = this.configuration.lookupCredential('function_key');
265
- if (localVarCredential) {
266
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
267
- }
192
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
268
193
 
269
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
270
- if (localVarHttpHeaderAcceptSelected === undefined) {
271
- // to determine the Accept header
272
- const httpHeaderAccepts: string[] = ['application/json'];
273
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
274
- }
194
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
275
195
  if (localVarHttpHeaderAcceptSelected !== undefined) {
276
196
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
277
197
  }
278
198
 
279
- let localVarHttpContext: HttpContext | undefined = options && options.context;
280
- if (localVarHttpContext === undefined) {
281
- localVarHttpContext = new HttpContext();
282
- }
199
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
283
200
 
284
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
285
- if (localVarTransferCache === undefined) {
286
- localVarTransferCache = true;
287
- }
201
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
288
202
 
289
203
  let responseType_: 'text' | 'json' | 'blob' = 'json';
290
204
  if (localVarHttpHeaderAcceptSelected) {
@@ -298,11 +212,12 @@ export class PublicStaticDefinedListManagementService {
298
212
  }
299
213
 
300
214
  let localVarPath = `/staticdefinedlists/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
301
- return this.httpClient.request<StaticDefinedList>('get', `${this.configuration.basePath}${localVarPath}`, {
215
+ const { basePath, withCredentials } = this.configuration;
216
+ return this.httpClient.request<StaticDefinedList>('get', `${basePath}${localVarPath}`, {
302
217
  context: localVarHttpContext,
303
218
  params: localVarQueryParameters,
304
219
  responseType: <any>responseType_,
305
- withCredentials: this.configuration.withCredentials,
220
+ ...(withCredentials ? { withCredentials } : {}),
306
221
  headers: localVarHeaders,
307
222
  observe: observe,
308
223
  transferCache: localVarTransferCache,
@@ -317,25 +232,25 @@ export class PublicStaticDefinedListManagementService {
317
232
  * @param reportProgress flag to report request and response progress.
318
233
  */
319
234
  public httpStaticDefinedListsUpdateById(
320
- requestParameters?: HttpStaticDefinedListsUpdateByIdRequestParams,
235
+ requestParameters: HttpStaticDefinedListsUpdateByIdRequestParams,
321
236
  observe?: 'body',
322
237
  reportProgress?: boolean,
323
238
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
324
239
  ): Observable<StaticDefinedList>;
325
240
  public httpStaticDefinedListsUpdateById(
326
- requestParameters?: HttpStaticDefinedListsUpdateByIdRequestParams,
241
+ requestParameters: HttpStaticDefinedListsUpdateByIdRequestParams,
327
242
  observe?: 'response',
328
243
  reportProgress?: boolean,
329
244
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
330
245
  ): Observable<HttpResponse<StaticDefinedList>>;
331
246
  public httpStaticDefinedListsUpdateById(
332
- requestParameters?: HttpStaticDefinedListsUpdateByIdRequestParams,
247
+ requestParameters: HttpStaticDefinedListsUpdateByIdRequestParams,
333
248
  observe?: 'events',
334
249
  reportProgress?: boolean,
335
250
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
336
251
  ): Observable<HttpEvent<StaticDefinedList>>;
337
252
  public httpStaticDefinedListsUpdateById(
338
- requestParameters?: HttpStaticDefinedListsUpdateByIdRequestParams,
253
+ requestParameters: HttpStaticDefinedListsUpdateByIdRequestParams,
339
254
  observe: any = 'body',
340
255
  reportProgress: boolean = false,
341
256
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -356,44 +271,25 @@ export class PublicStaticDefinedListManagementService {
356
271
  const acceptLanguage = requestParameters?.acceptLanguage;
357
272
 
358
273
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
359
- if (translations !== undefined && translations !== null) {
360
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
361
- }
362
- if (updatemode !== undefined && updatemode !== null) {
363
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>updatemode, 'updatemode');
364
- }
274
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>translations, 'translations');
275
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>updatemode, 'updatemode');
365
276
 
366
277
  let localVarHeaders = this.defaultHeaders;
367
278
  if (acceptLanguage !== undefined && acceptLanguage !== null) {
368
279
  localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
369
280
  }
370
281
 
371
- let localVarCredential: string | undefined;
372
282
  // authentication (function_key) required
373
- localVarCredential = this.configuration.lookupCredential('function_key');
374
- if (localVarCredential) {
375
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
376
- }
283
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
377
284
 
378
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
379
- if (localVarHttpHeaderAcceptSelected === undefined) {
380
- // to determine the Accept header
381
- const httpHeaderAccepts: string[] = ['application/json'];
382
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
383
- }
285
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
384
286
  if (localVarHttpHeaderAcceptSelected !== undefined) {
385
287
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
386
288
  }
387
289
 
388
- let localVarHttpContext: HttpContext | undefined = options && options.context;
389
- if (localVarHttpContext === undefined) {
390
- localVarHttpContext = new HttpContext();
391
- }
290
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
392
291
 
393
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
394
- if (localVarTransferCache === undefined) {
395
- localVarTransferCache = true;
396
- }
292
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
397
293
 
398
294
  // to determine the Content-Type header
399
295
  const consumes: string[] = ['application/json'];
@@ -414,12 +310,13 @@ export class PublicStaticDefinedListManagementService {
414
310
  }
415
311
 
416
312
  let localVarPath = `/staticdefinedlists/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
417
- return this.httpClient.request<StaticDefinedList>('post', `${this.configuration.basePath}${localVarPath}`, {
313
+ const { basePath, withCredentials } = this.configuration;
314
+ return this.httpClient.request<StaticDefinedList>('post', `${basePath}${localVarPath}`, {
418
315
  context: localVarHttpContext,
419
316
  body: staticDefinedList,
420
317
  params: localVarQueryParameters,
421
318
  responseType: <any>responseType_,
422
- withCredentials: this.configuration.withCredentials,
319
+ ...(withCredentials ? { withCredentials } : {}),
423
320
  headers: localVarHeaders,
424
321
  observe: observe,
425
322
  transferCache: localVarTransferCache,