@ogcio/building-blocks-sdk 0.1.18 → 0.2.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 (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 +109 -1960
  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 +1689 -3486
  11. package/dist/client/clients/messaging/schema.d.ts.map +1 -1
  12. package/dist/client/clients/payments/index.d.ts +93 -7
  13. package/dist/client/clients/payments/index.d.ts.map +1 -1
  14. package/dist/client/clients/payments/index.js +11 -0
  15. package/dist/client/clients/payments/index.js.map +1 -1
  16. package/dist/client/clients/payments/schema.d.ts +113 -7
  17. package/dist/client/clients/payments/schema.d.ts.map +1 -1
  18. package/dist/client/clients/profile/index.d.ts +882 -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 +1257 -1114
  23. package/dist/client/clients/profile/schema.d.ts.map +1 -1
  24. package/dist/clients-configurations/clients-configuration.json +7 -6
  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 +419 -4558
  30. package/src/client/clients/messaging/schema.ts +1689 -3486
  31. package/src/client/clients/payments/index.ts +17 -0
  32. package/src/client/clients/payments/open-api-definition.json +314 -0
  33. package/src/client/clients/payments/schema.ts +113 -7
  34. package/src/client/clients/profile/index.ts +140 -84
  35. package/src/client/clients/profile/open-api-definition.json +1925 -1343
  36. package/src/client/clients/profile/schema.ts +1257 -1114
  37. package/src/clients-configurations/clients-configuration.json +7 -6
@@ -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,26 @@ 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
+ statusCode: number;
94
+ };
95
+ };
96
+ };
97
+ "5XX": {
64
98
  headers: {
65
99
  [name: string]: unknown;
66
100
  };
@@ -70,17 +104,32 @@ export declare class Profile extends BaseClient<paths> {
70
104
  detail: string;
71
105
  requestId: string;
72
106
  name: string;
73
- validation?: unknown;
107
+ validation?: {
108
+ fieldName: string;
109
+ message: string;
110
+ }[];
74
111
  validationContext?: string;
112
+ statusCode: number;
75
113
  };
76
114
  };
77
115
  };
78
116
  };
79
- }, import("openapi-fetch").FetchOptions<{
117
+ }, {
118
+ params: {
119
+ path: {
120
+ profileId: string;
121
+ };
122
+ };
123
+ }>>;
124
+ getProfile(profileId: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
80
125
  parameters: {
81
- query?: never;
126
+ query?: {
127
+ organizationId?: string;
128
+ };
82
129
  header?: never;
83
- path?: never;
130
+ path: {
131
+ profileId: string;
132
+ };
84
133
  cookie?: never;
85
134
  };
86
135
  requestBody?: never;
@@ -92,18 +141,26 @@ export declare class Profile extends BaseClient<paths> {
92
141
  content: {
93
142
  "application/json": {
94
143
  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
- }[];
144
+ id: string;
145
+ publicName: string;
146
+ email: string;
147
+ primaryUserId: string;
148
+ safeLevel?: number;
149
+ preferredLanguage: "en" | "ga";
150
+ createdAt?: string;
151
+ updatedAt?: string;
152
+ details?: {
153
+ email: string;
154
+ firstName: string;
155
+ lastName: string;
156
+ city?: string;
157
+ address?: string;
158
+ phone?: string;
159
+ dateOfBirth?: string;
160
+ ppsn?: string;
161
+ preferredLanguage: "en" | "ga";
162
+ };
163
+ };
107
164
  metadata?: {
108
165
  links?: {
109
166
  self: {
@@ -132,7 +189,26 @@ export declare class Profile extends BaseClient<paths> {
132
189
  };
133
190
  };
134
191
  };
135
- 500: {
192
+ "4XX": {
193
+ headers: {
194
+ [name: string]: unknown;
195
+ };
196
+ content: {
197
+ "application/json": {
198
+ code: string;
199
+ detail: string;
200
+ requestId: string;
201
+ name: string;
202
+ validation?: {
203
+ fieldName: string;
204
+ message: string;
205
+ }[];
206
+ validationContext?: string;
207
+ statusCode: number;
208
+ };
209
+ };
210
+ };
211
+ "5XX": {
136
212
  headers: {
137
213
  [name: string]: unknown;
138
214
  };
@@ -142,23 +218,79 @@ export declare class Profile extends BaseClient<paths> {
142
218
  detail: string;
143
219
  requestId: string;
144
220
  name: string;
145
- validation?: unknown;
221
+ validation?: {
222
+ fieldName: string;
223
+ message: string;
224
+ }[];
146
225
  validationContext?: string;
226
+ statusCode: number;
147
227
  };
148
228
  };
149
229
  };
150
230
  };
151
- }> | undefined>>;
152
- getAddress(addressId: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
231
+ }, {
232
+ params: {
233
+ path: {
234
+ profileId: string;
235
+ };
236
+ };
237
+ }>>;
238
+ /**
239
+ * @deprecated Use getProfile() instead of getUser()
240
+ */
241
+ createUser(data: NonNullable<paths["/api/v1/profiles/import-profiles"]["post"]["requestBody"]>["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
153
242
  parameters: {
154
243
  query?: never;
155
244
  header?: never;
156
- path: {
157
- addressId: string;
158
- };
245
+ path?: never;
159
246
  cookie?: never;
160
247
  };
161
- requestBody?: never;
248
+ requestBody?: {
249
+ content: {
250
+ "application/json": {
251
+ profiles?: {
252
+ email: string;
253
+ firstName: string;
254
+ lastName: string;
255
+ city?: string;
256
+ address?: string;
257
+ phone?: string;
258
+ dateOfBirth?: string;
259
+ ppsn?: string;
260
+ preferredLanguage?: "en" | "ga";
261
+ }[];
262
+ file?: unknown;
263
+ };
264
+ "multipart/form-data": {
265
+ profiles?: {
266
+ email: string;
267
+ firstName: string;
268
+ lastName: string;
269
+ city?: string;
270
+ address?: string;
271
+ phone?: string;
272
+ dateOfBirth?: string;
273
+ ppsn?: string;
274
+ preferredLanguage?: "en" | "ga";
275
+ }[];
276
+ file?: unknown;
277
+ };
278
+ "text/csv": {
279
+ profiles?: {
280
+ email: string;
281
+ firstName: string;
282
+ lastName: string;
283
+ city?: string;
284
+ address?: string;
285
+ phone?: string;
286
+ dateOfBirth?: string;
287
+ ppsn?: string;
288
+ preferredLanguage?: "en" | "ga";
289
+ }[];
290
+ file?: unknown;
291
+ };
292
+ };
293
+ };
162
294
  responses: {
163
295
  200: {
164
296
  headers: {
@@ -166,48 +298,12 @@ export declare class Profile extends BaseClient<paths> {
166
298
  };
167
299
  content: {
168
300
  "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
- };
301
+ status: string;
302
+ jobId: string;
207
303
  };
208
304
  };
209
305
  };
210
- 404: {
306
+ "4XX": {
211
307
  headers: {
212
308
  [name: string]: unknown;
213
309
  };
@@ -217,12 +313,16 @@ export declare class Profile extends BaseClient<paths> {
217
313
  detail: string;
218
314
  requestId: string;
219
315
  name: string;
220
- validation?: unknown;
316
+ validation?: {
317
+ fieldName: string;
318
+ message: string;
319
+ }[];
221
320
  validationContext?: string;
321
+ statusCode: number;
222
322
  };
223
323
  };
224
324
  };
225
- 500: {
325
+ "5XX": {
226
326
  headers: {
227
327
  [name: string]: unknown;
228
328
  };
@@ -232,36 +332,82 @@ export declare class Profile extends BaseClient<paths> {
232
332
  detail: string;
233
333
  requestId: string;
234
334
  name: string;
235
- validation?: unknown;
335
+ validation?: {
336
+ fieldName: string;
337
+ message: string;
338
+ }[];
236
339
  validationContext?: string;
340
+ statusCode: number;
237
341
  };
238
342
  };
239
343
  };
240
344
  };
241
345
  }, {
242
- params: {
243
- path: {
244
- addressId: string;
245
- };
346
+ body: {
347
+ profiles?: {
348
+ email: string;
349
+ firstName: string;
350
+ lastName: string;
351
+ city?: string;
352
+ address?: string;
353
+ phone?: string;
354
+ dateOfBirth?: string;
355
+ ppsn?: string;
356
+ preferredLanguage?: "en" | "ga";
357
+ }[];
358
+ file?: unknown;
246
359
  };
247
360
  }>>;
248
- createAddress(data: paths["/api/v1/addresses/"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
361
+ createProfile(data: NonNullable<paths["/api/v1/profiles/import-profiles"]["post"]["requestBody"]>["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
249
362
  parameters: {
250
363
  query?: never;
251
364
  header?: never;
252
365
  path?: never;
253
366
  cookie?: never;
254
367
  };
255
- requestBody: {
368
+ requestBody?: {
256
369
  content: {
257
370
  "application/json": {
258
- addressLine1: string;
259
- addressLine2?: string;
260
- town: string;
261
- county: string;
262
- eirecode: string;
263
- moveInDate?: string;
264
- moveOutDate?: string;
371
+ profiles?: {
372
+ email: string;
373
+ firstName: string;
374
+ lastName: string;
375
+ city?: string;
376
+ address?: string;
377
+ phone?: string;
378
+ dateOfBirth?: string;
379
+ ppsn?: string;
380
+ preferredLanguage?: "en" | "ga";
381
+ }[];
382
+ file?: unknown;
383
+ };
384
+ "multipart/form-data": {
385
+ profiles?: {
386
+ email: string;
387
+ firstName: string;
388
+ lastName: string;
389
+ city?: string;
390
+ address?: string;
391
+ phone?: string;
392
+ dateOfBirth?: string;
393
+ ppsn?: string;
394
+ preferredLanguage?: "en" | "ga";
395
+ }[];
396
+ file?: unknown;
397
+ };
398
+ "text/csv": {
399
+ profiles?: {
400
+ email: string;
401
+ firstName: string;
402
+ lastName: string;
403
+ city?: string;
404
+ address?: string;
405
+ phone?: string;
406
+ dateOfBirth?: string;
407
+ ppsn?: string;
408
+ preferredLanguage?: "en" | "ga";
409
+ }[];
410
+ file?: unknown;
265
411
  };
266
412
  };
267
413
  };
@@ -272,38 +418,12 @@ export declare class Profile extends BaseClient<paths> {
272
418
  };
273
419
  content: {
274
420
  "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
- };
421
+ status: string;
422
+ jobId: string;
303
423
  };
304
424
  };
305
425
  };
306
- 500: {
426
+ "4XX": {
307
427
  headers: {
308
428
  [name: string]: unknown;
309
429
  };
@@ -313,37 +433,77 @@ export declare class Profile extends BaseClient<paths> {
313
433
  detail: string;
314
434
  requestId: string;
315
435
  name: string;
316
- validation?: unknown;
436
+ validation?: {
437
+ fieldName: string;
438
+ message: string;
439
+ }[];
317
440
  validationContext?: string;
441
+ statusCode: number;
442
+ };
443
+ };
444
+ };
445
+ "5XX": {
446
+ headers: {
447
+ [name: string]: unknown;
448
+ };
449
+ content: {
450
+ "application/json": {
451
+ code: string;
452
+ detail: string;
453
+ requestId: string;
454
+ name: string;
455
+ validation?: {
456
+ fieldName: string;
457
+ message: string;
458
+ }[];
459
+ validationContext?: string;
460
+ statusCode: number;
318
461
  };
319
462
  };
320
463
  };
321
464
  };
322
465
  }, {
323
466
  body: {
324
- addressLine1: string;
325
- addressLine2?: string;
326
- town: string;
327
- county: string;
328
- eirecode: string;
329
- moveInDate?: string;
330
- moveOutDate?: string;
467
+ profiles?: {
468
+ email: string;
469
+ firstName: string;
470
+ lastName: string;
471
+ city?: string;
472
+ address?: string;
473
+ phone?: string;
474
+ dateOfBirth?: string;
475
+ ppsn?: string;
476
+ preferredLanguage?: "en" | "ga";
477
+ }[];
478
+ file?: unknown;
331
479
  };
332
480
  }>>;
333
- patchAddress(addressId: string, data: NonNullable<paths["/api/v1/addresses/{addressId}"]["patch"]["requestBody"]>["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
481
+ /**
482
+ * @deprecated Use getProfile() instead of getUser()
483
+ */
484
+ 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
485
  parameters: {
335
- query?: never;
486
+ query?: {
487
+ organizationId?: string;
488
+ };
336
489
  header?: never;
337
490
  path: {
338
- addressId: string;
491
+ profileId: string;
339
492
  };
340
493
  cookie?: never;
341
494
  };
342
495
  requestBody?: {
343
496
  content: {
344
497
  "application/json": {
345
- isPrimary?: boolean;
346
- ownershipStatus?: string;
498
+ publicName?: string;
499
+ email?: string;
500
+ phone?: string;
501
+ address?: string;
502
+ city?: string;
503
+ firstName?: string;
504
+ lastName?: string;
505
+ dateOfBirth?: string;
506
+ preferredLanguage?: "en" | "ga";
347
507
  };
348
508
  };
349
509
  };
@@ -356,6 +516,24 @@ export declare class Profile extends BaseClient<paths> {
356
516
  "application/json": {
357
517
  data: {
358
518
  id: string;
519
+ publicName: string;
520
+ email: string;
521
+ primaryUserId: string;
522
+ safeLevel?: number;
523
+ preferredLanguage: "en" | "ga";
524
+ createdAt?: string;
525
+ updatedAt?: string;
526
+ details?: {
527
+ email: string;
528
+ firstName: string;
529
+ lastName: string;
530
+ city?: string;
531
+ address?: string;
532
+ phone?: string;
533
+ dateOfBirth?: string;
534
+ ppsn?: string;
535
+ preferredLanguage: "en" | "ga";
536
+ };
359
537
  };
360
538
  metadata?: {
361
539
  links?: {
@@ -385,7 +563,7 @@ export declare class Profile extends BaseClient<paths> {
385
563
  };
386
564
  };
387
565
  };
388
- 404: {
566
+ "4XX": {
389
567
  headers: {
390
568
  [name: string]: unknown;
391
569
  };
@@ -395,12 +573,16 @@ export declare class Profile extends BaseClient<paths> {
395
573
  detail: string;
396
574
  requestId: string;
397
575
  name: string;
398
- validation?: unknown;
576
+ validation?: {
577
+ fieldName: string;
578
+ message: string;
579
+ }[];
399
580
  validationContext?: string;
581
+ statusCode: number;
400
582
  };
401
583
  };
402
584
  };
403
- 500: {
585
+ "5XX": {
404
586
  headers: {
405
587
  [name: string]: unknown;
406
588
  };
@@ -410,8 +592,12 @@ export declare class Profile extends BaseClient<paths> {
410
592
  detail: string;
411
593
  requestId: string;
412
594
  name: string;
413
- validation?: unknown;
595
+ validation?: {
596
+ fieldName: string;
597
+ message: string;
598
+ }[];
414
599
  validationContext?: string;
600
+ statusCode: number;
415
601
  };
416
602
  };
417
603
  };
@@ -419,35 +605,47 @@ export declare class Profile extends BaseClient<paths> {
419
605
  }, {
420
606
  params: {
421
607
  path: {
422
- addressId: string;
608
+ profileId: string;
609
+ };
610
+ query: {
611
+ organizationId: string | undefined;
423
612
  };
424
613
  };
425
614
  body: {
426
- isPrimary?: boolean;
427
- ownershipStatus?: string;
615
+ publicName?: string;
616
+ email?: string;
617
+ phone?: string;
618
+ address?: string;
619
+ city?: string;
620
+ firstName?: string;
621
+ lastName?: string;
622
+ dateOfBirth?: string;
623
+ preferredLanguage?: "en" | "ga";
428
624
  };
429
- }> | undefined>;
430
- updateAddress(addressId: string, data: paths["/api/v1/addresses/{addressId}"]["put"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
625
+ }>>;
626
+ 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
627
  parameters: {
432
- query?: never;
628
+ query?: {
629
+ organizationId?: string;
630
+ };
433
631
  header?: never;
434
632
  path: {
435
- addressId: string;
633
+ profileId: string;
436
634
  };
437
635
  cookie?: never;
438
636
  };
439
- requestBody: {
637
+ requestBody?: {
440
638
  content: {
441
639
  "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;
640
+ publicName?: string;
641
+ email?: string;
642
+ phone?: string;
643
+ address?: string;
644
+ city?: string;
645
+ firstName?: string;
646
+ lastName?: string;
647
+ dateOfBirth?: string;
648
+ preferredLanguage?: "en" | "ga";
451
649
  };
452
650
  };
453
651
  };
@@ -460,6 +658,24 @@ export declare class Profile extends BaseClient<paths> {
460
658
  "application/json": {
461
659
  data: {
462
660
  id: string;
661
+ publicName: string;
662
+ email: string;
663
+ primaryUserId: string;
664
+ safeLevel?: number;
665
+ preferredLanguage: "en" | "ga";
666
+ createdAt?: string;
667
+ updatedAt?: string;
668
+ details?: {
669
+ email: string;
670
+ firstName: string;
671
+ lastName: string;
672
+ city?: string;
673
+ address?: string;
674
+ phone?: string;
675
+ dateOfBirth?: string;
676
+ ppsn?: string;
677
+ preferredLanguage: "en" | "ga";
678
+ };
463
679
  };
464
680
  metadata?: {
465
681
  links?: {
@@ -489,7 +705,7 @@ export declare class Profile extends BaseClient<paths> {
489
705
  };
490
706
  };
491
707
  };
492
- 404: {
708
+ "4XX": {
493
709
  headers: {
494
710
  [name: string]: unknown;
495
711
  };
@@ -499,12 +715,16 @@ export declare class Profile extends BaseClient<paths> {
499
715
  detail: string;
500
716
  requestId: string;
501
717
  name: string;
502
- validation?: unknown;
718
+ validation?: {
719
+ fieldName: string;
720
+ message: string;
721
+ }[];
503
722
  validationContext?: string;
723
+ statusCode: number;
504
724
  };
505
725
  };
506
726
  };
507
- 500: {
727
+ "5XX": {
508
728
  headers: {
509
729
  [name: string]: unknown;
510
730
  };
@@ -514,8 +734,12 @@ export declare class Profile extends BaseClient<paths> {
514
734
  detail: string;
515
735
  requestId: string;
516
736
  name: string;
517
- validation?: unknown;
737
+ validation?: {
738
+ fieldName: string;
739
+ message: string;
740
+ }[];
518
741
  validationContext?: string;
742
+ statusCode: number;
519
743
  };
520
744
  };
521
745
  };
@@ -523,31 +747,53 @@ export declare class Profile extends BaseClient<paths> {
523
747
  }, {
524
748
  params: {
525
749
  path: {
526
- addressId: string;
750
+ profileId: string;
751
+ };
752
+ query: {
753
+ organizationId: string | undefined;
527
754
  };
528
755
  };
529
756
  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;
757
+ publicName?: string;
758
+ email?: string;
759
+ phone?: string;
760
+ address?: string;
761
+ city?: string;
762
+ firstName?: string;
763
+ lastName?: string;
764
+ dateOfBirth?: string;
765
+ preferredLanguage?: "en" | "ga";
539
766
  };
540
767
  }>>;
541
- deleteAddress(addressId: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
768
+ /**
769
+ * @deprecated Use getProfile() instead of getUser()
770
+ */
771
+ 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
772
  parameters: {
543
- query?: never;
773
+ query?: {
774
+ organizationId?: string;
775
+ };
544
776
  header?: never;
545
777
  path: {
546
- addressId: string;
778
+ profileId: string;
547
779
  };
548
780
  cookie?: never;
549
781
  };
550
- requestBody?: never;
782
+ requestBody?: {
783
+ content: {
784
+ "application/json": {
785
+ publicName?: string;
786
+ email?: string;
787
+ phone?: string;
788
+ address?: string;
789
+ city?: string;
790
+ firstName?: string;
791
+ lastName?: string;
792
+ dateOfBirth?: string;
793
+ preferredLanguage?: "en" | "ga";
794
+ };
795
+ };
796
+ };
551
797
  responses: {
552
798
  200: {
553
799
  headers: {
@@ -557,6 +803,24 @@ export declare class Profile extends BaseClient<paths> {
557
803
  "application/json": {
558
804
  data: {
559
805
  id: string;
806
+ publicName: string;
807
+ email: string;
808
+ primaryUserId: string;
809
+ safeLevel?: number;
810
+ preferredLanguage: "en" | "ga";
811
+ createdAt?: string;
812
+ updatedAt?: string;
813
+ details?: {
814
+ email: string;
815
+ firstName: string;
816
+ lastName: string;
817
+ city?: string;
818
+ address?: string;
819
+ phone?: string;
820
+ dateOfBirth?: string;
821
+ ppsn?: string;
822
+ preferredLanguage: "en" | "ga";
823
+ };
560
824
  };
561
825
  metadata?: {
562
826
  links?: {
@@ -586,7 +850,7 @@ export declare class Profile extends BaseClient<paths> {
586
850
  };
587
851
  };
588
852
  };
589
- 404: {
853
+ "4XX": {
590
854
  headers: {
591
855
  [name: string]: unknown;
592
856
  };
@@ -596,12 +860,16 @@ export declare class Profile extends BaseClient<paths> {
596
860
  detail: string;
597
861
  requestId: string;
598
862
  name: string;
599
- validation?: unknown;
863
+ validation?: {
864
+ fieldName: string;
865
+ message: string;
866
+ }[];
600
867
  validationContext?: string;
868
+ statusCode: number;
601
869
  };
602
870
  };
603
871
  };
604
- 500: {
872
+ "5XX": {
605
873
  headers: {
606
874
  [name: string]: unknown;
607
875
  };
@@ -611,8 +879,12 @@ export declare class Profile extends BaseClient<paths> {
611
879
  detail: string;
612
880
  requestId: string;
613
881
  name: string;
614
- validation?: unknown;
882
+ validation?: {
883
+ fieldName: string;
884
+ message: string;
885
+ }[];
615
886
  validationContext?: string;
887
+ statusCode: number;
616
888
  };
617
889
  };
618
890
  };
@@ -620,18 +892,50 @@ export declare class Profile extends BaseClient<paths> {
620
892
  }, {
621
893
  params: {
622
894
  path: {
623
- addressId: string;
895
+ profileId: string;
896
+ };
897
+ query: {
898
+ organizationId: string | undefined;
624
899
  };
625
900
  };
626
- }>>;
627
- getEntitlements(): Promise<import("../../utils/client-utils.js").DataResponseValue<{
901
+ body: {
902
+ publicName?: string;
903
+ email?: string;
904
+ phone?: string;
905
+ address?: string;
906
+ city?: string;
907
+ firstName?: string;
908
+ lastName?: string;
909
+ dateOfBirth?: string;
910
+ preferredLanguage?: "en" | "ga";
911
+ };
912
+ }> | undefined>;
913
+ 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
914
  parameters: {
629
- query?: never;
915
+ query?: {
916
+ organizationId?: string;
917
+ };
630
918
  header?: never;
631
- path?: never;
919
+ path: {
920
+ profileId: string;
921
+ };
632
922
  cookie?: never;
633
923
  };
634
- requestBody?: never;
924
+ requestBody?: {
925
+ content: {
926
+ "application/json": {
927
+ publicName?: string;
928
+ email?: string;
929
+ phone?: string;
930
+ address?: string;
931
+ city?: string;
932
+ firstName?: string;
933
+ lastName?: string;
934
+ dateOfBirth?: string;
935
+ preferredLanguage?: "en" | "ga";
936
+ };
937
+ };
938
+ };
635
939
  responses: {
636
940
  200: {
637
941
  headers: {
@@ -640,13 +944,26 @@ export declare class Profile extends BaseClient<paths> {
640
944
  content: {
641
945
  "application/json": {
642
946
  data: {
643
- firstname: string;
644
- lastname: string;
645
- type: string;
646
- issueDate: string;
647
- expiryDate?: string;
648
- documentNumber: string;
649
- }[];
947
+ id: string;
948
+ publicName: string;
949
+ email: string;
950
+ primaryUserId: string;
951
+ safeLevel?: number;
952
+ preferredLanguage: "en" | "ga";
953
+ createdAt?: string;
954
+ updatedAt?: string;
955
+ details?: {
956
+ email: string;
957
+ firstName: string;
958
+ lastName: string;
959
+ city?: string;
960
+ address?: string;
961
+ phone?: string;
962
+ dateOfBirth?: string;
963
+ ppsn?: string;
964
+ preferredLanguage: "en" | "ga";
965
+ };
966
+ };
650
967
  metadata?: {
651
968
  links?: {
652
969
  self: {
@@ -675,7 +992,7 @@ export declare class Profile extends BaseClient<paths> {
675
992
  };
676
993
  };
677
994
  };
678
- 500: {
995
+ "4XX": {
679
996
  headers: {
680
997
  [name: string]: unknown;
681
998
  };
@@ -685,64 +1002,16 @@ export declare class Profile extends BaseClient<paths> {
685
1002
  detail: string;
686
1003
  requestId: string;
687
1004
  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;
1005
+ validation?: {
1006
+ fieldName: string;
1007
+ message: string;
716
1008
  }[];
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
- };
1009
+ validationContext?: string;
1010
+ statusCode: number;
742
1011
  };
743
1012
  };
744
1013
  };
745
- 500: {
1014
+ "5XX": {
746
1015
  headers: {
747
1016
  [name: string]: unknown;
748
1017
  };
@@ -752,20 +1021,50 @@ export declare class Profile extends BaseClient<paths> {
752
1021
  detail: string;
753
1022
  requestId: string;
754
1023
  name: string;
755
- validation?: unknown;
1024
+ validation?: {
1025
+ fieldName: string;
1026
+ message: string;
1027
+ }[];
756
1028
  validationContext?: string;
1029
+ statusCode: number;
757
1030
  };
758
1031
  };
759
1032
  };
760
1033
  };
761
- }> | undefined>>;
762
- getUser(userId: string): Promise<import("../../utils/client-utils.js").DataResponseValue<{
763
- parameters: {
764
- query?: never;
765
- header?: never;
1034
+ }, {
1035
+ params: {
766
1036
  path: {
767
- userId: string;
1037
+ profileId: string;
1038
+ };
1039
+ query: {
1040
+ organizationId: string | undefined;
768
1041
  };
1042
+ };
1043
+ body: {
1044
+ publicName?: string;
1045
+ email?: string;
1046
+ phone?: string;
1047
+ address?: string;
1048
+ city?: string;
1049
+ firstName?: string;
1050
+ lastName?: string;
1051
+ dateOfBirth?: string;
1052
+ preferredLanguage?: "en" | "ga";
1053
+ };
1054
+ }> | undefined>;
1055
+ /**
1056
+ * @deprecated Use getProfile() instead of getUser()
1057
+ */
1058
+ findUser(query: paths["/api/v1/profiles/find-profile"]["get"]["parameters"]["query"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1059
+ parameters: {
1060
+ query?: {
1061
+ email?: string;
1062
+ firstName?: string;
1063
+ lastName?: string;
1064
+ phone?: string;
1065
+ };
1066
+ header?: never;
1067
+ path?: never;
769
1068
  cookie?: never;
770
1069
  };
771
1070
  requestBody?: never;
@@ -777,17 +1076,25 @@ export declare class Profile extends BaseClient<paths> {
777
1076
  content: {
778
1077
  "application/json": {
779
1078
  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;
1079
+ id: string;
1080
+ publicName: string;
787
1081
  email: string;
788
- phone: null | string;
789
- consentToPrefillData: null | boolean;
790
- preferredLanguage: string;
1082
+ primaryUserId: string;
1083
+ safeLevel?: number;
1084
+ preferredLanguage: "en" | "ga";
1085
+ createdAt?: string;
1086
+ updatedAt?: string;
1087
+ details?: {
1088
+ email: string;
1089
+ firstName: string;
1090
+ lastName: string;
1091
+ city?: string;
1092
+ address?: string;
1093
+ phone?: string;
1094
+ dateOfBirth?: string;
1095
+ ppsn?: string;
1096
+ preferredLanguage: "en" | "ga";
1097
+ };
791
1098
  };
792
1099
  metadata?: {
793
1100
  links?: {
@@ -817,7 +1124,7 @@ export declare class Profile extends BaseClient<paths> {
817
1124
  };
818
1125
  };
819
1126
  };
820
- 404: {
1127
+ "4XX": {
821
1128
  headers: {
822
1129
  [name: string]: unknown;
823
1130
  };
@@ -827,12 +1134,16 @@ export declare class Profile extends BaseClient<paths> {
827
1134
  detail: string;
828
1135
  requestId: string;
829
1136
  name: string;
830
- validation?: unknown;
1137
+ validation?: {
1138
+ fieldName: string;
1139
+ message: string;
1140
+ }[];
831
1141
  validationContext?: string;
1142
+ statusCode: number;
832
1143
  };
833
1144
  };
834
1145
  };
835
- 500: {
1146
+ "5XX": {
836
1147
  headers: {
837
1148
  [name: string]: unknown;
838
1149
  };
@@ -842,43 +1153,39 @@ export declare class Profile extends BaseClient<paths> {
842
1153
  detail: string;
843
1154
  requestId: string;
844
1155
  name: string;
845
- validation?: unknown;
1156
+ validation?: {
1157
+ fieldName: string;
1158
+ message: string;
1159
+ }[];
846
1160
  validationContext?: string;
1161
+ statusCode: number;
847
1162
  };
848
1163
  };
849
1164
  };
850
1165
  };
851
1166
  }, {
852
1167
  params: {
853
- path: {
854
- userId: string;
855
- };
1168
+ query: {
1169
+ email?: string;
1170
+ firstName?: string;
1171
+ lastName?: string;
1172
+ phone?: string;
1173
+ } | undefined;
856
1174
  };
857
1175
  }>>;
858
- createUser(data: paths["/api/v1/users/"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1176
+ findProfile(query: paths["/api/v1/profiles/find-profile"]["get"]["parameters"]["query"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
859
1177
  parameters: {
860
- query?: never;
1178
+ query?: {
1179
+ email?: string;
1180
+ firstName?: string;
1181
+ lastName?: string;
1182
+ phone?: string;
1183
+ };
861
1184
  header?: never;
862
1185
  path?: never;
863
1186
  cookie?: never;
864
1187
  };
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
- };
1188
+ requestBody?: never;
882
1189
  responses: {
883
1190
  200: {
884
1191
  headers: {
@@ -888,6 +1195,24 @@ export declare class Profile extends BaseClient<paths> {
888
1195
  "application/json": {
889
1196
  data: {
890
1197
  id: string;
1198
+ publicName: string;
1199
+ email: string;
1200
+ primaryUserId: string;
1201
+ safeLevel?: number;
1202
+ preferredLanguage: "en" | "ga";
1203
+ createdAt?: string;
1204
+ updatedAt?: string;
1205
+ details?: {
1206
+ email: string;
1207
+ firstName: string;
1208
+ lastName: string;
1209
+ city?: string;
1210
+ address?: string;
1211
+ phone?: string;
1212
+ dateOfBirth?: string;
1213
+ ppsn?: string;
1214
+ preferredLanguage: "en" | "ga";
1215
+ };
891
1216
  };
892
1217
  metadata?: {
893
1218
  links?: {
@@ -917,7 +1242,7 @@ export declare class Profile extends BaseClient<paths> {
917
1242
  };
918
1243
  };
919
1244
  };
920
- 500: {
1245
+ "4XX": {
921
1246
  headers: {
922
1247
  [name: string]: unknown;
923
1248
  };
@@ -927,53 +1252,58 @@ export declare class Profile extends BaseClient<paths> {
927
1252
  detail: string;
928
1253
  requestId: string;
929
1254
  name: string;
930
- validation?: unknown;
1255
+ validation?: {
1256
+ fieldName: string;
1257
+ message: string;
1258
+ }[];
931
1259
  validationContext?: string;
1260
+ statusCode: number;
1261
+ };
1262
+ };
1263
+ };
1264
+ "5XX": {
1265
+ headers: {
1266
+ [name: string]: unknown;
1267
+ };
1268
+ content: {
1269
+ "application/json": {
1270
+ code: string;
1271
+ detail: string;
1272
+ requestId: string;
1273
+ name: string;
1274
+ validation?: {
1275
+ fieldName: string;
1276
+ message: string;
1277
+ }[];
1278
+ validationContext?: string;
1279
+ statusCode: number;
932
1280
  };
933
1281
  };
934
1282
  };
935
1283
  };
936
1284
  }, {
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;
1285
+ params: {
1286
+ query: {
1287
+ email?: string;
1288
+ firstName?: string;
1289
+ lastName?: string;
1290
+ phone?: string;
1291
+ } | undefined;
949
1292
  };
950
1293
  }>>;
951
- updateUser(userId: string, data: paths["/api/v1/users/{userId}"]["put"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1294
+ /**
1295
+ * @deprecated Use getProfile() instead of getUser()
1296
+ */
1297
+ selectUsers(ids: paths["/api/v1/profiles/select-profiles"]["get"]["parameters"]["query"]["ids"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
952
1298
  parameters: {
953
- query?: never;
954
- header?: never;
955
- path: {
956
- userId: string;
1299
+ query: {
1300
+ ids: string;
957
1301
  };
1302
+ header?: never;
1303
+ path?: never;
958
1304
  cookie?: never;
959
1305
  };
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
- };
1306
+ requestBody?: never;
977
1307
  responses: {
978
1308
  200: {
979
1309
  headers: {
@@ -983,7 +1313,25 @@ export declare class Profile extends BaseClient<paths> {
983
1313
  "application/json": {
984
1314
  data: {
985
1315
  id: string;
986
- };
1316
+ publicName: string;
1317
+ email: string;
1318
+ primaryUserId: string;
1319
+ safeLevel?: number;
1320
+ preferredLanguage: "en" | "ga";
1321
+ createdAt?: string;
1322
+ updatedAt?: string;
1323
+ details?: {
1324
+ email: string;
1325
+ firstName: string;
1326
+ lastName: string;
1327
+ city?: string;
1328
+ address?: string;
1329
+ phone?: string;
1330
+ dateOfBirth?: string;
1331
+ ppsn?: string;
1332
+ preferredLanguage: "en" | "ga";
1333
+ };
1334
+ }[];
987
1335
  metadata?: {
988
1336
  links?: {
989
1337
  self: {
@@ -1012,7 +1360,7 @@ export declare class Profile extends BaseClient<paths> {
1012
1360
  };
1013
1361
  };
1014
1362
  };
1015
- 404: {
1363
+ "4XX": {
1016
1364
  headers: {
1017
1365
  [name: string]: unknown;
1018
1366
  };
@@ -1022,12 +1370,16 @@ export declare class Profile extends BaseClient<paths> {
1022
1370
  detail: string;
1023
1371
  requestId: string;
1024
1372
  name: string;
1025
- validation?: unknown;
1373
+ validation?: {
1374
+ fieldName: string;
1375
+ message: string;
1376
+ }[];
1026
1377
  validationContext?: string;
1378
+ statusCode: number;
1027
1379
  };
1028
1380
  };
1029
1381
  };
1030
- 500: {
1382
+ "5XX": {
1031
1383
  headers: {
1032
1384
  [name: string]: unknown;
1033
1385
  };
@@ -1037,50 +1389,33 @@ export declare class Profile extends BaseClient<paths> {
1037
1389
  detail: string;
1038
1390
  requestId: string;
1039
1391
  name: string;
1040
- validation?: unknown;
1392
+ validation?: {
1393
+ fieldName: string;
1394
+ message: string;
1395
+ }[];
1041
1396
  validationContext?: string;
1397
+ statusCode: number;
1042
1398
  };
1043
1399
  };
1044
1400
  };
1045
1401
  };
1046
1402
  }, {
1047
1403
  params: {
1048
- path: {
1049
- userId: string;
1404
+ query: {
1405
+ ids: string;
1050
1406
  };
1051
1407
  };
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
1408
  }>>;
1066
- patchUser(userId: string, data?: NonNullable<paths["/api/v1/users/{userId}"]["patch"]["requestBody"]>["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1409
+ selectProfiles(ids: paths["/api/v1/profiles/select-profiles"]["get"]["parameters"]["query"]["ids"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1067
1410
  parameters: {
1068
- query?: never;
1069
- header?: never;
1070
- path: {
1071
- userId: string;
1411
+ query: {
1412
+ ids: string;
1072
1413
  };
1414
+ header?: never;
1415
+ path?: never;
1073
1416
  cookie?: never;
1074
1417
  };
1075
- requestBody?: {
1076
- content: {
1077
- "application/json": {
1078
- ppsnVisible?: boolean;
1079
- consentToPrefillData?: boolean;
1080
- preferredLanguage?: string;
1081
- };
1082
- };
1083
- };
1418
+ requestBody?: never;
1084
1419
  responses: {
1085
1420
  200: {
1086
1421
  headers: {
@@ -1090,7 +1425,25 @@ export declare class Profile extends BaseClient<paths> {
1090
1425
  "application/json": {
1091
1426
  data: {
1092
1427
  id: string;
1093
- };
1428
+ publicName: string;
1429
+ email: string;
1430
+ primaryUserId: string;
1431
+ safeLevel?: number;
1432
+ preferredLanguage: "en" | "ga";
1433
+ createdAt?: string;
1434
+ updatedAt?: string;
1435
+ details?: {
1436
+ email: string;
1437
+ firstName: string;
1438
+ lastName: string;
1439
+ city?: string;
1440
+ address?: string;
1441
+ phone?: string;
1442
+ dateOfBirth?: string;
1443
+ ppsn?: string;
1444
+ preferredLanguage: "en" | "ga";
1445
+ };
1446
+ }[];
1094
1447
  metadata?: {
1095
1448
  links?: {
1096
1449
  self: {
@@ -1119,7 +1472,7 @@ export declare class Profile extends BaseClient<paths> {
1119
1472
  };
1120
1473
  };
1121
1474
  };
1122
- 404: {
1475
+ "4XX": {
1123
1476
  headers: {
1124
1477
  [name: string]: unknown;
1125
1478
  };
@@ -1129,12 +1482,16 @@ export declare class Profile extends BaseClient<paths> {
1129
1482
  detail: string;
1130
1483
  requestId: string;
1131
1484
  name: string;
1132
- validation?: unknown;
1485
+ validation?: {
1486
+ fieldName: string;
1487
+ message: string;
1488
+ }[];
1133
1489
  validationContext?: string;
1490
+ statusCode: number;
1134
1491
  };
1135
1492
  };
1136
1493
  };
1137
- 500: {
1494
+ "5XX": {
1138
1495
  headers: {
1139
1496
  [name: string]: unknown;
1140
1497
  };
@@ -1144,35 +1501,29 @@ export declare class Profile extends BaseClient<paths> {
1144
1501
  detail: string;
1145
1502
  requestId: string;
1146
1503
  name: string;
1147
- validation?: unknown;
1504
+ validation?: {
1505
+ fieldName: string;
1506
+ message: string;
1507
+ }[];
1148
1508
  validationContext?: string;
1509
+ statusCode: number;
1149
1510
  };
1150
1511
  };
1151
1512
  };
1152
1513
  };
1153
1514
  }, {
1154
1515
  params: {
1155
- path: {
1156
- userId: string;
1516
+ query: {
1517
+ ids: string;
1157
1518
  };
1158
1519
  };
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<{
1520
+ }>>;
1521
+ listProfiles(query: paths["/api/v1/profiles/"]["get"]["parameters"]["query"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1166
1522
  parameters: {
1167
1523
  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;
1524
+ search?: string;
1525
+ offset?: string;
1526
+ limit?: string;
1176
1527
  };
1177
1528
  header?: never;
1178
1529
  path?: never;
@@ -1188,10 +1539,14 @@ export declare class Profile extends BaseClient<paths> {
1188
1539
  "application/json": {
1189
1540
  data: {
1190
1541
  id: string;
1191
- firstname: string;
1192
- lastname: string;
1193
- matchQuality: "exact" | "approximate";
1194
- };
1542
+ publicName: string;
1543
+ email: string;
1544
+ primaryUserId: string;
1545
+ safeLevel?: number;
1546
+ preferredLanguage: "en" | "ga";
1547
+ createdAt?: string;
1548
+ updatedAt?: string;
1549
+ }[];
1195
1550
  metadata?: {
1196
1551
  links?: {
1197
1552
  self: {
@@ -1220,7 +1575,7 @@ export declare class Profile extends BaseClient<paths> {
1220
1575
  };
1221
1576
  };
1222
1577
  };
1223
- 404: {
1578
+ "4XX": {
1224
1579
  headers: {
1225
1580
  [name: string]: unknown;
1226
1581
  };
@@ -1230,12 +1585,16 @@ export declare class Profile extends BaseClient<paths> {
1230
1585
  detail: string;
1231
1586
  requestId: string;
1232
1587
  name: string;
1233
- validation?: unknown;
1588
+ validation?: {
1589
+ fieldName: string;
1590
+ message: string;
1591
+ }[];
1234
1592
  validationContext?: string;
1593
+ statusCode: number;
1235
1594
  };
1236
1595
  };
1237
1596
  };
1238
- 500: {
1597
+ "5XX": {
1239
1598
  headers: {
1240
1599
  [name: string]: unknown;
1241
1600
  };
@@ -1245,8 +1604,12 @@ export declare class Profile extends BaseClient<paths> {
1245
1604
  detail: string;
1246
1605
  requestId: string;
1247
1606
  name: string;
1248
- validation?: unknown;
1607
+ validation?: {
1608
+ fieldName: string;
1609
+ message: string;
1610
+ }[];
1249
1611
  validationContext?: string;
1612
+ statusCode: number;
1250
1613
  };
1251
1614
  };
1252
1615
  };
@@ -1254,28 +1617,65 @@ export declare class Profile extends BaseClient<paths> {
1254
1617
  }, {
1255
1618
  params: {
1256
1619
  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;
1620
+ search?: string;
1621
+ offset?: string;
1622
+ limit?: string;
1265
1623
  } | undefined;
1266
1624
  };
1267
1625
  }>>;
1268
- selectUsers(ids: paths["/api/v1/users/select"]["post"]["requestBody"]["content"]["application/json"]["ids"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1626
+ importProfiles(toImport: {
1627
+ file?: File;
1628
+ records?: NonNullable<paths["/api/v1/profiles/import-profiles"]["post"]["requestBody"]>["content"]["application/json"]["profiles"];
1629
+ }): Promise<import("../../utils/client-utils.js").DataResponseValue<{
1269
1630
  parameters: {
1270
1631
  query?: never;
1271
1632
  header?: never;
1272
1633
  path?: never;
1273
1634
  cookie?: never;
1274
1635
  };
1275
- requestBody: {
1636
+ requestBody?: {
1276
1637
  content: {
1277
1638
  "application/json": {
1278
- ids: string[];
1639
+ profiles?: {
1640
+ email: string;
1641
+ firstName: string;
1642
+ lastName: string;
1643
+ city?: string;
1644
+ address?: string;
1645
+ phone?: string;
1646
+ dateOfBirth?: string;
1647
+ ppsn?: string;
1648
+ preferredLanguage?: "en" | "ga";
1649
+ }[];
1650
+ file?: unknown;
1651
+ };
1652
+ "multipart/form-data": {
1653
+ profiles?: {
1654
+ email: string;
1655
+ firstName: string;
1656
+ lastName: string;
1657
+ city?: string;
1658
+ address?: string;
1659
+ phone?: string;
1660
+ dateOfBirth?: string;
1661
+ ppsn?: string;
1662
+ preferredLanguage?: "en" | "ga";
1663
+ }[];
1664
+ file?: unknown;
1665
+ };
1666
+ "text/csv": {
1667
+ profiles?: {
1668
+ email: string;
1669
+ firstName: string;
1670
+ lastName: string;
1671
+ city?: string;
1672
+ address?: string;
1673
+ phone?: string;
1674
+ dateOfBirth?: string;
1675
+ ppsn?: string;
1676
+ preferredLanguage?: "en" | "ga";
1677
+ }[];
1678
+ file?: unknown;
1279
1679
  };
1280
1680
  };
1281
1681
  };
@@ -1286,40 +1686,8 @@ export declare class Profile extends BaseClient<paths> {
1286
1686
  };
1287
1687
  content: {
1288
1688
  "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
- };
1689
+ status: string;
1690
+ jobId: string;
1323
1691
  };
1324
1692
  };
1325
1693
  };
@@ -1333,8 +1701,12 @@ export declare class Profile extends BaseClient<paths> {
1333
1701
  detail: string;
1334
1702
  requestId: string;
1335
1703
  name: string;
1336
- validation?: unknown;
1704
+ validation?: {
1705
+ fieldName: string;
1706
+ message: string;
1707
+ }[];
1337
1708
  validationContext?: string;
1709
+ statusCode: number;
1338
1710
  };
1339
1711
  };
1340
1712
  };
@@ -1348,16 +1720,86 @@ export declare class Profile extends BaseClient<paths> {
1348
1720
  detail: string;
1349
1721
  requestId: string;
1350
1722
  name: string;
1351
- validation?: unknown;
1723
+ validation?: {
1724
+ fieldName: string;
1725
+ message: string;
1726
+ }[];
1352
1727
  validationContext?: string;
1728
+ statusCode: number;
1353
1729
  };
1354
1730
  };
1355
1731
  };
1356
1732
  };
1357
1733
  }, {
1358
1734
  body: {
1359
- ids: string[];
1735
+ profiles: {
1736
+ email: string;
1737
+ firstName: string;
1738
+ lastName: string;
1739
+ city?: string;
1740
+ address?: string;
1741
+ phone?: string;
1742
+ dateOfBirth?: string;
1743
+ ppsn?: string;
1744
+ preferredLanguage?: "en" | "ga";
1745
+ }[] | undefined;
1360
1746
  };
1361
- }>>;
1747
+ }> | {
1748
+ data: {
1749
+ status: string;
1750
+ jobId: string;
1751
+ } | undefined;
1752
+ error: import("openapi-typescript-helpers").ErrorResponse<{
1753
+ 200: {
1754
+ headers: {
1755
+ [name: string]: unknown;
1756
+ };
1757
+ content: {
1758
+ "application/json": {
1759
+ status: string;
1760
+ jobId: string;
1761
+ };
1762
+ };
1763
+ };
1764
+ "4XX": {
1765
+ headers: {
1766
+ [name: string]: unknown;
1767
+ };
1768
+ content: {
1769
+ "application/json": {
1770
+ code: string;
1771
+ detail: string;
1772
+ requestId: string;
1773
+ name: string;
1774
+ validation?: {
1775
+ fieldName: string;
1776
+ message: string;
1777
+ }[];
1778
+ validationContext?: string;
1779
+ statusCode: number;
1780
+ };
1781
+ };
1782
+ };
1783
+ "5XX": {
1784
+ headers: {
1785
+ [name: string]: unknown;
1786
+ };
1787
+ content: {
1788
+ "application/json": {
1789
+ code: string;
1790
+ detail: string;
1791
+ requestId: string;
1792
+ name: string;
1793
+ validation?: {
1794
+ fieldName: string;
1795
+ message: string;
1796
+ }[];
1797
+ validationContext?: string;
1798
+ statusCode: number;
1799
+ };
1800
+ };
1801
+ };
1802
+ }, `${string}/${string}`> | undefined;
1803
+ }>;
1362
1804
  }
1363
1805
  //# sourceMappingURL=index.d.ts.map