@ogcio/building-blocks-sdk 0.2.78 → 0.2.80

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 (28) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/dist/client/clients/profile/citizen.d.ts.map +1 -1
  4. package/dist/client/clients/profile/index.d.ts +428 -98
  5. package/dist/client/clients/profile/index.d.ts.map +1 -1
  6. package/dist/client/clients/profile/index.js +37 -6
  7. package/dist/client/clients/profile/index.js.map +1 -1
  8. package/dist/client/clients/profile/organisation.d.ts.map +1 -1
  9. package/dist/client/clients/profile/schema.d.ts +296 -115
  10. package/dist/client/clients/profile/schema.d.ts.map +1 -1
  11. package/dist/client/clients/upload/index.d.ts +9 -3
  12. package/dist/client/clients/upload/index.d.ts.map +1 -1
  13. package/dist/client/clients/upload/index.js +3 -3
  14. package/dist/client/clients/upload/index.js.map +1 -1
  15. package/dist/client/clients/upload/schema.d.ts +7 -1
  16. package/dist/client/clients/upload/schema.d.ts.map +1 -1
  17. package/dist/client/utils/client-utils.d.ts +1 -1
  18. package/dist/client/utils/client-utils.d.ts.map +1 -1
  19. package/dist/client/utils/client-utils.js +1 -1
  20. package/dist/client/utils/client-utils.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/client/clients/profile/index.ts +56 -9
  23. package/src/client/clients/profile/open-api-definition.json +3182 -2823
  24. package/src/client/clients/profile/schema.ts +296 -115
  25. package/src/client/clients/upload/index.ts +3 -3
  26. package/src/client/clients/upload/open-api-definition.json +251 -206
  27. package/src/client/clients/upload/schema.ts +7 -1
  28. package/src/client/utils/client-utils.ts +2 -2
@@ -275,6 +275,54 @@ export interface paths {
275
275
  patch?: never;
276
276
  trace?: never;
277
277
  };
278
+ "/api/v1/lifecycle-tasks/search": {
279
+ parameters: {
280
+ query?: never;
281
+ header?: never;
282
+ path?: never;
283
+ cookie?: never;
284
+ };
285
+ get?: never;
286
+ put?: never;
287
+ post: operations["getLifecycleTasks"];
288
+ delete?: never;
289
+ options?: never;
290
+ head?: never;
291
+ patch?: never;
292
+ trace?: never;
293
+ };
294
+ "/api/v1/lifecycle-tasks/": {
295
+ parameters: {
296
+ query?: never;
297
+ header?: never;
298
+ path?: never;
299
+ cookie?: never;
300
+ };
301
+ get?: never;
302
+ put?: never;
303
+ post: operations["createLifecycleTask"];
304
+ delete?: never;
305
+ options?: never;
306
+ head?: never;
307
+ patch?: never;
308
+ trace?: never;
309
+ };
310
+ "/api/v1/lifecycle-tasks/{id}/action": {
311
+ parameters: {
312
+ query?: never;
313
+ header?: never;
314
+ path?: never;
315
+ cookie?: never;
316
+ };
317
+ get: operations["getDownload"];
318
+ put?: never;
319
+ post?: never;
320
+ delete?: never;
321
+ options?: never;
322
+ head?: never;
323
+ patch?: never;
324
+ trace?: never;
325
+ };
278
326
  "/api/v1/organisations/profiles/{profileId}": {
279
327
  parameters: {
280
328
  query?: never;
@@ -365,7 +413,7 @@ export interface paths {
365
413
  get: operations["getProfile"];
366
414
  put: operations["putProfile"];
367
415
  post?: never;
368
- delete: operations["deleteProfile"];
416
+ delete?: never;
369
417
  options?: never;
370
418
  head?: never;
371
419
  patch: operations["patchProfile"];
@@ -2220,6 +2268,250 @@ export interface operations {
2220
2268
  };
2221
2269
  };
2222
2270
  };
2271
+ getLifecycleTasks: {
2272
+ parameters: {
2273
+ query?: never;
2274
+ header?: never;
2275
+ path?: never;
2276
+ cookie?: never;
2277
+ };
2278
+ requestBody: {
2279
+ content: {
2280
+ "application/json": {
2281
+ profileId?: string;
2282
+ };
2283
+ };
2284
+ };
2285
+ responses: {
2286
+ /** @description Default Response */
2287
+ 200: {
2288
+ headers: {
2289
+ [name: string]: unknown;
2290
+ };
2291
+ content: {
2292
+ "application/json": {
2293
+ data: {
2294
+ tasks: {
2295
+ /** Format: uuid */
2296
+ id: string;
2297
+ type: "delete_profile" | "export_user_data";
2298
+ status: "pending" | "processing" | "completed" | "failed";
2299
+ metadata: {
2300
+ /** Format: date-time */
2301
+ expiresAt?: string;
2302
+ } | null;
2303
+ }[];
2304
+ };
2305
+ };
2306
+ };
2307
+ };
2308
+ /** @description Default Response */
2309
+ "4XX": {
2310
+ headers: {
2311
+ [name: string]: unknown;
2312
+ };
2313
+ content: {
2314
+ "application/json": {
2315
+ /** @description Code used to categorize the error */
2316
+ code: string;
2317
+ /** @description Description of the error */
2318
+ detail: string;
2319
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2320
+ requestId: string;
2321
+ /** @description Name of the error type */
2322
+ name: string;
2323
+ /** @description List of the validation errors */
2324
+ validation?: {
2325
+ fieldName: string;
2326
+ message: string;
2327
+ }[];
2328
+ validationContext?: string;
2329
+ statusCode: number;
2330
+ };
2331
+ };
2332
+ };
2333
+ /** @description Default Response */
2334
+ "5XX": {
2335
+ headers: {
2336
+ [name: string]: unknown;
2337
+ };
2338
+ content: {
2339
+ "application/json": {
2340
+ /** @description Code used to categorize the error */
2341
+ code: string;
2342
+ /** @description Description of the error */
2343
+ detail: string;
2344
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2345
+ requestId: string;
2346
+ /** @description Name of the error type */
2347
+ name: string;
2348
+ /** @description List of the validation errors */
2349
+ validation?: {
2350
+ fieldName: string;
2351
+ message: string;
2352
+ }[];
2353
+ validationContext?: string;
2354
+ statusCode: number;
2355
+ };
2356
+ };
2357
+ };
2358
+ };
2359
+ };
2360
+ createLifecycleTask: {
2361
+ parameters: {
2362
+ query?: never;
2363
+ header?: never;
2364
+ path?: never;
2365
+ cookie?: never;
2366
+ };
2367
+ requestBody: {
2368
+ content: {
2369
+ "application/json": {
2370
+ type: "delete_profile" | "export_user_data";
2371
+ profileId: string;
2372
+ };
2373
+ };
2374
+ };
2375
+ responses: {
2376
+ /** @description Default Response */
2377
+ 202: {
2378
+ headers: {
2379
+ [name: string]: unknown;
2380
+ };
2381
+ content: {
2382
+ "application/json": {
2383
+ data: {
2384
+ /** Format: uuid */
2385
+ id: string;
2386
+ };
2387
+ };
2388
+ };
2389
+ };
2390
+ /** @description Default Response */
2391
+ "4XX": {
2392
+ headers: {
2393
+ [name: string]: unknown;
2394
+ };
2395
+ content: {
2396
+ "application/json": {
2397
+ /** @description Code used to categorize the error */
2398
+ code: string;
2399
+ /** @description Description of the error */
2400
+ detail: string;
2401
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2402
+ requestId: string;
2403
+ /** @description Name of the error type */
2404
+ name: string;
2405
+ /** @description List of the validation errors */
2406
+ validation?: {
2407
+ fieldName: string;
2408
+ message: string;
2409
+ }[];
2410
+ validationContext?: string;
2411
+ statusCode: number;
2412
+ };
2413
+ };
2414
+ };
2415
+ /** @description Default Response */
2416
+ "5XX": {
2417
+ headers: {
2418
+ [name: string]: unknown;
2419
+ };
2420
+ content: {
2421
+ "application/json": {
2422
+ /** @description Code used to categorize the error */
2423
+ code: string;
2424
+ /** @description Description of the error */
2425
+ detail: string;
2426
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2427
+ requestId: string;
2428
+ /** @description Name of the error type */
2429
+ name: string;
2430
+ /** @description List of the validation errors */
2431
+ validation?: {
2432
+ fieldName: string;
2433
+ message: string;
2434
+ }[];
2435
+ validationContext?: string;
2436
+ statusCode: number;
2437
+ };
2438
+ };
2439
+ };
2440
+ };
2441
+ };
2442
+ getDownload: {
2443
+ parameters: {
2444
+ query: {
2445
+ profileId: string;
2446
+ q: string;
2447
+ };
2448
+ header?: never;
2449
+ path: {
2450
+ id: string;
2451
+ };
2452
+ cookie?: never;
2453
+ };
2454
+ requestBody?: never;
2455
+ responses: {
2456
+ /** @description Default Response */
2457
+ 302: {
2458
+ headers: {
2459
+ [name: string]: unknown;
2460
+ };
2461
+ content?: never;
2462
+ };
2463
+ /** @description Default Response */
2464
+ "4XX": {
2465
+ headers: {
2466
+ [name: string]: unknown;
2467
+ };
2468
+ content: {
2469
+ "application/json": {
2470
+ /** @description Code used to categorize the error */
2471
+ code: string;
2472
+ /** @description Description of the error */
2473
+ detail: string;
2474
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2475
+ requestId: string;
2476
+ /** @description Name of the error type */
2477
+ name: string;
2478
+ /** @description List of the validation errors */
2479
+ validation?: {
2480
+ fieldName: string;
2481
+ message: string;
2482
+ }[];
2483
+ validationContext?: string;
2484
+ statusCode: number;
2485
+ };
2486
+ };
2487
+ };
2488
+ /** @description Default Response */
2489
+ "5XX": {
2490
+ headers: {
2491
+ [name: string]: unknown;
2492
+ };
2493
+ content: {
2494
+ "application/json": {
2495
+ /** @description Code used to categorize the error */
2496
+ code: string;
2497
+ /** @description Description of the error */
2498
+ detail: string;
2499
+ /** @description Unique request id. This one will be used to troubleshoot the problems */
2500
+ requestId: string;
2501
+ /** @description Name of the error type */
2502
+ name: string;
2503
+ /** @description List of the validation errors */
2504
+ validation?: {
2505
+ fieldName: string;
2506
+ message: string;
2507
+ }[];
2508
+ validationContext?: string;
2509
+ statusCode: number;
2510
+ };
2511
+ };
2512
+ };
2513
+ };
2514
+ };
2223
2515
  adminProfilesPatch: {
2224
2516
  parameters: {
2225
2517
  query?: never;
@@ -3495,117 +3787,6 @@ export interface operations {
3495
3787
  };
3496
3788
  };
3497
3789
  };
3498
- deleteProfile: {
3499
- parameters: {
3500
- query?: never;
3501
- header?: never;
3502
- path: {
3503
- /** @description ID of the profile to delete */
3504
- profileId: string;
3505
- };
3506
- cookie?: never;
3507
- };
3508
- requestBody?: never;
3509
- responses: {
3510
- /** @description Default Response */
3511
- 200: {
3512
- headers: {
3513
- [name: string]: unknown;
3514
- };
3515
- content: {
3516
- "application/json": {
3517
- data: {
3518
- /** @description ID of the created task */
3519
- taskId: string;
3520
- };
3521
- metadata?: {
3522
- /** @description Object containing the links to the related endpoints */
3523
- links?: {
3524
- self: {
3525
- /** @description URL pointing to the request itself */
3526
- href?: string;
3527
- };
3528
- next?: {
3529
- /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
3530
- href?: string;
3531
- };
3532
- prev?: {
3533
- /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
3534
- href?: string;
3535
- };
3536
- first: {
3537
- /** @description URL pointing to the first page of results in a paginated response */
3538
- href?: string;
3539
- };
3540
- last: {
3541
- /** @description URL pointing to the first page of results in a paginated response */
3542
- href?: string;
3543
- };
3544
- /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
3545
- pages: {
3546
- [key: string]: {
3547
- href?: string;
3548
- };
3549
- };
3550
- };
3551
- /** @description Number representing the total number of available items */
3552
- totalCount?: number;
3553
- };
3554
- };
3555
- };
3556
- };
3557
- /** @description Default Response */
3558
- "4XX": {
3559
- headers: {
3560
- [name: string]: unknown;
3561
- };
3562
- content: {
3563
- "application/json": {
3564
- /** @description Code used to categorize the error */
3565
- code: string;
3566
- /** @description Description of the error */
3567
- detail: string;
3568
- /** @description Unique request id. This one will be used to troubleshoot the problems */
3569
- requestId: string;
3570
- /** @description Name of the error type */
3571
- name: string;
3572
- /** @description List of the validation errors */
3573
- validation?: {
3574
- fieldName: string;
3575
- message: string;
3576
- }[];
3577
- validationContext?: string;
3578
- statusCode: number;
3579
- };
3580
- };
3581
- };
3582
- /** @description Default Response */
3583
- "5XX": {
3584
- headers: {
3585
- [name: string]: unknown;
3586
- };
3587
- content: {
3588
- "application/json": {
3589
- /** @description Code used to categorize the error */
3590
- code: string;
3591
- /** @description Description of the error */
3592
- detail: string;
3593
- /** @description Unique request id. This one will be used to troubleshoot the problems */
3594
- requestId: string;
3595
- /** @description Name of the error type */
3596
- name: string;
3597
- /** @description List of the validation errors */
3598
- validation?: {
3599
- fieldName: string;
3600
- message: string;
3601
- }[];
3602
- validationContext?: string;
3603
- statusCode: number;
3604
- };
3605
- };
3606
- };
3607
- };
3608
- };
3609
3790
  patchProfile: {
3610
3791
  parameters: {
3611
3792
  query?: {
@@ -3619,7 +3800,7 @@ export interface operations {
3619
3800
  };
3620
3801
  cookie?: never;
3621
3802
  };
3622
- requestBody?: {
3803
+ requestBody: {
3623
3804
  content: {
3624
3805
  "application/json": {
3625
3806
  publicName?: string;
@@ -3799,7 +3980,7 @@ export interface operations {
3799
3980
  path?: never;
3800
3981
  cookie?: never;
3801
3982
  };
3802
- requestBody?: {
3983
+ requestBody: {
3803
3984
  content: {
3804
3985
  "application/json": {
3805
3986
  profiles?: {
@@ -4085,7 +4266,7 @@ export interface operations {
4085
4266
  path?: never;
4086
4267
  cookie?: never;
4087
4268
  };
4088
- requestBody?: {
4269
+ requestBody: {
4089
4270
  content: {
4090
4271
  "application/json": {
4091
4272
  profiles?: {
@@ -114,12 +114,12 @@ export class Upload extends BaseClient<paths> {
114
114
  );
115
115
  }
116
116
 
117
- shareFile(fileId: string, userId: string) {
117
+ shareFile(fileId: string, ...userIds: string[]) {
118
118
  throwIfEmpty(fileId);
119
- throwIfEmpty(userId);
119
+ throwIfEmpty(userIds);
120
120
  return this.client
121
121
  .POST("/api/v1/permissions/", {
122
- body: { fileId, userId },
122
+ body: { fileId, userIds },
123
123
  })
124
124
  .then(
125
125
  (response) => formatResponse(response, this.serviceName, this.logger),