@agravity/public 9.3.0 → 10.0.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.
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
@@ -26,6 +26,7 @@ import { DeletedEntities } from '../model/deletedEntities.pub.agravity';
26
26
  // @ts-ignore
27
27
  import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
28
28
  import { AgravityPublicConfiguration } from '../configuration';
29
+ import { BaseService } from '../api.base.service';
29
30
 
30
31
  export interface HttpGetDeletedEntitiesRequestParams {
31
32
  /** The type of the entity (e.g. \'asset\', \'collection_type\', \'collection_type\' */
@@ -51,67 +52,13 @@ export interface HttpTriggerDurableScchTrainingDoneRequestParams {
51
52
  @Injectable({
52
53
  providedIn: 'root'
53
54
  })
54
- export class PublicGeneralManagementService {
55
- protected basePath = 'http://localhost:7072/api';
56
- public defaultHeaders = new HttpHeaders();
57
- public configuration = new AgravityPublicConfiguration();
58
- public encoder: HttpParameterCodec;
59
-
55
+ export class PublicGeneralManagementService extends BaseService {
60
56
  constructor(
61
57
  protected httpClient: HttpClient,
62
58
  @Optional() @Inject(BASE_PATH) basePath: string | string[],
63
- @Optional() configuration: AgravityPublicConfiguration
59
+ @Optional() configuration?: AgravityPublicConfiguration
64
60
  ) {
65
- if (configuration) {
66
- this.configuration = configuration;
67
- }
68
- if (typeof this.configuration.basePath !== 'string') {
69
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
70
- if (firstBasePath != undefined) {
71
- basePath = firstBasePath;
72
- }
73
-
74
- if (typeof basePath !== 'string') {
75
- basePath = this.basePath;
76
- }
77
- this.configuration.basePath = basePath;
78
- }
79
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
80
- }
81
-
82
- // @ts-ignore
83
- private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
84
- if (typeof value === 'object' && value instanceof Date === false) {
85
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
86
- } else {
87
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
88
- }
89
- return httpParams;
90
- }
91
-
92
- private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
93
- if (value == null) {
94
- return httpParams;
95
- }
96
-
97
- if (typeof value === 'object') {
98
- if (Array.isArray(value)) {
99
- (value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
100
- } else if (value instanceof Date) {
101
- if (key != null) {
102
- httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
103
- } else {
104
- throw Error('key may not be null if value is Date');
105
- }
106
- } else {
107
- Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
108
- }
109
- } else if (key != null) {
110
- httpParams = httpParams.append(key, value);
111
- } else {
112
- throw Error('key may not be null if value is not object or array');
113
- }
114
- return httpParams;
61
+ super(basePath, configuration);
115
62
  }
116
63
 
117
64
  /**
@@ -141,25 +88,14 @@ export class PublicGeneralManagementService {
141
88
  ): Observable<any> {
142
89
  let localVarHeaders = this.defaultHeaders;
143
90
 
144
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
145
- if (localVarHttpHeaderAcceptSelected === undefined) {
146
- // to determine the Accept header
147
- const httpHeaderAccepts: string[] = ['application/json'];
148
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
149
- }
91
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
150
92
  if (localVarHttpHeaderAcceptSelected !== undefined) {
151
93
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
152
94
  }
153
95
 
154
- let localVarHttpContext: HttpContext | undefined = options && options.context;
155
- if (localVarHttpContext === undefined) {
156
- localVarHttpContext = new HttpContext();
157
- }
96
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
158
97
 
159
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
160
- if (localVarTransferCache === undefined) {
161
- localVarTransferCache = true;
162
- }
98
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
163
99
 
164
100
  let responseType_: 'text' | 'json' | 'blob' = 'json';
165
101
  if (localVarHttpHeaderAcceptSelected) {
@@ -173,10 +109,11 @@ export class PublicGeneralManagementService {
173
109
  }
174
110
 
175
111
  let localVarPath = `/version`;
176
- return this.httpClient.request<AgravityVersion>('get', `${this.configuration.basePath}${localVarPath}`, {
112
+ const { basePath, withCredentials } = this.configuration;
113
+ return this.httpClient.request<AgravityVersion>('get', `${basePath}${localVarPath}`, {
177
114
  context: localVarHttpContext,
178
115
  responseType: <any>responseType_,
179
- withCredentials: this.configuration.withCredentials,
116
+ ...(withCredentials ? { withCredentials } : {}),
180
117
  headers: localVarHeaders,
181
118
  observe: observe,
182
119
  transferCache: localVarTransferCache,
@@ -220,47 +157,24 @@ export class PublicGeneralManagementService {
220
157
  const portalId = requestParameters?.portalId;
221
158
 
222
159
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
223
- if (entityType !== undefined && entityType !== null) {
224
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>entityType, 'entity_type');
225
- }
226
- if (since !== undefined && since !== null) {
227
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>since, 'since');
228
- }
229
- if (until !== undefined && until !== null) {
230
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>until, 'until');
231
- }
232
- if (portalId !== undefined && portalId !== null) {
233
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
234
- }
160
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>entityType, 'entity_type');
161
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>since, 'since');
162
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>until, 'until');
163
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>portalId, 'portal_id');
235
164
 
236
165
  let localVarHeaders = this.defaultHeaders;
237
166
 
238
- let localVarCredential: string | undefined;
239
167
  // authentication (function_key) required
240
- localVarCredential = this.configuration.lookupCredential('function_key');
241
- if (localVarCredential) {
242
- localVarHeaders = localVarHeaders.set('x-functions-key', localVarCredential);
243
- }
168
+ localVarHeaders = this.configuration.addCredentialToHeaders('function_key', 'x-functions-key', localVarHeaders);
244
169
 
245
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
246
- if (localVarHttpHeaderAcceptSelected === undefined) {
247
- // to determine the Accept header
248
- const httpHeaderAccepts: string[] = ['application/json'];
249
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
250
- }
170
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
251
171
  if (localVarHttpHeaderAcceptSelected !== undefined) {
252
172
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
253
173
  }
254
174
 
255
- let localVarHttpContext: HttpContext | undefined = options && options.context;
256
- if (localVarHttpContext === undefined) {
257
- localVarHttpContext = new HttpContext();
258
- }
175
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
259
176
 
260
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
261
- if (localVarTransferCache === undefined) {
262
- localVarTransferCache = true;
263
- }
177
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
264
178
 
265
179
  let responseType_: 'text' | 'json' | 'blob' = 'json';
266
180
  if (localVarHttpHeaderAcceptSelected) {
@@ -274,11 +188,12 @@ export class PublicGeneralManagementService {
274
188
  }
275
189
 
276
190
  let localVarPath = `/deleted`;
277
- return this.httpClient.request<Array<DeletedEntities>>('get', `${this.configuration.basePath}${localVarPath}`, {
191
+ const { basePath, withCredentials } = this.configuration;
192
+ return this.httpClient.request<Array<DeletedEntities>>('get', `${basePath}${localVarPath}`, {
278
193
  context: localVarHttpContext,
279
194
  params: localVarQueryParameters,
280
195
  responseType: <any>responseType_,
281
- withCredentials: this.configuration.withCredentials,
196
+ ...(withCredentials ? { withCredentials } : {}),
282
197
  headers: localVarHeaders,
283
198
  observe: observe,
284
199
  transferCache: localVarTransferCache,
@@ -293,25 +208,25 @@ export class PublicGeneralManagementService {
293
208
  * @param reportProgress flag to report request and response progress.
294
209
  */
295
210
  public httpTriggerDurableContinue(
296
- requestParameters?: HttpTriggerDurableContinueRequestParams,
211
+ requestParameters: HttpTriggerDurableContinueRequestParams,
297
212
  observe?: 'body',
298
213
  reportProgress?: boolean,
299
214
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
300
215
  ): Observable<AgravityInfoResponse>;
301
216
  public httpTriggerDurableContinue(
302
- requestParameters?: HttpTriggerDurableContinueRequestParams,
217
+ requestParameters: HttpTriggerDurableContinueRequestParams,
303
218
  observe?: 'response',
304
219
  reportProgress?: boolean,
305
220
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
306
221
  ): Observable<HttpResponse<AgravityInfoResponse>>;
307
222
  public httpTriggerDurableContinue(
308
- requestParameters?: HttpTriggerDurableContinueRequestParams,
223
+ requestParameters: HttpTriggerDurableContinueRequestParams,
309
224
  observe?: 'events',
310
225
  reportProgress?: boolean,
311
226
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
312
227
  ): Observable<HttpEvent<AgravityInfoResponse>>;
313
228
  public httpTriggerDurableContinue(
314
- requestParameters?: HttpTriggerDurableContinueRequestParams,
229
+ requestParameters: HttpTriggerDurableContinueRequestParams,
315
230
  observe: any = 'body',
316
231
  reportProgress: boolean = false,
317
232
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -323,25 +238,14 @@ export class PublicGeneralManagementService {
323
238
 
324
239
  let localVarHeaders = this.defaultHeaders;
325
240
 
326
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
327
- if (localVarHttpHeaderAcceptSelected === undefined) {
328
- // to determine the Accept header
329
- const httpHeaderAccepts: string[] = ['application/json'];
330
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
331
- }
241
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
332
242
  if (localVarHttpHeaderAcceptSelected !== undefined) {
333
243
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
334
244
  }
335
245
 
336
- let localVarHttpContext: HttpContext | undefined = options && options.context;
337
- if (localVarHttpContext === undefined) {
338
- localVarHttpContext = new HttpContext();
339
- }
246
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
340
247
 
341
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
342
- if (localVarTransferCache === undefined) {
343
- localVarTransferCache = true;
344
- }
248
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
345
249
 
346
250
  let responseType_: 'text' | 'json' | 'blob' = 'json';
347
251
  if (localVarHttpHeaderAcceptSelected) {
@@ -355,10 +259,11 @@ export class PublicGeneralManagementService {
355
259
  }
356
260
 
357
261
  let localVarPath = `/durable/${this.configuration.encodeParam({ name: 'instanceId', value: instanceId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
358
- return this.httpClient.request<AgravityInfoResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
262
+ const { basePath, withCredentials } = this.configuration;
263
+ return this.httpClient.request<AgravityInfoResponse>('get', `${basePath}${localVarPath}`, {
359
264
  context: localVarHttpContext,
360
265
  responseType: <any>responseType_,
361
- withCredentials: this.configuration.withCredentials,
266
+ ...(withCredentials ? { withCredentials } : {}),
362
267
  headers: localVarHeaders,
363
268
  observe: observe,
364
269
  transferCache: localVarTransferCache,
@@ -373,25 +278,25 @@ export class PublicGeneralManagementService {
373
278
  * @param reportProgress flag to report request and response progress.
374
279
  */
375
280
  public httpTriggerDurableScchTrainingDone(
376
- requestParameters?: HttpTriggerDurableScchTrainingDoneRequestParams,
281
+ requestParameters: HttpTriggerDurableScchTrainingDoneRequestParams,
377
282
  observe?: 'body',
378
283
  reportProgress?: boolean,
379
284
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
380
285
  ): Observable<AgravityInfoResponse>;
381
286
  public httpTriggerDurableScchTrainingDone(
382
- requestParameters?: HttpTriggerDurableScchTrainingDoneRequestParams,
287
+ requestParameters: HttpTriggerDurableScchTrainingDoneRequestParams,
383
288
  observe?: 'response',
384
289
  reportProgress?: boolean,
385
290
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
386
291
  ): Observable<HttpResponse<AgravityInfoResponse>>;
387
292
  public httpTriggerDurableScchTrainingDone(
388
- requestParameters?: HttpTriggerDurableScchTrainingDoneRequestParams,
293
+ requestParameters: HttpTriggerDurableScchTrainingDoneRequestParams,
389
294
  observe?: 'events',
390
295
  reportProgress?: boolean,
391
296
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
392
297
  ): Observable<HttpEvent<AgravityInfoResponse>>;
393
298
  public httpTriggerDurableScchTrainingDone(
394
- requestParameters?: HttpTriggerDurableScchTrainingDoneRequestParams,
299
+ requestParameters: HttpTriggerDurableScchTrainingDoneRequestParams,
395
300
  observe: any = 'body',
396
301
  reportProgress: boolean = false,
397
302
  options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
@@ -403,25 +308,14 @@ export class PublicGeneralManagementService {
403
308
 
404
309
  let localVarHeaders = this.defaultHeaders;
405
310
 
406
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
407
- if (localVarHttpHeaderAcceptSelected === undefined) {
408
- // to determine the Accept header
409
- const httpHeaderAccepts: string[] = ['application/json'];
410
- localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
411
- }
311
+ const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
412
312
  if (localVarHttpHeaderAcceptSelected !== undefined) {
413
313
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
414
314
  }
415
315
 
416
- let localVarHttpContext: HttpContext | undefined = options && options.context;
417
- if (localVarHttpContext === undefined) {
418
- localVarHttpContext = new HttpContext();
419
- }
316
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
420
317
 
421
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
422
- if (localVarTransferCache === undefined) {
423
- localVarTransferCache = true;
424
- }
318
+ const localVarTransferCache: boolean = options?.transferCache ?? true;
425
319
 
426
320
  let responseType_: 'text' | 'json' | 'blob' = 'json';
427
321
  if (localVarHttpHeaderAcceptSelected) {
@@ -435,10 +329,11 @@ export class PublicGeneralManagementService {
435
329
  }
436
330
 
437
331
  let localVarPath = `/durable/scch/${this.configuration.encodeParam({ name: 'instanceId', value: instanceId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
438
- return this.httpClient.request<AgravityInfoResponse>('get', `${this.configuration.basePath}${localVarPath}`, {
332
+ const { basePath, withCredentials } = this.configuration;
333
+ return this.httpClient.request<AgravityInfoResponse>('get', `${basePath}${localVarPath}`, {
439
334
  context: localVarHttpContext,
440
335
  responseType: <any>responseType_,
441
- withCredentials: this.configuration.withCredentials,
336
+ ...(withCredentials ? { withCredentials } : {}),
442
337
  headers: localVarHeaders,
443
338
  observe: observe,
444
339
  transferCache: localVarTransferCache,