@ogcio/building-blocks-sdk 0.1.17 → 0.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.
Files changed (37) hide show
  1. package/.gitleaksignore +2 -0
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +18 -0
  4. package/dist/client/clients/featureFlags/schema.d.ts +205 -63
  5. package/dist/client/clients/featureFlags/schema.d.ts.map +1 -1
  6. package/dist/client/clients/messaging/index.d.ts +2 -1835
  7. package/dist/client/clients/messaging/index.d.ts.map +1 -1
  8. package/dist/client/clients/messaging/index.js +3 -179
  9. package/dist/client/clients/messaging/index.js.map +1 -1
  10. package/dist/client/clients/messaging/schema.d.ts +2763 -2750
  11. package/dist/client/clients/messaging/schema.d.ts.map +1 -1
  12. package/dist/client/clients/payments/index.d.ts +240 -1
  13. package/dist/client/clients/payments/index.d.ts.map +1 -1
  14. package/dist/client/clients/payments/index.js +23 -0
  15. package/dist/client/clients/payments/index.js.map +1 -1
  16. package/dist/client/clients/payments/schema.d.ts +256 -1
  17. package/dist/client/clients/payments/schema.d.ts.map +1 -1
  18. package/dist/client/clients/profile/index.d.ts +852 -440
  19. package/dist/client/clients/profile/index.d.ts.map +1 -1
  20. package/dist/client/clients/profile/index.js +88 -54
  21. package/dist/client/clients/profile/index.js.map +1 -1
  22. package/dist/client/clients/profile/schema.d.ts +1237 -1114
  23. package/dist/client/clients/profile/schema.d.ts.map +1 -1
  24. package/dist/clients-configurations/clients-configuration.json +5 -4
  25. package/package.json +1 -1
  26. package/src/client/clients/featureFlags/open-api-definition.json +184 -95
  27. package/src/client/clients/featureFlags/schema.ts +205 -63
  28. package/src/client/clients/messaging/index.ts +2 -278
  29. package/src/client/clients/messaging/open-api-definition.json +30 -18
  30. package/src/client/clients/messaging/schema.ts +2763 -2750
  31. package/src/client/clients/payments/index.ts +37 -0
  32. package/src/client/clients/payments/open-api-definition.json +773 -185
  33. package/src/client/clients/payments/schema.ts +256 -1
  34. package/src/client/clients/profile/index.ts +140 -84
  35. package/src/client/clients/profile/open-api-definition.json +1825 -1323
  36. package/src/client/clients/profile/schema.ts +1237 -1114
  37. package/src/clients-configurations/clients-configuration.json +5 -4
@@ -4,11 +4,18 @@ import type { paths } from "./schema.js";
4
4
  export declare class Profile extends BaseClient<paths> {
5
5
  protected client: ReturnType<typeof createClient<paths>>;
6
6
  protected serviceName: "profile";
7
- getAddresses(): Promise<import("../../utils/client-utils.js").DataResponseValue<{
7
+ /**
8
+ * @deprecated Use getProfile() instead of getUser()
9
+ */
10
+ getUser(profileId: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
8
11
  parameters: {
9
- query?: never;
12
+ query?: {
13
+ organizationId?: string;
14
+ };
10
15
  header?: never;
11
- path?: never;
16
+ path: {
17
+ profileId: string;
18
+ };
12
19
  cookie?: never;
13
20
  };
14
21
  requestBody?: never;
@@ -20,18 +27,26 @@ export declare class Profile extends BaseClient<paths> {
20
27
  content: {
21
28
  "application/json": {
22
29
  data: {
23
- addressId: string;
24
- addressLine1: string;
25
- addressLine2: string;
26
- town: string;
27
- county: string;
28
- eirecode: string;
29
- updatedAt: string;
30
- moveInDate?: string;
31
- moveOutDate?: string;
32
- isPrimary?: boolean;
33
- ownershipStatus?: string;
34
- }[];
30
+ id: string;
31
+ publicName: string;
32
+ email: string;
33
+ primaryUserId: string;
34
+ safeLevel?: number;
35
+ preferredLanguage: "en" | "ga";
36
+ createdAt?: string;
37
+ updatedAt?: string;
38
+ details?: {
39
+ email: string;
40
+ firstName: string;
41
+ lastName: string;
42
+ city?: string;
43
+ address?: string;
44
+ phone?: string;
45
+ dateOfBirth?: string;
46
+ ppsn?: string;
47
+ preferredLanguage: "en" | "ga";
48
+ };
49
+ };
35
50
  metadata?: {
36
51
  links?: {
37
52
  self: {
@@ -60,7 +75,25 @@ export declare class Profile extends BaseClient<paths> {
60
75
  };
61
76
  };
62
77
  };
63
- 500: {
78
+ "4XX": {
79
+ headers: {
80
+ [name: string]: unknown;
81
+ };
82
+ content: {
83
+ "application/json": {
84
+ code: string;
85
+ detail: string;
86
+ requestId: string;
87
+ name: string;
88
+ validation?: {
89
+ fieldName: string;
90
+ message: string;
91
+ }[];
92
+ validationContext?: string;
93
+ };
94
+ };
95
+ };
96
+ "5XX": {
64
97
  headers: {
65
98
  [name: string]: unknown;
66
99
  };
@@ -70,17 +103,31 @@ export declare class Profile extends BaseClient<paths> {
70
103
  detail: string;
71
104
  requestId: string;
72
105
  name: string;
73
- validation?: unknown;
106
+ validation?: {
107
+ fieldName: string;
108
+ message: string;
109
+ }[];
74
110
  validationContext?: string;
75
111
  };
76
112
  };
77
113
  };
78
114
  };
79
- }, import("openapi-fetch").FetchOptions<{
115
+ }, {
116
+ params: {
117
+ path: {
118
+ profileId: string;
119
+ };
120
+ };
121
+ }>>;
122
+ getProfile(profileId: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
80
123
  parameters: {
81
- query?: never;
124
+ query?: {
125
+ organizationId?: string;
126
+ };
82
127
  header?: never;
83
- path?: never;
128
+ path: {
129
+ profileId: string;
130
+ };
84
131
  cookie?: never;
85
132
  };
86
133
  requestBody?: never;
@@ -92,18 +139,26 @@ export declare class Profile extends BaseClient<paths> {
92
139
  content: {
93
140
  "application/json": {
94
141
  data: {
95
- addressId: string;
96
- addressLine1: string;
97
- addressLine2: string;
98
- town: string;
99
- county: string;
100
- eirecode: string;
101
- updatedAt: string;
102
- moveInDate?: string;
103
- moveOutDate?: string;
104
- isPrimary?: boolean;
105
- ownershipStatus?: string;
106
- }[];
142
+ id: string;
143
+ publicName: string;
144
+ email: string;
145
+ primaryUserId: string;
146
+ safeLevel?: number;
147
+ preferredLanguage: "en" | "ga";
148
+ createdAt?: string;
149
+ updatedAt?: string;
150
+ details?: {
151
+ email: string;
152
+ firstName: string;
153
+ lastName: string;
154
+ city?: string;
155
+ address?: string;
156
+ phone?: string;
157
+ dateOfBirth?: string;
158
+ ppsn?: string;
159
+ preferredLanguage: "en" | "ga";
160
+ };
161
+ };
107
162
  metadata?: {
108
163
  links?: {
109
164
  self: {
@@ -132,7 +187,25 @@ export declare class Profile extends BaseClient<paths> {
132
187
  };
133
188
  };
134
189
  };
135
- 500: {
190
+ "4XX": {
191
+ headers: {
192
+ [name: string]: unknown;
193
+ };
194
+ content: {
195
+ "application/json": {
196
+ code: string;
197
+ detail: string;
198
+ requestId: string;
199
+ name: string;
200
+ validation?: {
201
+ fieldName: string;
202
+ message: string;
203
+ }[];
204
+ validationContext?: string;
205
+ };
206
+ };
207
+ };
208
+ "5XX": {
136
209
  headers: {
137
210
  [name: string]: unknown;
138
211
  };
@@ -142,23 +215,78 @@ export declare class Profile extends BaseClient<paths> {
142
215
  detail: string;
143
216
  requestId: string;
144
217
  name: string;
145
- validation?: unknown;
218
+ validation?: {
219
+ fieldName: string;
220
+ message: string;
221
+ }[];
146
222
  validationContext?: string;
147
223
  };
148
224
  };
149
225
  };
150
226
  };
151
- }> | undefined>>;
152
- getAddress(addressId: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
227
+ }, {
228
+ params: {
229
+ path: {
230
+ profileId: string;
231
+ };
232
+ };
233
+ }>>;
234
+ /**
235
+ * @deprecated Use getProfile() instead of getUser()
236
+ */
237
+ createUser(data: NonNullable<paths["/api/v1/profiles/import-profiles"]["post"]["requestBody"]>["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
153
238
  parameters: {
154
239
  query?: never;
155
240
  header?: never;
156
- path: {
157
- addressId: string;
158
- };
241
+ path?: never;
159
242
  cookie?: never;
160
243
  };
161
- requestBody?: never;
244
+ requestBody?: {
245
+ content: {
246
+ "application/json": {
247
+ profiles?: {
248
+ email: string;
249
+ firstName: string;
250
+ lastName: string;
251
+ city?: string;
252
+ address?: string;
253
+ phone?: string;
254
+ dateOfBirth?: string;
255
+ ppsn?: string;
256
+ preferredLanguage?: "en" | "ga";
257
+ }[];
258
+ file?: unknown;
259
+ };
260
+ "multipart/form-data": {
261
+ profiles?: {
262
+ email: string;
263
+ firstName: string;
264
+ lastName: string;
265
+ city?: string;
266
+ address?: string;
267
+ phone?: string;
268
+ dateOfBirth?: string;
269
+ ppsn?: string;
270
+ preferredLanguage?: "en" | "ga";
271
+ }[];
272
+ file?: unknown;
273
+ };
274
+ "text/csv": {
275
+ profiles?: {
276
+ email: string;
277
+ firstName: string;
278
+ lastName: string;
279
+ city?: string;
280
+ address?: string;
281
+ phone?: string;
282
+ dateOfBirth?: string;
283
+ ppsn?: string;
284
+ preferredLanguage?: "en" | "ga";
285
+ }[];
286
+ file?: unknown;
287
+ };
288
+ };
289
+ };
162
290
  responses: {
163
291
  200: {
164
292
  headers: {
@@ -166,48 +294,12 @@ export declare class Profile extends BaseClient<paths> {
166
294
  };
167
295
  content: {
168
296
  "application/json": {
169
- data: {
170
- addressId: string;
171
- addressLine1: string;
172
- addressLine2: string;
173
- town: string;
174
- county: string;
175
- eirecode: string;
176
- updatedAt: string;
177
- moveInDate?: string;
178
- moveOutDate?: string;
179
- isPrimary?: boolean;
180
- ownershipStatus?: string;
181
- };
182
- metadata?: {
183
- links?: {
184
- self: {
185
- href?: string;
186
- };
187
- next?: {
188
- href?: string;
189
- };
190
- prev?: {
191
- href?: string;
192
- };
193
- first: {
194
- href?: string;
195
- };
196
- last: {
197
- href?: string;
198
- };
199
- pages: {
200
- [key: string]: {
201
- href?: string;
202
- };
203
- };
204
- };
205
- totalCount?: number;
206
- };
297
+ status: string;
298
+ jobId: string;
207
299
  };
208
300
  };
209
301
  };
210
- 404: {
302
+ "4XX": {
211
303
  headers: {
212
304
  [name: string]: unknown;
213
305
  };
@@ -217,12 +309,15 @@ export declare class Profile extends BaseClient<paths> {
217
309
  detail: string;
218
310
  requestId: string;
219
311
  name: string;
220
- validation?: unknown;
312
+ validation?: {
313
+ fieldName: string;
314
+ message: string;
315
+ }[];
221
316
  validationContext?: string;
222
317
  };
223
318
  };
224
319
  };
225
- 500: {
320
+ "5XX": {
226
321
  headers: {
227
322
  [name: string]: unknown;
228
323
  };
@@ -232,36 +327,81 @@ export declare class Profile extends BaseClient<paths> {
232
327
  detail: string;
233
328
  requestId: string;
234
329
  name: string;
235
- validation?: unknown;
330
+ validation?: {
331
+ fieldName: string;
332
+ message: string;
333
+ }[];
236
334
  validationContext?: string;
237
335
  };
238
336
  };
239
337
  };
240
338
  };
241
339
  }, {
242
- params: {
243
- path: {
244
- addressId: string;
245
- };
340
+ body: {
341
+ profiles?: {
342
+ email: string;
343
+ firstName: string;
344
+ lastName: string;
345
+ city?: string;
346
+ address?: string;
347
+ phone?: string;
348
+ dateOfBirth?: string;
349
+ ppsn?: string;
350
+ preferredLanguage?: "en" | "ga";
351
+ }[];
352
+ file?: unknown;
246
353
  };
247
354
  }>>;
248
- createAddress(data: paths["/api/v1/addresses/"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
355
+ createProfile(data: NonNullable<paths["/api/v1/profiles/import-profiles"]["post"]["requestBody"]>["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
249
356
  parameters: {
250
357
  query?: never;
251
358
  header?: never;
252
359
  path?: never;
253
360
  cookie?: never;
254
361
  };
255
- requestBody: {
362
+ requestBody?: {
256
363
  content: {
257
364
  "application/json": {
258
- addressLine1: string;
259
- addressLine2?: string;
260
- town: string;
261
- county: string;
262
- eirecode: string;
263
- moveInDate?: string;
264
- moveOutDate?: string;
365
+ profiles?: {
366
+ email: string;
367
+ firstName: string;
368
+ lastName: string;
369
+ city?: string;
370
+ address?: string;
371
+ phone?: string;
372
+ dateOfBirth?: string;
373
+ ppsn?: string;
374
+ preferredLanguage?: "en" | "ga";
375
+ }[];
376
+ file?: unknown;
377
+ };
378
+ "multipart/form-data": {
379
+ profiles?: {
380
+ email: string;
381
+ firstName: string;
382
+ lastName: string;
383
+ city?: string;
384
+ address?: string;
385
+ phone?: string;
386
+ dateOfBirth?: string;
387
+ ppsn?: string;
388
+ preferredLanguage?: "en" | "ga";
389
+ }[];
390
+ file?: unknown;
391
+ };
392
+ "text/csv": {
393
+ profiles?: {
394
+ email: string;
395
+ firstName: string;
396
+ lastName: string;
397
+ city?: string;
398
+ address?: string;
399
+ phone?: string;
400
+ dateOfBirth?: string;
401
+ ppsn?: string;
402
+ preferredLanguage?: "en" | "ga";
403
+ }[];
404
+ file?: unknown;
265
405
  };
266
406
  };
267
407
  };
@@ -272,38 +412,12 @@ export declare class Profile extends BaseClient<paths> {
272
412
  };
273
413
  content: {
274
414
  "application/json": {
275
- data: {
276
- id: string;
277
- };
278
- metadata?: {
279
- links?: {
280
- self: {
281
- href?: string;
282
- };
283
- next?: {
284
- href?: string;
285
- };
286
- prev?: {
287
- href?: string;
288
- };
289
- first: {
290
- href?: string;
291
- };
292
- last: {
293
- href?: string;
294
- };
295
- pages: {
296
- [key: string]: {
297
- href?: string;
298
- };
299
- };
300
- };
301
- totalCount?: number;
302
- };
415
+ status: string;
416
+ jobId: string;
303
417
  };
304
418
  };
305
419
  };
306
- 500: {
420
+ "4XX": {
307
421
  headers: {
308
422
  [name: string]: unknown;
309
423
  };
@@ -313,7 +427,28 @@ export declare class Profile extends BaseClient<paths> {
313
427
  detail: string;
314
428
  requestId: string;
315
429
  name: string;
316
- validation?: unknown;
430
+ validation?: {
431
+ fieldName: string;
432
+ message: string;
433
+ }[];
434
+ validationContext?: string;
435
+ };
436
+ };
437
+ };
438
+ "5XX": {
439
+ headers: {
440
+ [name: string]: unknown;
441
+ };
442
+ content: {
443
+ "application/json": {
444
+ code: string;
445
+ detail: string;
446
+ requestId: string;
447
+ name: string;
448
+ validation?: {
449
+ fieldName: string;
450
+ message: string;
451
+ }[];
317
452
  validationContext?: string;
318
453
  };
319
454
  };
@@ -321,29 +456,46 @@ export declare class Profile extends BaseClient<paths> {
321
456
  };
322
457
  }, {
323
458
  body: {
324
- addressLine1: string;
325
- addressLine2?: string;
326
- town: string;
327
- county: string;
328
- eirecode: string;
329
- moveInDate?: string;
330
- moveOutDate?: string;
459
+ profiles?: {
460
+ email: string;
461
+ firstName: string;
462
+ lastName: string;
463
+ city?: string;
464
+ address?: string;
465
+ phone?: string;
466
+ dateOfBirth?: string;
467
+ ppsn?: string;
468
+ preferredLanguage?: "en" | "ga";
469
+ }[];
470
+ file?: unknown;
331
471
  };
332
472
  }>>;
333
- patchAddress(addressId: string, data: NonNullable<paths["/api/v1/addresses/{addressId}"]["patch"]["requestBody"]>["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
473
+ /**
474
+ * @deprecated Use getProfile() instead of getUser()
475
+ */
476
+ updateUser(profileId: string, data: NonNullable<paths["/api/v1/profiles/{profileId}"]["put"]["requestBody"]>["content"]["application/json"], organizationId?: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
334
477
  parameters: {
335
- query?: never;
478
+ query?: {
479
+ organizationId?: string;
480
+ };
336
481
  header?: never;
337
482
  path: {
338
- addressId: string;
483
+ profileId: string;
339
484
  };
340
485
  cookie?: never;
341
486
  };
342
487
  requestBody?: {
343
488
  content: {
344
489
  "application/json": {
345
- isPrimary?: boolean;
346
- ownershipStatus?: string;
490
+ publicName?: string;
491
+ email?: string;
492
+ phone?: string;
493
+ address?: string;
494
+ city?: string;
495
+ firstName?: string;
496
+ lastName?: string;
497
+ dateOfBirth?: string;
498
+ preferredLanguage?: "en" | "ga";
347
499
  };
348
500
  };
349
501
  };
@@ -356,6 +508,24 @@ export declare class Profile extends BaseClient<paths> {
356
508
  "application/json": {
357
509
  data: {
358
510
  id: string;
511
+ publicName: string;
512
+ email: string;
513
+ primaryUserId: string;
514
+ safeLevel?: number;
515
+ preferredLanguage: "en" | "ga";
516
+ createdAt?: string;
517
+ updatedAt?: string;
518
+ details?: {
519
+ email: string;
520
+ firstName: string;
521
+ lastName: string;
522
+ city?: string;
523
+ address?: string;
524
+ phone?: string;
525
+ dateOfBirth?: string;
526
+ ppsn?: string;
527
+ preferredLanguage: "en" | "ga";
528
+ };
359
529
  };
360
530
  metadata?: {
361
531
  links?: {
@@ -385,7 +555,7 @@ export declare class Profile extends BaseClient<paths> {
385
555
  };
386
556
  };
387
557
  };
388
- 404: {
558
+ "4XX": {
389
559
  headers: {
390
560
  [name: string]: unknown;
391
561
  };
@@ -395,12 +565,15 @@ export declare class Profile extends BaseClient<paths> {
395
565
  detail: string;
396
566
  requestId: string;
397
567
  name: string;
398
- validation?: unknown;
568
+ validation?: {
569
+ fieldName: string;
570
+ message: string;
571
+ }[];
399
572
  validationContext?: string;
400
573
  };
401
574
  };
402
575
  };
403
- 500: {
576
+ "5XX": {
404
577
  headers: {
405
578
  [name: string]: unknown;
406
579
  };
@@ -410,7 +583,10 @@ export declare class Profile extends BaseClient<paths> {
410
583
  detail: string;
411
584
  requestId: string;
412
585
  name: string;
413
- validation?: unknown;
586
+ validation?: {
587
+ fieldName: string;
588
+ message: string;
589
+ }[];
414
590
  validationContext?: string;
415
591
  };
416
592
  };
@@ -419,35 +595,47 @@ export declare class Profile extends BaseClient<paths> {
419
595
  }, {
420
596
  params: {
421
597
  path: {
422
- addressId: string;
598
+ profileId: string;
599
+ };
600
+ query: {
601
+ organizationId: string | undefined;
423
602
  };
424
603
  };
425
604
  body: {
426
- isPrimary?: boolean;
427
- ownershipStatus?: string;
605
+ publicName?: string;
606
+ email?: string;
607
+ phone?: string;
608
+ address?: string;
609
+ city?: string;
610
+ firstName?: string;
611
+ lastName?: string;
612
+ dateOfBirth?: string;
613
+ preferredLanguage?: "en" | "ga";
428
614
  };
429
- }> | undefined>;
430
- updateAddress(addressId: string, data: paths["/api/v1/addresses/{addressId}"]["put"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
615
+ }>>;
616
+ updateProfile(profileId: string, data: NonNullable<paths["/api/v1/profiles/{profileId}"]["put"]["requestBody"]>["content"]["application/json"], organizationId?: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
431
617
  parameters: {
432
- query?: never;
618
+ query?: {
619
+ organizationId?: string;
620
+ };
433
621
  header?: never;
434
622
  path: {
435
- addressId: string;
623
+ profileId: string;
436
624
  };
437
625
  cookie?: never;
438
626
  };
439
- requestBody: {
627
+ requestBody?: {
440
628
  content: {
441
629
  "application/json": {
442
- addressLine1: string;
443
- addressLine2?: string;
444
- town: string;
445
- county: string;
446
- eirecode: string;
447
- moveInDate?: string;
448
- moveOutDate?: string;
449
- isPrimary: boolean;
450
- ownershipStatus: string;
630
+ publicName?: string;
631
+ email?: string;
632
+ phone?: string;
633
+ address?: string;
634
+ city?: string;
635
+ firstName?: string;
636
+ lastName?: string;
637
+ dateOfBirth?: string;
638
+ preferredLanguage?: "en" | "ga";
451
639
  };
452
640
  };
453
641
  };
@@ -460,6 +648,24 @@ export declare class Profile extends BaseClient<paths> {
460
648
  "application/json": {
461
649
  data: {
462
650
  id: string;
651
+ publicName: string;
652
+ email: string;
653
+ primaryUserId: string;
654
+ safeLevel?: number;
655
+ preferredLanguage: "en" | "ga";
656
+ createdAt?: string;
657
+ updatedAt?: string;
658
+ details?: {
659
+ email: string;
660
+ firstName: string;
661
+ lastName: string;
662
+ city?: string;
663
+ address?: string;
664
+ phone?: string;
665
+ dateOfBirth?: string;
666
+ ppsn?: string;
667
+ preferredLanguage: "en" | "ga";
668
+ };
463
669
  };
464
670
  metadata?: {
465
671
  links?: {
@@ -489,7 +695,7 @@ export declare class Profile extends BaseClient<paths> {
489
695
  };
490
696
  };
491
697
  };
492
- 404: {
698
+ "4XX": {
493
699
  headers: {
494
700
  [name: string]: unknown;
495
701
  };
@@ -499,12 +705,15 @@ export declare class Profile extends BaseClient<paths> {
499
705
  detail: string;
500
706
  requestId: string;
501
707
  name: string;
502
- validation?: unknown;
708
+ validation?: {
709
+ fieldName: string;
710
+ message: string;
711
+ }[];
503
712
  validationContext?: string;
504
713
  };
505
714
  };
506
715
  };
507
- 500: {
716
+ "5XX": {
508
717
  headers: {
509
718
  [name: string]: unknown;
510
719
  };
@@ -514,7 +723,10 @@ export declare class Profile extends BaseClient<paths> {
514
723
  detail: string;
515
724
  requestId: string;
516
725
  name: string;
517
- validation?: unknown;
726
+ validation?: {
727
+ fieldName: string;
728
+ message: string;
729
+ }[];
518
730
  validationContext?: string;
519
731
  };
520
732
  };
@@ -523,31 +735,53 @@ export declare class Profile extends BaseClient<paths> {
523
735
  }, {
524
736
  params: {
525
737
  path: {
526
- addressId: string;
738
+ profileId: string;
739
+ };
740
+ query: {
741
+ organizationId: string | undefined;
527
742
  };
528
743
  };
529
744
  body: {
530
- addressLine1: string;
531
- addressLine2?: string;
532
- town: string;
533
- county: string;
534
- eirecode: string;
535
- moveInDate?: string;
536
- moveOutDate?: string;
537
- isPrimary: boolean;
538
- ownershipStatus: string;
745
+ publicName?: string;
746
+ email?: string;
747
+ phone?: string;
748
+ address?: string;
749
+ city?: string;
750
+ firstName?: string;
751
+ lastName?: string;
752
+ dateOfBirth?: string;
753
+ preferredLanguage?: "en" | "ga";
539
754
  };
540
755
  }>>;
541
- deleteAddress(addressId: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
756
+ /**
757
+ * @deprecated Use getProfile() instead of getUser()
758
+ */
759
+ patchUser(profileId: string, data: NonNullable<paths["/api/v1/profiles/{profileId}"]["put"]["requestBody"]>["content"]["application/json"], organizationId?: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
542
760
  parameters: {
543
- query?: never;
761
+ query?: {
762
+ organizationId?: string;
763
+ };
544
764
  header?: never;
545
765
  path: {
546
- addressId: string;
766
+ profileId: string;
547
767
  };
548
768
  cookie?: never;
549
769
  };
550
- requestBody?: never;
770
+ requestBody?: {
771
+ content: {
772
+ "application/json": {
773
+ publicName?: string;
774
+ email?: string;
775
+ phone?: string;
776
+ address?: string;
777
+ city?: string;
778
+ firstName?: string;
779
+ lastName?: string;
780
+ dateOfBirth?: string;
781
+ preferredLanguage?: "en" | "ga";
782
+ };
783
+ };
784
+ };
551
785
  responses: {
552
786
  200: {
553
787
  headers: {
@@ -557,6 +791,24 @@ export declare class Profile extends BaseClient<paths> {
557
791
  "application/json": {
558
792
  data: {
559
793
  id: string;
794
+ publicName: string;
795
+ email: string;
796
+ primaryUserId: string;
797
+ safeLevel?: number;
798
+ preferredLanguage: "en" | "ga";
799
+ createdAt?: string;
800
+ updatedAt?: string;
801
+ details?: {
802
+ email: string;
803
+ firstName: string;
804
+ lastName: string;
805
+ city?: string;
806
+ address?: string;
807
+ phone?: string;
808
+ dateOfBirth?: string;
809
+ ppsn?: string;
810
+ preferredLanguage: "en" | "ga";
811
+ };
560
812
  };
561
813
  metadata?: {
562
814
  links?: {
@@ -586,7 +838,7 @@ export declare class Profile extends BaseClient<paths> {
586
838
  };
587
839
  };
588
840
  };
589
- 404: {
841
+ "4XX": {
590
842
  headers: {
591
843
  [name: string]: unknown;
592
844
  };
@@ -596,12 +848,15 @@ export declare class Profile extends BaseClient<paths> {
596
848
  detail: string;
597
849
  requestId: string;
598
850
  name: string;
599
- validation?: unknown;
851
+ validation?: {
852
+ fieldName: string;
853
+ message: string;
854
+ }[];
600
855
  validationContext?: string;
601
856
  };
602
857
  };
603
858
  };
604
- 500: {
859
+ "5XX": {
605
860
  headers: {
606
861
  [name: string]: unknown;
607
862
  };
@@ -611,7 +866,10 @@ export declare class Profile extends BaseClient<paths> {
611
866
  detail: string;
612
867
  requestId: string;
613
868
  name: string;
614
- validation?: unknown;
869
+ validation?: {
870
+ fieldName: string;
871
+ message: string;
872
+ }[];
615
873
  validationContext?: string;
616
874
  };
617
875
  };
@@ -620,18 +878,50 @@ export declare class Profile extends BaseClient<paths> {
620
878
  }, {
621
879
  params: {
622
880
  path: {
623
- addressId: string;
881
+ profileId: string;
882
+ };
883
+ query: {
884
+ organizationId: string | undefined;
624
885
  };
625
886
  };
626
- }>>;
627
- getEntitlements(): Promise<import("../../utils/client-utils.js").DataResponseValue<{
887
+ body: {
888
+ publicName?: string;
889
+ email?: string;
890
+ phone?: string;
891
+ address?: string;
892
+ city?: string;
893
+ firstName?: string;
894
+ lastName?: string;
895
+ dateOfBirth?: string;
896
+ preferredLanguage?: "en" | "ga";
897
+ };
898
+ }> | undefined>;
899
+ patchProfile(profileId: string, data?: NonNullable<paths["/api/v1/profiles/{profileId}"]["patch"]["requestBody"]>["content"]["application/json"], organizationId?: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
628
900
  parameters: {
629
- query?: never;
901
+ query?: {
902
+ organizationId?: string;
903
+ };
630
904
  header?: never;
631
- path?: never;
905
+ path: {
906
+ profileId: string;
907
+ };
632
908
  cookie?: never;
633
909
  };
634
- requestBody?: never;
910
+ requestBody?: {
911
+ content: {
912
+ "application/json": {
913
+ publicName?: string;
914
+ email?: string;
915
+ phone?: string;
916
+ address?: string;
917
+ city?: string;
918
+ firstName?: string;
919
+ lastName?: string;
920
+ dateOfBirth?: string;
921
+ preferredLanguage?: "en" | "ga";
922
+ };
923
+ };
924
+ };
635
925
  responses: {
636
926
  200: {
637
927
  headers: {
@@ -640,13 +930,26 @@ export declare class Profile extends BaseClient<paths> {
640
930
  content: {
641
931
  "application/json": {
642
932
  data: {
643
- firstname: string;
644
- lastname: string;
645
- type: string;
646
- issueDate: string;
647
- expiryDate?: string;
648
- documentNumber: string;
649
- }[];
933
+ id: string;
934
+ publicName: string;
935
+ email: string;
936
+ primaryUserId: string;
937
+ safeLevel?: number;
938
+ preferredLanguage: "en" | "ga";
939
+ createdAt?: string;
940
+ updatedAt?: string;
941
+ details?: {
942
+ email: string;
943
+ firstName: string;
944
+ lastName: string;
945
+ city?: string;
946
+ address?: string;
947
+ phone?: string;
948
+ dateOfBirth?: string;
949
+ ppsn?: string;
950
+ preferredLanguage: "en" | "ga";
951
+ };
952
+ };
650
953
  metadata?: {
651
954
  links?: {
652
955
  self: {
@@ -675,7 +978,7 @@ export declare class Profile extends BaseClient<paths> {
675
978
  };
676
979
  };
677
980
  };
678
- 500: {
981
+ "4XX": {
679
982
  headers: {
680
983
  [name: string]: unknown;
681
984
  };
@@ -685,64 +988,15 @@ export declare class Profile extends BaseClient<paths> {
685
988
  detail: string;
686
989
  requestId: string;
687
990
  name: string;
688
- validation?: unknown;
689
- validationContext?: string;
690
- };
691
- };
692
- };
693
- };
694
- }, import("openapi-fetch").FetchOptions<{
695
- parameters: {
696
- query?: never;
697
- header?: never;
698
- path?: never;
699
- cookie?: never;
700
- };
701
- requestBody?: never;
702
- responses: {
703
- 200: {
704
- headers: {
705
- [name: string]: unknown;
706
- };
707
- content: {
708
- "application/json": {
709
- data: {
710
- firstname: string;
711
- lastname: string;
712
- type: string;
713
- issueDate: string;
714
- expiryDate?: string;
715
- documentNumber: string;
991
+ validation?: {
992
+ fieldName: string;
993
+ message: string;
716
994
  }[];
717
- metadata?: {
718
- links?: {
719
- self: {
720
- href?: string;
721
- };
722
- next?: {
723
- href?: string;
724
- };
725
- prev?: {
726
- href?: string;
727
- };
728
- first: {
729
- href?: string;
730
- };
731
- last: {
732
- href?: string;
733
- };
734
- pages: {
735
- [key: string]: {
736
- href?: string;
737
- };
738
- };
739
- };
740
- totalCount?: number;
741
- };
995
+ validationContext?: string;
742
996
  };
743
997
  };
744
998
  };
745
- 500: {
999
+ "5XX": {
746
1000
  headers: {
747
1001
  [name: string]: unknown;
748
1002
  };
@@ -752,20 +1006,49 @@ export declare class Profile extends BaseClient<paths> {
752
1006
  detail: string;
753
1007
  requestId: string;
754
1008
  name: string;
755
- validation?: unknown;
1009
+ validation?: {
1010
+ fieldName: string;
1011
+ message: string;
1012
+ }[];
756
1013
  validationContext?: string;
757
1014
  };
758
1015
  };
759
1016
  };
760
1017
  };
761
- }> | undefined>>;
762
- getUser(userId: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
763
- parameters: {
764
- query?: never;
765
- header?: never;
1018
+ }, {
1019
+ params: {
766
1020
  path: {
767
- userId: string;
1021
+ profileId: string;
1022
+ };
1023
+ query: {
1024
+ organizationId: string | undefined;
768
1025
  };
1026
+ };
1027
+ body: {
1028
+ publicName?: string;
1029
+ email?: string;
1030
+ phone?: string;
1031
+ address?: string;
1032
+ city?: string;
1033
+ firstName?: string;
1034
+ lastName?: string;
1035
+ dateOfBirth?: string;
1036
+ preferredLanguage?: "en" | "ga";
1037
+ };
1038
+ }> | undefined>;
1039
+ /**
1040
+ * @deprecated Use getProfile() instead of getUser()
1041
+ */
1042
+ findUser(query: paths["/api/v1/profiles/find-profile"]["get"]["parameters"]["query"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1043
+ parameters: {
1044
+ query?: {
1045
+ email?: string;
1046
+ firstName?: string;
1047
+ lastName?: string;
1048
+ phone?: string;
1049
+ };
1050
+ header?: never;
1051
+ path?: never;
769
1052
  cookie?: never;
770
1053
  };
771
1054
  requestBody?: never;
@@ -777,17 +1060,25 @@ export declare class Profile extends BaseClient<paths> {
777
1060
  content: {
778
1061
  "application/json": {
779
1062
  data: {
780
- title: null | string;
781
- firstName: string;
782
- lastName: string;
783
- dateOfBirth: null | string;
784
- ppsn: null | string;
785
- ppsnVisible: null | boolean;
786
- gender: null | string;
1063
+ id: string;
1064
+ publicName: string;
787
1065
  email: string;
788
- phone: null | string;
789
- consentToPrefillData: null | boolean;
790
- preferredLanguage: string;
1066
+ primaryUserId: string;
1067
+ safeLevel?: number;
1068
+ preferredLanguage: "en" | "ga";
1069
+ createdAt?: string;
1070
+ updatedAt?: string;
1071
+ details?: {
1072
+ email: string;
1073
+ firstName: string;
1074
+ lastName: string;
1075
+ city?: string;
1076
+ address?: string;
1077
+ phone?: string;
1078
+ dateOfBirth?: string;
1079
+ ppsn?: string;
1080
+ preferredLanguage: "en" | "ga";
1081
+ };
791
1082
  };
792
1083
  metadata?: {
793
1084
  links?: {
@@ -817,7 +1108,7 @@ export declare class Profile extends BaseClient<paths> {
817
1108
  };
818
1109
  };
819
1110
  };
820
- 404: {
1111
+ "4XX": {
821
1112
  headers: {
822
1113
  [name: string]: unknown;
823
1114
  };
@@ -827,12 +1118,15 @@ export declare class Profile extends BaseClient<paths> {
827
1118
  detail: string;
828
1119
  requestId: string;
829
1120
  name: string;
830
- validation?: unknown;
1121
+ validation?: {
1122
+ fieldName: string;
1123
+ message: string;
1124
+ }[];
831
1125
  validationContext?: string;
832
1126
  };
833
1127
  };
834
1128
  };
835
- 500: {
1129
+ "5XX": {
836
1130
  headers: {
837
1131
  [name: string]: unknown;
838
1132
  };
@@ -842,7 +1136,10 @@ export declare class Profile extends BaseClient<paths> {
842
1136
  detail: string;
843
1137
  requestId: string;
844
1138
  name: string;
845
- validation?: unknown;
1139
+ validation?: {
1140
+ fieldName: string;
1141
+ message: string;
1142
+ }[];
846
1143
  validationContext?: string;
847
1144
  };
848
1145
  };
@@ -850,35 +1147,27 @@ export declare class Profile extends BaseClient<paths> {
850
1147
  };
851
1148
  }, {
852
1149
  params: {
853
- path: {
854
- userId: string;
855
- };
1150
+ query: {
1151
+ email?: string;
1152
+ firstName?: string;
1153
+ lastName?: string;
1154
+ phone?: string;
1155
+ } | undefined;
856
1156
  };
857
1157
  }>>;
858
- createUser(data: paths["/api/v1/users/"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1158
+ findProfile(query: paths["/api/v1/profiles/find-profile"]["get"]["parameters"]["query"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
859
1159
  parameters: {
860
- query?: never;
1160
+ query?: {
1161
+ email?: string;
1162
+ firstName?: string;
1163
+ lastName?: string;
1164
+ phone?: string;
1165
+ };
861
1166
  header?: never;
862
1167
  path?: never;
863
1168
  cookie?: never;
864
1169
  };
865
- requestBody: {
866
- content: {
867
- "application/json": {
868
- firstname: string;
869
- lastname: string;
870
- email: string;
871
- title?: string;
872
- dateOfBirth?: string;
873
- ppsn?: string;
874
- ppsnVisible?: boolean;
875
- gender?: string;
876
- phone?: string;
877
- consentToPrefillData?: boolean;
878
- preferredLanguage: string;
879
- };
880
- };
881
- };
1170
+ requestBody?: never;
882
1171
  responses: {
883
1172
  200: {
884
1173
  headers: {
@@ -888,6 +1177,24 @@ export declare class Profile extends BaseClient<paths> {
888
1177
  "application/json": {
889
1178
  data: {
890
1179
  id: string;
1180
+ publicName: string;
1181
+ email: string;
1182
+ primaryUserId: string;
1183
+ safeLevel?: number;
1184
+ preferredLanguage: "en" | "ga";
1185
+ createdAt?: string;
1186
+ updatedAt?: string;
1187
+ details?: {
1188
+ email: string;
1189
+ firstName: string;
1190
+ lastName: string;
1191
+ city?: string;
1192
+ address?: string;
1193
+ phone?: string;
1194
+ dateOfBirth?: string;
1195
+ ppsn?: string;
1196
+ preferredLanguage: "en" | "ga";
1197
+ };
891
1198
  };
892
1199
  metadata?: {
893
1200
  links?: {
@@ -917,7 +1224,7 @@ export declare class Profile extends BaseClient<paths> {
917
1224
  };
918
1225
  };
919
1226
  };
920
- 500: {
1227
+ "4XX": {
921
1228
  headers: {
922
1229
  [name: string]: unknown;
923
1230
  };
@@ -927,53 +1234,56 @@ export declare class Profile extends BaseClient<paths> {
927
1234
  detail: string;
928
1235
  requestId: string;
929
1236
  name: string;
930
- validation?: unknown;
1237
+ validation?: {
1238
+ fieldName: string;
1239
+ message: string;
1240
+ }[];
1241
+ validationContext?: string;
1242
+ };
1243
+ };
1244
+ };
1245
+ "5XX": {
1246
+ headers: {
1247
+ [name: string]: unknown;
1248
+ };
1249
+ content: {
1250
+ "application/json": {
1251
+ code: string;
1252
+ detail: string;
1253
+ requestId: string;
1254
+ name: string;
1255
+ validation?: {
1256
+ fieldName: string;
1257
+ message: string;
1258
+ }[];
931
1259
  validationContext?: string;
932
1260
  };
933
1261
  };
934
1262
  };
935
1263
  };
936
1264
  }, {
937
- body: {
938
- firstname: string;
939
- lastname: string;
940
- email: string;
941
- title?: string;
942
- dateOfBirth?: string;
943
- ppsn?: string;
944
- ppsnVisible?: boolean;
945
- gender?: string;
946
- phone?: string;
947
- consentToPrefillData?: boolean;
948
- preferredLanguage: string;
1265
+ params: {
1266
+ query: {
1267
+ email?: string;
1268
+ firstName?: string;
1269
+ lastName?: string;
1270
+ phone?: string;
1271
+ } | undefined;
949
1272
  };
950
1273
  }>>;
951
- updateUser(userId: string, data: paths["/api/v1/users/{userId}"]["put"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1274
+ /**
1275
+ * @deprecated Use getProfile() instead of getUser()
1276
+ */
1277
+ selectUsers(ids: paths["/api/v1/profiles/select-profiles"]["get"]["parameters"]["query"]["ids"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
952
1278
  parameters: {
953
- query?: never;
954
- header?: never;
955
- path: {
956
- userId: string;
1279
+ query: {
1280
+ ids: string;
957
1281
  };
1282
+ header?: never;
1283
+ path?: never;
958
1284
  cookie?: never;
959
1285
  };
960
- requestBody: {
961
- content: {
962
- "application/json": {
963
- firstname: string;
964
- lastname: string;
965
- email: string;
966
- title: string;
967
- dateOfBirth: string;
968
- ppsn: string;
969
- ppsnVisible: boolean;
970
- gender: string;
971
- phone: string;
972
- consentToPrefillData?: boolean;
973
- preferredLanguage: string;
974
- };
975
- };
976
- };
1286
+ requestBody?: never;
977
1287
  responses: {
978
1288
  200: {
979
1289
  headers: {
@@ -983,7 +1293,25 @@ export declare class Profile extends BaseClient<paths> {
983
1293
  "application/json": {
984
1294
  data: {
985
1295
  id: string;
986
- };
1296
+ publicName: string;
1297
+ email: string;
1298
+ primaryUserId: string;
1299
+ safeLevel?: number;
1300
+ preferredLanguage: "en" | "ga";
1301
+ createdAt?: string;
1302
+ updatedAt?: string;
1303
+ details?: {
1304
+ email: string;
1305
+ firstName: string;
1306
+ lastName: string;
1307
+ city?: string;
1308
+ address?: string;
1309
+ phone?: string;
1310
+ dateOfBirth?: string;
1311
+ ppsn?: string;
1312
+ preferredLanguage: "en" | "ga";
1313
+ };
1314
+ }[];
987
1315
  metadata?: {
988
1316
  links?: {
989
1317
  self: {
@@ -1012,7 +1340,7 @@ export declare class Profile extends BaseClient<paths> {
1012
1340
  };
1013
1341
  };
1014
1342
  };
1015
- 404: {
1343
+ "4XX": {
1016
1344
  headers: {
1017
1345
  [name: string]: unknown;
1018
1346
  };
@@ -1022,12 +1350,15 @@ export declare class Profile extends BaseClient<paths> {
1022
1350
  detail: string;
1023
1351
  requestId: string;
1024
1352
  name: string;
1025
- validation?: unknown;
1353
+ validation?: {
1354
+ fieldName: string;
1355
+ message: string;
1356
+ }[];
1026
1357
  validationContext?: string;
1027
1358
  };
1028
1359
  };
1029
1360
  };
1030
- 500: {
1361
+ "5XX": {
1031
1362
  headers: {
1032
1363
  [name: string]: unknown;
1033
1364
  };
@@ -1037,7 +1368,10 @@ export declare class Profile extends BaseClient<paths> {
1037
1368
  detail: string;
1038
1369
  requestId: string;
1039
1370
  name: string;
1040
- validation?: unknown;
1371
+ validation?: {
1372
+ fieldName: string;
1373
+ message: string;
1374
+ }[];
1041
1375
  validationContext?: string;
1042
1376
  };
1043
1377
  };
@@ -1045,42 +1379,21 @@ export declare class Profile extends BaseClient<paths> {
1045
1379
  };
1046
1380
  }, {
1047
1381
  params: {
1048
- path: {
1049
- userId: string;
1382
+ query: {
1383
+ ids: string;
1050
1384
  };
1051
1385
  };
1052
- body: {
1053
- firstname: string;
1054
- lastname: string;
1055
- email: string;
1056
- title: string;
1057
- dateOfBirth: string;
1058
- ppsn: string;
1059
- ppsnVisible: boolean;
1060
- gender: string;
1061
- phone: string;
1062
- consentToPrefillData?: boolean;
1063
- preferredLanguage: string;
1064
- };
1065
1386
  }>>;
1066
- patchUser(userId: string, data?: NonNullable<paths["/api/v1/users/{userId}"]["patch"]["requestBody"]>["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1387
+ selectProfiles(ids: paths["/api/v1/profiles/select-profiles"]["get"]["parameters"]["query"]["ids"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1067
1388
  parameters: {
1068
- query?: never;
1069
- header?: never;
1070
- path: {
1071
- userId: string;
1389
+ query: {
1390
+ ids: string;
1072
1391
  };
1392
+ header?: never;
1393
+ path?: never;
1073
1394
  cookie?: never;
1074
1395
  };
1075
- requestBody?: {
1076
- content: {
1077
- "application/json": {
1078
- ppsnVisible?: boolean;
1079
- consentToPrefillData?: boolean;
1080
- preferredLanguage?: string;
1081
- };
1082
- };
1083
- };
1396
+ requestBody?: never;
1084
1397
  responses: {
1085
1398
  200: {
1086
1399
  headers: {
@@ -1090,7 +1403,25 @@ export declare class Profile extends BaseClient<paths> {
1090
1403
  "application/json": {
1091
1404
  data: {
1092
1405
  id: string;
1093
- };
1406
+ publicName: string;
1407
+ email: string;
1408
+ primaryUserId: string;
1409
+ safeLevel?: number;
1410
+ preferredLanguage: "en" | "ga";
1411
+ createdAt?: string;
1412
+ updatedAt?: string;
1413
+ details?: {
1414
+ email: string;
1415
+ firstName: string;
1416
+ lastName: string;
1417
+ city?: string;
1418
+ address?: string;
1419
+ phone?: string;
1420
+ dateOfBirth?: string;
1421
+ ppsn?: string;
1422
+ preferredLanguage: "en" | "ga";
1423
+ };
1424
+ }[];
1094
1425
  metadata?: {
1095
1426
  links?: {
1096
1427
  self: {
@@ -1119,7 +1450,7 @@ export declare class Profile extends BaseClient<paths> {
1119
1450
  };
1120
1451
  };
1121
1452
  };
1122
- 404: {
1453
+ "4XX": {
1123
1454
  headers: {
1124
1455
  [name: string]: unknown;
1125
1456
  };
@@ -1129,12 +1460,15 @@ export declare class Profile extends BaseClient<paths> {
1129
1460
  detail: string;
1130
1461
  requestId: string;
1131
1462
  name: string;
1132
- validation?: unknown;
1463
+ validation?: {
1464
+ fieldName: string;
1465
+ message: string;
1466
+ }[];
1133
1467
  validationContext?: string;
1134
1468
  };
1135
1469
  };
1136
1470
  };
1137
- 500: {
1471
+ "5XX": {
1138
1472
  headers: {
1139
1473
  [name: string]: unknown;
1140
1474
  };
@@ -1144,7 +1478,10 @@ export declare class Profile extends BaseClient<paths> {
1144
1478
  detail: string;
1145
1479
  requestId: string;
1146
1480
  name: string;
1147
- validation?: unknown;
1481
+ validation?: {
1482
+ fieldName: string;
1483
+ message: string;
1484
+ }[];
1148
1485
  validationContext?: string;
1149
1486
  };
1150
1487
  };
@@ -1152,27 +1489,17 @@ export declare class Profile extends BaseClient<paths> {
1152
1489
  };
1153
1490
  }, {
1154
1491
  params: {
1155
- path: {
1156
- userId: string;
1492
+ query: {
1493
+ ids: string;
1157
1494
  };
1158
1495
  };
1159
- body: {
1160
- ppsnVisible?: boolean;
1161
- consentToPrefillData?: boolean;
1162
- preferredLanguage?: string;
1163
- };
1164
- }> | undefined>;
1165
- findUser(query: paths["/api/v1/users/find"]["get"]["parameters"]["query"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1496
+ }>>;
1497
+ listProfiles(query: paths["/api/v1/profiles/"]["get"]["parameters"]["query"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1166
1498
  parameters: {
1167
1499
  query?: {
1168
- firstname?: string;
1169
- lastname?: string;
1170
- email?: string;
1171
- dateOfBirth?: string;
1172
- ppsn?: string;
1173
- gender?: string;
1174
- phone?: string;
1175
- strict?: boolean;
1500
+ search?: string;
1501
+ offset?: string;
1502
+ limit?: string;
1176
1503
  };
1177
1504
  header?: never;
1178
1505
  path?: never;
@@ -1188,10 +1515,14 @@ export declare class Profile extends BaseClient<paths> {
1188
1515
  "application/json": {
1189
1516
  data: {
1190
1517
  id: string;
1191
- firstname: string;
1192
- lastname: string;
1193
- matchQuality: "exact" | "approximate";
1194
- };
1518
+ publicName: string;
1519
+ email: string;
1520
+ primaryUserId: string;
1521
+ safeLevel?: number;
1522
+ preferredLanguage: "en" | "ga";
1523
+ createdAt?: string;
1524
+ updatedAt?: string;
1525
+ }[];
1195
1526
  metadata?: {
1196
1527
  links?: {
1197
1528
  self: {
@@ -1220,7 +1551,7 @@ export declare class Profile extends BaseClient<paths> {
1220
1551
  };
1221
1552
  };
1222
1553
  };
1223
- 404: {
1554
+ "4XX": {
1224
1555
  headers: {
1225
1556
  [name: string]: unknown;
1226
1557
  };
@@ -1230,12 +1561,15 @@ export declare class Profile extends BaseClient<paths> {
1230
1561
  detail: string;
1231
1562
  requestId: string;
1232
1563
  name: string;
1233
- validation?: unknown;
1564
+ validation?: {
1565
+ fieldName: string;
1566
+ message: string;
1567
+ }[];
1234
1568
  validationContext?: string;
1235
1569
  };
1236
1570
  };
1237
1571
  };
1238
- 500: {
1572
+ "5XX": {
1239
1573
  headers: {
1240
1574
  [name: string]: unknown;
1241
1575
  };
@@ -1245,7 +1579,10 @@ export declare class Profile extends BaseClient<paths> {
1245
1579
  detail: string;
1246
1580
  requestId: string;
1247
1581
  name: string;
1248
- validation?: unknown;
1582
+ validation?: {
1583
+ fieldName: string;
1584
+ message: string;
1585
+ }[];
1249
1586
  validationContext?: string;
1250
1587
  };
1251
1588
  };
@@ -1254,28 +1591,65 @@ export declare class Profile extends BaseClient<paths> {
1254
1591
  }, {
1255
1592
  params: {
1256
1593
  query: {
1257
- firstname?: string;
1258
- lastname?: string;
1259
- email?: string;
1260
- dateOfBirth?: string;
1261
- ppsn?: string;
1262
- gender?: string;
1263
- phone?: string;
1264
- strict?: boolean;
1594
+ search?: string;
1595
+ offset?: string;
1596
+ limit?: string;
1265
1597
  } | undefined;
1266
1598
  };
1267
1599
  }>>;
1268
- selectUsers(ids: paths["/api/v1/users/select"]["post"]["requestBody"]["content"]["application/json"]["ids"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1600
+ importProfiles(toImport: {
1601
+ file?: File;
1602
+ records?: NonNullable<paths["/api/v1/profiles/import-profiles"]["post"]["requestBody"]>["content"]["application/json"]["profiles"];
1603
+ }): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1269
1604
  parameters: {
1270
1605
  query?: never;
1271
1606
  header?: never;
1272
1607
  path?: never;
1273
1608
  cookie?: never;
1274
1609
  };
1275
- requestBody: {
1610
+ requestBody?: {
1276
1611
  content: {
1277
1612
  "application/json": {
1278
- ids: string[];
1613
+ profiles?: {
1614
+ email: string;
1615
+ firstName: string;
1616
+ lastName: string;
1617
+ city?: string;
1618
+ address?: string;
1619
+ phone?: string;
1620
+ dateOfBirth?: string;
1621
+ ppsn?: string;
1622
+ preferredLanguage?: "en" | "ga";
1623
+ }[];
1624
+ file?: unknown;
1625
+ };
1626
+ "multipart/form-data": {
1627
+ profiles?: {
1628
+ email: string;
1629
+ firstName: string;
1630
+ lastName: string;
1631
+ city?: string;
1632
+ address?: string;
1633
+ phone?: string;
1634
+ dateOfBirth?: string;
1635
+ ppsn?: string;
1636
+ preferredLanguage?: "en" | "ga";
1637
+ }[];
1638
+ file?: unknown;
1639
+ };
1640
+ "text/csv": {
1641
+ profiles?: {
1642
+ email: string;
1643
+ firstName: string;
1644
+ lastName: string;
1645
+ city?: string;
1646
+ address?: string;
1647
+ phone?: string;
1648
+ dateOfBirth?: string;
1649
+ ppsn?: string;
1650
+ preferredLanguage?: "en" | "ga";
1651
+ }[];
1652
+ file?: unknown;
1279
1653
  };
1280
1654
  };
1281
1655
  };
@@ -1286,40 +1660,8 @@ export declare class Profile extends BaseClient<paths> {
1286
1660
  };
1287
1661
  content: {
1288
1662
  "application/json": {
1289
- data: {
1290
- id: string;
1291
- firstName: string;
1292
- lastName: string;
1293
- ppsn: string;
1294
- email?: string;
1295
- phone?: string;
1296
- preferredLanguage: string;
1297
- }[];
1298
- metadata?: {
1299
- links?: {
1300
- self: {
1301
- href?: string;
1302
- };
1303
- next?: {
1304
- href?: string;
1305
- };
1306
- prev?: {
1307
- href?: string;
1308
- };
1309
- first: {
1310
- href?: string;
1311
- };
1312
- last: {
1313
- href?: string;
1314
- };
1315
- pages: {
1316
- [key: string]: {
1317
- href?: string;
1318
- };
1319
- };
1320
- };
1321
- totalCount?: number;
1322
- };
1663
+ status: string;
1664
+ jobId: string;
1323
1665
  };
1324
1666
  };
1325
1667
  };
@@ -1333,7 +1675,10 @@ export declare class Profile extends BaseClient<paths> {
1333
1675
  detail: string;
1334
1676
  requestId: string;
1335
1677
  name: string;
1336
- validation?: unknown;
1678
+ validation?: {
1679
+ fieldName: string;
1680
+ message: string;
1681
+ }[];
1337
1682
  validationContext?: string;
1338
1683
  };
1339
1684
  };
@@ -1348,7 +1693,10 @@ export declare class Profile extends BaseClient<paths> {
1348
1693
  detail: string;
1349
1694
  requestId: string;
1350
1695
  name: string;
1351
- validation?: unknown;
1696
+ validation?: {
1697
+ fieldName: string;
1698
+ message: string;
1699
+ }[];
1352
1700
  validationContext?: string;
1353
1701
  };
1354
1702
  };
@@ -1356,8 +1704,72 @@ export declare class Profile extends BaseClient<paths> {
1356
1704
  };
1357
1705
  }, {
1358
1706
  body: {
1359
- ids: string[];
1707
+ profiles: {
1708
+ email: string;
1709
+ firstName: string;
1710
+ lastName: string;
1711
+ city?: string;
1712
+ address?: string;
1713
+ phone?: string;
1714
+ dateOfBirth?: string;
1715
+ ppsn?: string;
1716
+ preferredLanguage?: "en" | "ga";
1717
+ }[] | undefined;
1360
1718
  };
1361
- }>>;
1719
+ }> | {
1720
+ data: {
1721
+ status: string;
1722
+ jobId: string;
1723
+ } | undefined;
1724
+ error: import("openapi-typescript-helpers").ErrorResponse<{
1725
+ 200: {
1726
+ headers: {
1727
+ [name: string]: unknown;
1728
+ };
1729
+ content: {
1730
+ "application/json": {
1731
+ status: string;
1732
+ jobId: string;
1733
+ };
1734
+ };
1735
+ };
1736
+ "4XX": {
1737
+ headers: {
1738
+ [name: string]: unknown;
1739
+ };
1740
+ content: {
1741
+ "application/json": {
1742
+ code: string;
1743
+ detail: string;
1744
+ requestId: string;
1745
+ name: string;
1746
+ validation?: {
1747
+ fieldName: string;
1748
+ message: string;
1749
+ }[];
1750
+ validationContext?: string;
1751
+ };
1752
+ };
1753
+ };
1754
+ "5XX": {
1755
+ headers: {
1756
+ [name: string]: unknown;
1757
+ };
1758
+ content: {
1759
+ "application/json": {
1760
+ code: string;
1761
+ detail: string;
1762
+ requestId: string;
1763
+ name: string;
1764
+ validation?: {
1765
+ fieldName: string;
1766
+ message: string;
1767
+ }[];
1768
+ validationContext?: string;
1769
+ };
1770
+ };
1771
+ };
1772
+ }, `${string}/${string}`> | undefined;
1773
+ }>;
1362
1774
  }
1363
1775
  //# sourceMappingURL=index.d.ts.map