@ogcio/building-blocks-sdk 0.2.87 → 0.2.89

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.
@@ -0,0 +1,333 @@
1
+ import type createClient from "openapi-fetch";
2
+ import type { Logger } from "../../../types/index.js";
3
+ import type { paths } from "./schema.js";
4
+ export declare class ProfileSupport {
5
+ private readonly client;
6
+ private readonly serviceName;
7
+ private readonly logger;
8
+ constructor(client: ReturnType<typeof createClient<paths>>, serviceName: string, logger: Logger | undefined);
9
+ postProfileSearch(body: paths["/api/v1/support/profiles/search"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
10
+ parameters: {
11
+ query?: never;
12
+ header?: never;
13
+ path?: never;
14
+ cookie?: never;
15
+ };
16
+ requestBody: {
17
+ content: {
18
+ "application/json": {
19
+ name?: string[];
20
+ email?: string[];
21
+ ppsn?: string[];
22
+ dateOfBirth?: {
23
+ from?: string;
24
+ to?: string;
25
+ }[];
26
+ id?: string[];
27
+ logicalOperator?: "and" | "or";
28
+ offset?: string;
29
+ limit?: string;
30
+ };
31
+ };
32
+ };
33
+ responses: {
34
+ 200: {
35
+ headers: {
36
+ [name: string]: unknown;
37
+ };
38
+ content: {
39
+ "application/json": {
40
+ data: {
41
+ id: string;
42
+ publicName: string;
43
+ email: string;
44
+ organisationId: string | null;
45
+ ppsn: string | null;
46
+ dateOfBirth: string | null;
47
+ primaryUserId: string;
48
+ createdAt: string;
49
+ updatedAt: string;
50
+ deletedAt: string | null;
51
+ preferredLanguage: string;
52
+ status: string;
53
+ safeLevel: number;
54
+ consentStatuses: {
55
+ [key: string]: {
56
+ status: "pending" | "undefined" | "pre-approved" | "opted-out" | "opted-in";
57
+ consent_statement_id: string;
58
+ };
59
+ };
60
+ firstName: string | null;
61
+ lastName: string | null;
62
+ }[];
63
+ metadata?: {
64
+ links?: {
65
+ self: {
66
+ href?: string;
67
+ };
68
+ next?: {
69
+ href?: string;
70
+ };
71
+ prev?: {
72
+ href?: string;
73
+ };
74
+ first: {
75
+ href?: string;
76
+ };
77
+ last: {
78
+ href?: string;
79
+ };
80
+ pages: {
81
+ [key: string]: {
82
+ href?: string;
83
+ };
84
+ };
85
+ };
86
+ totalCount?: number;
87
+ };
88
+ };
89
+ };
90
+ };
91
+ "4XX": {
92
+ headers: {
93
+ [name: string]: unknown;
94
+ };
95
+ content: {
96
+ "application/json": {
97
+ code: string;
98
+ detail: string;
99
+ requestId: string;
100
+ name: string;
101
+ validation?: {
102
+ fieldName: string;
103
+ message: string;
104
+ }[];
105
+ validationContext?: string;
106
+ statusCode: number;
107
+ };
108
+ };
109
+ };
110
+ "5XX": {
111
+ headers: {
112
+ [name: string]: unknown;
113
+ };
114
+ content: {
115
+ "application/json": {
116
+ code: string;
117
+ detail: string;
118
+ requestId: string;
119
+ name: string;
120
+ validation?: {
121
+ fieldName: string;
122
+ message: string;
123
+ }[];
124
+ validationContext?: string;
125
+ statusCode: number;
126
+ };
127
+ };
128
+ };
129
+ };
130
+ }, {
131
+ body: {
132
+ name?: string[];
133
+ email?: string[];
134
+ ppsn?: string[];
135
+ dateOfBirth?: {
136
+ from?: string;
137
+ to?: string;
138
+ }[];
139
+ id?: string[];
140
+ logicalOperator?: "and" | "or";
141
+ offset?: string;
142
+ limit?: string;
143
+ };
144
+ }>>;
145
+ getLatestConsents(query: paths["/api/v1/support/consents/latest"]["get"]["parameters"]["query"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
146
+ parameters: {
147
+ query: {
148
+ profileId: string;
149
+ };
150
+ header?: never;
151
+ path?: never;
152
+ cookie?: never;
153
+ };
154
+ requestBody?: never;
155
+ responses: {
156
+ 200: {
157
+ headers: {
158
+ [name: string]: unknown;
159
+ };
160
+ content: {
161
+ "application/json": {
162
+ data: {
163
+ availableSubjects: string[];
164
+ consents: {
165
+ id: string;
166
+ profileId: string;
167
+ status: "pending" | "undefined" | "pre-approved" | "opted-out" | "opted-in";
168
+ subject: string;
169
+ createdAt: string;
170
+ consentStatementId: string;
171
+ }[];
172
+ };
173
+ metadata?: {
174
+ links?: {
175
+ self: {
176
+ href?: string;
177
+ };
178
+ next?: {
179
+ href?: string;
180
+ };
181
+ prev?: {
182
+ href?: string;
183
+ };
184
+ first: {
185
+ href?: string;
186
+ };
187
+ last: {
188
+ href?: string;
189
+ };
190
+ pages: {
191
+ [key: string]: {
192
+ href?: string;
193
+ };
194
+ };
195
+ };
196
+ totalCount?: number;
197
+ };
198
+ };
199
+ };
200
+ };
201
+ "4XX": {
202
+ headers: {
203
+ [name: string]: unknown;
204
+ };
205
+ content: {
206
+ "application/json": {
207
+ code: string;
208
+ detail: string;
209
+ requestId: string;
210
+ name: string;
211
+ validation?: {
212
+ fieldName: string;
213
+ message: string;
214
+ }[];
215
+ validationContext?: string;
216
+ statusCode: number;
217
+ };
218
+ };
219
+ };
220
+ "5XX": {
221
+ headers: {
222
+ [name: string]: unknown;
223
+ };
224
+ content: {
225
+ "application/json": {
226
+ code: string;
227
+ detail: string;
228
+ requestId: string;
229
+ name: string;
230
+ validation?: {
231
+ fieldName: string;
232
+ message: string;
233
+ }[];
234
+ validationContext?: string;
235
+ statusCode: number;
236
+ };
237
+ };
238
+ };
239
+ };
240
+ }, {
241
+ params: {
242
+ query: {
243
+ profileId: string;
244
+ };
245
+ };
246
+ }>>;
247
+ submitConsents(body: paths["/api/v1/support/consents/"]["post"]["requestBody"]["content"]["application/json"]): Promise<import("../../utils/client-utils.js").DataResponseValue<{
248
+ parameters: {
249
+ query?: never;
250
+ header?: never;
251
+ path?: never;
252
+ cookie?: never;
253
+ };
254
+ requestBody: {
255
+ content: {
256
+ "application/json": {
257
+ profileId: string;
258
+ consents: {
259
+ subject: string;
260
+ status: "pending" | "undefined" | "pre-approved" | "opted-out" | "opted-in";
261
+ }[];
262
+ };
263
+ };
264
+ };
265
+ responses: {
266
+ 201: {
267
+ headers: {
268
+ [name: string]: unknown;
269
+ };
270
+ content: {
271
+ "application/json": {
272
+ data: {
273
+ id: string;
274
+ subject: string;
275
+ status: "pending" | "undefined" | "pre-approved" | "opted-out" | "opted-in";
276
+ submittedAt: string;
277
+ consentStatementId: string;
278
+ statementVersion: number;
279
+ isLatestStatement: boolean;
280
+ }[];
281
+ };
282
+ };
283
+ };
284
+ "4XX": {
285
+ headers: {
286
+ [name: string]: unknown;
287
+ };
288
+ content: {
289
+ "application/json": {
290
+ code: string;
291
+ detail: string;
292
+ requestId: string;
293
+ name: string;
294
+ validation?: {
295
+ fieldName: string;
296
+ message: string;
297
+ }[];
298
+ validationContext?: string;
299
+ statusCode: number;
300
+ };
301
+ };
302
+ };
303
+ "5XX": {
304
+ headers: {
305
+ [name: string]: unknown;
306
+ };
307
+ content: {
308
+ "application/json": {
309
+ code: string;
310
+ detail: string;
311
+ requestId: string;
312
+ name: string;
313
+ validation?: {
314
+ fieldName: string;
315
+ message: string;
316
+ }[];
317
+ validationContext?: string;
318
+ statusCode: number;
319
+ };
320
+ };
321
+ };
322
+ };
323
+ }, {
324
+ body: {
325
+ profileId: string;
326
+ consents: {
327
+ subject: string;
328
+ status: "pending" | "undefined" | "pre-approved" | "opted-out" | "opted-in";
329
+ }[];
330
+ };
331
+ }>>;
332
+ }
333
+ //# sourceMappingURL=support.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"support.d.ts","sourceRoot":"","sources":["../../../../src/client/clients/profile/support.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,qBAAa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFN,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,KAAK,CA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6B,CAAC;;;;yCAAsK,CAAC;;;;;;;;;;;;;IAb9hoG,cAAc,CAClB,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC;;iBAYyooG,CAAC;kBAA2B,CAAC;gBAAyB,CAAC;kBAA2B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAqlE,CAAC;;;;yCAAsK,CAAC;;;;;;;;;;;;;;;kCAAw6B,CAAC;;;;yCAAsK,CAAC;;;;;;;;;;;;;;;CAD1ovG"}
@@ -0,0 +1,33 @@
1
+ import { formatError, formatResponse } from "../../utils/client-utils.js";
2
+ export class ProfileSupport {
3
+ client;
4
+ serviceName;
5
+ logger;
6
+ constructor(client, serviceName, logger) {
7
+ this.client = client;
8
+ this.serviceName = serviceName;
9
+ this.logger = logger;
10
+ }
11
+ async postProfileSearch(body) {
12
+ return this.client
13
+ .POST("/api/v1/support/profiles/search", {
14
+ body,
15
+ })
16
+ .then((response) => formatResponse(response, this.serviceName, this.logger), (reason) => formatError(reason, this.serviceName, this.logger));
17
+ }
18
+ async getLatestConsents(query) {
19
+ return this.client
20
+ .GET("/api/v1/support/consents/latest", {
21
+ params: { query },
22
+ })
23
+ .then((response) => formatResponse(response, this.serviceName, this.logger), (reason) => formatError(reason, this.serviceName, this.logger));
24
+ }
25
+ async submitConsents(body) {
26
+ return this.client
27
+ .POST("/api/v1/support/consents/", {
28
+ body,
29
+ })
30
+ .then((response) => formatResponse(response, this.serviceName, this.logger), (reason) => formatError(reason, this.serviceName, this.logger));
31
+ }
32
+ }
33
+ //# sourceMappingURL=support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"support.js","sourceRoot":"","sources":["../../../../src/client/clients/profile/support.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAG1E,MAAM,O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EAAE,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,CAC/D,CAAC;IACN,CAAC;CACF"}
@@ -22,7 +22,7 @@
22
22
  "messaging:template:*",
23
23
  "messaging:event:read"
24
24
  ],
25
- "updateDefinitions": true
25
+ "updateDefinitions": false
26
26
  },
27
27
  {
28
28
  "name": "upload",
@@ -30,7 +30,7 @@
30
30
  "openApiDefinitionFormat": "yaml",
31
31
  "citizenPermissions": ["upload:file.self:write", "upload:file.self:read"],
32
32
  "publicServantPermissions": ["upload:file:*", "profile:user:read"],
33
- "updateDefinitions": true
33
+ "updateDefinitions": false
34
34
  },
35
35
  {
36
36
  "name": "payments",
@@ -56,11 +56,11 @@
56
56
  "openApiDefinitionFormat": "yaml",
57
57
  "citizenPermissions": ["scheduler:jobs:write"],
58
58
  "publicServantPermissions": ["scheduler:jobs:write"],
59
- "updateDefinitions": true
59
+ "updateDefinitions": false
60
60
  },
61
61
  {
62
62
  "name": "profile",
63
- "openApiDefinitionUrl": "https://raw.githubusercontent.com/ogcio/govie-services-profile/refs/heads/dev/apps/profile-api/openapi-definition.yml",
63
+ "openApiDefinitionUrl": "http://localhost:8003/docs/yaml",
64
64
  "openApiDefinitionFormat": "yaml",
65
65
  "citizenPermissions": [
66
66
  "profile:user.self:read",
@@ -75,7 +75,7 @@
75
75
  "openApiDefinitionFormat": "json",
76
76
  "citizenPermissions": [],
77
77
  "publicServantPermissions": [],
78
- "updateDefinitions": true
78
+ "updateDefinitions": false
79
79
  },
80
80
  {
81
81
  "name": "journey",
@@ -91,7 +91,7 @@
91
91
  "integrator:step:*",
92
92
  "integrator:run:read"
93
93
  ],
94
- "updateDefinitions": true
94
+ "updateDefinitions": false
95
95
  },
96
96
  {
97
97
  "name": "auditCollector",
@@ -99,7 +99,7 @@
99
99
  "openApiDefinitionFormat": "yaml",
100
100
  "citizenPermissions": [],
101
101
  "publicServantPermissions": [],
102
- "updateDefinitions": true
102
+ "updateDefinitions": false
103
103
  }
104
104
  ]
105
105
  }
@@ -27,7 +27,7 @@ function ensureBuildingBlockNameIsValid(bbName) {
27
27
  }
28
28
  export async function readConfigurationFile(configurationFilePath) {
29
29
  const { default: rawConfigurationFile } = await import(configurationFilePath, {
30
- assert: {
30
+ with: {
31
31
  type: "json",
32
32
  },
33
33
  });
@@ -1 +1 @@
1
- {"version":3,"file":"read-configuration-file.js","sourceRoot":"","sources":["../../src/clients-configurations/read-configuration-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,mCAAa,CAAA;AACf,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED,MAAM,gCAAgC,GAAG,IAAI,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;IACnB,oBAAoB,EAAE,IAAI,CAAC,MAAM,EAAE;IACnC,uBAAuB,EAAE,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC;IACtD,kBAAkB,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC9D,wBAAwB,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACpE,iBAAiB,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;CACnD,CAAC,CAAC;AAMH,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC;IAClC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,gCAAgC,CAAC;CAC7D,CAAC,CAAC;AAMH,SAAS,8BAA8B,CAAC,MAAc;IACpD,oDAAoD;IACpD,uDAAuD;IACvD,qDAAqD;IACrD,wBAAwB;IACxB,MAAM,KAAK,GAAG,cAAc,CAAC;IAC7B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;QACrB,MAAM,IAAI,KAAK,CACb,mDAAmD,MAAM,eAAe,CACzE,CAAC;AACN,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,qBAA6B;IAE7B,MAAM,EAAE,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,MAAM,CACpD,qBAAqB,EACrB;QACE,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;SACb;KACF,CACF,CAAC;IAEF,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,EAAE,oBAAoB,CAAC,CAAC;IAEtE,8DAA8D;IAC9D,4DAA4D;IAC5D,kDAAkD;IAClD,mDAAmD;IACnD,8BAA8B;IAC9B,MAAM,UAAU,GAAsB,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;IAC7D,KAAK,MAAM,WAAW,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC;QACpD,8BAA8B,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACjD,UAAU,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC;IAC5D,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
1
+ {"version":3,"file":"read-configuration-file.js","sourceRoot":"","sources":["../../src/clients-configurations/read-configuration-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,mCAAa,CAAA;IACb,mCAAa,CAAA;AACf,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B;AAED,MAAM,gCAAgC,GAAG,IAAI,CAAC,MAAM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EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;IAC7D,KAAK,MAAM,WAAW,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC;QACpD,8BAA8B,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACjD,UAAU,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC;IAC5D,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@ogcio/building-blocks-sdk",
3
- "version": "0.2.87",
3
+ "version": "0.2.89",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@ogcio/analytics-sdk": "^0.2.9",
9
- "typebox": "^1.1.4",
8
+ "@ogcio/analytics-sdk": "^0.2.11",
9
+ "typebox": "^1.1.11",
10
10
  "commander": "^14.0.3",
11
11
  "http-errors": "^2.0.1",
12
12
  "openapi-fetch": "^0.17.0",
13
13
  "openapi-typescript": "^7.13.0",
14
14
  "openapi-typescript-helpers": "^0.1.0",
15
15
  "safe-stable-stringify": "^2.5.0",
16
- "yaml": "^2.8.2"
16
+ "yaml": "^2.8.3"
17
17
  },
18
18
  "devDependencies": {
19
- "@biomejs/biome": "2.4.4",
20
- "@commitlint/config-conventional": "^20.4.2",
19
+ "@biomejs/biome": "2.4.11",
20
+ "@commitlint/config-conventional": "^20.5.0",
21
21
  "@types/http-errors": "^2.0.5",
22
- "@types/node": "^25.3.1",
23
- "@vitest/coverage-istanbul": "^4.0.18",
24
- "commitlint": "^20.4.2",
22
+ "@types/node": "^25.5.0",
23
+ "@vitest/coverage-istanbul": "^4.1.2",
24
+ "commitlint": "^20.5.0",
25
25
  "husky": "^9.1.7",
26
26
  "tsx": "^4.21.0",
27
- "typescript": "^5.9.3",
28
- "vitest": "^4.0.18"
27
+ "typescript": "^6.0.2",
28
+ "vitest": "^4.1.2"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@logto/node": "2.5.5",
package/renovate.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:recommended",
5
+ ":semanticCommits",
6
+ ":semanticPrefixFixDepsChoreOthers",
7
+ ":prConcurrentLimit10",
8
+ ":maintainLockFilesWeekly",
9
+ ":dependencyDashboard",
10
+ ":ignoreModulesAndTests",
11
+ ":rebaseStalePrs"
12
+ ],
13
+ "minimumReleaseAge": "10 days",
14
+ "schedule": ["at any time"],
15
+ "rangeStrategy": "auto",
16
+ "npm": {
17
+ "enabled": true,
18
+ "postUpdateOptions": ["pnpmDedupe"]
19
+ },
20
+ "azure-pipelines": {
21
+ "enabled": true
22
+ },
23
+ "packageRules": [
24
+ {
25
+ "matchCategories": ["docker"],
26
+ "enabled": true,
27
+ "pinDigests": false
28
+ },
29
+ {
30
+ "matchPackageNames": [
31
+ "@logto/**",
32
+ "@ogcio/design-system-react",
33
+ "@ogcio/theme-govie",
34
+ "@biomejs/biome",
35
+ "next",
36
+ "react",
37
+ "react-dom"
38
+ ],
39
+ "enabled": false
40
+ },
41
+ {
42
+ "matchPackagePatterns": ["*"],
43
+ "matchUpdateTypes": ["minor", "patch"],
44
+ "groupName": "all non-major dependencies",
45
+ "groupSlug": "all-minor-patch"
46
+ }
47
+ ],
48
+ "ignoreDeps": ["husky"],
49
+ "commitBody": "Automated update by Renovate Bot",
50
+ "baseBranches": ["dev"],
51
+ "enabledManagers": ["npm", "dockerfile", "github-actions"]
52
+ }
@@ -14,12 +14,14 @@ import {
14
14
  import { ProfileCitizen } from "./citizen.js";
15
15
  import { ProfileOrganisation } from "./organisation.js";
16
16
  import type { paths } from "./schema.js";
17
+ import { ProfileSupport } from "./support.js";
17
18
 
18
19
  export class Profile extends BaseClient<paths> {
19
20
  protected declare client: ReturnType<typeof createClient<paths>>;
20
21
  protected serviceName = PROFILE;
21
22
  public readonly citizen: ProfileCitizen;
22
23
  public readonly organisation: ProfileOrganisation;
24
+ public readonly support: ProfileSupport;
23
25
 
24
26
  constructor(params: {
25
27
  baseUrl: string;
@@ -37,6 +39,11 @@ export class Profile extends BaseClient<paths> {
37
39
  this.serviceName,
38
40
  this.logger,
39
41
  );
42
+ this.support = new ProfileSupport(
43
+ this.client,
44
+ this.serviceName,
45
+ this.logger,
46
+ );
40
47
  }
41
48
 
42
49
  async getProfile(