@biza-gov/center-sdk 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/README.md +209 -3
- package/dist/chunk-HRJMMM7P.mjs +260 -0
- package/dist/client-uAuKf1a3.d.mts +4148 -0
- package/dist/client-uAuKf1a3.d.ts +4148 -0
- package/dist/index.d.mts +65 -0
- package/dist/index.d.ts +65 -0
- package/dist/index.js +292 -0
- package/dist/index.mjs +18 -0
- package/dist/testing.d.mts +32 -0
- package/dist/testing.d.ts +32 -0
- package/dist/testing.js +331 -0
- package/dist/testing.mjs +56 -0
- package/package.json +54 -4
|
@@ -0,0 +1,4148 @@
|
|
|
1
|
+
/** GovCenter environments with a known API address. */
|
|
2
|
+
type GovCenterEnvironment = 'production' | 'uat';
|
|
3
|
+
interface GovCenterClientConfig {
|
|
4
|
+
/**
|
|
5
|
+
* Base URL of GovCenter API. Wins over `environment`.
|
|
6
|
+
* Defaults to process.env.GOVCENTER_API_URL or process.env.IAM_API_URL, then the address of
|
|
7
|
+
* `environment`, then 'http://localhost:4001'
|
|
8
|
+
*/
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Which GovCenter to call when no base URL is given: `uat` = https://uat-api-auth.govcenter.co,
|
|
12
|
+
* `production` = https://api-auth.govcenter.co.
|
|
13
|
+
* Defaults to process.env.GOVCENTER_ENV
|
|
14
|
+
*/
|
|
15
|
+
environment?: GovCenterEnvironment;
|
|
16
|
+
/**
|
|
17
|
+
* API Key for the e-service. Sent only on `/e-services/*` paths.
|
|
18
|
+
* Defaults to process.env.E_SERVICE_API_KEY
|
|
19
|
+
*/
|
|
20
|
+
apiKey?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Code of the e-service (as registered at GovCenter). Sent as `x-e-service-code` next to
|
|
23
|
+
* `x-api-key`; GovCenter refuses a code that does not match the key.
|
|
24
|
+
* Defaults to process.env.E_SERVICE_CODE
|
|
25
|
+
*/
|
|
26
|
+
serviceCode?: string;
|
|
27
|
+
/**
|
|
28
|
+
* API Secret for HMAC signature (Phase 4).
|
|
29
|
+
* Defaults to process.env.E_SERVICE_API_SECRET
|
|
30
|
+
*/
|
|
31
|
+
apiSecret?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Timeout in milliseconds for each request.
|
|
34
|
+
* Default: 10,000 ms
|
|
35
|
+
*/
|
|
36
|
+
timeoutMs?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Maximum retry attempts. GET is retried on 429, 502, 503, 504, timeouts and network errors;
|
|
39
|
+
* POST/PATCH/DELETE only when `idempotencyKey` is set.
|
|
40
|
+
* Default: 2
|
|
41
|
+
*/
|
|
42
|
+
maxRetries?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Custom fetch function (useful for tests or custom proxies).
|
|
45
|
+
*/
|
|
46
|
+
fetch?: typeof fetch;
|
|
47
|
+
/**
|
|
48
|
+
* Allow creating the client in a browser. The API key would be exposed to every visitor,
|
|
49
|
+
* so this exists only for tests that run in a DOM environment.
|
|
50
|
+
* Default: false
|
|
51
|
+
*/
|
|
52
|
+
dangerouslyAllowBrowser?: boolean;
|
|
53
|
+
}
|
|
54
|
+
/** What `getConfig()` returns: never the key or secret themselves. */
|
|
55
|
+
interface GovCenterClientInfo {
|
|
56
|
+
baseUrl: string;
|
|
57
|
+
/** The environment asked for (`environment` / GOVCENTER_ENV); null when only a URL was given. */
|
|
58
|
+
environment: GovCenterEnvironment | null;
|
|
59
|
+
timeoutMs: number;
|
|
60
|
+
maxRetries: number;
|
|
61
|
+
hasApiKey: boolean;
|
|
62
|
+
hasApiSecret: boolean;
|
|
63
|
+
/** Not secret: the e-service code sent as `x-e-service-code` (empty when unset). */
|
|
64
|
+
serviceCode: string;
|
|
65
|
+
}
|
|
66
|
+
type QueryValue = string | number | boolean | Array<string | number> | undefined | null;
|
|
67
|
+
interface RequestOptions {
|
|
68
|
+
/**
|
|
69
|
+
* URL parameter replacements (e.g., `:id` in `/e-services/residences/:id`).
|
|
70
|
+
*/
|
|
71
|
+
params?: Record<string, string | number>;
|
|
72
|
+
/**
|
|
73
|
+
* Query parameters. Arrays are serialized as comma-separated values (e.g. `layers: ['home', 'stations']` -> `layers=home,stations`).
|
|
74
|
+
*/
|
|
75
|
+
query?: Record<string, QueryValue>;
|
|
76
|
+
/**
|
|
77
|
+
* Request body (for POST, PATCH).
|
|
78
|
+
*/
|
|
79
|
+
body?: unknown;
|
|
80
|
+
/**
|
|
81
|
+
* Custom HTTP headers.
|
|
82
|
+
*/
|
|
83
|
+
headers?: Record<string, string>;
|
|
84
|
+
/**
|
|
85
|
+
* Idempotency Key header. Also makes POST/PATCH/DELETE safe to retry.
|
|
86
|
+
*/
|
|
87
|
+
idempotencyKey?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Custom request timeout in ms for this specific call.
|
|
90
|
+
*/
|
|
91
|
+
timeoutMs?: number;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
type paths = {
|
|
95
|
+
"/e-services/by-code/:code": {
|
|
96
|
+
parameters: {
|
|
97
|
+
query?: never;
|
|
98
|
+
header?: never;
|
|
99
|
+
path?: never;
|
|
100
|
+
cookie?: never;
|
|
101
|
+
};
|
|
102
|
+
/** Get e-service by code (public) */
|
|
103
|
+
get: operations["EServicesController_findByCode"];
|
|
104
|
+
put?: never;
|
|
105
|
+
post?: never;
|
|
106
|
+
delete?: never;
|
|
107
|
+
options?: never;
|
|
108
|
+
head?: never;
|
|
109
|
+
patch?: never;
|
|
110
|
+
trace?: never;
|
|
111
|
+
};
|
|
112
|
+
"/e-services/evaluations": {
|
|
113
|
+
parameters: {
|
|
114
|
+
query?: never;
|
|
115
|
+
header?: never;
|
|
116
|
+
path?: never;
|
|
117
|
+
cookie?: never;
|
|
118
|
+
};
|
|
119
|
+
get?: never;
|
|
120
|
+
put?: never;
|
|
121
|
+
/** A job is done: send the citizen a rating form (LINE) */
|
|
122
|
+
post: operations["ServiceEvaluationsController_request"];
|
|
123
|
+
delete?: never;
|
|
124
|
+
options?: never;
|
|
125
|
+
head?: never;
|
|
126
|
+
patch?: never;
|
|
127
|
+
trace?: never;
|
|
128
|
+
};
|
|
129
|
+
"/e-services/evaluations/by-reference/:reference": {
|
|
130
|
+
parameters: {
|
|
131
|
+
query?: never;
|
|
132
|
+
header?: never;
|
|
133
|
+
path?: never;
|
|
134
|
+
cookie?: never;
|
|
135
|
+
};
|
|
136
|
+
/** Ratings of one of this e-service's jobs */
|
|
137
|
+
get: operations["ServiceEvaluationsController_byReference"];
|
|
138
|
+
put?: never;
|
|
139
|
+
post?: never;
|
|
140
|
+
delete?: never;
|
|
141
|
+
options?: never;
|
|
142
|
+
head?: never;
|
|
143
|
+
patch?: never;
|
|
144
|
+
trace?: never;
|
|
145
|
+
};
|
|
146
|
+
"/e-services/evaluations/stats": {
|
|
147
|
+
parameters: {
|
|
148
|
+
query?: never;
|
|
149
|
+
header?: never;
|
|
150
|
+
path?: never;
|
|
151
|
+
cookie?: never;
|
|
152
|
+
};
|
|
153
|
+
/** This e-service's ratings: scores, aspects, per municipality, per month */
|
|
154
|
+
get: operations["ServiceEvaluationsController_serviceStats"];
|
|
155
|
+
put?: never;
|
|
156
|
+
post?: never;
|
|
157
|
+
delete?: never;
|
|
158
|
+
options?: never;
|
|
159
|
+
head?: never;
|
|
160
|
+
patch?: never;
|
|
161
|
+
trace?: never;
|
|
162
|
+
};
|
|
163
|
+
"/e-services/gis/catalog": {
|
|
164
|
+
parameters: {
|
|
165
|
+
query?: never;
|
|
166
|
+
header?: never;
|
|
167
|
+
path?: never;
|
|
168
|
+
cookie?: never;
|
|
169
|
+
};
|
|
170
|
+
/** The layers the central map can show, what each needs and shows */
|
|
171
|
+
get: operations["ServiceGisController_catalog"];
|
|
172
|
+
put?: never;
|
|
173
|
+
post?: never;
|
|
174
|
+
delete?: never;
|
|
175
|
+
options?: never;
|
|
176
|
+
head?: never;
|
|
177
|
+
patch?: never;
|
|
178
|
+
trace?: never;
|
|
179
|
+
};
|
|
180
|
+
"/e-services/gis/layers/homes/:userId": {
|
|
181
|
+
parameters: {
|
|
182
|
+
query?: never;
|
|
183
|
+
header?: never;
|
|
184
|
+
path?: never;
|
|
185
|
+
cookie?: never;
|
|
186
|
+
};
|
|
187
|
+
/** A user's homes as GeoJSON (residence:read scope) */
|
|
188
|
+
get: operations["ServiceGisController_homes"];
|
|
189
|
+
put?: never;
|
|
190
|
+
post?: never;
|
|
191
|
+
delete?: never;
|
|
192
|
+
options?: never;
|
|
193
|
+
head?: never;
|
|
194
|
+
patch?: never;
|
|
195
|
+
trace?: never;
|
|
196
|
+
};
|
|
197
|
+
"/e-services/gis/layers/stations": {
|
|
198
|
+
parameters: {
|
|
199
|
+
query?: never;
|
|
200
|
+
header?: never;
|
|
201
|
+
path?: never;
|
|
202
|
+
cookie?: never;
|
|
203
|
+
};
|
|
204
|
+
/** Stations and devices as GeoJSON */
|
|
205
|
+
get: operations["ServiceGisController_stations"];
|
|
206
|
+
put?: never;
|
|
207
|
+
post?: never;
|
|
208
|
+
delete?: never;
|
|
209
|
+
options?: never;
|
|
210
|
+
head?: never;
|
|
211
|
+
patch?: never;
|
|
212
|
+
trace?: never;
|
|
213
|
+
};
|
|
214
|
+
"/e-services/gis/map-data": {
|
|
215
|
+
parameters: {
|
|
216
|
+
query?: never;
|
|
217
|
+
header?: never;
|
|
218
|
+
path?: never;
|
|
219
|
+
cookie?: never;
|
|
220
|
+
};
|
|
221
|
+
/** The asked layers as GeoJSON with the basemap, for drawing the map */
|
|
222
|
+
get: operations["ServiceGisController_mapData"];
|
|
223
|
+
put?: never;
|
|
224
|
+
post?: never;
|
|
225
|
+
delete?: never;
|
|
226
|
+
options?: never;
|
|
227
|
+
head?: never;
|
|
228
|
+
patch?: never;
|
|
229
|
+
trace?: never;
|
|
230
|
+
};
|
|
231
|
+
"/e-services/gis/map-sessions": {
|
|
232
|
+
parameters: {
|
|
233
|
+
query?: never;
|
|
234
|
+
header?: never;
|
|
235
|
+
path?: never;
|
|
236
|
+
cookie?: never;
|
|
237
|
+
};
|
|
238
|
+
get?: never;
|
|
239
|
+
put?: never;
|
|
240
|
+
/** Open the central map for a user; embed the returned url */
|
|
241
|
+
post: operations["ServiceGisController_createSession"];
|
|
242
|
+
delete?: never;
|
|
243
|
+
options?: never;
|
|
244
|
+
head?: never;
|
|
245
|
+
patch?: never;
|
|
246
|
+
trace?: never;
|
|
247
|
+
};
|
|
248
|
+
"/e-services/me": {
|
|
249
|
+
parameters: {
|
|
250
|
+
query?: never;
|
|
251
|
+
header?: never;
|
|
252
|
+
path?: never;
|
|
253
|
+
cookie?: never;
|
|
254
|
+
};
|
|
255
|
+
/** What this e-service may use: scopes, municipalities, map layers, notification channels */
|
|
256
|
+
get: operations["EServicesController_me"];
|
|
257
|
+
put?: never;
|
|
258
|
+
post?: never;
|
|
259
|
+
delete?: never;
|
|
260
|
+
options?: never;
|
|
261
|
+
head?: never;
|
|
262
|
+
patch?: never;
|
|
263
|
+
trace?: never;
|
|
264
|
+
};
|
|
265
|
+
"/e-services/municipalities/:id": {
|
|
266
|
+
parameters: {
|
|
267
|
+
query?: never;
|
|
268
|
+
header?: never;
|
|
269
|
+
path?: never;
|
|
270
|
+
cookie?: never;
|
|
271
|
+
};
|
|
272
|
+
/** Municipality summary with seat counts (org:read) */
|
|
273
|
+
get: operations["EServiceOrgController_municipality"];
|
|
274
|
+
put?: never;
|
|
275
|
+
post?: never;
|
|
276
|
+
delete?: never;
|
|
277
|
+
options?: never;
|
|
278
|
+
head?: never;
|
|
279
|
+
patch?: never;
|
|
280
|
+
trace?: never;
|
|
281
|
+
};
|
|
282
|
+
"/e-services/municipalities/:id/org-units": {
|
|
283
|
+
parameters: {
|
|
284
|
+
query?: never;
|
|
285
|
+
header?: never;
|
|
286
|
+
path?: never;
|
|
287
|
+
cookie?: never;
|
|
288
|
+
};
|
|
289
|
+
/** Org units and their supervising seat (org:read) */
|
|
290
|
+
get: operations["EServiceOrgController_orgUnits"];
|
|
291
|
+
put?: never;
|
|
292
|
+
post?: never;
|
|
293
|
+
delete?: never;
|
|
294
|
+
options?: never;
|
|
295
|
+
head?: never;
|
|
296
|
+
patch?: never;
|
|
297
|
+
trace?: never;
|
|
298
|
+
};
|
|
299
|
+
"/e-services/municipalities/:id/staff": {
|
|
300
|
+
parameters: {
|
|
301
|
+
query?: never;
|
|
302
|
+
header?: never;
|
|
303
|
+
path?: never;
|
|
304
|
+
cookie?: never;
|
|
305
|
+
};
|
|
306
|
+
/** People in FILLED seats; names only with profile:basic + consent (org:read) */
|
|
307
|
+
get: operations["EServiceOrgController_staff"];
|
|
308
|
+
put?: never;
|
|
309
|
+
post?: never;
|
|
310
|
+
delete?: never;
|
|
311
|
+
options?: never;
|
|
312
|
+
head?: never;
|
|
313
|
+
patch?: never;
|
|
314
|
+
trace?: never;
|
|
315
|
+
};
|
|
316
|
+
"/e-services/notifications": {
|
|
317
|
+
parameters: {
|
|
318
|
+
query?: never;
|
|
319
|
+
header?: never;
|
|
320
|
+
path?: never;
|
|
321
|
+
cookie?: never;
|
|
322
|
+
};
|
|
323
|
+
get?: never;
|
|
324
|
+
put?: never;
|
|
325
|
+
/** Send a notification through the central LINE OA (server-to-server) */
|
|
326
|
+
post: operations["NotificationsController_send"];
|
|
327
|
+
delete?: never;
|
|
328
|
+
options?: never;
|
|
329
|
+
head?: never;
|
|
330
|
+
patch?: never;
|
|
331
|
+
trace?: never;
|
|
332
|
+
};
|
|
333
|
+
"/e-services/notifications/:id": {
|
|
334
|
+
parameters: {
|
|
335
|
+
query?: never;
|
|
336
|
+
header?: never;
|
|
337
|
+
path?: never;
|
|
338
|
+
cookie?: never;
|
|
339
|
+
};
|
|
340
|
+
/** Status of one of this e-service's notifications */
|
|
341
|
+
get: operations["NotificationsController_findOne"];
|
|
342
|
+
put?: never;
|
|
343
|
+
post?: never;
|
|
344
|
+
delete?: never;
|
|
345
|
+
options?: never;
|
|
346
|
+
head?: never;
|
|
347
|
+
patch?: never;
|
|
348
|
+
trace?: never;
|
|
349
|
+
};
|
|
350
|
+
"/e-services/notifications/search": {
|
|
351
|
+
parameters: {
|
|
352
|
+
query?: never;
|
|
353
|
+
header?: never;
|
|
354
|
+
path?: never;
|
|
355
|
+
cookie?: never;
|
|
356
|
+
};
|
|
357
|
+
/** This e-service's notifications, newest first (filter by reference) */
|
|
358
|
+
get: operations["NotificationsController_list"];
|
|
359
|
+
put?: never;
|
|
360
|
+
post?: never;
|
|
361
|
+
delete?: never;
|
|
362
|
+
options?: never;
|
|
363
|
+
head?: never;
|
|
364
|
+
patch?: never;
|
|
365
|
+
trace?: never;
|
|
366
|
+
};
|
|
367
|
+
"/e-services/profiles/:userId": {
|
|
368
|
+
parameters: {
|
|
369
|
+
query?: never;
|
|
370
|
+
header?: never;
|
|
371
|
+
path?: never;
|
|
372
|
+
cookie?: never;
|
|
373
|
+
};
|
|
374
|
+
/** Read profile fields allowed by scope and the user consent */
|
|
375
|
+
get: operations["EServiceProfilesController_read"];
|
|
376
|
+
put?: never;
|
|
377
|
+
post?: never;
|
|
378
|
+
delete?: never;
|
|
379
|
+
options?: never;
|
|
380
|
+
head?: never;
|
|
381
|
+
patch?: never;
|
|
382
|
+
trace?: never;
|
|
383
|
+
};
|
|
384
|
+
"/e-services/profiles/:userId/consents": {
|
|
385
|
+
parameters: {
|
|
386
|
+
query?: never;
|
|
387
|
+
header?: never;
|
|
388
|
+
path?: never;
|
|
389
|
+
cookie?: never;
|
|
390
|
+
};
|
|
391
|
+
/** What the user allowed this e-service to read */
|
|
392
|
+
get: operations["EServiceProfilesController_consents"];
|
|
393
|
+
put?: never;
|
|
394
|
+
post?: never;
|
|
395
|
+
delete?: never;
|
|
396
|
+
options?: never;
|
|
397
|
+
head?: never;
|
|
398
|
+
patch?: never;
|
|
399
|
+
trace?: never;
|
|
400
|
+
};
|
|
401
|
+
"/e-services/residences": {
|
|
402
|
+
parameters: {
|
|
403
|
+
query?: never;
|
|
404
|
+
header?: never;
|
|
405
|
+
path?: never;
|
|
406
|
+
cookie?: never;
|
|
407
|
+
};
|
|
408
|
+
/** Verified residences of the municipalities bound to this e-service (residence:read) */
|
|
409
|
+
get: operations["EServiceResidencesController_list"];
|
|
410
|
+
put?: never;
|
|
411
|
+
post?: never;
|
|
412
|
+
delete?: never;
|
|
413
|
+
options?: never;
|
|
414
|
+
head?: never;
|
|
415
|
+
patch?: never;
|
|
416
|
+
trace?: never;
|
|
417
|
+
};
|
|
418
|
+
"/e-services/residences/:id": {
|
|
419
|
+
parameters: {
|
|
420
|
+
query?: never;
|
|
421
|
+
header?: never;
|
|
422
|
+
path?: never;
|
|
423
|
+
cookie?: never;
|
|
424
|
+
};
|
|
425
|
+
/** Get residence details for an E-Service (server-to-server) */
|
|
426
|
+
get: operations["EServicesController_getResidenceForService"];
|
|
427
|
+
put?: never;
|
|
428
|
+
post?: never;
|
|
429
|
+
delete?: never;
|
|
430
|
+
options?: never;
|
|
431
|
+
head?: never;
|
|
432
|
+
patch?: never;
|
|
433
|
+
trace?: never;
|
|
434
|
+
};
|
|
435
|
+
"/e-services/residences/:id/invitations": {
|
|
436
|
+
parameters: {
|
|
437
|
+
query?: never;
|
|
438
|
+
header?: never;
|
|
439
|
+
path?: never;
|
|
440
|
+
cookie?: never;
|
|
441
|
+
};
|
|
442
|
+
get?: never;
|
|
443
|
+
put?: never;
|
|
444
|
+
/** Create a residence invitation on behalf of a verified owner. Accepted invitations remain pending for admin approval. */
|
|
445
|
+
post: operations["EServicesController_createResidenceInvitationForService"];
|
|
446
|
+
delete?: never;
|
|
447
|
+
options?: never;
|
|
448
|
+
head?: never;
|
|
449
|
+
patch?: never;
|
|
450
|
+
trace?: never;
|
|
451
|
+
};
|
|
452
|
+
"/e-services/residences/:id/members": {
|
|
453
|
+
parameters: {
|
|
454
|
+
query?: never;
|
|
455
|
+
header?: never;
|
|
456
|
+
path?: never;
|
|
457
|
+
cookie?: never;
|
|
458
|
+
};
|
|
459
|
+
/** Get verified residence members for an E-Service */
|
|
460
|
+
get: operations["EServicesController_getResidenceMembersForService"];
|
|
461
|
+
put?: never;
|
|
462
|
+
post?: never;
|
|
463
|
+
delete?: never;
|
|
464
|
+
options?: never;
|
|
465
|
+
head?: never;
|
|
466
|
+
patch?: never;
|
|
467
|
+
trace?: never;
|
|
468
|
+
};
|
|
469
|
+
"/e-services/residences/by-house-code/:houseCode": {
|
|
470
|
+
parameters: {
|
|
471
|
+
query?: never;
|
|
472
|
+
header?: never;
|
|
473
|
+
path?: never;
|
|
474
|
+
cookie?: never;
|
|
475
|
+
};
|
|
476
|
+
/** Find a verified house by its 11-digit house code (residence:search) */
|
|
477
|
+
get: operations["EServiceResidencesController_byHouseCode"];
|
|
478
|
+
put?: never;
|
|
479
|
+
post?: never;
|
|
480
|
+
delete?: never;
|
|
481
|
+
options?: never;
|
|
482
|
+
head?: never;
|
|
483
|
+
patch?: never;
|
|
484
|
+
trace?: never;
|
|
485
|
+
};
|
|
486
|
+
"/e-services/residences/claim-intents": {
|
|
487
|
+
parameters: {
|
|
488
|
+
query?: never;
|
|
489
|
+
header?: never;
|
|
490
|
+
path?: never;
|
|
491
|
+
cookie?: never;
|
|
492
|
+
};
|
|
493
|
+
get?: never;
|
|
494
|
+
put?: never;
|
|
495
|
+
/** Create a central residence claim intent for redirecting the user to IAM-GOV */
|
|
496
|
+
post: operations["EServicesController_createResidenceClaimIntentForService[0]"];
|
|
497
|
+
delete?: never;
|
|
498
|
+
options?: never;
|
|
499
|
+
head?: never;
|
|
500
|
+
patch?: never;
|
|
501
|
+
trace?: never;
|
|
502
|
+
};
|
|
503
|
+
"/e-services/residences/claim-results/verify": {
|
|
504
|
+
parameters: {
|
|
505
|
+
query?: never;
|
|
506
|
+
header?: never;
|
|
507
|
+
path?: never;
|
|
508
|
+
cookie?: never;
|
|
509
|
+
};
|
|
510
|
+
get?: never;
|
|
511
|
+
put?: never;
|
|
512
|
+
/** Verify a one-time central residence claim result code */
|
|
513
|
+
post: operations["EServicesController_verifyResidenceClaimResultForService[0]"];
|
|
514
|
+
delete?: never;
|
|
515
|
+
options?: never;
|
|
516
|
+
head?: never;
|
|
517
|
+
patch?: never;
|
|
518
|
+
trace?: never;
|
|
519
|
+
};
|
|
520
|
+
"/e-services/residences/claims": {
|
|
521
|
+
parameters: {
|
|
522
|
+
query?: never;
|
|
523
|
+
header?: never;
|
|
524
|
+
path?: never;
|
|
525
|
+
cookie?: never;
|
|
526
|
+
};
|
|
527
|
+
get?: never;
|
|
528
|
+
put?: never;
|
|
529
|
+
/** Submit a residence claim from an E-Service (server-to-server) */
|
|
530
|
+
post: operations["EServicesController_submitResidenceClaimForService[0]"];
|
|
531
|
+
delete?: never;
|
|
532
|
+
options?: never;
|
|
533
|
+
head?: never;
|
|
534
|
+
patch?: never;
|
|
535
|
+
trace?: never;
|
|
536
|
+
};
|
|
537
|
+
"/e-services/residences/claims/:claimId": {
|
|
538
|
+
parameters: {
|
|
539
|
+
query?: never;
|
|
540
|
+
header?: never;
|
|
541
|
+
path?: never;
|
|
542
|
+
cookie?: never;
|
|
543
|
+
};
|
|
544
|
+
/** Get residence claim status for an E-Service */
|
|
545
|
+
get: operations["EServicesController_getResidenceClaimForService[0]"];
|
|
546
|
+
put?: never;
|
|
547
|
+
post?: never;
|
|
548
|
+
delete?: never;
|
|
549
|
+
options?: never;
|
|
550
|
+
head?: never;
|
|
551
|
+
patch?: never;
|
|
552
|
+
trace?: never;
|
|
553
|
+
};
|
|
554
|
+
"/e-services/residences/claims/:claimId/evidence": {
|
|
555
|
+
parameters: {
|
|
556
|
+
query?: never;
|
|
557
|
+
header?: never;
|
|
558
|
+
path?: never;
|
|
559
|
+
cookie?: never;
|
|
560
|
+
};
|
|
561
|
+
/** List residence claim evidence for an E-Service */
|
|
562
|
+
get: operations["EServicesController_listResidenceClaimEvidenceForService[0]"];
|
|
563
|
+
put?: never;
|
|
564
|
+
/** Upload residence claim evidence from an E-Service */
|
|
565
|
+
post: operations["EServicesController_uploadResidenceClaimEvidenceForService[0]"];
|
|
566
|
+
delete?: never;
|
|
567
|
+
options?: never;
|
|
568
|
+
head?: never;
|
|
569
|
+
patch?: never;
|
|
570
|
+
trace?: never;
|
|
571
|
+
};
|
|
572
|
+
"/e-services/residences/search": {
|
|
573
|
+
parameters: {
|
|
574
|
+
query?: never;
|
|
575
|
+
header?: never;
|
|
576
|
+
path?: never;
|
|
577
|
+
cookie?: never;
|
|
578
|
+
};
|
|
579
|
+
/** Search residences for an E-Service (server-to-server) */
|
|
580
|
+
get: operations["EServicesController_searchResidencesForService"];
|
|
581
|
+
put?: never;
|
|
582
|
+
post?: never;
|
|
583
|
+
delete?: never;
|
|
584
|
+
options?: never;
|
|
585
|
+
head?: never;
|
|
586
|
+
patch?: never;
|
|
587
|
+
trace?: never;
|
|
588
|
+
};
|
|
589
|
+
"/e-services/sso/verify-code": {
|
|
590
|
+
parameters: {
|
|
591
|
+
query?: never;
|
|
592
|
+
header?: never;
|
|
593
|
+
path?: never;
|
|
594
|
+
cookie?: never;
|
|
595
|
+
};
|
|
596
|
+
get?: never;
|
|
597
|
+
put?: never;
|
|
598
|
+
/**
|
|
599
|
+
* Verify SSO token from E-Service backend
|
|
600
|
+
* @description Server-to-server endpoint. E-Service backend must send x-api-key; frontend or mini app clients must not call this endpoint directly.
|
|
601
|
+
*/
|
|
602
|
+
post: operations["EServicesController_verifySsoCode"];
|
|
603
|
+
delete?: never;
|
|
604
|
+
options?: never;
|
|
605
|
+
head?: never;
|
|
606
|
+
patch?: never;
|
|
607
|
+
trace?: never;
|
|
608
|
+
};
|
|
609
|
+
"/e-services/stations": {
|
|
610
|
+
parameters: {
|
|
611
|
+
query?: never;
|
|
612
|
+
header?: never;
|
|
613
|
+
path?: never;
|
|
614
|
+
cookie?: never;
|
|
615
|
+
};
|
|
616
|
+
get?: never;
|
|
617
|
+
put?: never;
|
|
618
|
+
/** Register one of this e-service's stations */
|
|
619
|
+
post: operations["ServiceStationsController_create"];
|
|
620
|
+
delete?: never;
|
|
621
|
+
options?: never;
|
|
622
|
+
head?: never;
|
|
623
|
+
patch?: never;
|
|
624
|
+
trace?: never;
|
|
625
|
+
};
|
|
626
|
+
"/e-services/stations/:id": {
|
|
627
|
+
parameters: {
|
|
628
|
+
query?: never;
|
|
629
|
+
header?: never;
|
|
630
|
+
path?: never;
|
|
631
|
+
cookie?: never;
|
|
632
|
+
};
|
|
633
|
+
get?: never;
|
|
634
|
+
put?: never;
|
|
635
|
+
post?: never;
|
|
636
|
+
/** Delete one of this e-service's stations */
|
|
637
|
+
delete: operations["ServiceStationsController_remove"];
|
|
638
|
+
options?: never;
|
|
639
|
+
head?: never;
|
|
640
|
+
/** Change one of this e-service's stations */
|
|
641
|
+
patch: operations["ServiceStationsController_update"];
|
|
642
|
+
trace?: never;
|
|
643
|
+
};
|
|
644
|
+
"/e-services/stations/:id/heartbeat": {
|
|
645
|
+
parameters: {
|
|
646
|
+
query?: never;
|
|
647
|
+
header?: never;
|
|
648
|
+
path?: never;
|
|
649
|
+
cookie?: never;
|
|
650
|
+
};
|
|
651
|
+
get?: never;
|
|
652
|
+
put?: never;
|
|
653
|
+
/** A device reports that it is online (sets lastSeenAt) */
|
|
654
|
+
post: operations["ServiceStationsController_heartbeat"];
|
|
655
|
+
delete?: never;
|
|
656
|
+
options?: never;
|
|
657
|
+
head?: never;
|
|
658
|
+
patch?: never;
|
|
659
|
+
trace?: never;
|
|
660
|
+
};
|
|
661
|
+
"/e-services/stations/:id/position": {
|
|
662
|
+
parameters: {
|
|
663
|
+
query?: never;
|
|
664
|
+
header?: never;
|
|
665
|
+
path?: never;
|
|
666
|
+
cookie?: never;
|
|
667
|
+
};
|
|
668
|
+
get?: never;
|
|
669
|
+
put?: never;
|
|
670
|
+
post?: never;
|
|
671
|
+
delete?: never;
|
|
672
|
+
options?: never;
|
|
673
|
+
head?: never;
|
|
674
|
+
/** A mobile device (UAV, vehicle) reports its position */
|
|
675
|
+
patch: operations["ServiceStationsController_position"];
|
|
676
|
+
trace?: never;
|
|
677
|
+
};
|
|
678
|
+
"/e-services/stations/search": {
|
|
679
|
+
parameters: {
|
|
680
|
+
query?: never;
|
|
681
|
+
header?: never;
|
|
682
|
+
path?: never;
|
|
683
|
+
cookie?: never;
|
|
684
|
+
};
|
|
685
|
+
/** Stations and devices (filter by type, area, bbox) */
|
|
686
|
+
get: operations["ServiceStationsController_list"];
|
|
687
|
+
put?: never;
|
|
688
|
+
post?: never;
|
|
689
|
+
delete?: never;
|
|
690
|
+
options?: never;
|
|
691
|
+
head?: never;
|
|
692
|
+
patch?: never;
|
|
693
|
+
trace?: never;
|
|
694
|
+
};
|
|
695
|
+
"/master-data/districts/:id": {
|
|
696
|
+
parameters: {
|
|
697
|
+
query?: never;
|
|
698
|
+
header?: never;
|
|
699
|
+
path?: never;
|
|
700
|
+
cookie?: never;
|
|
701
|
+
};
|
|
702
|
+
/** Get district by ID with subdistricts */
|
|
703
|
+
get: operations["MasterDataController_getDistrictById"];
|
|
704
|
+
put?: never;
|
|
705
|
+
post?: never;
|
|
706
|
+
delete?: never;
|
|
707
|
+
options?: never;
|
|
708
|
+
head?: never;
|
|
709
|
+
patch?: never;
|
|
710
|
+
trace?: never;
|
|
711
|
+
};
|
|
712
|
+
"/master-data/districts/:id/subdistricts": {
|
|
713
|
+
parameters: {
|
|
714
|
+
query?: never;
|
|
715
|
+
header?: never;
|
|
716
|
+
path?: never;
|
|
717
|
+
cookie?: never;
|
|
718
|
+
};
|
|
719
|
+
/** Get subdistricts by district ID (ตำบลในอำเภอ) */
|
|
720
|
+
get: operations["MasterDataController_getSubdistrictsByDistrict"];
|
|
721
|
+
put?: never;
|
|
722
|
+
post?: never;
|
|
723
|
+
delete?: never;
|
|
724
|
+
options?: never;
|
|
725
|
+
head?: never;
|
|
726
|
+
patch?: never;
|
|
727
|
+
trace?: never;
|
|
728
|
+
};
|
|
729
|
+
"/master-data/geography": {
|
|
730
|
+
parameters: {
|
|
731
|
+
query?: never;
|
|
732
|
+
header?: never;
|
|
733
|
+
path?: never;
|
|
734
|
+
cookie?: never;
|
|
735
|
+
};
|
|
736
|
+
/** All provinces, districts and subdistricts with Ministry of Interior codes (Public, Core 3) */
|
|
737
|
+
get: operations["MasterDataController_getGeography"];
|
|
738
|
+
put?: never;
|
|
739
|
+
post?: never;
|
|
740
|
+
delete?: never;
|
|
741
|
+
options?: never;
|
|
742
|
+
head?: never;
|
|
743
|
+
patch?: never;
|
|
744
|
+
trace?: never;
|
|
745
|
+
};
|
|
746
|
+
"/master-data/municipalities/all": {
|
|
747
|
+
parameters: {
|
|
748
|
+
query?: never;
|
|
749
|
+
header?: never;
|
|
750
|
+
path?: never;
|
|
751
|
+
cookie?: never;
|
|
752
|
+
};
|
|
753
|
+
/** List all municipalities with pagination (Public) */
|
|
754
|
+
get: operations["MasterDataController_findAllMunicipalities"];
|
|
755
|
+
put?: never;
|
|
756
|
+
post?: never;
|
|
757
|
+
delete?: never;
|
|
758
|
+
options?: never;
|
|
759
|
+
head?: never;
|
|
760
|
+
patch?: never;
|
|
761
|
+
trace?: never;
|
|
762
|
+
};
|
|
763
|
+
"/master-data/municipalities/areas": {
|
|
764
|
+
parameters: {
|
|
765
|
+
query?: never;
|
|
766
|
+
header?: never;
|
|
767
|
+
path?: never;
|
|
768
|
+
cookie?: never;
|
|
769
|
+
};
|
|
770
|
+
/** Responsibility areas of municipalities as subdistrict codes (Public, Core 4) */
|
|
771
|
+
get: operations["MasterDataController_getMunicipalityAreas"];
|
|
772
|
+
put?: never;
|
|
773
|
+
post?: never;
|
|
774
|
+
delete?: never;
|
|
775
|
+
options?: never;
|
|
776
|
+
head?: never;
|
|
777
|
+
patch?: never;
|
|
778
|
+
trace?: never;
|
|
779
|
+
};
|
|
780
|
+
"/master-data/municipalities/metadata/:idOrSlug": {
|
|
781
|
+
parameters: {
|
|
782
|
+
query?: never;
|
|
783
|
+
header?: never;
|
|
784
|
+
path?: never;
|
|
785
|
+
cookie?: never;
|
|
786
|
+
};
|
|
787
|
+
/** Get public municipality metadata by ID or Slug (Public) */
|
|
788
|
+
get: operations["MasterDataController_getMunicipalityMetadata"];
|
|
789
|
+
put?: never;
|
|
790
|
+
post?: never;
|
|
791
|
+
delete?: never;
|
|
792
|
+
options?: never;
|
|
793
|
+
head?: never;
|
|
794
|
+
patch?: never;
|
|
795
|
+
trace?: never;
|
|
796
|
+
};
|
|
797
|
+
"/master-data/municipalities/nearby": {
|
|
798
|
+
parameters: {
|
|
799
|
+
query?: never;
|
|
800
|
+
header?: never;
|
|
801
|
+
path?: never;
|
|
802
|
+
cookie?: never;
|
|
803
|
+
};
|
|
804
|
+
/** Municipalities nearest to a point (Public). Distance to the drawn boundary when there is one, else to the municipality pin. */
|
|
805
|
+
get: operations["NearbyMunicipalitiesController_findNearby"];
|
|
806
|
+
put?: never;
|
|
807
|
+
post?: never;
|
|
808
|
+
delete?: never;
|
|
809
|
+
options?: never;
|
|
810
|
+
head?: never;
|
|
811
|
+
patch?: never;
|
|
812
|
+
trace?: never;
|
|
813
|
+
};
|
|
814
|
+
"/master-data/municipalities/search": {
|
|
815
|
+
parameters: {
|
|
816
|
+
query?: never;
|
|
817
|
+
header?: never;
|
|
818
|
+
path?: never;
|
|
819
|
+
cookie?: never;
|
|
820
|
+
};
|
|
821
|
+
/** Search municipalities by location or name (Public) */
|
|
822
|
+
get: operations["MasterDataController_searchMunicipalities"];
|
|
823
|
+
put?: never;
|
|
824
|
+
post?: never;
|
|
825
|
+
delete?: never;
|
|
826
|
+
options?: never;
|
|
827
|
+
head?: never;
|
|
828
|
+
patch?: never;
|
|
829
|
+
trace?: never;
|
|
830
|
+
};
|
|
831
|
+
"/master-data/provinces": {
|
|
832
|
+
parameters: {
|
|
833
|
+
query?: never;
|
|
834
|
+
header?: never;
|
|
835
|
+
path?: never;
|
|
836
|
+
cookie?: never;
|
|
837
|
+
};
|
|
838
|
+
/** Get all provinces (จังหวัดทั้งหมด 77 จังหวัด) */
|
|
839
|
+
get: operations["MasterDataController_getProvinces"];
|
|
840
|
+
put?: never;
|
|
841
|
+
post?: never;
|
|
842
|
+
delete?: never;
|
|
843
|
+
options?: never;
|
|
844
|
+
head?: never;
|
|
845
|
+
patch?: never;
|
|
846
|
+
trace?: never;
|
|
847
|
+
};
|
|
848
|
+
"/master-data/provinces/:id": {
|
|
849
|
+
parameters: {
|
|
850
|
+
query?: never;
|
|
851
|
+
header?: never;
|
|
852
|
+
path?: never;
|
|
853
|
+
cookie?: never;
|
|
854
|
+
};
|
|
855
|
+
/** Get province by ID with districts */
|
|
856
|
+
get: operations["MasterDataController_getProvinceById"];
|
|
857
|
+
put?: never;
|
|
858
|
+
post?: never;
|
|
859
|
+
delete?: never;
|
|
860
|
+
options?: never;
|
|
861
|
+
head?: never;
|
|
862
|
+
patch?: never;
|
|
863
|
+
trace?: never;
|
|
864
|
+
};
|
|
865
|
+
"/master-data/provinces/:id/districts": {
|
|
866
|
+
parameters: {
|
|
867
|
+
query?: never;
|
|
868
|
+
header?: never;
|
|
869
|
+
path?: never;
|
|
870
|
+
cookie?: never;
|
|
871
|
+
};
|
|
872
|
+
/** Get districts by province ID (อำเภอในจังหวัด) */
|
|
873
|
+
get: operations["MasterDataController_getDistrictsByProvince"];
|
|
874
|
+
put?: never;
|
|
875
|
+
post?: never;
|
|
876
|
+
delete?: never;
|
|
877
|
+
options?: never;
|
|
878
|
+
head?: never;
|
|
879
|
+
patch?: never;
|
|
880
|
+
trace?: never;
|
|
881
|
+
};
|
|
882
|
+
"/master-data/search": {
|
|
883
|
+
parameters: {
|
|
884
|
+
query?: never;
|
|
885
|
+
header?: never;
|
|
886
|
+
path?: never;
|
|
887
|
+
cookie?: never;
|
|
888
|
+
};
|
|
889
|
+
/** Search locations by name (ค้นหาจังหวัด/อำเภอ/ตำบล) */
|
|
890
|
+
get: operations["MasterDataController_searchLocations"];
|
|
891
|
+
put?: never;
|
|
892
|
+
post?: never;
|
|
893
|
+
delete?: never;
|
|
894
|
+
options?: never;
|
|
895
|
+
head?: never;
|
|
896
|
+
patch?: never;
|
|
897
|
+
trace?: never;
|
|
898
|
+
};
|
|
899
|
+
"/master-data/subdistricts": {
|
|
900
|
+
parameters: {
|
|
901
|
+
query?: never;
|
|
902
|
+
header?: never;
|
|
903
|
+
path?: never;
|
|
904
|
+
cookie?: never;
|
|
905
|
+
};
|
|
906
|
+
/** Search subdistricts by postal code */
|
|
907
|
+
get: operations["MasterDataController_getSubdistrictsByPostalCode"];
|
|
908
|
+
put?: never;
|
|
909
|
+
post?: never;
|
|
910
|
+
delete?: never;
|
|
911
|
+
options?: never;
|
|
912
|
+
head?: never;
|
|
913
|
+
patch?: never;
|
|
914
|
+
trace?: never;
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
type components = {
|
|
918
|
+
schemas: {
|
|
919
|
+
AcceptResidenceInvitationDto: {
|
|
920
|
+
/** @example raw-invitation-token */
|
|
921
|
+
token: string;
|
|
922
|
+
};
|
|
923
|
+
AcknowledgePrivacyDto: {
|
|
924
|
+
/** @description id of the notice the user read */
|
|
925
|
+
noticeId: string;
|
|
926
|
+
purposes: components["schemas"]["PrivacyPurposeAnswerDto"][];
|
|
927
|
+
/** @example true */
|
|
928
|
+
readToEnd: boolean;
|
|
929
|
+
};
|
|
930
|
+
AddMemberDto: {
|
|
931
|
+
/**
|
|
932
|
+
* @description Email of user to add
|
|
933
|
+
* @example user@example.com
|
|
934
|
+
*/
|
|
935
|
+
email: string;
|
|
936
|
+
/**
|
|
937
|
+
* @description Role in municipality. ADMIN can only be granted by a super admin; officials stay MEMBER and get duties from position seats.
|
|
938
|
+
* @example MEMBER
|
|
939
|
+
*/
|
|
940
|
+
role: components["schemas"]["MunicipalityRole"];
|
|
941
|
+
};
|
|
942
|
+
AssignEServiceUserDto: {
|
|
943
|
+
/**
|
|
944
|
+
* @description E-Service role code
|
|
945
|
+
* @example USER
|
|
946
|
+
*/
|
|
947
|
+
roleCode: string;
|
|
948
|
+
/**
|
|
949
|
+
* @description IAM user ID to add to this E-Service
|
|
950
|
+
* @example iam-user-id
|
|
951
|
+
*/
|
|
952
|
+
userId: string;
|
|
953
|
+
};
|
|
954
|
+
BasemapDto: {
|
|
955
|
+
/** @description GovCenter's public token, restricted to GovCenter's URLs; use your own token on your domain */
|
|
956
|
+
accessToken?: Record<string, never> | null;
|
|
957
|
+
attribution: string;
|
|
958
|
+
/** @example mapbox */
|
|
959
|
+
provider: string;
|
|
960
|
+
/** @example mapbox://styles/mapbox/streets-v12 */
|
|
961
|
+
style: string;
|
|
962
|
+
};
|
|
963
|
+
ChallengeTokenDto: {
|
|
964
|
+
/** @description challengeToken จาก POST /auth/login */
|
|
965
|
+
challengeToken: string;
|
|
966
|
+
};
|
|
967
|
+
CompletePasswordSetupDto: {
|
|
968
|
+
password: string;
|
|
969
|
+
token: string;
|
|
970
|
+
};
|
|
971
|
+
CreateEServiceDto: {
|
|
972
|
+
/**
|
|
973
|
+
* @description Base URL for redirect whitelist
|
|
974
|
+
* @example https://tax.govcenter.co
|
|
975
|
+
*/
|
|
976
|
+
baseUrl?: string;
|
|
977
|
+
/**
|
|
978
|
+
* @description Unique code for the service
|
|
979
|
+
* @example tax
|
|
980
|
+
*/
|
|
981
|
+
code: string;
|
|
982
|
+
/** @example ระบบจัดการภาษีท้องถิ่นออนไลน์ */
|
|
983
|
+
description?: string;
|
|
984
|
+
/** @example https://example.com/icon.png */
|
|
985
|
+
iconUrl?: string;
|
|
986
|
+
/**
|
|
987
|
+
* @description List of municipality IDs to assign to this e-service (Super Admin)
|
|
988
|
+
* @example [
|
|
989
|
+
* "mun-id-1"
|
|
990
|
+
* ]
|
|
991
|
+
*/
|
|
992
|
+
municipalityIds?: string[];
|
|
993
|
+
/**
|
|
994
|
+
* @description E-Service name
|
|
995
|
+
* @example ระบบภาษีท้องถิ่น
|
|
996
|
+
*/
|
|
997
|
+
name: string;
|
|
998
|
+
/**
|
|
999
|
+
* @description Municipality structure and staff this e-service may read (Core 4). SUPER_ADMIN only.
|
|
1000
|
+
* @example [
|
|
1001
|
+
* "org:read"
|
|
1002
|
+
* ]
|
|
1003
|
+
*/
|
|
1004
|
+
orgApiScopes?: "org:read"[];
|
|
1005
|
+
/**
|
|
1006
|
+
* @description Personal-data fields this e-service may read (Core 2), always also limited by each user’s consent. SUPER_ADMIN only.
|
|
1007
|
+
* @example [
|
|
1008
|
+
* "profile:basic",
|
|
1009
|
+
* "profile:contact"
|
|
1010
|
+
* ]
|
|
1011
|
+
*/
|
|
1012
|
+
profileApiScopes?: ("profile:basic" | "profile:contact" | "profile:birthdate" | "profile:citizen-id")[];
|
|
1013
|
+
/**
|
|
1014
|
+
* @description Rate limit per minute
|
|
1015
|
+
* @example 60
|
|
1016
|
+
*/
|
|
1017
|
+
rateLimitPerMin?: number;
|
|
1018
|
+
/**
|
|
1019
|
+
* @description Server-to-server residence API scopes granted to this e-service. residence:claim:create is used for both Central Flow intents and fallback claim submission.
|
|
1020
|
+
* @example [
|
|
1021
|
+
* "residence:search",
|
|
1022
|
+
* "residence:read",
|
|
1023
|
+
* "residence:members:invite",
|
|
1024
|
+
* "residence:claim:create",
|
|
1025
|
+
* "residence:claim:read"
|
|
1026
|
+
* ]
|
|
1027
|
+
*/
|
|
1028
|
+
residenceApiScopes?: string[];
|
|
1029
|
+
/**
|
|
1030
|
+
* @description SSO Code TTL in seconds
|
|
1031
|
+
* @example 300
|
|
1032
|
+
*/
|
|
1033
|
+
ssoCodeTtl?: number;
|
|
1034
|
+
};
|
|
1035
|
+
CreateEServiceResidenceClaimDto: {
|
|
1036
|
+
/** @example อาคาร A */
|
|
1037
|
+
buildingName?: string;
|
|
1038
|
+
/** @example 4001 */
|
|
1039
|
+
districtId?: number;
|
|
1040
|
+
/**
|
|
1041
|
+
* @description Optional e-service request id for traceability.
|
|
1042
|
+
* @example pickup-request-20260514-0001
|
|
1043
|
+
*/
|
|
1044
|
+
externalRequestId?: string;
|
|
1045
|
+
/** @example 2 */
|
|
1046
|
+
floor?: string;
|
|
1047
|
+
/** @example 99/1 */
|
|
1048
|
+
houseNo?: string;
|
|
1049
|
+
/** @example 16.4321 */
|
|
1050
|
+
latitude?: number;
|
|
1051
|
+
/**
|
|
1052
|
+
* @default UNKNOWN
|
|
1053
|
+
* @enum {string}
|
|
1054
|
+
*/
|
|
1055
|
+
locationAccuracy: "EXACT" | "APPROXIMATE" | "UNKNOWN";
|
|
1056
|
+
/** @example 102.8236 */
|
|
1057
|
+
longitude?: number;
|
|
1058
|
+
/** @example 4 */
|
|
1059
|
+
moo?: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* @description Required for CREATE_RESIDENCE. For JOIN/UPDATE types, derived from residenceId when omitted.
|
|
1062
|
+
* @example municipality-id-xxx
|
|
1063
|
+
*/
|
|
1064
|
+
municipalityId?: string;
|
|
1065
|
+
/** @example 40000 */
|
|
1066
|
+
postalCode?: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* @description For JOIN_AS_RESIDENT/OWNER: the residence the user is moving OUT of. When set and approved, the old ResidenceMember is set to REMOVED.
|
|
1069
|
+
* @example residence-id-yyy
|
|
1070
|
+
*/
|
|
1071
|
+
previousResidenceId?: string;
|
|
1072
|
+
/**
|
|
1073
|
+
* @description Optional GeoJSON-like geometry proposed by the submitter.
|
|
1074
|
+
* @example {
|
|
1075
|
+
* "type": "Point",
|
|
1076
|
+
* "coordinates": [
|
|
1077
|
+
* 102.8236,
|
|
1078
|
+
* 16.4321
|
|
1079
|
+
* ]
|
|
1080
|
+
* }
|
|
1081
|
+
*/
|
|
1082
|
+
proposedGeometry?: Record<string, never>;
|
|
1083
|
+
/** @example 40 */
|
|
1084
|
+
provinceId?: number;
|
|
1085
|
+
/**
|
|
1086
|
+
* @description Stable municipality-scoped residence code. If omitted, the server generates one.
|
|
1087
|
+
* @example 500100-000001
|
|
1088
|
+
*/
|
|
1089
|
+
residenceCode?: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* @description For UPDATE_ADDRESS, JOIN_AS_RESIDENT, JOIN_AS_OWNER: the target residence id. municipalityId will be derived from the residence when omitted.
|
|
1092
|
+
* @example residence-id-xxx
|
|
1093
|
+
*/
|
|
1094
|
+
residenceId?: string;
|
|
1095
|
+
/** @example มิตรภาพ */
|
|
1096
|
+
road?: string;
|
|
1097
|
+
/** @example 204 */
|
|
1098
|
+
roomNo?: string;
|
|
1099
|
+
/** @example มิตรภาพ 12 */
|
|
1100
|
+
soi?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* @default PENDING_REVIEW
|
|
1103
|
+
* @enum {string}
|
|
1104
|
+
*/
|
|
1105
|
+
status: "PENDING_REVIEW" | "VERIFIED" | "REJECTED" | "INACTIVE";
|
|
1106
|
+
/** @example 400101 */
|
|
1107
|
+
subdistrictId?: number;
|
|
1108
|
+
/**
|
|
1109
|
+
* @description Optional submitting e-service id. Server-to-server endpoints can set this later via API key context.
|
|
1110
|
+
* @example service-id-xxx
|
|
1111
|
+
*/
|
|
1112
|
+
submittedByServiceId?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* @description IAM user id from the SSO verify-code response.
|
|
1115
|
+
* @example iam-user-id-from-sso-verify
|
|
1116
|
+
*/
|
|
1117
|
+
submittedByUserId: string;
|
|
1118
|
+
/**
|
|
1119
|
+
* @default CREATE_RESIDENCE
|
|
1120
|
+
* @enum {string}
|
|
1121
|
+
*/
|
|
1122
|
+
type: "CREATE_RESIDENCE" | "UPDATE_ADDRESS" | "UPDATE_POINT" | "UPDATE_GEOMETRY" | "JOIN_AS_OWNER" | "JOIN_AS_RESIDENT" | "CLOSE_RESIDENCE";
|
|
1123
|
+
/** @example บ้านหนองแวง */
|
|
1124
|
+
villageName?: string;
|
|
1125
|
+
};
|
|
1126
|
+
CreateEServiceResidenceInvitationDto: {
|
|
1127
|
+
/**
|
|
1128
|
+
* @default 48
|
|
1129
|
+
* @example 48
|
|
1130
|
+
*/
|
|
1131
|
+
expiresInHours: number;
|
|
1132
|
+
/**
|
|
1133
|
+
* @description IAM user id of a verified owner of the residence. The invitation is created on behalf of this owner.
|
|
1134
|
+
* @example iam-owner-user-id
|
|
1135
|
+
*/
|
|
1136
|
+
invitedByIamUserId: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* @default RESIDENT
|
|
1139
|
+
* @enum {string}
|
|
1140
|
+
*/
|
|
1141
|
+
role: "OWNER" | "RESIDENT";
|
|
1142
|
+
/** @example child@example.com */
|
|
1143
|
+
targetEmail?: string;
|
|
1144
|
+
/** @example 0812345678 */
|
|
1145
|
+
targetPhone?: string;
|
|
1146
|
+
};
|
|
1147
|
+
CreateMunicipalityDto: {
|
|
1148
|
+
/**
|
|
1149
|
+
* @description Responsibility area (Core 4): every subdistrict the municipality covers, shared with all e-services. [] clears it.
|
|
1150
|
+
* @example [
|
|
1151
|
+
* 400101,
|
|
1152
|
+
* 400102
|
|
1153
|
+
* ]
|
|
1154
|
+
*/
|
|
1155
|
+
areaSubdistrictIds?: number[];
|
|
1156
|
+
/**
|
|
1157
|
+
* @description รหัส อปท. 7 หลัก (database CHECK municipalities_code_format)
|
|
1158
|
+
* @example 5400101
|
|
1159
|
+
*/
|
|
1160
|
+
code?: string;
|
|
1161
|
+
/** @example เทศบาลนครขอนแก่น จังหวัดขอนแก่น */
|
|
1162
|
+
description?: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* @description District ID (รหัสอำเภอ 4 หลัก)
|
|
1165
|
+
* @example 4001
|
|
1166
|
+
*/
|
|
1167
|
+
districtId?: Record<string, never>;
|
|
1168
|
+
/**
|
|
1169
|
+
* @description Is municipality active
|
|
1170
|
+
* @example true
|
|
1171
|
+
*/
|
|
1172
|
+
isActive?: boolean;
|
|
1173
|
+
/** @example https://example.com/logo.png */
|
|
1174
|
+
logoUrl?: string;
|
|
1175
|
+
/**
|
|
1176
|
+
* @description Municipality name
|
|
1177
|
+
* @example เทศบาลนครขอนแก่น
|
|
1178
|
+
*/
|
|
1179
|
+
name: string;
|
|
1180
|
+
/**
|
|
1181
|
+
* @description Province ID (รหัสจังหวัด 1-77)
|
|
1182
|
+
* @example 40
|
|
1183
|
+
*/
|
|
1184
|
+
provinceId?: Record<string, never>;
|
|
1185
|
+
/**
|
|
1186
|
+
* @description Unique slug for URL
|
|
1187
|
+
* @example khonkaen-city
|
|
1188
|
+
*/
|
|
1189
|
+
slug: string;
|
|
1190
|
+
/**
|
|
1191
|
+
* @description Subdistrict ID (รหัสตำบล 6 หลัก)
|
|
1192
|
+
* @example 400101
|
|
1193
|
+
*/
|
|
1194
|
+
subdistrictId?: Record<string, never>;
|
|
1195
|
+
/**
|
|
1196
|
+
* @description ประเภท อปท. (required: municipalities.type is NOT NULL)
|
|
1197
|
+
* @example CITY
|
|
1198
|
+
* @enum {string}
|
|
1199
|
+
*/
|
|
1200
|
+
type: "CITY" | "TOWN" | "SUBDISTRICT" | "SAO" | "PAO" | "BMA" | "PATTAYA";
|
|
1201
|
+
};
|
|
1202
|
+
CreateRegistrationDto: {
|
|
1203
|
+
/** @example true */
|
|
1204
|
+
certified: boolean;
|
|
1205
|
+
currentAddress: components["schemas"]["RegistrationCurrentAddressDto"];
|
|
1206
|
+
municipalityId: string;
|
|
1207
|
+
privacy: components["schemas"]["AcknowledgePrivacyDto"];
|
|
1208
|
+
profile: components["schemas"]["RegistrationProfileDto"];
|
|
1209
|
+
residence: components["schemas"]["RegistrationResidenceDto"];
|
|
1210
|
+
/** @enum {string} */
|
|
1211
|
+
residenceRole: "OWNER" | "RESIDENT";
|
|
1212
|
+
};
|
|
1213
|
+
CreateResidenceClaimDto: {
|
|
1214
|
+
/** @example อาคาร A */
|
|
1215
|
+
buildingName?: string;
|
|
1216
|
+
/** @example 4001 */
|
|
1217
|
+
districtId?: number;
|
|
1218
|
+
/** @example 2 */
|
|
1219
|
+
floor?: string;
|
|
1220
|
+
/** @example 99/1 */
|
|
1221
|
+
houseNo?: string;
|
|
1222
|
+
/** @example 16.4321 */
|
|
1223
|
+
latitude?: number;
|
|
1224
|
+
/**
|
|
1225
|
+
* @default UNKNOWN
|
|
1226
|
+
* @enum {string}
|
|
1227
|
+
*/
|
|
1228
|
+
locationAccuracy: "EXACT" | "APPROXIMATE" | "UNKNOWN";
|
|
1229
|
+
/** @example 102.8236 */
|
|
1230
|
+
longitude?: number;
|
|
1231
|
+
/** @example 4 */
|
|
1232
|
+
moo?: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* @description Required for CREATE_RESIDENCE. For JOIN/UPDATE types, derived from residenceId when omitted.
|
|
1235
|
+
* @example municipality-id-xxx
|
|
1236
|
+
*/
|
|
1237
|
+
municipalityId?: string;
|
|
1238
|
+
/** @example 40000 */
|
|
1239
|
+
postalCode?: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* @description For JOIN_AS_RESIDENT/OWNER: the residence the user is moving OUT of. When set and approved, the old ResidenceMember is set to REMOVED.
|
|
1242
|
+
* @example residence-id-yyy
|
|
1243
|
+
*/
|
|
1244
|
+
previousResidenceId?: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* @description Optional GeoJSON-like geometry proposed by the submitter.
|
|
1247
|
+
* @example {
|
|
1248
|
+
* "type": "Point",
|
|
1249
|
+
* "coordinates": [
|
|
1250
|
+
* 102.8236,
|
|
1251
|
+
* 16.4321
|
|
1252
|
+
* ]
|
|
1253
|
+
* }
|
|
1254
|
+
*/
|
|
1255
|
+
proposedGeometry?: Record<string, never>;
|
|
1256
|
+
/** @example 40 */
|
|
1257
|
+
provinceId?: number;
|
|
1258
|
+
/**
|
|
1259
|
+
* @description Stable municipality-scoped residence code. If omitted, the server generates one.
|
|
1260
|
+
* @example 500100-000001
|
|
1261
|
+
*/
|
|
1262
|
+
residenceCode?: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* @description For UPDATE_ADDRESS, JOIN_AS_RESIDENT, JOIN_AS_OWNER: the target residence id. municipalityId will be derived from the residence when omitted.
|
|
1265
|
+
* @example residence-id-xxx
|
|
1266
|
+
*/
|
|
1267
|
+
residenceId?: string;
|
|
1268
|
+
/** @example มิตรภาพ */
|
|
1269
|
+
road?: string;
|
|
1270
|
+
/** @example 204 */
|
|
1271
|
+
roomNo?: string;
|
|
1272
|
+
/** @example มิตรภาพ 12 */
|
|
1273
|
+
soi?: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* @default PENDING_REVIEW
|
|
1276
|
+
* @enum {string}
|
|
1277
|
+
*/
|
|
1278
|
+
status: "PENDING_REVIEW" | "VERIFIED" | "REJECTED" | "INACTIVE";
|
|
1279
|
+
/** @example 400101 */
|
|
1280
|
+
subdistrictId?: number;
|
|
1281
|
+
/**
|
|
1282
|
+
* @description Optional submitting e-service id. Server-to-server endpoints can set this later via API key context.
|
|
1283
|
+
* @example service-id-xxx
|
|
1284
|
+
*/
|
|
1285
|
+
submittedByServiceId?: string;
|
|
1286
|
+
/**
|
|
1287
|
+
* @default CREATE_RESIDENCE
|
|
1288
|
+
* @enum {string}
|
|
1289
|
+
*/
|
|
1290
|
+
type: "CREATE_RESIDENCE" | "UPDATE_ADDRESS" | "UPDATE_POINT" | "UPDATE_GEOMETRY" | "JOIN_AS_OWNER" | "JOIN_AS_RESIDENT" | "CLOSE_RESIDENCE";
|
|
1291
|
+
/** @example บ้านหนองแวง */
|
|
1292
|
+
villageName?: string;
|
|
1293
|
+
};
|
|
1294
|
+
CreateResidenceClaimIntentDto: {
|
|
1295
|
+
/**
|
|
1296
|
+
* @description IAM user id that must match the IAM-GOV session in the central flow.
|
|
1297
|
+
* @example iam-user-id-from-sso-verify
|
|
1298
|
+
*/
|
|
1299
|
+
expectedIamUserId: string;
|
|
1300
|
+
/**
|
|
1301
|
+
* @description Optional e-service request id for traceability.
|
|
1302
|
+
* @example pickup-request-20260518-0001
|
|
1303
|
+
*/
|
|
1304
|
+
externalRequestId?: string;
|
|
1305
|
+
/** @description Optional address prefill for the central claim form. */
|
|
1306
|
+
prefillAddress?: components["schemas"]["CreateResidenceDto"];
|
|
1307
|
+
/**
|
|
1308
|
+
* @description E-Service callback URL. Must be under the service baseUrl or an allowed origin.
|
|
1309
|
+
* @example https://service.example.go.th/residence-claims/callback
|
|
1310
|
+
*/
|
|
1311
|
+
returnUrl: string;
|
|
1312
|
+
/**
|
|
1313
|
+
* @description Opaque state that the e-service verifies after redirect callback.
|
|
1314
|
+
* @example opaque-csrf-and-transaction-state
|
|
1315
|
+
*/
|
|
1316
|
+
state: string;
|
|
1317
|
+
};
|
|
1318
|
+
CreateResidenceDto: {
|
|
1319
|
+
/** @example อาคาร A */
|
|
1320
|
+
buildingName?: string;
|
|
1321
|
+
/** @example 4001 */
|
|
1322
|
+
districtId?: number;
|
|
1323
|
+
/** @example 2 */
|
|
1324
|
+
floor?: string;
|
|
1325
|
+
/** @example 99/1 */
|
|
1326
|
+
houseNo?: string;
|
|
1327
|
+
/** @example 16.4321 */
|
|
1328
|
+
latitude?: number;
|
|
1329
|
+
/**
|
|
1330
|
+
* @default UNKNOWN
|
|
1331
|
+
* @enum {string}
|
|
1332
|
+
*/
|
|
1333
|
+
locationAccuracy: "EXACT" | "APPROXIMATE" | "UNKNOWN";
|
|
1334
|
+
/** @example 102.8236 */
|
|
1335
|
+
longitude?: number;
|
|
1336
|
+
/** @example 4 */
|
|
1337
|
+
moo?: string;
|
|
1338
|
+
/** @example municipality-id-xxx */
|
|
1339
|
+
municipalityId: string;
|
|
1340
|
+
/** @example 40000 */
|
|
1341
|
+
postalCode?: string;
|
|
1342
|
+
/** @example 40 */
|
|
1343
|
+
provinceId?: number;
|
|
1344
|
+
/**
|
|
1345
|
+
* @description Stable municipality-scoped residence code. If omitted, the server generates one.
|
|
1346
|
+
* @example 500100-000001
|
|
1347
|
+
*/
|
|
1348
|
+
residenceCode?: string;
|
|
1349
|
+
/** @example มิตรภาพ */
|
|
1350
|
+
road?: string;
|
|
1351
|
+
/** @example 204 */
|
|
1352
|
+
roomNo?: string;
|
|
1353
|
+
/** @example มิตรภาพ 12 */
|
|
1354
|
+
soi?: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* @default PENDING_REVIEW
|
|
1357
|
+
* @enum {string}
|
|
1358
|
+
*/
|
|
1359
|
+
status: "PENDING_REVIEW" | "VERIFIED" | "REJECTED" | "INACTIVE";
|
|
1360
|
+
/** @example 400101 */
|
|
1361
|
+
subdistrictId?: number;
|
|
1362
|
+
/** @example บ้านหนองแวง */
|
|
1363
|
+
villageName?: string;
|
|
1364
|
+
};
|
|
1365
|
+
CreateResidenceInvitationDto: {
|
|
1366
|
+
/**
|
|
1367
|
+
* @default 48
|
|
1368
|
+
* @example 48
|
|
1369
|
+
*/
|
|
1370
|
+
expiresInHours: number;
|
|
1371
|
+
/**
|
|
1372
|
+
* @default RESIDENT
|
|
1373
|
+
* @enum {string}
|
|
1374
|
+
*/
|
|
1375
|
+
role: "OWNER" | "RESIDENT";
|
|
1376
|
+
/** @example child@example.com */
|
|
1377
|
+
targetEmail?: string;
|
|
1378
|
+
/** @example 0812345678 */
|
|
1379
|
+
targetPhone?: string;
|
|
1380
|
+
};
|
|
1381
|
+
CreateSeatAssignmentDto: {
|
|
1382
|
+
/** @example 2026-11-07 */
|
|
1383
|
+
effectiveAt: string;
|
|
1384
|
+
/** Format: binary */
|
|
1385
|
+
evidence: string;
|
|
1386
|
+
/** @enum {string} */
|
|
1387
|
+
evidenceType: "APPOINTMENT_ORDER" | "ELECTION_ANNOUNCEMENT" | "COUNCIL_RESOLUTION";
|
|
1388
|
+
userId: string;
|
|
1389
|
+
};
|
|
1390
|
+
CreateSeatDto: {
|
|
1391
|
+
/** @description หน่วยงานที่สังกัด (ว่าง = ระดับเทศบาล) */
|
|
1392
|
+
orgUnitId?: string;
|
|
1393
|
+
};
|
|
1394
|
+
CreateStationDto: {
|
|
1395
|
+
address?: string;
|
|
1396
|
+
/**
|
|
1397
|
+
* @example {
|
|
1398
|
+
* "capacity": 300
|
|
1399
|
+
* }
|
|
1400
|
+
*/
|
|
1401
|
+
attributes?: Record<string, never>;
|
|
1402
|
+
/**
|
|
1403
|
+
* @description Station or device code, unique across GovCenter
|
|
1404
|
+
* @example PKT-EVAC-001
|
|
1405
|
+
*/
|
|
1406
|
+
code: string;
|
|
1407
|
+
description?: string;
|
|
1408
|
+
/** @example 7.9089 */
|
|
1409
|
+
latitude: number;
|
|
1410
|
+
/** @example 98.3325 */
|
|
1411
|
+
longitude: number;
|
|
1412
|
+
/** @description Moves (UAV, vehicle) */
|
|
1413
|
+
mobile?: boolean;
|
|
1414
|
+
municipalityId?: string;
|
|
1415
|
+
/** @example โรงเรียนบ้านกะทู้ (จุดอพยพ) */
|
|
1416
|
+
name: string;
|
|
1417
|
+
/** @enum {string} */
|
|
1418
|
+
status?: "ACTIVE" | "INACTIVE" | "MAINTENANCE";
|
|
1419
|
+
/** @enum {string} */
|
|
1420
|
+
type: "EVACUATION_SITE" | "OFFICE" | "STATION" | "SENSOR" | "UAV" | "CCTV" | "SIREN" | "OTHER";
|
|
1421
|
+
};
|
|
1422
|
+
DisableEmailOtpDto: {
|
|
1423
|
+
/** @description รหัส 6 หลักจาก POST /auth/2fa/email/disable/send (บัญชี LINE ที่ไม่มีรหัสผ่าน) */
|
|
1424
|
+
code?: string;
|
|
1425
|
+
/** @description รหัสผ่านปัจจุบัน (บัญชีที่มีรหัสผ่าน) */
|
|
1426
|
+
password?: string;
|
|
1427
|
+
};
|
|
1428
|
+
EmailCodeDto: {
|
|
1429
|
+
/**
|
|
1430
|
+
* @description รหัส 6 หลักจากอีเมล
|
|
1431
|
+
* @example 123456
|
|
1432
|
+
*/
|
|
1433
|
+
code: string;
|
|
1434
|
+
};
|
|
1435
|
+
EnableTwoFactorDto: {
|
|
1436
|
+
/**
|
|
1437
|
+
* @description รหัส 6 หลักจากแอปยืนยันตัวตน
|
|
1438
|
+
* @example 123456
|
|
1439
|
+
*/
|
|
1440
|
+
code: string;
|
|
1441
|
+
};
|
|
1442
|
+
EndSeatAssignmentDto: {
|
|
1443
|
+
reason: string;
|
|
1444
|
+
};
|
|
1445
|
+
EServiceMeDto: {
|
|
1446
|
+
/** @example SAFE_CITY */
|
|
1447
|
+
code?: Record<string, never> | null;
|
|
1448
|
+
gis: components["schemas"]["EServiceMeGisDto"];
|
|
1449
|
+
/** @example cmservice0001 */
|
|
1450
|
+
id: string;
|
|
1451
|
+
/** @description Serves every municipality (not only the assigned ones) */
|
|
1452
|
+
isShared: boolean;
|
|
1453
|
+
municipalities: components["schemas"]["EServiceMeMunicipalityDto"][];
|
|
1454
|
+
/** @example Gov-SafeCity */
|
|
1455
|
+
name: string;
|
|
1456
|
+
notifications: components["schemas"]["EServiceMeNotificationsDto"];
|
|
1457
|
+
/** @example 60 */
|
|
1458
|
+
rateLimitPerMin: number;
|
|
1459
|
+
/**
|
|
1460
|
+
* @example [
|
|
1461
|
+
* "residence:read"
|
|
1462
|
+
* ]
|
|
1463
|
+
*/
|
|
1464
|
+
scopes: string[];
|
|
1465
|
+
};
|
|
1466
|
+
EServiceMeGisDto: {
|
|
1467
|
+
/**
|
|
1468
|
+
* @description Layers this e-service may ask for in map-data and map-sessions
|
|
1469
|
+
* @example [
|
|
1470
|
+
* "stations",
|
|
1471
|
+
* "municipality",
|
|
1472
|
+
* "home"
|
|
1473
|
+
* ]
|
|
1474
|
+
*/
|
|
1475
|
+
layers: string[];
|
|
1476
|
+
};
|
|
1477
|
+
EServiceMeMunicipalityDto: {
|
|
1478
|
+
/** @example cm123 */
|
|
1479
|
+
id: string;
|
|
1480
|
+
/** @example เทศบาลนครภูเก็ต */
|
|
1481
|
+
name: string;
|
|
1482
|
+
};
|
|
1483
|
+
EServiceMeNotificationsDto: {
|
|
1484
|
+
/**
|
|
1485
|
+
* @description Channels it can send through
|
|
1486
|
+
* @example [
|
|
1487
|
+
* "line"
|
|
1488
|
+
* ]
|
|
1489
|
+
*/
|
|
1490
|
+
channels: string[];
|
|
1491
|
+
};
|
|
1492
|
+
EServiceMunicipalityDto: {
|
|
1493
|
+
class?: components["schemas"]["MunicipalityClass"] | null;
|
|
1494
|
+
/** @example 3830102 */
|
|
1495
|
+
code?: string | null;
|
|
1496
|
+
district?: components["schemas"]["IdNameThDto"] | null;
|
|
1497
|
+
id: string;
|
|
1498
|
+
logoUrl?: string | null;
|
|
1499
|
+
name: string;
|
|
1500
|
+
province?: components["schemas"]["IdNameThDto"] | null;
|
|
1501
|
+
seats: components["schemas"]["SeatCountsDto"];
|
|
1502
|
+
/** Format: date-time */
|
|
1503
|
+
setupCompletedAt?: string | null;
|
|
1504
|
+
type?: components["schemas"]["MunicipalityType"] | null;
|
|
1505
|
+
};
|
|
1506
|
+
EServiceOrgUnitDto: {
|
|
1507
|
+
code?: string | null;
|
|
1508
|
+
id: string;
|
|
1509
|
+
kind: components["schemas"]["OrgUnitKind"];
|
|
1510
|
+
/** @example กองคลัง */
|
|
1511
|
+
name: string;
|
|
1512
|
+
parentId?: string | null;
|
|
1513
|
+
sortOrder: number;
|
|
1514
|
+
/** @description Seat that supervises this unit (unsupervised units go to the palad, SR-08) */
|
|
1515
|
+
supervisor?: components["schemas"]["OrgUnitSupervisorDto"] | null;
|
|
1516
|
+
};
|
|
1517
|
+
EServiceProfileConsentDto: {
|
|
1518
|
+
/** Format: date-time */
|
|
1519
|
+
grantedAt?: string | null;
|
|
1520
|
+
/** Format: date-time */
|
|
1521
|
+
revokedAt?: string | null;
|
|
1522
|
+
/**
|
|
1523
|
+
* @example [
|
|
1524
|
+
* "profile:basic"
|
|
1525
|
+
* ]
|
|
1526
|
+
*/
|
|
1527
|
+
scopes: string[];
|
|
1528
|
+
};
|
|
1529
|
+
EServiceProfileDto: {
|
|
1530
|
+
/** @description Requested fields; null when outside the e-service scope or the user’s consent */
|
|
1531
|
+
fields: components["schemas"]["EServiceProfileFieldsDto"];
|
|
1532
|
+
/**
|
|
1533
|
+
* @example [
|
|
1534
|
+
* "profile:basic"
|
|
1535
|
+
* ]
|
|
1536
|
+
*/
|
|
1537
|
+
grantedScopes: string[];
|
|
1538
|
+
userId: string;
|
|
1539
|
+
};
|
|
1540
|
+
EServiceProfileFieldsDto: {
|
|
1541
|
+
/** @example 1990-01-31 */
|
|
1542
|
+
birthDate?: string | null;
|
|
1543
|
+
/** @description Only with profile:citizen-id and the user’s consent */
|
|
1544
|
+
citizenId?: string | null;
|
|
1545
|
+
contactEmail?: string | null;
|
|
1546
|
+
firstName?: string | null;
|
|
1547
|
+
lastName?: string | null;
|
|
1548
|
+
/** @example 0812345678 */
|
|
1549
|
+
mobilePhone?: string | null;
|
|
1550
|
+
};
|
|
1551
|
+
EServiceResidenceDetailDto: {
|
|
1552
|
+
houseCode?: string | null;
|
|
1553
|
+
houseCodeDisplay?: string | null;
|
|
1554
|
+
id: string;
|
|
1555
|
+
/** @description Present with ?include=members (residence:members:read) */
|
|
1556
|
+
members?: components["schemas"]["EServiceResidenceMemberDto"][];
|
|
1557
|
+
};
|
|
1558
|
+
EServiceResidenceMemberDto: {
|
|
1559
|
+
/** @description Only with profile:basic and the member’s consent */
|
|
1560
|
+
name?: string | null;
|
|
1561
|
+
role: components["schemas"]["ResidenceMemberRole"];
|
|
1562
|
+
userId: string;
|
|
1563
|
+
/** Format: date-time */
|
|
1564
|
+
verifiedAt?: string | null;
|
|
1565
|
+
};
|
|
1566
|
+
EServiceResidencePageDto: {
|
|
1567
|
+
items: components["schemas"]["EServiceResidenceSummaryDto"][];
|
|
1568
|
+
page: number;
|
|
1569
|
+
pageSize: number;
|
|
1570
|
+
total: number;
|
|
1571
|
+
};
|
|
1572
|
+
EServiceResidenceSummaryDto: {
|
|
1573
|
+
district?: components["schemas"]["IdNameThDto"] | null;
|
|
1574
|
+
/** @example 38301234567 */
|
|
1575
|
+
houseCode?: string | null;
|
|
1576
|
+
/** @example 3830-123456-7 */
|
|
1577
|
+
houseCodeDisplay?: string | null;
|
|
1578
|
+
houseNo?: string | null;
|
|
1579
|
+
id: string;
|
|
1580
|
+
moo?: string | null;
|
|
1581
|
+
municipality?: components["schemas"]["IdNameDto"] | null;
|
|
1582
|
+
province?: components["schemas"]["IdNameThDto"] | null;
|
|
1583
|
+
road?: string | null;
|
|
1584
|
+
subdistrict?: components["schemas"]["IdNameThDto"] | null;
|
|
1585
|
+
};
|
|
1586
|
+
EServiceStaffDto: {
|
|
1587
|
+
branch: components["schemas"]["PositionBranch"];
|
|
1588
|
+
duties: string[];
|
|
1589
|
+
level: number;
|
|
1590
|
+
municipalityId: string;
|
|
1591
|
+
/** @description Only with profile:basic and the holder’s consent */
|
|
1592
|
+
name?: string | null;
|
|
1593
|
+
orgUnit?: components["schemas"]["StaffOrgUnitDto"] | null;
|
|
1594
|
+
position?: components["schemas"]["PositionRefDto"] | null;
|
|
1595
|
+
seatId: string;
|
|
1596
|
+
userId: string;
|
|
1597
|
+
};
|
|
1598
|
+
EvaluationAspectsDto: {
|
|
1599
|
+
/** @description ผลลัพธ์ */
|
|
1600
|
+
result?: number;
|
|
1601
|
+
/** @description ความรวดเร็ว */
|
|
1602
|
+
speed?: number;
|
|
1603
|
+
/** @description เจ้าหน้าที่ */
|
|
1604
|
+
staff?: number;
|
|
1605
|
+
};
|
|
1606
|
+
EvaluationStatsDto: {
|
|
1607
|
+
byMonth: components["schemas"]["StatsByMonthDto"][];
|
|
1608
|
+
byMunicipality: components["schemas"]["StatsByMunicipalityDto"][];
|
|
1609
|
+
byService: components["schemas"]["StatsByServiceDto"][];
|
|
1610
|
+
distribution: components["schemas"]["ScoreCountDto"][];
|
|
1611
|
+
range: components["schemas"]["StatsRangeDto"];
|
|
1612
|
+
recentComments: components["schemas"]["RecentCommentDto"][];
|
|
1613
|
+
/** @example e-service */
|
|
1614
|
+
scope: string;
|
|
1615
|
+
summary: components["schemas"]["StatsSummaryDto"];
|
|
1616
|
+
};
|
|
1617
|
+
/** @enum {string} */
|
|
1618
|
+
EvaluationStatus: "PENDING" | "SUBMITTED" | "EXPIRED";
|
|
1619
|
+
ExchangeLineTicketDto: {
|
|
1620
|
+
/**
|
|
1621
|
+
* @description One-time LINE login ticket from /auth/callback
|
|
1622
|
+
* @example a1b2c3d4e5f6...
|
|
1623
|
+
*/
|
|
1624
|
+
ticket: string;
|
|
1625
|
+
};
|
|
1626
|
+
FeatureCollectionDto: {
|
|
1627
|
+
features: components["schemas"]["GeoJsonFeatureDto"][];
|
|
1628
|
+
/** @example FeatureCollection */
|
|
1629
|
+
type: string;
|
|
1630
|
+
};
|
|
1631
|
+
GenerateSsoCodeDto: {
|
|
1632
|
+
/**
|
|
1633
|
+
* @description Where the e-Service will receive the code. Optional; when sent it must be https on a platform domain or an origin registered on the e-Service (baseUrl / allowedOrigins), else 400 CALLBACK_NOT_ALLOWED.
|
|
1634
|
+
* @example https://safecity.example.go.th/auth/callback
|
|
1635
|
+
*/
|
|
1636
|
+
callbackUrl?: string;
|
|
1637
|
+
/**
|
|
1638
|
+
* @description E-Service code to generate a one-time SSO code for
|
|
1639
|
+
* @example tax
|
|
1640
|
+
*/
|
|
1641
|
+
eServiceCode: string;
|
|
1642
|
+
};
|
|
1643
|
+
GeoJsonFeatureDto: {
|
|
1644
|
+
/** @description GeoJSON geometry (Point, Polygon, …) */
|
|
1645
|
+
geometry: Record<string, never>;
|
|
1646
|
+
id?: string | number;
|
|
1647
|
+
/** @description See the layer in the catalog for its properties */
|
|
1648
|
+
properties: Record<string, never>;
|
|
1649
|
+
/** @example Feature */
|
|
1650
|
+
type: string;
|
|
1651
|
+
};
|
|
1652
|
+
GisCatalogDto: {
|
|
1653
|
+
basemap: components["schemas"]["BasemapDto"];
|
|
1654
|
+
layers: components["schemas"]["LayerCatalogItemDto"][];
|
|
1655
|
+
/**
|
|
1656
|
+
* @example [
|
|
1657
|
+
* "EVACUATION_SITE",
|
|
1658
|
+
* "SENSOR"
|
|
1659
|
+
* ]
|
|
1660
|
+
*/
|
|
1661
|
+
stationTypes: string[];
|
|
1662
|
+
};
|
|
1663
|
+
GrantProfileConsentDto: {
|
|
1664
|
+
/** @example SAFE_CITY */
|
|
1665
|
+
eServiceCode: string;
|
|
1666
|
+
/**
|
|
1667
|
+
* @description Subset of the e-service profileApiScopes; empty = declined
|
|
1668
|
+
* @example [
|
|
1669
|
+
* "profile:basic"
|
|
1670
|
+
* ]
|
|
1671
|
+
*/
|
|
1672
|
+
scopes: string[];
|
|
1673
|
+
};
|
|
1674
|
+
GrantServiceAccessDto: {
|
|
1675
|
+
/**
|
|
1676
|
+
* @description Optional high-level control permission for this E-Service.
|
|
1677
|
+
* @default false
|
|
1678
|
+
*/
|
|
1679
|
+
canControl: boolean;
|
|
1680
|
+
/**
|
|
1681
|
+
* @description Optional edit-level permission for this E-Service.
|
|
1682
|
+
* @default false
|
|
1683
|
+
*/
|
|
1684
|
+
canEdit: boolean;
|
|
1685
|
+
/**
|
|
1686
|
+
* @description When true, this access row is returned in user.memberships[].serviceAccess from SSO verify-code.
|
|
1687
|
+
* @default true
|
|
1688
|
+
*/
|
|
1689
|
+
canView: boolean;
|
|
1690
|
+
/**
|
|
1691
|
+
* @description MunicipalityMember ID, not User ID. This is the membership that will receive access to the E-Service.
|
|
1692
|
+
* @example cmpdhqvw6006u01mtkubbevcb
|
|
1693
|
+
*/
|
|
1694
|
+
memberId: string;
|
|
1695
|
+
};
|
|
1696
|
+
IdNameDto: {
|
|
1697
|
+
id: string;
|
|
1698
|
+
/** @example เทศบาลนครภูเก็ต */
|
|
1699
|
+
name: string;
|
|
1700
|
+
};
|
|
1701
|
+
IdNameThDto: {
|
|
1702
|
+
id: number;
|
|
1703
|
+
/** @example ภูเก็ต */
|
|
1704
|
+
nameTh: string;
|
|
1705
|
+
};
|
|
1706
|
+
JoinResidenceDto: {
|
|
1707
|
+
/**
|
|
1708
|
+
* @default RESIDENT
|
|
1709
|
+
* @enum {string}
|
|
1710
|
+
*/
|
|
1711
|
+
role: "OWNER" | "RESIDENT";
|
|
1712
|
+
};
|
|
1713
|
+
LayerCatalogItemDto: {
|
|
1714
|
+
/** @example Core 10 สถานี */
|
|
1715
|
+
core: string;
|
|
1716
|
+
/** @description Only on the embedded map, not in map-data */
|
|
1717
|
+
embedOnly?: boolean;
|
|
1718
|
+
filters: string[];
|
|
1719
|
+
label: string;
|
|
1720
|
+
/** @example stations */
|
|
1721
|
+
layer: string;
|
|
1722
|
+
/** @description Properties of each feature */
|
|
1723
|
+
properties: string[];
|
|
1724
|
+
/** @description What the layer needs, e.g. "scope residence:read" */
|
|
1725
|
+
requires: string[];
|
|
1726
|
+
};
|
|
1727
|
+
LoginDto: {
|
|
1728
|
+
/** @example user@example.com */
|
|
1729
|
+
email: string;
|
|
1730
|
+
/** @example password123 */
|
|
1731
|
+
password: string;
|
|
1732
|
+
};
|
|
1733
|
+
ManualResidenceDto: {
|
|
1734
|
+
/**
|
|
1735
|
+
* @description House code (11 digits) when the house is not in the system yet
|
|
1736
|
+
* @example 83010123456
|
|
1737
|
+
*/
|
|
1738
|
+
houseCode?: string;
|
|
1739
|
+
/** @example 99/1 */
|
|
1740
|
+
houseNo: string;
|
|
1741
|
+
/** @example 7.8 */
|
|
1742
|
+
lat?: number;
|
|
1743
|
+
/** @example 98.3 */
|
|
1744
|
+
lng?: number;
|
|
1745
|
+
/** @example 4 */
|
|
1746
|
+
moo?: string;
|
|
1747
|
+
/** @example 83000 */
|
|
1748
|
+
postalCode?: string;
|
|
1749
|
+
road?: string;
|
|
1750
|
+
soi?: string;
|
|
1751
|
+
/** @example 830101 */
|
|
1752
|
+
subdistrictId: number;
|
|
1753
|
+
villageName?: string;
|
|
1754
|
+
};
|
|
1755
|
+
MapDataDto: {
|
|
1756
|
+
basemap: components["schemas"]["BasemapDto"];
|
|
1757
|
+
/** @description [minLng, minLat, maxLng, maxLat] of every feature */
|
|
1758
|
+
bounds?: number[] | null;
|
|
1759
|
+
/** Format: date-time */
|
|
1760
|
+
generatedAt: string;
|
|
1761
|
+
/** @description One FeatureCollection per asked layer, keyed by layer name */
|
|
1762
|
+
layers: {
|
|
1763
|
+
[key: string]: components["schemas"]["FeatureCollectionDto"];
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
MapOverlayDto: {
|
|
1767
|
+
/** @example #f59e0b */
|
|
1768
|
+
color?: string;
|
|
1769
|
+
/** @description GeoJSON FeatureCollection of Point, LineString, Polygon or their Multi types */
|
|
1770
|
+
data: Record<string, never>;
|
|
1771
|
+
/** @example landslide-sensors */
|
|
1772
|
+
id: string;
|
|
1773
|
+
/** @example สถานีวัดดินถล่ม */
|
|
1774
|
+
name: string;
|
|
1775
|
+
};
|
|
1776
|
+
MapSessionDto: {
|
|
1777
|
+
/**
|
|
1778
|
+
* @description minLng,minLat,maxLng,maxLat
|
|
1779
|
+
* @example 98.2,7.8,98.5,8.2
|
|
1780
|
+
*/
|
|
1781
|
+
bbox?: string;
|
|
1782
|
+
/**
|
|
1783
|
+
* @description [lng, lat]
|
|
1784
|
+
* @example [
|
|
1785
|
+
* 98.3325,
|
|
1786
|
+
* 7.9089
|
|
1787
|
+
* ]
|
|
1788
|
+
*/
|
|
1789
|
+
center?: string[];
|
|
1790
|
+
/**
|
|
1791
|
+
* @description Days back for notifications and evaluations
|
|
1792
|
+
* @default 30
|
|
1793
|
+
*/
|
|
1794
|
+
days: number;
|
|
1795
|
+
/**
|
|
1796
|
+
* @description Core 3 district id
|
|
1797
|
+
* @example 8301
|
|
1798
|
+
*/
|
|
1799
|
+
districtId?: number;
|
|
1800
|
+
/**
|
|
1801
|
+
* @example [
|
|
1802
|
+
* "home",
|
|
1803
|
+
* "pick"
|
|
1804
|
+
* ]
|
|
1805
|
+
*/
|
|
1806
|
+
layers: ("home" | "residences" | "municipality" | "stations" | "notifications" | "evaluations" | "current-location" | "pick")[];
|
|
1807
|
+
/** @description Limit offices, residences and stations to this municipality */
|
|
1808
|
+
municipalityId?: string;
|
|
1809
|
+
overlays?: components["schemas"]["MapOverlayDto"][];
|
|
1810
|
+
/**
|
|
1811
|
+
* @description Core 3 province id
|
|
1812
|
+
* @example 83
|
|
1813
|
+
*/
|
|
1814
|
+
provinceId?: number;
|
|
1815
|
+
/** @description In a query: comma-separated */
|
|
1816
|
+
stationTypes?: ("EVACUATION_SITE" | "OFFICE" | "STATION" | "SENSOR" | "UAV" | "CCTV" | "SIREN" | "OTHER")[];
|
|
1817
|
+
/**
|
|
1818
|
+
* @description Core 3 subdistrict id (residences only)
|
|
1819
|
+
* @example 830101
|
|
1820
|
+
*/
|
|
1821
|
+
subdistrictId?: number;
|
|
1822
|
+
/** @example เลือกตำแหน่งที่เกิดเหตุ */
|
|
1823
|
+
title?: string;
|
|
1824
|
+
/** @default 15 */
|
|
1825
|
+
ttlMinutes: number;
|
|
1826
|
+
/** @description GovCenter user id the map is for */
|
|
1827
|
+
userId?: string;
|
|
1828
|
+
/**
|
|
1829
|
+
* @description 3d: terrain in relief; people can tilt and rotate the map
|
|
1830
|
+
* @default 2d
|
|
1831
|
+
* @enum {string}
|
|
1832
|
+
*/
|
|
1833
|
+
view: "2d" | "3d";
|
|
1834
|
+
/** @example 14 */
|
|
1835
|
+
zoom?: number;
|
|
1836
|
+
};
|
|
1837
|
+
MapSessionDtoResponse: {
|
|
1838
|
+
/** Format: date-time */
|
|
1839
|
+
expiresAt: string;
|
|
1840
|
+
/** @description Short-lived token in the embed URL */
|
|
1841
|
+
token: string;
|
|
1842
|
+
/**
|
|
1843
|
+
* @description Put this in an iframe
|
|
1844
|
+
* @example https://auth.govcenter.co/map/embed?token=…
|
|
1845
|
+
*/
|
|
1846
|
+
url: string;
|
|
1847
|
+
};
|
|
1848
|
+
/** @enum {string} */
|
|
1849
|
+
MunicipalityClass: "ORDINARY" | "SPECIAL" | "HIGH";
|
|
1850
|
+
/** @enum {string} */
|
|
1851
|
+
MunicipalityRole: "ADMIN" | "MEMBER";
|
|
1852
|
+
/** @enum {string} */
|
|
1853
|
+
MunicipalityType: "CITY" | "TOWN" | "SUBDISTRICT" | "SAO" | "PAO" | "BMA" | "PATTAYA";
|
|
1854
|
+
NearbyMunicipalityDto: {
|
|
1855
|
+
/** @example 1.25 */
|
|
1856
|
+
distanceKm: number;
|
|
1857
|
+
id: string;
|
|
1858
|
+
name: string;
|
|
1859
|
+
type?: components["schemas"]["MunicipalityType"] | null;
|
|
1860
|
+
};
|
|
1861
|
+
NotificationAudienceDto: {
|
|
1862
|
+
/** @description type = area */
|
|
1863
|
+
lat?: number;
|
|
1864
|
+
/** @description type = area */
|
|
1865
|
+
lng?: number;
|
|
1866
|
+
/** @description type = municipality */
|
|
1867
|
+
municipalityId?: string;
|
|
1868
|
+
/** @description type = area, at most 50 km */
|
|
1869
|
+
radiusKm?: number;
|
|
1870
|
+
/** @enum {string} */
|
|
1871
|
+
type: "users" | "municipality" | "area";
|
|
1872
|
+
/** @description type = users */
|
|
1873
|
+
userIds?: string[];
|
|
1874
|
+
};
|
|
1875
|
+
NotificationListItemDto: {
|
|
1876
|
+
/** @description { type: users | municipality | area, ... } as sent */
|
|
1877
|
+
audience: Record<string, never>;
|
|
1878
|
+
/** @example line */
|
|
1879
|
+
channel: string;
|
|
1880
|
+
/** Format: date-time */
|
|
1881
|
+
createdAt: string;
|
|
1882
|
+
/** @example 118 */
|
|
1883
|
+
delivered: number;
|
|
1884
|
+
emergency: boolean;
|
|
1885
|
+
error?: string;
|
|
1886
|
+
/** @example cmnotif01 */
|
|
1887
|
+
id: string;
|
|
1888
|
+
message: string;
|
|
1889
|
+
/**
|
|
1890
|
+
* @description People who can receive it (have a LINE id)
|
|
1891
|
+
* @example 120
|
|
1892
|
+
*/
|
|
1893
|
+
recipients: number;
|
|
1894
|
+
/** @example safecity-incident-123 */
|
|
1895
|
+
reference?: string;
|
|
1896
|
+
/** Format: date-time */
|
|
1897
|
+
sentAt?: string;
|
|
1898
|
+
status: components["schemas"]["NotificationStatus"];
|
|
1899
|
+
/** @example fire.alert */
|
|
1900
|
+
template: string;
|
|
1901
|
+
title: string;
|
|
1902
|
+
};
|
|
1903
|
+
NotificationPageDto: {
|
|
1904
|
+
data: components["schemas"]["NotificationListItemDto"][];
|
|
1905
|
+
meta: components["schemas"]["PageMetaDto"];
|
|
1906
|
+
};
|
|
1907
|
+
NotificationResultDto: {
|
|
1908
|
+
/** Format: date-time */
|
|
1909
|
+
createdAt: string;
|
|
1910
|
+
/** @example 118 */
|
|
1911
|
+
delivered: number;
|
|
1912
|
+
error?: string;
|
|
1913
|
+
/** @example cmnotif01 */
|
|
1914
|
+
id: string;
|
|
1915
|
+
/**
|
|
1916
|
+
* @description People who can receive it (have a LINE id)
|
|
1917
|
+
* @example 120
|
|
1918
|
+
*/
|
|
1919
|
+
recipients: number;
|
|
1920
|
+
/** @example safecity-incident-123 */
|
|
1921
|
+
reference?: string;
|
|
1922
|
+
/** Format: date-time */
|
|
1923
|
+
sentAt?: string;
|
|
1924
|
+
status: components["schemas"]["NotificationStatus"];
|
|
1925
|
+
};
|
|
1926
|
+
/** @enum {string} */
|
|
1927
|
+
NotificationStatus: "QUEUED" | "SENT" | "PARTIAL" | "FAILED" | "NO_RECIPIENTS";
|
|
1928
|
+
/** @enum {string} */
|
|
1929
|
+
OrgUnitKind: "OFFICE" | "DIVISION" | "SECTION" | "UNIT";
|
|
1930
|
+
OrgUnitSupervisorDto: {
|
|
1931
|
+
position: components["schemas"]["PositionRefDto"];
|
|
1932
|
+
seatId: string;
|
|
1933
|
+
};
|
|
1934
|
+
PageMetaDto: {
|
|
1935
|
+
/** @example 20 */
|
|
1936
|
+
limit: number;
|
|
1937
|
+
/** @example 1 */
|
|
1938
|
+
page: number;
|
|
1939
|
+
/** @example 42 */
|
|
1940
|
+
total: number;
|
|
1941
|
+
/** @example 3 */
|
|
1942
|
+
totalPages: number;
|
|
1943
|
+
};
|
|
1944
|
+
/** @enum {string} */
|
|
1945
|
+
PositionBranch: "EXECUTIVE" | "LEGISLATIVE" | "STAFF";
|
|
1946
|
+
PositionRefDto: {
|
|
1947
|
+
/** @example DEPUTY_MAYOR */
|
|
1948
|
+
code: string;
|
|
1949
|
+
/** @example รองนายกเทศมนตรี */
|
|
1950
|
+
nameTh: string;
|
|
1951
|
+
};
|
|
1952
|
+
PrivacyPurposeAnswerDto: {
|
|
1953
|
+
/**
|
|
1954
|
+
* @example SERVICE
|
|
1955
|
+
* @enum {string}
|
|
1956
|
+
*/
|
|
1957
|
+
code: "SERVICE" | "MARKETING";
|
|
1958
|
+
/** @example true */
|
|
1959
|
+
granted: boolean;
|
|
1960
|
+
};
|
|
1961
|
+
ProfileAddressDto: {
|
|
1962
|
+
/** @example 1 */
|
|
1963
|
+
districtId?: Record<string, never>;
|
|
1964
|
+
/** @example 99/1 */
|
|
1965
|
+
houseNo?: Record<string, never>;
|
|
1966
|
+
/** @example 4 */
|
|
1967
|
+
moo?: Record<string, never>;
|
|
1968
|
+
/** @example 83000 */
|
|
1969
|
+
postalCode?: Record<string, never>;
|
|
1970
|
+
/** @example 1 */
|
|
1971
|
+
provinceId?: Record<string, never>;
|
|
1972
|
+
road?: Record<string, never>;
|
|
1973
|
+
/** @description Same address as this house (a house the user belongs to) */
|
|
1974
|
+
sameAsResidenceId?: Record<string, never>;
|
|
1975
|
+
soi?: Record<string, never>;
|
|
1976
|
+
/** @example 1 */
|
|
1977
|
+
subdistrictId?: Record<string, never>;
|
|
1978
|
+
villageName?: Record<string, never>;
|
|
1979
|
+
};
|
|
1980
|
+
RecentCommentDto: {
|
|
1981
|
+
comment?: Record<string, never> | null;
|
|
1982
|
+
/** @description E-service name */
|
|
1983
|
+
eService: string;
|
|
1984
|
+
id: string;
|
|
1985
|
+
score?: Record<string, never> | null;
|
|
1986
|
+
/** Format: date-time */
|
|
1987
|
+
submittedAt?: string | null;
|
|
1988
|
+
title: string;
|
|
1989
|
+
};
|
|
1990
|
+
RefreshTokenDto: {
|
|
1991
|
+
/**
|
|
1992
|
+
* @description Optional: preserve the currently active municipality context across the refresh.
|
|
1993
|
+
* @example municipality-id-xxx
|
|
1994
|
+
*/
|
|
1995
|
+
municipality_id?: string;
|
|
1996
|
+
/** @example refresh-token-string */
|
|
1997
|
+
refresh_token: string;
|
|
1998
|
+
};
|
|
1999
|
+
RegisterDto: {
|
|
2000
|
+
/** @example user@example.com */
|
|
2001
|
+
email: string;
|
|
2002
|
+
/** @example John Doe */
|
|
2003
|
+
name: string;
|
|
2004
|
+
/** @example password123 */
|
|
2005
|
+
password: string;
|
|
2006
|
+
/** @example 0812345678 */
|
|
2007
|
+
phone?: string;
|
|
2008
|
+
};
|
|
2009
|
+
RegistrationCurrentAddressDto: {
|
|
2010
|
+
/** @example 1 */
|
|
2011
|
+
districtId?: Record<string, never>;
|
|
2012
|
+
/** @example 99/1 */
|
|
2013
|
+
houseNo?: Record<string, never>;
|
|
2014
|
+
/** @example 4 */
|
|
2015
|
+
moo?: Record<string, never>;
|
|
2016
|
+
/** @example 83000 */
|
|
2017
|
+
postalCode?: Record<string, never>;
|
|
2018
|
+
/** @example 1 */
|
|
2019
|
+
provinceId?: Record<string, never>;
|
|
2020
|
+
road?: Record<string, never>;
|
|
2021
|
+
/**
|
|
2022
|
+
* @description true = same as the house above
|
|
2023
|
+
* @example true
|
|
2024
|
+
*/
|
|
2025
|
+
sameAsResidence?: boolean;
|
|
2026
|
+
/** @description Same address as this house (a house the user belongs to) */
|
|
2027
|
+
sameAsResidenceId?: Record<string, never>;
|
|
2028
|
+
soi?: Record<string, never>;
|
|
2029
|
+
/** @example 1 */
|
|
2030
|
+
subdistrictId?: Record<string, never>;
|
|
2031
|
+
villageName?: Record<string, never>;
|
|
2032
|
+
};
|
|
2033
|
+
RegistrationProfileDto: {
|
|
2034
|
+
/** @example 1990-01-31 */
|
|
2035
|
+
birthDate?: Record<string, never>;
|
|
2036
|
+
/** @example 1101700230705 */
|
|
2037
|
+
citizenId?: Record<string, never>;
|
|
2038
|
+
/** @example me@example.com */
|
|
2039
|
+
contactEmail?: Record<string, never>;
|
|
2040
|
+
/** @example สมชาย */
|
|
2041
|
+
firstName: string;
|
|
2042
|
+
/** @example ใจดี */
|
|
2043
|
+
lastName: string;
|
|
2044
|
+
/** @example 0812345678 */
|
|
2045
|
+
mobilePhone: string;
|
|
2046
|
+
};
|
|
2047
|
+
RegistrationResidenceDto: {
|
|
2048
|
+
/** @example 38301234567 */
|
|
2049
|
+
houseCode?: string;
|
|
2050
|
+
manual?: components["schemas"]["ManualResidenceDto"];
|
|
2051
|
+
residenceId?: string;
|
|
2052
|
+
};
|
|
2053
|
+
RejectSeatAssignmentDto: {
|
|
2054
|
+
reason?: string;
|
|
2055
|
+
};
|
|
2056
|
+
RequestEvaluationDto: {
|
|
2057
|
+
/** @example street-light */
|
|
2058
|
+
category?: string;
|
|
2059
|
+
/** @description When the job ended (default: now) */
|
|
2060
|
+
completedAt?: string;
|
|
2061
|
+
/** @default 14 */
|
|
2062
|
+
expiresInDays: number;
|
|
2063
|
+
/** @description Municipality that did the job */
|
|
2064
|
+
municipalityId?: string;
|
|
2065
|
+
/**
|
|
2066
|
+
* @description The e-service's job id
|
|
2067
|
+
* @example REQ-2026-00123
|
|
2068
|
+
*/
|
|
2069
|
+
reference: string;
|
|
2070
|
+
/** @example ซ่อมไฟถนนหน้าบ้านเลขที่ 12 */
|
|
2071
|
+
title: string;
|
|
2072
|
+
/** @description GovCenter user id of the citizen */
|
|
2073
|
+
userId: string;
|
|
2074
|
+
};
|
|
2075
|
+
RequestResidenceCloseDto: {
|
|
2076
|
+
/** @example ย้ายออกแล้ว ไม่มีผู้อยู่อาศัย */
|
|
2077
|
+
reason?: string;
|
|
2078
|
+
};
|
|
2079
|
+
/** @enum {string} */
|
|
2080
|
+
ResidenceMemberRole: "OWNER" | "RESIDENT";
|
|
2081
|
+
/**
|
|
2082
|
+
* @description Check it: pending homes are included
|
|
2083
|
+
* @enum {string}
|
|
2084
|
+
*/
|
|
2085
|
+
ResidenceMemberStatus: "PENDING" | "VERIFIED" | "REJECTED" | "REMOVED";
|
|
2086
|
+
ResidenceReviewActiveCountsDto: {
|
|
2087
|
+
claims: components["schemas"]["ResidenceReviewClaimCountsDto"];
|
|
2088
|
+
/**
|
|
2089
|
+
* @description PENDING residence member requests
|
|
2090
|
+
* @example 5
|
|
2091
|
+
*/
|
|
2092
|
+
members: number;
|
|
2093
|
+
/** @example municipality-id-xxx */
|
|
2094
|
+
municipalityId: string;
|
|
2095
|
+
};
|
|
2096
|
+
ResidenceReviewClaimCountsDto: {
|
|
2097
|
+
/**
|
|
2098
|
+
* @description Pending claims per review status (every review status is present).
|
|
2099
|
+
* @example {
|
|
2100
|
+
* "SUBMITTED": 3,
|
|
2101
|
+
* "DUPLICATE_CANDIDATE": 1,
|
|
2102
|
+
* "NEEDS_REVIEW": 0
|
|
2103
|
+
* }
|
|
2104
|
+
*/
|
|
2105
|
+
byStatus: Record<string, never>;
|
|
2106
|
+
/** @example 4 */
|
|
2107
|
+
total: number;
|
|
2108
|
+
};
|
|
2109
|
+
ResidenceReviewQueueCountsDto: {
|
|
2110
|
+
claims: components["schemas"]["ResidenceReviewClaimCountsDto"];
|
|
2111
|
+
/**
|
|
2112
|
+
* @description PENDING residence member requests
|
|
2113
|
+
* @example 5
|
|
2114
|
+
*/
|
|
2115
|
+
members: number;
|
|
2116
|
+
};
|
|
2117
|
+
ResidenceReviewSummaryDto: {
|
|
2118
|
+
/** @description Counts for `municipalityId`; null when it was not given. */
|
|
2119
|
+
active: components["schemas"]["ResidenceReviewActiveCountsDto"] | null;
|
|
2120
|
+
/** @description Counts over every municipality the caller can review — the whole system for super admins. Same scope as the unfiltered list endpoints. */
|
|
2121
|
+
all: components["schemas"]["ResidenceReviewQueueCountsDto"];
|
|
2122
|
+
};
|
|
2123
|
+
ReviewRegistrationDto: {
|
|
2124
|
+
/** @enum {string} */
|
|
2125
|
+
decision: "APPROVE" | "REJECT";
|
|
2126
|
+
/** @description Required when rejecting */
|
|
2127
|
+
note?: string;
|
|
2128
|
+
};
|
|
2129
|
+
ReviewResidenceClaimDto: {
|
|
2130
|
+
/** @example ตรวจเอกสารแล้ว ไม่ซ้ำกับบ้านอื่น */
|
|
2131
|
+
reviewNote?: string;
|
|
2132
|
+
};
|
|
2133
|
+
SaveDraftDto: {
|
|
2134
|
+
currentStep?: number;
|
|
2135
|
+
/** @description wizard data (step1..step6) */
|
|
2136
|
+
data?: Record<string, never>;
|
|
2137
|
+
/** @example เทศบาลตำบลตัวอย่าง */
|
|
2138
|
+
name?: string;
|
|
2139
|
+
};
|
|
2140
|
+
ScoreCountDto: {
|
|
2141
|
+
count: number;
|
|
2142
|
+
score: number;
|
|
2143
|
+
};
|
|
2144
|
+
SeatCountsDto: {
|
|
2145
|
+
FILLED: number;
|
|
2146
|
+
PENDING: number;
|
|
2147
|
+
VACANT: number;
|
|
2148
|
+
};
|
|
2149
|
+
SendNotificationDto: {
|
|
2150
|
+
audience: components["schemas"]["NotificationAudienceDto"];
|
|
2151
|
+
/** @description Emergency warnings reach everyone in the audience */
|
|
2152
|
+
emergency?: boolean;
|
|
2153
|
+
/** @example ระดับเตือนภัยที่สถานี ... */
|
|
2154
|
+
message: string;
|
|
2155
|
+
/** @description The e-service's own reference */
|
|
2156
|
+
reference?: string;
|
|
2157
|
+
/** @example landslide.warning */
|
|
2158
|
+
template: string;
|
|
2159
|
+
/** @example เตือนภัยดินถล่ม */
|
|
2160
|
+
title: string;
|
|
2161
|
+
};
|
|
2162
|
+
ServiceEvaluationDto: {
|
|
2163
|
+
/** @description Scores per aspect */
|
|
2164
|
+
aspects?: Record<string, never> | null;
|
|
2165
|
+
comment?: Record<string, never> | null;
|
|
2166
|
+
/** Format: date-time */
|
|
2167
|
+
expiresAt: string;
|
|
2168
|
+
/** @description The citizen form; show it yourself if LINE was not sent */
|
|
2169
|
+
formUrl: string;
|
|
2170
|
+
/** @example cmeval01 */
|
|
2171
|
+
id: string;
|
|
2172
|
+
/** @description Core 8 notification that carried the link */
|
|
2173
|
+
notificationId?: string;
|
|
2174
|
+
/** @example safecity-complaint-123 */
|
|
2175
|
+
reference: string;
|
|
2176
|
+
score?: Record<string, never> | null;
|
|
2177
|
+
status: components["schemas"]["EvaluationStatus"];
|
|
2178
|
+
/** Format: date-time */
|
|
2179
|
+
submittedAt?: string | null;
|
|
2180
|
+
userId: string;
|
|
2181
|
+
};
|
|
2182
|
+
SetupMunicipalityDto: {
|
|
2183
|
+
/** @description wizard data (step1..step6) */
|
|
2184
|
+
data: Record<string, never>;
|
|
2185
|
+
draftId?: string;
|
|
2186
|
+
};
|
|
2187
|
+
SsoMembershipDto: {
|
|
2188
|
+
id: string;
|
|
2189
|
+
isActive: boolean;
|
|
2190
|
+
/** @description The user's main municipality (listed first) */
|
|
2191
|
+
isPrimary: boolean;
|
|
2192
|
+
/** Format: date-time */
|
|
2193
|
+
joinedAt: string;
|
|
2194
|
+
municipality: components["schemas"]["SsoMunicipalityDto"];
|
|
2195
|
+
role: components["schemas"]["MunicipalityRole"];
|
|
2196
|
+
/** @description Rights in this e-service */
|
|
2197
|
+
serviceAccess: components["schemas"]["SsoServiceAccessDto"][];
|
|
2198
|
+
};
|
|
2199
|
+
SsoMunicipalityDto: {
|
|
2200
|
+
id: string;
|
|
2201
|
+
latitude?: Record<string, never> | null;
|
|
2202
|
+
longitude?: Record<string, never> | null;
|
|
2203
|
+
/** @example หลักเมือง */
|
|
2204
|
+
name: string;
|
|
2205
|
+
province?: components["schemas"]["SsoProvinceDto"] | null;
|
|
2206
|
+
/** @example lak-mueang */
|
|
2207
|
+
slug: string;
|
|
2208
|
+
};
|
|
2209
|
+
SsoOrgUnitDto: {
|
|
2210
|
+
id: string;
|
|
2211
|
+
kind: components["schemas"]["OrgUnitKind"];
|
|
2212
|
+
/** @example กองคลัง */
|
|
2213
|
+
name: string;
|
|
2214
|
+
};
|
|
2215
|
+
SsoPositionDto: {
|
|
2216
|
+
branch: components["schemas"]["PositionBranch"];
|
|
2217
|
+
/**
|
|
2218
|
+
* @description Units this seat heads or supervises; empty for council seats
|
|
2219
|
+
* @example [
|
|
2220
|
+
* "กองคลัง"
|
|
2221
|
+
* ]
|
|
2222
|
+
*/
|
|
2223
|
+
duties: string[];
|
|
2224
|
+
/**
|
|
2225
|
+
* @description Higher = more senior (mayor 6 … level-1 staff 1)
|
|
2226
|
+
* @example 3
|
|
2227
|
+
*/
|
|
2228
|
+
level: number;
|
|
2229
|
+
municipalityId: string;
|
|
2230
|
+
/** @description null for council seats and seats outside a unit */
|
|
2231
|
+
orgUnit?: components["schemas"]["SsoOrgUnitDto"] | null;
|
|
2232
|
+
/** @description null for council (LEGISLATIVE) seats */
|
|
2233
|
+
position?: components["schemas"]["SsoPositionTemplateDto"] | null;
|
|
2234
|
+
};
|
|
2235
|
+
SsoPositionTemplateDto: {
|
|
2236
|
+
/** @example DIRECTOR */
|
|
2237
|
+
code: string;
|
|
2238
|
+
/** @example ผู้อำนวยการ */
|
|
2239
|
+
nameTh: string;
|
|
2240
|
+
};
|
|
2241
|
+
SsoProvinceDto: {
|
|
2242
|
+
/** @example 46 */
|
|
2243
|
+
id: number;
|
|
2244
|
+
/** @example Kalasin */
|
|
2245
|
+
nameEn: string;
|
|
2246
|
+
/** @example กาฬสินธุ์ */
|
|
2247
|
+
nameTh: string;
|
|
2248
|
+
};
|
|
2249
|
+
SsoResidenceDto: {
|
|
2250
|
+
/** @description Flat copy of the address for display */
|
|
2251
|
+
addressSnapshot: Record<string, never>;
|
|
2252
|
+
membershipId: string;
|
|
2253
|
+
/** Format: date-time */
|
|
2254
|
+
requestedAt?: string | null;
|
|
2255
|
+
/** @description The residence with its address and municipality */
|
|
2256
|
+
residence: Record<string, never>;
|
|
2257
|
+
role: components["schemas"]["ResidenceMemberRole"];
|
|
2258
|
+
/** @description Check it: pending homes are included */
|
|
2259
|
+
status: components["schemas"]["ResidenceMemberStatus"];
|
|
2260
|
+
/** Format: date-time */
|
|
2261
|
+
verifiedAt?: string | null;
|
|
2262
|
+
};
|
|
2263
|
+
SsoServiceAccessDto: {
|
|
2264
|
+
canControl: boolean;
|
|
2265
|
+
canEdit: boolean;
|
|
2266
|
+
canView: boolean;
|
|
2267
|
+
id: string;
|
|
2268
|
+
memberId: string;
|
|
2269
|
+
serviceId: string;
|
|
2270
|
+
};
|
|
2271
|
+
SsoUserDto: {
|
|
2272
|
+
avatarUrl?: string | null;
|
|
2273
|
+
/** @example user@example.com */
|
|
2274
|
+
email: string;
|
|
2275
|
+
id: string;
|
|
2276
|
+
/** @description LINE user id, for LINE messages */
|
|
2277
|
+
lineId?: string | null;
|
|
2278
|
+
memberships: components["schemas"]["SsoMembershipDto"][];
|
|
2279
|
+
name?: string | null;
|
|
2280
|
+
/** @description FILLED seats only, limited to municipalities bound to this e-service unless it is shared */
|
|
2281
|
+
positions: components["schemas"]["SsoPositionDto"][];
|
|
2282
|
+
/** @description Municipality of the membership marked isPrimary */
|
|
2283
|
+
primaryMunicipalityId?: string | null;
|
|
2284
|
+
/** @description Core 7: GovCenter super admin and others */
|
|
2285
|
+
systemRole: components["schemas"]["SystemRole"];
|
|
2286
|
+
};
|
|
2287
|
+
SsoVerifyResponseDto: {
|
|
2288
|
+
/** @example Verification successful */
|
|
2289
|
+
message: string;
|
|
2290
|
+
/** @description Empty unless the e-service has residence:read or residence:members:read */
|
|
2291
|
+
residences: components["schemas"]["SsoResidenceDto"][];
|
|
2292
|
+
user: components["schemas"]["SsoUserDto"];
|
|
2293
|
+
};
|
|
2294
|
+
StaffOrgUnitDto: {
|
|
2295
|
+
id: string;
|
|
2296
|
+
kind: components["schemas"]["OrgUnitKind"];
|
|
2297
|
+
name: string;
|
|
2298
|
+
};
|
|
2299
|
+
StationDeletedDto: {
|
|
2300
|
+
/** @example true */
|
|
2301
|
+
deleted: boolean;
|
|
2302
|
+
};
|
|
2303
|
+
StationDto: {
|
|
2304
|
+
address?: Record<string, never> | null;
|
|
2305
|
+
/** @description e.g. { "capacity": 300 } */
|
|
2306
|
+
attributes?: Record<string, never> | null;
|
|
2307
|
+
/** @example FIRE-SMOKE-01 */
|
|
2308
|
+
code: string;
|
|
2309
|
+
/** Format: date-time */
|
|
2310
|
+
createdAt: string;
|
|
2311
|
+
description?: Record<string, never> | null;
|
|
2312
|
+
/** @description Owner e-service; null = registered by GovCenter */
|
|
2313
|
+
eServiceId?: Record<string, never> | null;
|
|
2314
|
+
/** @example cmstation01 */
|
|
2315
|
+
id: string;
|
|
2316
|
+
/** Format: date-time */
|
|
2317
|
+
lastSeenAt?: string | null;
|
|
2318
|
+
/** @example 7.8804 */
|
|
2319
|
+
latitude: number;
|
|
2320
|
+
/** @example 98.3923 */
|
|
2321
|
+
longitude: number;
|
|
2322
|
+
/** @description Moves (UAV, vehicle): the position is its last report */
|
|
2323
|
+
mobile: boolean;
|
|
2324
|
+
municipalityId?: Record<string, never> | null;
|
|
2325
|
+
/** @example เซนเซอร์ควัน ตลาดเก่า */
|
|
2326
|
+
name: string;
|
|
2327
|
+
status: components["schemas"]["StationStatus"];
|
|
2328
|
+
type: components["schemas"]["StationType"];
|
|
2329
|
+
/** Format: date-time */
|
|
2330
|
+
updatedAt: string;
|
|
2331
|
+
};
|
|
2332
|
+
StationEServiceRefDto: {
|
|
2333
|
+
code?: Record<string, never> | null;
|
|
2334
|
+
id: string;
|
|
2335
|
+
name: string;
|
|
2336
|
+
};
|
|
2337
|
+
StationHeartbeatDto: {
|
|
2338
|
+
id: string;
|
|
2339
|
+
/** Format: date-time */
|
|
2340
|
+
lastSeenAt?: string | null;
|
|
2341
|
+
};
|
|
2342
|
+
StationListItemDto: {
|
|
2343
|
+
address?: Record<string, never> | null;
|
|
2344
|
+
/** @description e.g. { "capacity": 300 } */
|
|
2345
|
+
attributes?: Record<string, never> | null;
|
|
2346
|
+
/** @example FIRE-SMOKE-01 */
|
|
2347
|
+
code: string;
|
|
2348
|
+
/** Format: date-time */
|
|
2349
|
+
createdAt: string;
|
|
2350
|
+
description?: Record<string, never> | null;
|
|
2351
|
+
eService?: components["schemas"]["StationEServiceRefDto"] | null;
|
|
2352
|
+
/** @description Owner e-service; null = registered by GovCenter */
|
|
2353
|
+
eServiceId?: Record<string, never> | null;
|
|
2354
|
+
/** @example cmstation01 */
|
|
2355
|
+
id: string;
|
|
2356
|
+
/** Format: date-time */
|
|
2357
|
+
lastSeenAt?: string | null;
|
|
2358
|
+
/** @example 7.8804 */
|
|
2359
|
+
latitude: number;
|
|
2360
|
+
/** @example 98.3923 */
|
|
2361
|
+
longitude: number;
|
|
2362
|
+
/** @description Moves (UAV, vehicle): the position is its last report */
|
|
2363
|
+
mobile: boolean;
|
|
2364
|
+
municipality?: components["schemas"]["StationMunicipalityRefDto"] | null;
|
|
2365
|
+
municipalityId?: Record<string, never> | null;
|
|
2366
|
+
/** @example เซนเซอร์ควัน ตลาดเก่า */
|
|
2367
|
+
name: string;
|
|
2368
|
+
status: components["schemas"]["StationStatus"];
|
|
2369
|
+
type: components["schemas"]["StationType"];
|
|
2370
|
+
/** Format: date-time */
|
|
2371
|
+
updatedAt: string;
|
|
2372
|
+
};
|
|
2373
|
+
StationMunicipalityRefDto: {
|
|
2374
|
+
id: string;
|
|
2375
|
+
name: string;
|
|
2376
|
+
};
|
|
2377
|
+
/** @enum {string} */
|
|
2378
|
+
StationStatus: "ACTIVE" | "INACTIVE" | "MAINTENANCE";
|
|
2379
|
+
/** @enum {string} */
|
|
2380
|
+
StationType: "EVACUATION_SITE" | "OFFICE" | "STATION" | "SENSOR" | "UAV" | "CCTV" | "SIREN" | "OTHER";
|
|
2381
|
+
StatsByMonthDto: {
|
|
2382
|
+
averageScore?: Record<string, never> | null;
|
|
2383
|
+
/** @example 2026-11 */
|
|
2384
|
+
month: string;
|
|
2385
|
+
requested: number;
|
|
2386
|
+
submitted: number;
|
|
2387
|
+
};
|
|
2388
|
+
StatsByMunicipalityDto: {
|
|
2389
|
+
averageScore?: Record<string, never> | null;
|
|
2390
|
+
municipalityId?: Record<string, never> | null;
|
|
2391
|
+
name: string;
|
|
2392
|
+
requested: number;
|
|
2393
|
+
submitted: number;
|
|
2394
|
+
};
|
|
2395
|
+
StatsByServiceDto: {
|
|
2396
|
+
averageScore?: Record<string, never> | null;
|
|
2397
|
+
eServiceId: string;
|
|
2398
|
+
name: string;
|
|
2399
|
+
requested: number;
|
|
2400
|
+
submitted: number;
|
|
2401
|
+
};
|
|
2402
|
+
StatsRangeDto: {
|
|
2403
|
+
/** Format: date-time */
|
|
2404
|
+
from: string;
|
|
2405
|
+
/** Format: date-time */
|
|
2406
|
+
to: string;
|
|
2407
|
+
};
|
|
2408
|
+
StatsSummaryDto: {
|
|
2409
|
+
/** @description Average per aspect */
|
|
2410
|
+
aspects: Record<string, never>;
|
|
2411
|
+
averageScore?: Record<string, never> | null;
|
|
2412
|
+
requested: number;
|
|
2413
|
+
/** @description submitted / requested, 0–1 */
|
|
2414
|
+
responseRate?: Record<string, never> | null;
|
|
2415
|
+
submitted: number;
|
|
2416
|
+
};
|
|
2417
|
+
SubmitEvaluationDto: {
|
|
2418
|
+
aspects?: components["schemas"]["EvaluationAspectsDto"];
|
|
2419
|
+
comment?: string;
|
|
2420
|
+
score: number;
|
|
2421
|
+
};
|
|
2422
|
+
SubmitResidenceClaimIntentDto: {
|
|
2423
|
+
/** @example อาคาร A */
|
|
2424
|
+
buildingName?: string;
|
|
2425
|
+
/** @example 4001 */
|
|
2426
|
+
districtId?: number;
|
|
2427
|
+
/** @example 2 */
|
|
2428
|
+
floor?: string;
|
|
2429
|
+
/** @example 99/1 */
|
|
2430
|
+
houseNo?: string;
|
|
2431
|
+
/** @example 16.4321 */
|
|
2432
|
+
latitude?: number;
|
|
2433
|
+
/**
|
|
2434
|
+
* @default UNKNOWN
|
|
2435
|
+
* @enum {string}
|
|
2436
|
+
*/
|
|
2437
|
+
locationAccuracy: "EXACT" | "APPROXIMATE" | "UNKNOWN";
|
|
2438
|
+
/** @example 102.8236 */
|
|
2439
|
+
longitude?: number;
|
|
2440
|
+
/** @example 4 */
|
|
2441
|
+
moo?: string;
|
|
2442
|
+
/**
|
|
2443
|
+
* @description Required for CREATE_RESIDENCE. For JOIN/UPDATE types, derived from residenceId when omitted.
|
|
2444
|
+
* @example municipality-id-xxx
|
|
2445
|
+
*/
|
|
2446
|
+
municipalityId?: string;
|
|
2447
|
+
/** @example 40000 */
|
|
2448
|
+
postalCode?: string;
|
|
2449
|
+
/**
|
|
2450
|
+
* @description For JOIN_AS_RESIDENT/OWNER: the residence the user is moving OUT of. When set and approved, the old ResidenceMember is set to REMOVED.
|
|
2451
|
+
* @example residence-id-yyy
|
|
2452
|
+
*/
|
|
2453
|
+
previousResidenceId?: string;
|
|
2454
|
+
/**
|
|
2455
|
+
* @description Optional GeoJSON-like geometry proposed by the submitter.
|
|
2456
|
+
* @example {
|
|
2457
|
+
* "type": "Point",
|
|
2458
|
+
* "coordinates": [
|
|
2459
|
+
* 102.8236,
|
|
2460
|
+
* 16.4321
|
|
2461
|
+
* ]
|
|
2462
|
+
* }
|
|
2463
|
+
*/
|
|
2464
|
+
proposedGeometry?: Record<string, never>;
|
|
2465
|
+
/** @example 40 */
|
|
2466
|
+
provinceId?: number;
|
|
2467
|
+
/**
|
|
2468
|
+
* @description Stable municipality-scoped residence code. If omitted, the server generates one.
|
|
2469
|
+
* @example 500100-000001
|
|
2470
|
+
*/
|
|
2471
|
+
residenceCode?: string;
|
|
2472
|
+
/**
|
|
2473
|
+
* @description For UPDATE_ADDRESS, JOIN_AS_RESIDENT, JOIN_AS_OWNER: the target residence id. municipalityId will be derived from the residence when omitted.
|
|
2474
|
+
* @example residence-id-xxx
|
|
2475
|
+
*/
|
|
2476
|
+
residenceId?: string;
|
|
2477
|
+
/** @example มิตรภาพ */
|
|
2478
|
+
road?: string;
|
|
2479
|
+
/** @example 204 */
|
|
2480
|
+
roomNo?: string;
|
|
2481
|
+
/** @example มิตรภาพ 12 */
|
|
2482
|
+
soi?: string;
|
|
2483
|
+
/**
|
|
2484
|
+
* @default PENDING_REVIEW
|
|
2485
|
+
* @enum {string}
|
|
2486
|
+
*/
|
|
2487
|
+
status: "PENDING_REVIEW" | "VERIFIED" | "REJECTED" | "INACTIVE";
|
|
2488
|
+
/** @example 400101 */
|
|
2489
|
+
subdistrictId?: number;
|
|
2490
|
+
/**
|
|
2491
|
+
* @description Optional submitting e-service id. Server-to-server endpoints can set this later via API key context.
|
|
2492
|
+
* @example service-id-xxx
|
|
2493
|
+
*/
|
|
2494
|
+
submittedByServiceId?: string;
|
|
2495
|
+
/**
|
|
2496
|
+
* @default CREATE_RESIDENCE
|
|
2497
|
+
* @enum {string}
|
|
2498
|
+
*/
|
|
2499
|
+
type: "CREATE_RESIDENCE" | "UPDATE_ADDRESS" | "UPDATE_POINT" | "UPDATE_GEOMETRY" | "JOIN_AS_OWNER" | "JOIN_AS_RESIDENT" | "CLOSE_RESIDENCE";
|
|
2500
|
+
/** @example บ้านหนองแวง */
|
|
2501
|
+
villageName?: string;
|
|
2502
|
+
};
|
|
2503
|
+
SwitchMunicipalityDto: {
|
|
2504
|
+
/**
|
|
2505
|
+
* @description Municipality ID to switch to
|
|
2506
|
+
* @example municipality-id-xxx
|
|
2507
|
+
*/
|
|
2508
|
+
municipalityId: string;
|
|
2509
|
+
};
|
|
2510
|
+
/**
|
|
2511
|
+
* @description Core 7: GovCenter super admin and others
|
|
2512
|
+
* @enum {string}
|
|
2513
|
+
*/
|
|
2514
|
+
SystemRole: "SUPER_ADMIN" | "USER";
|
|
2515
|
+
TransferResidenceOwnershipDto: {
|
|
2516
|
+
/**
|
|
2517
|
+
* @description true = the caller leaves; false = the caller stays as a resident
|
|
2518
|
+
* @default false
|
|
2519
|
+
*/
|
|
2520
|
+
leave: boolean;
|
|
2521
|
+
/**
|
|
2522
|
+
* @description A verified member of the same residence who becomes owner
|
|
2523
|
+
* @example residence-member-id
|
|
2524
|
+
*/
|
|
2525
|
+
memberId: string;
|
|
2526
|
+
};
|
|
2527
|
+
UpdateEServiceDto: {
|
|
2528
|
+
/**
|
|
2529
|
+
* @description Base URL for redirect whitelist
|
|
2530
|
+
* @example https://tax.govcenter.co
|
|
2531
|
+
*/
|
|
2532
|
+
baseUrl?: string;
|
|
2533
|
+
/**
|
|
2534
|
+
* @description Unique code for the service
|
|
2535
|
+
* @example tax
|
|
2536
|
+
*/
|
|
2537
|
+
code?: string;
|
|
2538
|
+
/** @example ระบบจัดการภาษีท้องถิ่นออนไลน์ */
|
|
2539
|
+
description?: string;
|
|
2540
|
+
/** @example https://example.com/icon.png */
|
|
2541
|
+
iconUrl?: string;
|
|
2542
|
+
isActive?: boolean;
|
|
2543
|
+
/**
|
|
2544
|
+
* @description List of municipality IDs to assign to this e-service (Super Admin)
|
|
2545
|
+
* @example [
|
|
2546
|
+
* "mun-id-1"
|
|
2547
|
+
* ]
|
|
2548
|
+
*/
|
|
2549
|
+
municipalityIds?: string[];
|
|
2550
|
+
/**
|
|
2551
|
+
* @description E-Service name
|
|
2552
|
+
* @example ระบบภาษีท้องถิ่น
|
|
2553
|
+
*/
|
|
2554
|
+
name?: string;
|
|
2555
|
+
/**
|
|
2556
|
+
* @description Municipality structure and staff this e-service may read (Core 4). SUPER_ADMIN only.
|
|
2557
|
+
* @example [
|
|
2558
|
+
* "org:read"
|
|
2559
|
+
* ]
|
|
2560
|
+
*/
|
|
2561
|
+
orgApiScopes?: "org:read"[];
|
|
2562
|
+
/**
|
|
2563
|
+
* @description Personal-data fields this e-service may read (Core 2), always also limited by each user’s consent. SUPER_ADMIN only.
|
|
2564
|
+
* @example [
|
|
2565
|
+
* "profile:basic",
|
|
2566
|
+
* "profile:contact"
|
|
2567
|
+
* ]
|
|
2568
|
+
*/
|
|
2569
|
+
profileApiScopes?: ("profile:basic" | "profile:contact" | "profile:birthdate" | "profile:citizen-id")[];
|
|
2570
|
+
/**
|
|
2571
|
+
* @description Rate limit per minute
|
|
2572
|
+
* @example 60
|
|
2573
|
+
*/
|
|
2574
|
+
rateLimitPerMin?: number;
|
|
2575
|
+
/**
|
|
2576
|
+
* @description Server-to-server residence API scopes granted to this e-service. residence:claim:create is used for both Central Flow intents and fallback claim submission.
|
|
2577
|
+
* @example [
|
|
2578
|
+
* "residence:search",
|
|
2579
|
+
* "residence:read",
|
|
2580
|
+
* "residence:members:invite",
|
|
2581
|
+
* "residence:claim:create",
|
|
2582
|
+
* "residence:claim:read"
|
|
2583
|
+
* ]
|
|
2584
|
+
*/
|
|
2585
|
+
residenceApiScopes?: string[];
|
|
2586
|
+
/**
|
|
2587
|
+
* @description SSO Code TTL in seconds
|
|
2588
|
+
* @example 300
|
|
2589
|
+
*/
|
|
2590
|
+
ssoCodeTtl?: number;
|
|
2591
|
+
};
|
|
2592
|
+
UpdateEServiceUserRoleDto: {
|
|
2593
|
+
/**
|
|
2594
|
+
* @description E-Service role code
|
|
2595
|
+
* @example APPROVER
|
|
2596
|
+
*/
|
|
2597
|
+
roleCode: string;
|
|
2598
|
+
};
|
|
2599
|
+
UpdateMunicipalityDto: {
|
|
2600
|
+
/**
|
|
2601
|
+
* @description Responsibility area (Core 4): every subdistrict the municipality covers, shared with all e-services. [] clears it.
|
|
2602
|
+
* @example [
|
|
2603
|
+
* 400101,
|
|
2604
|
+
* 400102
|
|
2605
|
+
* ]
|
|
2606
|
+
*/
|
|
2607
|
+
areaSubdistrictIds?: number[];
|
|
2608
|
+
/**
|
|
2609
|
+
* @description รหัส อปท. 7 หลัก (database CHECK municipalities_code_format)
|
|
2610
|
+
* @example 5400101
|
|
2611
|
+
*/
|
|
2612
|
+
code?: string;
|
|
2613
|
+
/** @example เทศบาลนครขอนแก่น จังหวัดขอนแก่น */
|
|
2614
|
+
description?: string;
|
|
2615
|
+
/**
|
|
2616
|
+
* @description District ID (รหัสอำเภอ 4 หลัก)
|
|
2617
|
+
* @example 4001
|
|
2618
|
+
*/
|
|
2619
|
+
districtId?: Record<string, never>;
|
|
2620
|
+
/**
|
|
2621
|
+
* @description Is municipality active
|
|
2622
|
+
* @example true
|
|
2623
|
+
*/
|
|
2624
|
+
isActive?: boolean;
|
|
2625
|
+
/** @example https://example.com/logo.png */
|
|
2626
|
+
logoUrl?: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* @description Municipality name
|
|
2629
|
+
* @example เทศบาลนครขอนแก่น
|
|
2630
|
+
*/
|
|
2631
|
+
name?: string;
|
|
2632
|
+
/**
|
|
2633
|
+
* @description Province ID (รหัสจังหวัด 1-77)
|
|
2634
|
+
* @example 40
|
|
2635
|
+
*/
|
|
2636
|
+
provinceId?: Record<string, never>;
|
|
2637
|
+
/**
|
|
2638
|
+
* @description Unique slug for URL
|
|
2639
|
+
* @example khonkaen-city
|
|
2640
|
+
*/
|
|
2641
|
+
slug?: string;
|
|
2642
|
+
/**
|
|
2643
|
+
* @description Subdistrict ID (รหัสตำบล 6 หลัก)
|
|
2644
|
+
* @example 400101
|
|
2645
|
+
*/
|
|
2646
|
+
subdistrictId?: Record<string, never>;
|
|
2647
|
+
/**
|
|
2648
|
+
* @description ประเภท อปท. (required: municipalities.type is NOT NULL)
|
|
2649
|
+
* @example CITY
|
|
2650
|
+
* @enum {string}
|
|
2651
|
+
*/
|
|
2652
|
+
type?: "CITY" | "TOWN" | "SUBDISTRICT" | "SAO" | "PAO" | "BMA" | "PATTAYA";
|
|
2653
|
+
};
|
|
2654
|
+
UpdateMunicipalityMemberRoleDto: {
|
|
2655
|
+
/**
|
|
2656
|
+
* @description Role in municipality. ADMIN can only be granted by a super admin; officials stay MEMBER and get duties from position seats.
|
|
2657
|
+
* @example ADMIN
|
|
2658
|
+
*/
|
|
2659
|
+
role: components["schemas"]["MunicipalityRole"];
|
|
2660
|
+
};
|
|
2661
|
+
UpdateProfileDto: {
|
|
2662
|
+
/**
|
|
2663
|
+
* @description YYYY-MM-DD (ค.ศ.)
|
|
2664
|
+
* @example 1990-01-31
|
|
2665
|
+
*/
|
|
2666
|
+
birthDate?: Record<string, never>;
|
|
2667
|
+
/**
|
|
2668
|
+
* @description 13 digits; never returned
|
|
2669
|
+
* @example 1101700230705
|
|
2670
|
+
*/
|
|
2671
|
+
citizenId?: Record<string, never>;
|
|
2672
|
+
/** @example me@example.com */
|
|
2673
|
+
contactEmail?: Record<string, never>;
|
|
2674
|
+
currentAddress?: components["schemas"]["ProfileAddressDto"] | null;
|
|
2675
|
+
/** @example สมชาย */
|
|
2676
|
+
firstName: string;
|
|
2677
|
+
/** @example ใจดี */
|
|
2678
|
+
lastName: string;
|
|
2679
|
+
/** @example 0812345678 */
|
|
2680
|
+
mobilePhone?: Record<string, never>;
|
|
2681
|
+
};
|
|
2682
|
+
UpdateResidenceDto: {
|
|
2683
|
+
/** @example อาคาร A */
|
|
2684
|
+
buildingName?: string;
|
|
2685
|
+
/** @example 4001 */
|
|
2686
|
+
districtId?: number;
|
|
2687
|
+
/** @example 2 */
|
|
2688
|
+
floor?: string;
|
|
2689
|
+
/** @example 99/1 */
|
|
2690
|
+
houseNo?: string;
|
|
2691
|
+
/**
|
|
2692
|
+
* @description 11-digit house code; dashes/spaces allowed; null clears it
|
|
2693
|
+
* @example 3830-123456-7
|
|
2694
|
+
*/
|
|
2695
|
+
houseRegistrationCode?: Record<string, never> | null;
|
|
2696
|
+
/** @example 16.4321 */
|
|
2697
|
+
latitude?: number;
|
|
2698
|
+
/**
|
|
2699
|
+
* @default UNKNOWN
|
|
2700
|
+
* @enum {string}
|
|
2701
|
+
*/
|
|
2702
|
+
locationAccuracy: "EXACT" | "APPROXIMATE" | "UNKNOWN";
|
|
2703
|
+
/** @example 102.8236 */
|
|
2704
|
+
longitude?: number;
|
|
2705
|
+
/** @example 4 */
|
|
2706
|
+
moo?: string;
|
|
2707
|
+
/** @example municipality-id-xxx */
|
|
2708
|
+
municipalityId?: string;
|
|
2709
|
+
/** @example 40000 */
|
|
2710
|
+
postalCode?: string;
|
|
2711
|
+
/** @example 40 */
|
|
2712
|
+
provinceId?: number;
|
|
2713
|
+
/**
|
|
2714
|
+
* @description Stable municipality-scoped residence code. If omitted, the server generates one.
|
|
2715
|
+
* @example 500100-000001
|
|
2716
|
+
*/
|
|
2717
|
+
residenceCode?: string;
|
|
2718
|
+
/** @example มิตรภาพ */
|
|
2719
|
+
road?: string;
|
|
2720
|
+
/** @example 204 */
|
|
2721
|
+
roomNo?: string;
|
|
2722
|
+
/** @example มิตรภาพ 12 */
|
|
2723
|
+
soi?: string;
|
|
2724
|
+
/**
|
|
2725
|
+
* @default PENDING_REVIEW
|
|
2726
|
+
* @enum {string}
|
|
2727
|
+
*/
|
|
2728
|
+
status: "PENDING_REVIEW" | "VERIFIED" | "REJECTED" | "INACTIVE";
|
|
2729
|
+
/** @example 400101 */
|
|
2730
|
+
subdistrictId?: number;
|
|
2731
|
+
/** @example บ้านหนองแวง */
|
|
2732
|
+
villageName?: string;
|
|
2733
|
+
};
|
|
2734
|
+
UpdateResidenceMemberRoleDto: {
|
|
2735
|
+
/** @enum {string} */
|
|
2736
|
+
role: "OWNER" | "RESIDENT";
|
|
2737
|
+
};
|
|
2738
|
+
UpdateResidenceMemberStatusDto: {
|
|
2739
|
+
/** @enum {string} */
|
|
2740
|
+
status: "PENDING" | "VERIFIED" | "REJECTED" | "REMOVED";
|
|
2741
|
+
};
|
|
2742
|
+
UpdateStationDto: {
|
|
2743
|
+
address?: string;
|
|
2744
|
+
/**
|
|
2745
|
+
* @example {
|
|
2746
|
+
* "capacity": 300
|
|
2747
|
+
* }
|
|
2748
|
+
*/
|
|
2749
|
+
attributes?: Record<string, never>;
|
|
2750
|
+
/**
|
|
2751
|
+
* @description Station or device code, unique across GovCenter
|
|
2752
|
+
* @example PKT-EVAC-001
|
|
2753
|
+
*/
|
|
2754
|
+
code?: string;
|
|
2755
|
+
description?: string;
|
|
2756
|
+
/** @example 7.9089 */
|
|
2757
|
+
latitude?: number;
|
|
2758
|
+
/** @example 98.3325 */
|
|
2759
|
+
longitude?: number;
|
|
2760
|
+
/** @description Moves (UAV, vehicle) */
|
|
2761
|
+
mobile?: boolean;
|
|
2762
|
+
municipalityId?: string;
|
|
2763
|
+
/** @example โรงเรียนบ้านกะทู้ (จุดอพยพ) */
|
|
2764
|
+
name?: string;
|
|
2765
|
+
/** @enum {string} */
|
|
2766
|
+
status?: "ACTIVE" | "INACTIVE" | "MAINTENANCE";
|
|
2767
|
+
/** @enum {string} */
|
|
2768
|
+
type?: "EVACUATION_SITE" | "OFFICE" | "STATION" | "SENSOR" | "UAV" | "CCTV" | "SIREN" | "OTHER";
|
|
2769
|
+
};
|
|
2770
|
+
UpdateStationPositionDto: {
|
|
2771
|
+
latitude: number;
|
|
2772
|
+
longitude: number;
|
|
2773
|
+
};
|
|
2774
|
+
UpdateUserDto: {
|
|
2775
|
+
/** @example https://example.com/avatar.jpg */
|
|
2776
|
+
avatarUrl?: string;
|
|
2777
|
+
/** @description Current password: required to change your own email when the account has one */
|
|
2778
|
+
currentPassword?: string;
|
|
2779
|
+
/** @example test@gmail.com */
|
|
2780
|
+
email?: string;
|
|
2781
|
+
/** @example true */
|
|
2782
|
+
isActive?: boolean;
|
|
2783
|
+
/** @example John Doe */
|
|
2784
|
+
name?: string;
|
|
2785
|
+
/** @example +66812345678 */
|
|
2786
|
+
phone?: string;
|
|
2787
|
+
/**
|
|
2788
|
+
* @example SUPER_ADMIN
|
|
2789
|
+
* @enum {string}
|
|
2790
|
+
*/
|
|
2791
|
+
systemRole?: "SUPER_ADMIN" | "USER";
|
|
2792
|
+
};
|
|
2793
|
+
ValidateStepDto: {
|
|
2794
|
+
/** @description whole wizard data, or only that step */
|
|
2795
|
+
data: Record<string, never>;
|
|
2796
|
+
step: number;
|
|
2797
|
+
};
|
|
2798
|
+
VerifyIdentityDto: {
|
|
2799
|
+
/** @description ที่นั่งว่างของเทศบาลนี้ที่กำลังจะแต่งตั้ง จำเป็นเมื่อผู้ใช้ไม่ได้เป็นสมาชิกเทศบาลนี้ */
|
|
2800
|
+
seatId?: string;
|
|
2801
|
+
};
|
|
2802
|
+
VerifyResidenceClaimResultDto: {
|
|
2803
|
+
/**
|
|
2804
|
+
* @description One-time code returned to the e-service callback URL.
|
|
2805
|
+
* @example one-time-result-code
|
|
2806
|
+
*/
|
|
2807
|
+
resultCode: string;
|
|
2808
|
+
};
|
|
2809
|
+
VerifySsoCodeDto: {
|
|
2810
|
+
/**
|
|
2811
|
+
* @description One-time SSO code generated by IAM-GOV
|
|
2812
|
+
* @example 7a08e17e-7acd-433e-b056-a531b3c73167
|
|
2813
|
+
*/
|
|
2814
|
+
code: string;
|
|
2815
|
+
};
|
|
2816
|
+
VerifyTwoFactorDto: {
|
|
2817
|
+
/** @description challengeToken จาก POST /auth/login */
|
|
2818
|
+
challengeToken: string;
|
|
2819
|
+
/**
|
|
2820
|
+
* @description รหัส 6 หลักจากแอป Authenticator หรือจากอีเมล
|
|
2821
|
+
* @example 123456
|
|
2822
|
+
*/
|
|
2823
|
+
code: string;
|
|
2824
|
+
/**
|
|
2825
|
+
* @description วิธีที่ใช้ ไม่ส่ง = totp ถ้าเปิดไว้ ไม่งั้น email
|
|
2826
|
+
* @enum {string}
|
|
2827
|
+
*/
|
|
2828
|
+
method?: "totp" | "email";
|
|
2829
|
+
};
|
|
2830
|
+
};
|
|
2831
|
+
responses: never;
|
|
2832
|
+
parameters: never;
|
|
2833
|
+
requestBodies: never;
|
|
2834
|
+
headers: never;
|
|
2835
|
+
pathItems: never;
|
|
2836
|
+
};
|
|
2837
|
+
interface operations {
|
|
2838
|
+
EServicesController_findByCode: {
|
|
2839
|
+
parameters: {
|
|
2840
|
+
query?: never;
|
|
2841
|
+
header?: never;
|
|
2842
|
+
path: {
|
|
2843
|
+
/** @description E-Service code */
|
|
2844
|
+
code: string;
|
|
2845
|
+
};
|
|
2846
|
+
cookie?: never;
|
|
2847
|
+
};
|
|
2848
|
+
requestBody?: never;
|
|
2849
|
+
responses: {
|
|
2850
|
+
/** @description E-Service details */
|
|
2851
|
+
200: {
|
|
2852
|
+
headers: {
|
|
2853
|
+
[name: string]: unknown;
|
|
2854
|
+
};
|
|
2855
|
+
content?: never;
|
|
2856
|
+
};
|
|
2857
|
+
/** @description E-Service not found */
|
|
2858
|
+
404: {
|
|
2859
|
+
headers: {
|
|
2860
|
+
[name: string]: unknown;
|
|
2861
|
+
};
|
|
2862
|
+
content?: never;
|
|
2863
|
+
};
|
|
2864
|
+
};
|
|
2865
|
+
};
|
|
2866
|
+
ServiceEvaluationsController_request: {
|
|
2867
|
+
parameters: {
|
|
2868
|
+
query?: never;
|
|
2869
|
+
header?: {
|
|
2870
|
+
/** @description Optional. Same key + same body within 24 h returns the first result (header Idempotent-Replayed: true); same key + other body = 409. */
|
|
2871
|
+
"Idempotency-Key"?: string;
|
|
2872
|
+
};
|
|
2873
|
+
path?: never;
|
|
2874
|
+
cookie?: never;
|
|
2875
|
+
};
|
|
2876
|
+
requestBody: {
|
|
2877
|
+
content: {
|
|
2878
|
+
"application/json": components["schemas"]["RequestEvaluationDto"];
|
|
2879
|
+
};
|
|
2880
|
+
};
|
|
2881
|
+
responses: {
|
|
2882
|
+
201: {
|
|
2883
|
+
headers: {
|
|
2884
|
+
[name: string]: unknown;
|
|
2885
|
+
};
|
|
2886
|
+
content: {
|
|
2887
|
+
"application/json": components["schemas"]["ServiceEvaluationDto"];
|
|
2888
|
+
};
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2891
|
+
};
|
|
2892
|
+
ServiceEvaluationsController_byReference: {
|
|
2893
|
+
parameters: {
|
|
2894
|
+
query?: never;
|
|
2895
|
+
header?: never;
|
|
2896
|
+
path: {
|
|
2897
|
+
reference: string;
|
|
2898
|
+
};
|
|
2899
|
+
cookie?: never;
|
|
2900
|
+
};
|
|
2901
|
+
requestBody?: never;
|
|
2902
|
+
responses: {
|
|
2903
|
+
200: {
|
|
2904
|
+
headers: {
|
|
2905
|
+
[name: string]: unknown;
|
|
2906
|
+
};
|
|
2907
|
+
content: {
|
|
2908
|
+
"application/json": components["schemas"]["ServiceEvaluationDto"][];
|
|
2909
|
+
};
|
|
2910
|
+
};
|
|
2911
|
+
};
|
|
2912
|
+
};
|
|
2913
|
+
ServiceEvaluationsController_serviceStats: {
|
|
2914
|
+
parameters: {
|
|
2915
|
+
query?: {
|
|
2916
|
+
eServiceId?: string;
|
|
2917
|
+
from?: string;
|
|
2918
|
+
municipalityId?: string;
|
|
2919
|
+
to?: string;
|
|
2920
|
+
};
|
|
2921
|
+
header?: never;
|
|
2922
|
+
path?: never;
|
|
2923
|
+
cookie?: never;
|
|
2924
|
+
};
|
|
2925
|
+
requestBody?: never;
|
|
2926
|
+
responses: {
|
|
2927
|
+
200: {
|
|
2928
|
+
headers: {
|
|
2929
|
+
[name: string]: unknown;
|
|
2930
|
+
};
|
|
2931
|
+
content: {
|
|
2932
|
+
"application/json": components["schemas"]["EvaluationStatsDto"];
|
|
2933
|
+
};
|
|
2934
|
+
};
|
|
2935
|
+
};
|
|
2936
|
+
};
|
|
2937
|
+
ServiceGisController_catalog: {
|
|
2938
|
+
parameters: {
|
|
2939
|
+
query?: never;
|
|
2940
|
+
header?: never;
|
|
2941
|
+
path?: never;
|
|
2942
|
+
cookie?: never;
|
|
2943
|
+
};
|
|
2944
|
+
requestBody?: never;
|
|
2945
|
+
responses: {
|
|
2946
|
+
200: {
|
|
2947
|
+
headers: {
|
|
2948
|
+
[name: string]: unknown;
|
|
2949
|
+
};
|
|
2950
|
+
content: {
|
|
2951
|
+
"application/json": components["schemas"]["GisCatalogDto"];
|
|
2952
|
+
};
|
|
2953
|
+
};
|
|
2954
|
+
};
|
|
2955
|
+
};
|
|
2956
|
+
ServiceGisController_homes: {
|
|
2957
|
+
parameters: {
|
|
2958
|
+
query?: never;
|
|
2959
|
+
header?: never;
|
|
2960
|
+
path: {
|
|
2961
|
+
userId: string;
|
|
2962
|
+
};
|
|
2963
|
+
cookie?: never;
|
|
2964
|
+
};
|
|
2965
|
+
requestBody?: never;
|
|
2966
|
+
responses: {
|
|
2967
|
+
200: {
|
|
2968
|
+
headers: {
|
|
2969
|
+
[name: string]: unknown;
|
|
2970
|
+
};
|
|
2971
|
+
content: {
|
|
2972
|
+
"application/json": components["schemas"]["FeatureCollectionDto"];
|
|
2973
|
+
};
|
|
2974
|
+
};
|
|
2975
|
+
};
|
|
2976
|
+
};
|
|
2977
|
+
ServiceGisController_stations: {
|
|
2978
|
+
parameters: {
|
|
2979
|
+
query?: {
|
|
2980
|
+
/** @description minLng,minLat,maxLng,maxLat */
|
|
2981
|
+
bbox?: string;
|
|
2982
|
+
limit?: number;
|
|
2983
|
+
municipalityId?: string;
|
|
2984
|
+
/** @description Name or code contains */
|
|
2985
|
+
q?: string;
|
|
2986
|
+
status?: "ACTIVE" | "INACTIVE" | "MAINTENANCE";
|
|
2987
|
+
/** @description Comma-separated types */
|
|
2988
|
+
types?: string[];
|
|
2989
|
+
};
|
|
2990
|
+
header?: never;
|
|
2991
|
+
path?: never;
|
|
2992
|
+
cookie?: never;
|
|
2993
|
+
};
|
|
2994
|
+
requestBody?: never;
|
|
2995
|
+
responses: {
|
|
2996
|
+
200: {
|
|
2997
|
+
headers: {
|
|
2998
|
+
[name: string]: unknown;
|
|
2999
|
+
};
|
|
3000
|
+
content: {
|
|
3001
|
+
"application/json": components["schemas"]["FeatureCollectionDto"];
|
|
3002
|
+
};
|
|
3003
|
+
};
|
|
3004
|
+
};
|
|
3005
|
+
};
|
|
3006
|
+
ServiceGisController_mapData: {
|
|
3007
|
+
parameters: {
|
|
3008
|
+
query: {
|
|
3009
|
+
/** @description minLng,minLat,maxLng,maxLat */
|
|
3010
|
+
bbox?: string;
|
|
3011
|
+
/** @description Days back for notifications and evaluations */
|
|
3012
|
+
days?: number;
|
|
3013
|
+
/** @description Core 3 district id */
|
|
3014
|
+
districtId?: number;
|
|
3015
|
+
/** @description Comma-separated data layers */
|
|
3016
|
+
layers: string[];
|
|
3017
|
+
/** @description Limit offices, residences and stations to this municipality */
|
|
3018
|
+
municipalityId?: string;
|
|
3019
|
+
/** @description Core 3 province id */
|
|
3020
|
+
provinceId?: number;
|
|
3021
|
+
/** @description In a query: comma-separated */
|
|
3022
|
+
stationTypes?: ("EVACUATION_SITE" | "OFFICE" | "STATION" | "SENSOR" | "UAV" | "CCTV" | "SIREN" | "OTHER")[];
|
|
3023
|
+
/** @description Core 3 subdistrict id (residences only) */
|
|
3024
|
+
subdistrictId?: number;
|
|
3025
|
+
/** @description Needed for the home layer */
|
|
3026
|
+
userId?: string;
|
|
3027
|
+
};
|
|
3028
|
+
header?: never;
|
|
3029
|
+
path?: never;
|
|
3030
|
+
cookie?: never;
|
|
3031
|
+
};
|
|
3032
|
+
requestBody?: never;
|
|
3033
|
+
responses: {
|
|
3034
|
+
200: {
|
|
3035
|
+
headers: {
|
|
3036
|
+
[name: string]: unknown;
|
|
3037
|
+
};
|
|
3038
|
+
content: {
|
|
3039
|
+
"application/json": components["schemas"]["MapDataDto"];
|
|
3040
|
+
};
|
|
3041
|
+
};
|
|
3042
|
+
};
|
|
3043
|
+
};
|
|
3044
|
+
ServiceGisController_createSession: {
|
|
3045
|
+
parameters: {
|
|
3046
|
+
query?: never;
|
|
3047
|
+
header?: never;
|
|
3048
|
+
path?: never;
|
|
3049
|
+
cookie?: never;
|
|
3050
|
+
};
|
|
3051
|
+
requestBody: {
|
|
3052
|
+
content: {
|
|
3053
|
+
"application/json": components["schemas"]["MapSessionDto"];
|
|
3054
|
+
};
|
|
3055
|
+
};
|
|
3056
|
+
responses: {
|
|
3057
|
+
201: {
|
|
3058
|
+
headers: {
|
|
3059
|
+
[name: string]: unknown;
|
|
3060
|
+
};
|
|
3061
|
+
content: {
|
|
3062
|
+
"application/json": components["schemas"]["MapSessionDtoResponse"];
|
|
3063
|
+
};
|
|
3064
|
+
};
|
|
3065
|
+
};
|
|
3066
|
+
};
|
|
3067
|
+
EServicesController_me: {
|
|
3068
|
+
parameters: {
|
|
3069
|
+
query?: never;
|
|
3070
|
+
header?: never;
|
|
3071
|
+
path?: never;
|
|
3072
|
+
cookie?: never;
|
|
3073
|
+
};
|
|
3074
|
+
requestBody?: never;
|
|
3075
|
+
responses: {
|
|
3076
|
+
200: {
|
|
3077
|
+
headers: {
|
|
3078
|
+
[name: string]: unknown;
|
|
3079
|
+
};
|
|
3080
|
+
content: {
|
|
3081
|
+
"application/json": components["schemas"]["EServiceMeDto"];
|
|
3082
|
+
};
|
|
3083
|
+
};
|
|
3084
|
+
};
|
|
3085
|
+
};
|
|
3086
|
+
EServiceOrgController_municipality: {
|
|
3087
|
+
parameters: {
|
|
3088
|
+
query?: never;
|
|
3089
|
+
header?: never;
|
|
3090
|
+
path: {
|
|
3091
|
+
id: string;
|
|
3092
|
+
};
|
|
3093
|
+
cookie?: never;
|
|
3094
|
+
};
|
|
3095
|
+
requestBody?: never;
|
|
3096
|
+
responses: {
|
|
3097
|
+
200: {
|
|
3098
|
+
headers: {
|
|
3099
|
+
[name: string]: unknown;
|
|
3100
|
+
};
|
|
3101
|
+
content: {
|
|
3102
|
+
"application/json": components["schemas"]["EServiceMunicipalityDto"];
|
|
3103
|
+
};
|
|
3104
|
+
};
|
|
3105
|
+
};
|
|
3106
|
+
};
|
|
3107
|
+
EServiceOrgController_orgUnits: {
|
|
3108
|
+
parameters: {
|
|
3109
|
+
query?: never;
|
|
3110
|
+
header?: never;
|
|
3111
|
+
path: {
|
|
3112
|
+
id: string;
|
|
3113
|
+
};
|
|
3114
|
+
cookie?: never;
|
|
3115
|
+
};
|
|
3116
|
+
requestBody?: never;
|
|
3117
|
+
responses: {
|
|
3118
|
+
200: {
|
|
3119
|
+
headers: {
|
|
3120
|
+
[name: string]: unknown;
|
|
3121
|
+
};
|
|
3122
|
+
content: {
|
|
3123
|
+
"application/json": components["schemas"]["EServiceOrgUnitDto"][];
|
|
3124
|
+
};
|
|
3125
|
+
};
|
|
3126
|
+
};
|
|
3127
|
+
};
|
|
3128
|
+
EServiceOrgController_staff: {
|
|
3129
|
+
parameters: {
|
|
3130
|
+
query?: {
|
|
3131
|
+
orgUnitId?: string;
|
|
3132
|
+
};
|
|
3133
|
+
header?: never;
|
|
3134
|
+
path: {
|
|
3135
|
+
id: string;
|
|
3136
|
+
};
|
|
3137
|
+
cookie?: never;
|
|
3138
|
+
};
|
|
3139
|
+
requestBody?: never;
|
|
3140
|
+
responses: {
|
|
3141
|
+
200: {
|
|
3142
|
+
headers: {
|
|
3143
|
+
[name: string]: unknown;
|
|
3144
|
+
};
|
|
3145
|
+
content: {
|
|
3146
|
+
"application/json": components["schemas"]["EServiceStaffDto"][];
|
|
3147
|
+
};
|
|
3148
|
+
};
|
|
3149
|
+
};
|
|
3150
|
+
};
|
|
3151
|
+
NotificationsController_send: {
|
|
3152
|
+
parameters: {
|
|
3153
|
+
query?: never;
|
|
3154
|
+
header?: {
|
|
3155
|
+
/** @description Optional. Same key + same body within 24 h returns the first result (header Idempotent-Replayed: true); same key + other body = 409. */
|
|
3156
|
+
"Idempotency-Key"?: string;
|
|
3157
|
+
};
|
|
3158
|
+
path?: never;
|
|
3159
|
+
cookie?: never;
|
|
3160
|
+
};
|
|
3161
|
+
requestBody: {
|
|
3162
|
+
content: {
|
|
3163
|
+
"application/json": components["schemas"]["SendNotificationDto"];
|
|
3164
|
+
};
|
|
3165
|
+
};
|
|
3166
|
+
responses: {
|
|
3167
|
+
201: {
|
|
3168
|
+
headers: {
|
|
3169
|
+
[name: string]: unknown;
|
|
3170
|
+
};
|
|
3171
|
+
content: {
|
|
3172
|
+
"application/json": components["schemas"]["NotificationResultDto"];
|
|
3173
|
+
};
|
|
3174
|
+
};
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
NotificationsController_findOne: {
|
|
3178
|
+
parameters: {
|
|
3179
|
+
query?: never;
|
|
3180
|
+
header?: never;
|
|
3181
|
+
path: {
|
|
3182
|
+
id: string;
|
|
3183
|
+
};
|
|
3184
|
+
cookie?: never;
|
|
3185
|
+
};
|
|
3186
|
+
requestBody?: never;
|
|
3187
|
+
responses: {
|
|
3188
|
+
200: {
|
|
3189
|
+
headers: {
|
|
3190
|
+
[name: string]: unknown;
|
|
3191
|
+
};
|
|
3192
|
+
content: {
|
|
3193
|
+
"application/json": components["schemas"]["NotificationResultDto"];
|
|
3194
|
+
};
|
|
3195
|
+
};
|
|
3196
|
+
};
|
|
3197
|
+
};
|
|
3198
|
+
NotificationsController_list: {
|
|
3199
|
+
parameters: {
|
|
3200
|
+
query?: {
|
|
3201
|
+
limit?: number;
|
|
3202
|
+
page?: number;
|
|
3203
|
+
/** @description The e-service's own reference */
|
|
3204
|
+
reference?: string;
|
|
3205
|
+
status?: "QUEUED" | "SENT" | "PARTIAL" | "FAILED" | "NO_RECIPIENTS";
|
|
3206
|
+
};
|
|
3207
|
+
header?: never;
|
|
3208
|
+
path?: never;
|
|
3209
|
+
cookie?: never;
|
|
3210
|
+
};
|
|
3211
|
+
requestBody?: never;
|
|
3212
|
+
responses: {
|
|
3213
|
+
200: {
|
|
3214
|
+
headers: {
|
|
3215
|
+
[name: string]: unknown;
|
|
3216
|
+
};
|
|
3217
|
+
content: {
|
|
3218
|
+
"application/json": components["schemas"]["NotificationPageDto"];
|
|
3219
|
+
};
|
|
3220
|
+
};
|
|
3221
|
+
};
|
|
3222
|
+
};
|
|
3223
|
+
EServiceProfilesController_read: {
|
|
3224
|
+
parameters: {
|
|
3225
|
+
query?: {
|
|
3226
|
+
/** @description Comma separated: firstName, lastName, mobilePhone, contactEmail, birthDate, citizenId. Omit for all. */
|
|
3227
|
+
fields?: string;
|
|
3228
|
+
};
|
|
3229
|
+
header?: {
|
|
3230
|
+
"x-e-service-code"?: string;
|
|
3231
|
+
};
|
|
3232
|
+
path: {
|
|
3233
|
+
userId: string;
|
|
3234
|
+
};
|
|
3235
|
+
cookie?: never;
|
|
3236
|
+
};
|
|
3237
|
+
requestBody?: never;
|
|
3238
|
+
responses: {
|
|
3239
|
+
200: {
|
|
3240
|
+
headers: {
|
|
3241
|
+
[name: string]: unknown;
|
|
3242
|
+
};
|
|
3243
|
+
content: {
|
|
3244
|
+
"application/json": components["schemas"]["EServiceProfileDto"];
|
|
3245
|
+
};
|
|
3246
|
+
};
|
|
3247
|
+
/** @description MISSING_SCOPE */
|
|
3248
|
+
403: {
|
|
3249
|
+
headers: {
|
|
3250
|
+
[name: string]: unknown;
|
|
3251
|
+
};
|
|
3252
|
+
content?: never;
|
|
3253
|
+
};
|
|
3254
|
+
};
|
|
3255
|
+
};
|
|
3256
|
+
EServiceProfilesController_consents: {
|
|
3257
|
+
parameters: {
|
|
3258
|
+
query?: never;
|
|
3259
|
+
header?: {
|
|
3260
|
+
"x-e-service-code"?: string;
|
|
3261
|
+
};
|
|
3262
|
+
path: {
|
|
3263
|
+
userId: string;
|
|
3264
|
+
};
|
|
3265
|
+
cookie?: never;
|
|
3266
|
+
};
|
|
3267
|
+
requestBody?: never;
|
|
3268
|
+
responses: {
|
|
3269
|
+
200: {
|
|
3270
|
+
headers: {
|
|
3271
|
+
[name: string]: unknown;
|
|
3272
|
+
};
|
|
3273
|
+
content: {
|
|
3274
|
+
"application/json": components["schemas"]["EServiceProfileConsentDto"];
|
|
3275
|
+
};
|
|
3276
|
+
};
|
|
3277
|
+
/** @description MISSING_SCOPE (profile:basic) */
|
|
3278
|
+
403: {
|
|
3279
|
+
headers: {
|
|
3280
|
+
[name: string]: unknown;
|
|
3281
|
+
};
|
|
3282
|
+
content?: never;
|
|
3283
|
+
};
|
|
3284
|
+
};
|
|
3285
|
+
};
|
|
3286
|
+
EServiceResidencesController_list: {
|
|
3287
|
+
parameters: {
|
|
3288
|
+
query?: {
|
|
3289
|
+
municipalityId?: string;
|
|
3290
|
+
page?: string;
|
|
3291
|
+
pageSize?: string;
|
|
3292
|
+
};
|
|
3293
|
+
header?: never;
|
|
3294
|
+
path?: never;
|
|
3295
|
+
cookie?: never;
|
|
3296
|
+
};
|
|
3297
|
+
requestBody?: never;
|
|
3298
|
+
responses: {
|
|
3299
|
+
200: {
|
|
3300
|
+
headers: {
|
|
3301
|
+
[name: string]: unknown;
|
|
3302
|
+
};
|
|
3303
|
+
content: {
|
|
3304
|
+
"application/json": components["schemas"]["EServiceResidencePageDto"];
|
|
3305
|
+
};
|
|
3306
|
+
};
|
|
3307
|
+
};
|
|
3308
|
+
};
|
|
3309
|
+
EServicesController_getResidenceForService: {
|
|
3310
|
+
parameters: {
|
|
3311
|
+
query?: never;
|
|
3312
|
+
header?: never;
|
|
3313
|
+
path: {
|
|
3314
|
+
id: string;
|
|
3315
|
+
};
|
|
3316
|
+
cookie?: never;
|
|
3317
|
+
};
|
|
3318
|
+
requestBody?: never;
|
|
3319
|
+
responses: {
|
|
3320
|
+
200: {
|
|
3321
|
+
headers: {
|
|
3322
|
+
[name: string]: unknown;
|
|
3323
|
+
};
|
|
3324
|
+
content?: never;
|
|
3325
|
+
};
|
|
3326
|
+
};
|
|
3327
|
+
};
|
|
3328
|
+
EServicesController_createResidenceInvitationForService: {
|
|
3329
|
+
parameters: {
|
|
3330
|
+
query?: never;
|
|
3331
|
+
header?: never;
|
|
3332
|
+
path: {
|
|
3333
|
+
id: string;
|
|
3334
|
+
};
|
|
3335
|
+
cookie?: never;
|
|
3336
|
+
};
|
|
3337
|
+
requestBody: {
|
|
3338
|
+
content: {
|
|
3339
|
+
"application/json": components["schemas"]["CreateEServiceResidenceInvitationDto"];
|
|
3340
|
+
};
|
|
3341
|
+
};
|
|
3342
|
+
responses: {
|
|
3343
|
+
201: {
|
|
3344
|
+
headers: {
|
|
3345
|
+
[name: string]: unknown;
|
|
3346
|
+
};
|
|
3347
|
+
content?: never;
|
|
3348
|
+
};
|
|
3349
|
+
};
|
|
3350
|
+
};
|
|
3351
|
+
EServicesController_getResidenceMembersForService: {
|
|
3352
|
+
parameters: {
|
|
3353
|
+
query?: never;
|
|
3354
|
+
header?: never;
|
|
3355
|
+
path: {
|
|
3356
|
+
id: string;
|
|
3357
|
+
};
|
|
3358
|
+
cookie?: never;
|
|
3359
|
+
};
|
|
3360
|
+
requestBody?: never;
|
|
3361
|
+
responses: {
|
|
3362
|
+
200: {
|
|
3363
|
+
headers: {
|
|
3364
|
+
[name: string]: unknown;
|
|
3365
|
+
};
|
|
3366
|
+
content?: never;
|
|
3367
|
+
};
|
|
3368
|
+
};
|
|
3369
|
+
};
|
|
3370
|
+
EServiceResidencesController_byHouseCode: {
|
|
3371
|
+
parameters: {
|
|
3372
|
+
query?: never;
|
|
3373
|
+
header?: never;
|
|
3374
|
+
path: {
|
|
3375
|
+
houseCode: string;
|
|
3376
|
+
};
|
|
3377
|
+
cookie?: never;
|
|
3378
|
+
};
|
|
3379
|
+
requestBody?: never;
|
|
3380
|
+
responses: {
|
|
3381
|
+
200: {
|
|
3382
|
+
headers: {
|
|
3383
|
+
[name: string]: unknown;
|
|
3384
|
+
};
|
|
3385
|
+
content: {
|
|
3386
|
+
"application/json": components["schemas"]["EServiceResidenceSummaryDto"];
|
|
3387
|
+
};
|
|
3388
|
+
};
|
|
3389
|
+
};
|
|
3390
|
+
};
|
|
3391
|
+
"EServicesController_createResidenceClaimIntentForService[0]": {
|
|
3392
|
+
parameters: {
|
|
3393
|
+
query?: never;
|
|
3394
|
+
header?: never;
|
|
3395
|
+
path?: never;
|
|
3396
|
+
cookie?: never;
|
|
3397
|
+
};
|
|
3398
|
+
requestBody: {
|
|
3399
|
+
content: {
|
|
3400
|
+
"application/json": components["schemas"]["CreateResidenceClaimIntentDto"];
|
|
3401
|
+
};
|
|
3402
|
+
};
|
|
3403
|
+
responses: {
|
|
3404
|
+
201: {
|
|
3405
|
+
headers: {
|
|
3406
|
+
[name: string]: unknown;
|
|
3407
|
+
};
|
|
3408
|
+
content?: never;
|
|
3409
|
+
};
|
|
3410
|
+
};
|
|
3411
|
+
};
|
|
3412
|
+
"EServicesController_verifyResidenceClaimResultForService[0]": {
|
|
3413
|
+
parameters: {
|
|
3414
|
+
query?: never;
|
|
3415
|
+
header?: never;
|
|
3416
|
+
path?: never;
|
|
3417
|
+
cookie?: never;
|
|
3418
|
+
};
|
|
3419
|
+
requestBody: {
|
|
3420
|
+
content: {
|
|
3421
|
+
"application/json": components["schemas"]["VerifyResidenceClaimResultDto"];
|
|
3422
|
+
};
|
|
3423
|
+
};
|
|
3424
|
+
responses: {
|
|
3425
|
+
201: {
|
|
3426
|
+
headers: {
|
|
3427
|
+
[name: string]: unknown;
|
|
3428
|
+
};
|
|
3429
|
+
content?: never;
|
|
3430
|
+
};
|
|
3431
|
+
};
|
|
3432
|
+
};
|
|
3433
|
+
"EServicesController_submitResidenceClaimForService[0]": {
|
|
3434
|
+
parameters: {
|
|
3435
|
+
query?: never;
|
|
3436
|
+
header?: never;
|
|
3437
|
+
path?: never;
|
|
3438
|
+
cookie?: never;
|
|
3439
|
+
};
|
|
3440
|
+
requestBody: {
|
|
3441
|
+
content: {
|
|
3442
|
+
"application/json": components["schemas"]["CreateEServiceResidenceClaimDto"];
|
|
3443
|
+
};
|
|
3444
|
+
};
|
|
3445
|
+
responses: {
|
|
3446
|
+
201: {
|
|
3447
|
+
headers: {
|
|
3448
|
+
[name: string]: unknown;
|
|
3449
|
+
};
|
|
3450
|
+
content?: never;
|
|
3451
|
+
};
|
|
3452
|
+
};
|
|
3453
|
+
};
|
|
3454
|
+
"EServicesController_getResidenceClaimForService[0]": {
|
|
3455
|
+
parameters: {
|
|
3456
|
+
query?: never;
|
|
3457
|
+
header?: never;
|
|
3458
|
+
path: {
|
|
3459
|
+
claimId: string;
|
|
3460
|
+
};
|
|
3461
|
+
cookie?: never;
|
|
3462
|
+
};
|
|
3463
|
+
requestBody?: never;
|
|
3464
|
+
responses: {
|
|
3465
|
+
200: {
|
|
3466
|
+
headers: {
|
|
3467
|
+
[name: string]: unknown;
|
|
3468
|
+
};
|
|
3469
|
+
content?: never;
|
|
3470
|
+
};
|
|
3471
|
+
};
|
|
3472
|
+
};
|
|
3473
|
+
"EServicesController_listResidenceClaimEvidenceForService[0]": {
|
|
3474
|
+
parameters: {
|
|
3475
|
+
query?: never;
|
|
3476
|
+
header?: never;
|
|
3477
|
+
path: {
|
|
3478
|
+
claimId: string;
|
|
3479
|
+
};
|
|
3480
|
+
cookie?: never;
|
|
3481
|
+
};
|
|
3482
|
+
requestBody?: never;
|
|
3483
|
+
responses: {
|
|
3484
|
+
200: {
|
|
3485
|
+
headers: {
|
|
3486
|
+
[name: string]: unknown;
|
|
3487
|
+
};
|
|
3488
|
+
content?: never;
|
|
3489
|
+
};
|
|
3490
|
+
};
|
|
3491
|
+
};
|
|
3492
|
+
"EServicesController_uploadResidenceClaimEvidenceForService[0]": {
|
|
3493
|
+
parameters: {
|
|
3494
|
+
query?: never;
|
|
3495
|
+
header?: never;
|
|
3496
|
+
path: {
|
|
3497
|
+
claimId: string;
|
|
3498
|
+
};
|
|
3499
|
+
cookie?: never;
|
|
3500
|
+
};
|
|
3501
|
+
requestBody: {
|
|
3502
|
+
content: {
|
|
3503
|
+
"multipart/form-data": {
|
|
3504
|
+
/**
|
|
3505
|
+
* Format: binary
|
|
3506
|
+
* @description PDF, JPEG, PNG, or WEBP. Max upload size 10MB.
|
|
3507
|
+
*/
|
|
3508
|
+
file: string;
|
|
3509
|
+
};
|
|
3510
|
+
};
|
|
3511
|
+
};
|
|
3512
|
+
responses: {
|
|
3513
|
+
201: {
|
|
3514
|
+
headers: {
|
|
3515
|
+
[name: string]: unknown;
|
|
3516
|
+
};
|
|
3517
|
+
content?: never;
|
|
3518
|
+
};
|
|
3519
|
+
};
|
|
3520
|
+
};
|
|
3521
|
+
EServicesController_searchResidencesForService: {
|
|
3522
|
+
parameters: {
|
|
3523
|
+
query?: {
|
|
3524
|
+
districtId?: number;
|
|
3525
|
+
lat?: number;
|
|
3526
|
+
limit?: number;
|
|
3527
|
+
lng?: number;
|
|
3528
|
+
municipalityId?: string;
|
|
3529
|
+
provinceId?: number;
|
|
3530
|
+
q?: string;
|
|
3531
|
+
radiusMeters?: number;
|
|
3532
|
+
subdistrictId?: number;
|
|
3533
|
+
};
|
|
3534
|
+
header?: never;
|
|
3535
|
+
path?: never;
|
|
3536
|
+
cookie?: never;
|
|
3537
|
+
};
|
|
3538
|
+
requestBody?: never;
|
|
3539
|
+
responses: {
|
|
3540
|
+
200: {
|
|
3541
|
+
headers: {
|
|
3542
|
+
[name: string]: unknown;
|
|
3543
|
+
};
|
|
3544
|
+
content?: never;
|
|
3545
|
+
};
|
|
3546
|
+
};
|
|
3547
|
+
};
|
|
3548
|
+
EServicesController_verifySsoCode: {
|
|
3549
|
+
parameters: {
|
|
3550
|
+
query?: never;
|
|
3551
|
+
header: {
|
|
3552
|
+
/** @description API key of the E-Service that owns this SSO code */
|
|
3553
|
+
"x-api-key": string;
|
|
3554
|
+
};
|
|
3555
|
+
path?: never;
|
|
3556
|
+
cookie?: never;
|
|
3557
|
+
};
|
|
3558
|
+
requestBody: {
|
|
3559
|
+
content: {
|
|
3560
|
+
"application/json": components["schemas"]["VerifySsoCodeDto"];
|
|
3561
|
+
};
|
|
3562
|
+
};
|
|
3563
|
+
responses: {
|
|
3564
|
+
/** @description SSO Verification successful. residences is returned only when the E-Service has residence:read or residence:members:read. It includes linked non-removed residence memberships, so E-Services must check each item status. The SSO code is one-time use. */
|
|
3565
|
+
200: {
|
|
3566
|
+
headers: {
|
|
3567
|
+
[name: string]: unknown;
|
|
3568
|
+
};
|
|
3569
|
+
content: {
|
|
3570
|
+
"application/json": components["schemas"]["SsoVerifyResponseDto"];
|
|
3571
|
+
};
|
|
3572
|
+
};
|
|
3573
|
+
/** @description API key is missing from headers / Invalid API Key */
|
|
3574
|
+
401: {
|
|
3575
|
+
headers: {
|
|
3576
|
+
[name: string]: unknown;
|
|
3577
|
+
};
|
|
3578
|
+
content?: never;
|
|
3579
|
+
};
|
|
3580
|
+
/** @description This E-Service is currently disabled / Invalid SSO code / SSO code does not belong to this service / SSO code has already been used / SSO code has expired */
|
|
3581
|
+
403: {
|
|
3582
|
+
headers: {
|
|
3583
|
+
[name: string]: unknown;
|
|
3584
|
+
};
|
|
3585
|
+
content?: never;
|
|
3586
|
+
};
|
|
3587
|
+
};
|
|
3588
|
+
};
|
|
3589
|
+
ServiceStationsController_create: {
|
|
3590
|
+
parameters: {
|
|
3591
|
+
query?: never;
|
|
3592
|
+
header?: {
|
|
3593
|
+
/** @description Optional. Same key + same body within 24 h returns the first result (header Idempotent-Replayed: true); same key + other body = 409. */
|
|
3594
|
+
"Idempotency-Key"?: string;
|
|
3595
|
+
};
|
|
3596
|
+
path?: never;
|
|
3597
|
+
cookie?: never;
|
|
3598
|
+
};
|
|
3599
|
+
requestBody: {
|
|
3600
|
+
content: {
|
|
3601
|
+
"application/json": components["schemas"]["CreateStationDto"];
|
|
3602
|
+
};
|
|
3603
|
+
};
|
|
3604
|
+
responses: {
|
|
3605
|
+
201: {
|
|
3606
|
+
headers: {
|
|
3607
|
+
[name: string]: unknown;
|
|
3608
|
+
};
|
|
3609
|
+
content: {
|
|
3610
|
+
"application/json": components["schemas"]["StationDto"];
|
|
3611
|
+
};
|
|
3612
|
+
};
|
|
3613
|
+
};
|
|
3614
|
+
};
|
|
3615
|
+
ServiceStationsController_remove: {
|
|
3616
|
+
parameters: {
|
|
3617
|
+
query?: never;
|
|
3618
|
+
header?: never;
|
|
3619
|
+
path: {
|
|
3620
|
+
id: string;
|
|
3621
|
+
};
|
|
3622
|
+
cookie?: never;
|
|
3623
|
+
};
|
|
3624
|
+
requestBody?: never;
|
|
3625
|
+
responses: {
|
|
3626
|
+
200: {
|
|
3627
|
+
headers: {
|
|
3628
|
+
[name: string]: unknown;
|
|
3629
|
+
};
|
|
3630
|
+
content: {
|
|
3631
|
+
"application/json": components["schemas"]["StationDeletedDto"];
|
|
3632
|
+
};
|
|
3633
|
+
};
|
|
3634
|
+
};
|
|
3635
|
+
};
|
|
3636
|
+
ServiceStationsController_update: {
|
|
3637
|
+
parameters: {
|
|
3638
|
+
query?: never;
|
|
3639
|
+
header?: never;
|
|
3640
|
+
path: {
|
|
3641
|
+
id: string;
|
|
3642
|
+
};
|
|
3643
|
+
cookie?: never;
|
|
3644
|
+
};
|
|
3645
|
+
requestBody: {
|
|
3646
|
+
content: {
|
|
3647
|
+
"application/json": components["schemas"]["UpdateStationDto"];
|
|
3648
|
+
};
|
|
3649
|
+
};
|
|
3650
|
+
responses: {
|
|
3651
|
+
200: {
|
|
3652
|
+
headers: {
|
|
3653
|
+
[name: string]: unknown;
|
|
3654
|
+
};
|
|
3655
|
+
content: {
|
|
3656
|
+
"application/json": components["schemas"]["StationDto"];
|
|
3657
|
+
};
|
|
3658
|
+
};
|
|
3659
|
+
};
|
|
3660
|
+
};
|
|
3661
|
+
ServiceStationsController_heartbeat: {
|
|
3662
|
+
parameters: {
|
|
3663
|
+
query?: never;
|
|
3664
|
+
header?: never;
|
|
3665
|
+
path: {
|
|
3666
|
+
id: string;
|
|
3667
|
+
};
|
|
3668
|
+
cookie?: never;
|
|
3669
|
+
};
|
|
3670
|
+
requestBody?: never;
|
|
3671
|
+
responses: {
|
|
3672
|
+
201: {
|
|
3673
|
+
headers: {
|
|
3674
|
+
[name: string]: unknown;
|
|
3675
|
+
};
|
|
3676
|
+
content: {
|
|
3677
|
+
"application/json": components["schemas"]["StationHeartbeatDto"];
|
|
3678
|
+
};
|
|
3679
|
+
};
|
|
3680
|
+
};
|
|
3681
|
+
};
|
|
3682
|
+
ServiceStationsController_position: {
|
|
3683
|
+
parameters: {
|
|
3684
|
+
query?: never;
|
|
3685
|
+
header?: never;
|
|
3686
|
+
path: {
|
|
3687
|
+
id: string;
|
|
3688
|
+
};
|
|
3689
|
+
cookie?: never;
|
|
3690
|
+
};
|
|
3691
|
+
requestBody: {
|
|
3692
|
+
content: {
|
|
3693
|
+
"application/json": components["schemas"]["UpdateStationPositionDto"];
|
|
3694
|
+
};
|
|
3695
|
+
};
|
|
3696
|
+
responses: {
|
|
3697
|
+
200: {
|
|
3698
|
+
headers: {
|
|
3699
|
+
[name: string]: unknown;
|
|
3700
|
+
};
|
|
3701
|
+
content: {
|
|
3702
|
+
"application/json": components["schemas"]["StationDto"];
|
|
3703
|
+
};
|
|
3704
|
+
};
|
|
3705
|
+
};
|
|
3706
|
+
};
|
|
3707
|
+
ServiceStationsController_list: {
|
|
3708
|
+
parameters: {
|
|
3709
|
+
query?: {
|
|
3710
|
+
/** @description minLng,minLat,maxLng,maxLat */
|
|
3711
|
+
bbox?: string;
|
|
3712
|
+
limit?: number;
|
|
3713
|
+
municipalityId?: string;
|
|
3714
|
+
/** @description Name or code contains */
|
|
3715
|
+
q?: string;
|
|
3716
|
+
status?: "ACTIVE" | "INACTIVE" | "MAINTENANCE";
|
|
3717
|
+
/** @description Comma-separated types */
|
|
3718
|
+
types?: string[];
|
|
3719
|
+
};
|
|
3720
|
+
header?: never;
|
|
3721
|
+
path?: never;
|
|
3722
|
+
cookie?: never;
|
|
3723
|
+
};
|
|
3724
|
+
requestBody?: never;
|
|
3725
|
+
responses: {
|
|
3726
|
+
200: {
|
|
3727
|
+
headers: {
|
|
3728
|
+
[name: string]: unknown;
|
|
3729
|
+
};
|
|
3730
|
+
content: {
|
|
3731
|
+
"application/json": components["schemas"]["StationListItemDto"][];
|
|
3732
|
+
};
|
|
3733
|
+
};
|
|
3734
|
+
};
|
|
3735
|
+
};
|
|
3736
|
+
MasterDataController_getDistrictById: {
|
|
3737
|
+
parameters: {
|
|
3738
|
+
query?: never;
|
|
3739
|
+
header?: never;
|
|
3740
|
+
path: {
|
|
3741
|
+
/** @description District ID (4 digits) */
|
|
3742
|
+
id: number;
|
|
3743
|
+
};
|
|
3744
|
+
cookie?: never;
|
|
3745
|
+
};
|
|
3746
|
+
requestBody?: never;
|
|
3747
|
+
responses: {
|
|
3748
|
+
/** @description District with subdistricts */
|
|
3749
|
+
200: {
|
|
3750
|
+
headers: {
|
|
3751
|
+
[name: string]: unknown;
|
|
3752
|
+
};
|
|
3753
|
+
content?: never;
|
|
3754
|
+
};
|
|
3755
|
+
/** @description District not found */
|
|
3756
|
+
404: {
|
|
3757
|
+
headers: {
|
|
3758
|
+
[name: string]: unknown;
|
|
3759
|
+
};
|
|
3760
|
+
content?: never;
|
|
3761
|
+
};
|
|
3762
|
+
};
|
|
3763
|
+
};
|
|
3764
|
+
MasterDataController_getSubdistrictsByDistrict: {
|
|
3765
|
+
parameters: {
|
|
3766
|
+
query?: never;
|
|
3767
|
+
header?: never;
|
|
3768
|
+
path: {
|
|
3769
|
+
/** @description District ID */
|
|
3770
|
+
id: number;
|
|
3771
|
+
};
|
|
3772
|
+
cookie?: never;
|
|
3773
|
+
};
|
|
3774
|
+
requestBody?: never;
|
|
3775
|
+
responses: {
|
|
3776
|
+
/** @description List of subdistricts */
|
|
3777
|
+
200: {
|
|
3778
|
+
headers: {
|
|
3779
|
+
[name: string]: unknown;
|
|
3780
|
+
};
|
|
3781
|
+
content?: never;
|
|
3782
|
+
};
|
|
3783
|
+
/** @description District not found */
|
|
3784
|
+
404: {
|
|
3785
|
+
headers: {
|
|
3786
|
+
[name: string]: unknown;
|
|
3787
|
+
};
|
|
3788
|
+
content?: never;
|
|
3789
|
+
};
|
|
3790
|
+
};
|
|
3791
|
+
};
|
|
3792
|
+
MasterDataController_getGeography: {
|
|
3793
|
+
parameters: {
|
|
3794
|
+
query?: never;
|
|
3795
|
+
header?: never;
|
|
3796
|
+
path?: never;
|
|
3797
|
+
cookie?: never;
|
|
3798
|
+
};
|
|
3799
|
+
requestBody?: never;
|
|
3800
|
+
responses: {
|
|
3801
|
+
200: {
|
|
3802
|
+
headers: {
|
|
3803
|
+
[name: string]: unknown;
|
|
3804
|
+
};
|
|
3805
|
+
content?: never;
|
|
3806
|
+
};
|
|
3807
|
+
};
|
|
3808
|
+
};
|
|
3809
|
+
MasterDataController_findAllMunicipalities: {
|
|
3810
|
+
parameters: {
|
|
3811
|
+
query?: {
|
|
3812
|
+
/** @description Filter by active status. Defaults to true when omitted. */
|
|
3813
|
+
isActive?: boolean;
|
|
3814
|
+
/** @description Items per page */
|
|
3815
|
+
limit?: number;
|
|
3816
|
+
/** @description Page number */
|
|
3817
|
+
page?: number;
|
|
3818
|
+
/** @description Search by municipality name, slug, code, or description */
|
|
3819
|
+
search?: string;
|
|
3820
|
+
};
|
|
3821
|
+
header?: never;
|
|
3822
|
+
path?: never;
|
|
3823
|
+
cookie?: never;
|
|
3824
|
+
};
|
|
3825
|
+
requestBody?: never;
|
|
3826
|
+
responses: {
|
|
3827
|
+
/** @description Paginated list of municipalities */
|
|
3828
|
+
200: {
|
|
3829
|
+
headers: {
|
|
3830
|
+
[name: string]: unknown;
|
|
3831
|
+
};
|
|
3832
|
+
content?: never;
|
|
3833
|
+
};
|
|
3834
|
+
};
|
|
3835
|
+
};
|
|
3836
|
+
MasterDataController_getMunicipalityAreas: {
|
|
3837
|
+
parameters: {
|
|
3838
|
+
query: {
|
|
3839
|
+
/** @description Comma-separated municipality ids (at most 200) */
|
|
3840
|
+
ids: string;
|
|
3841
|
+
};
|
|
3842
|
+
header?: never;
|
|
3843
|
+
path?: never;
|
|
3844
|
+
cookie?: never;
|
|
3845
|
+
};
|
|
3846
|
+
requestBody?: never;
|
|
3847
|
+
responses: {
|
|
3848
|
+
200: {
|
|
3849
|
+
headers: {
|
|
3850
|
+
[name: string]: unknown;
|
|
3851
|
+
};
|
|
3852
|
+
content?: never;
|
|
3853
|
+
};
|
|
3854
|
+
};
|
|
3855
|
+
};
|
|
3856
|
+
MasterDataController_getMunicipalityMetadata: {
|
|
3857
|
+
parameters: {
|
|
3858
|
+
query?: never;
|
|
3859
|
+
header?: never;
|
|
3860
|
+
path: {
|
|
3861
|
+
idOrSlug: string;
|
|
3862
|
+
};
|
|
3863
|
+
cookie?: never;
|
|
3864
|
+
};
|
|
3865
|
+
requestBody?: never;
|
|
3866
|
+
responses: {
|
|
3867
|
+
/** @description Municipality metadata */
|
|
3868
|
+
200: {
|
|
3869
|
+
headers: {
|
|
3870
|
+
[name: string]: unknown;
|
|
3871
|
+
};
|
|
3872
|
+
content?: never;
|
|
3873
|
+
};
|
|
3874
|
+
/** @description Municipality not found */
|
|
3875
|
+
404: {
|
|
3876
|
+
headers: {
|
|
3877
|
+
[name: string]: unknown;
|
|
3878
|
+
};
|
|
3879
|
+
content?: never;
|
|
3880
|
+
};
|
|
3881
|
+
};
|
|
3882
|
+
};
|
|
3883
|
+
NearbyMunicipalitiesController_findNearby: {
|
|
3884
|
+
parameters: {
|
|
3885
|
+
query: {
|
|
3886
|
+
lat: string;
|
|
3887
|
+
/** @description 1..20 */
|
|
3888
|
+
limit?: string;
|
|
3889
|
+
lng: string;
|
|
3890
|
+
/** @description Comma-separated MunicipalityType; default every type except PAO (อบจ.) */
|
|
3891
|
+
types?: string;
|
|
3892
|
+
};
|
|
3893
|
+
header?: never;
|
|
3894
|
+
path?: never;
|
|
3895
|
+
cookie?: never;
|
|
3896
|
+
};
|
|
3897
|
+
requestBody?: never;
|
|
3898
|
+
responses: {
|
|
3899
|
+
200: {
|
|
3900
|
+
headers: {
|
|
3901
|
+
[name: string]: unknown;
|
|
3902
|
+
};
|
|
3903
|
+
content: {
|
|
3904
|
+
"application/json": components["schemas"]["NearbyMunicipalityDto"][];
|
|
3905
|
+
};
|
|
3906
|
+
};
|
|
3907
|
+
};
|
|
3908
|
+
};
|
|
3909
|
+
MasterDataController_searchMunicipalities: {
|
|
3910
|
+
parameters: {
|
|
3911
|
+
query?: {
|
|
3912
|
+
/** @description Filter by District ID */
|
|
3913
|
+
districtId?: number;
|
|
3914
|
+
/** @description Search by name (partial match) */
|
|
3915
|
+
name?: string;
|
|
3916
|
+
/** @description Filter by Province ID */
|
|
3917
|
+
provinceId?: number;
|
|
3918
|
+
/** @description Filter by Subdistrict ID */
|
|
3919
|
+
subdistrictId?: number;
|
|
3920
|
+
};
|
|
3921
|
+
header?: never;
|
|
3922
|
+
path?: never;
|
|
3923
|
+
cookie?: never;
|
|
3924
|
+
};
|
|
3925
|
+
requestBody?: never;
|
|
3926
|
+
responses: {
|
|
3927
|
+
/** @description List of matching municipalities */
|
|
3928
|
+
200: {
|
|
3929
|
+
headers: {
|
|
3930
|
+
[name: string]: unknown;
|
|
3931
|
+
};
|
|
3932
|
+
content?: never;
|
|
3933
|
+
};
|
|
3934
|
+
};
|
|
3935
|
+
};
|
|
3936
|
+
MasterDataController_getProvinces: {
|
|
3937
|
+
parameters: {
|
|
3938
|
+
query?: never;
|
|
3939
|
+
header?: never;
|
|
3940
|
+
path?: never;
|
|
3941
|
+
cookie?: never;
|
|
3942
|
+
};
|
|
3943
|
+
requestBody?: never;
|
|
3944
|
+
responses: {
|
|
3945
|
+
/** @description List of provinces */
|
|
3946
|
+
200: {
|
|
3947
|
+
headers: {
|
|
3948
|
+
[name: string]: unknown;
|
|
3949
|
+
};
|
|
3950
|
+
content?: never;
|
|
3951
|
+
};
|
|
3952
|
+
};
|
|
3953
|
+
};
|
|
3954
|
+
MasterDataController_getProvinceById: {
|
|
3955
|
+
parameters: {
|
|
3956
|
+
query?: never;
|
|
3957
|
+
header?: never;
|
|
3958
|
+
path: {
|
|
3959
|
+
/** @description Province ID returned by the API (not the district code prefix) */
|
|
3960
|
+
id: number;
|
|
3961
|
+
};
|
|
3962
|
+
cookie?: never;
|
|
3963
|
+
};
|
|
3964
|
+
requestBody?: never;
|
|
3965
|
+
responses: {
|
|
3966
|
+
/** @description Province with districts */
|
|
3967
|
+
200: {
|
|
3968
|
+
headers: {
|
|
3969
|
+
[name: string]: unknown;
|
|
3970
|
+
};
|
|
3971
|
+
content?: never;
|
|
3972
|
+
};
|
|
3973
|
+
/** @description Province not found */
|
|
3974
|
+
404: {
|
|
3975
|
+
headers: {
|
|
3976
|
+
[name: string]: unknown;
|
|
3977
|
+
};
|
|
3978
|
+
content?: never;
|
|
3979
|
+
};
|
|
3980
|
+
};
|
|
3981
|
+
};
|
|
3982
|
+
MasterDataController_getDistrictsByProvince: {
|
|
3983
|
+
parameters: {
|
|
3984
|
+
query?: never;
|
|
3985
|
+
header?: never;
|
|
3986
|
+
path: {
|
|
3987
|
+
/** @description Province ID returned by the API */
|
|
3988
|
+
id: number;
|
|
3989
|
+
};
|
|
3990
|
+
cookie?: never;
|
|
3991
|
+
};
|
|
3992
|
+
requestBody?: never;
|
|
3993
|
+
responses: {
|
|
3994
|
+
/** @description List of districts */
|
|
3995
|
+
200: {
|
|
3996
|
+
headers: {
|
|
3997
|
+
[name: string]: unknown;
|
|
3998
|
+
};
|
|
3999
|
+
content?: never;
|
|
4000
|
+
};
|
|
4001
|
+
/** @description Province not found */
|
|
4002
|
+
404: {
|
|
4003
|
+
headers: {
|
|
4004
|
+
[name: string]: unknown;
|
|
4005
|
+
};
|
|
4006
|
+
content?: never;
|
|
4007
|
+
};
|
|
4008
|
+
};
|
|
4009
|
+
};
|
|
4010
|
+
MasterDataController_searchLocations: {
|
|
4011
|
+
parameters: {
|
|
4012
|
+
query?: {
|
|
4013
|
+
/** @description District ID returned by the API. */
|
|
4014
|
+
districtId?: number;
|
|
4015
|
+
/** @description Maximum results per group. */
|
|
4016
|
+
limit?: number;
|
|
4017
|
+
/** @description Province ID returned by the API; Chiang Mai is 38 in the seed data. */
|
|
4018
|
+
provinceId?: number;
|
|
4019
|
+
/** @description Trimmed Thai/English name or postal code. Fewer than 2 characters returns empty groups. */
|
|
4020
|
+
q?: string;
|
|
4021
|
+
type?: "all" | "province" | "district" | "subdistrict";
|
|
4022
|
+
};
|
|
4023
|
+
header?: never;
|
|
4024
|
+
path?: never;
|
|
4025
|
+
cookie?: never;
|
|
4026
|
+
};
|
|
4027
|
+
requestBody?: never;
|
|
4028
|
+
responses: {
|
|
4029
|
+
/** @description Search results grouped by type */
|
|
4030
|
+
200: {
|
|
4031
|
+
headers: {
|
|
4032
|
+
[name: string]: unknown;
|
|
4033
|
+
};
|
|
4034
|
+
content?: never;
|
|
4035
|
+
};
|
|
4036
|
+
/** @description Invalid search parameters */
|
|
4037
|
+
400: {
|
|
4038
|
+
headers: {
|
|
4039
|
+
[name: string]: unknown;
|
|
4040
|
+
};
|
|
4041
|
+
content?: never;
|
|
4042
|
+
};
|
|
4043
|
+
};
|
|
4044
|
+
};
|
|
4045
|
+
MasterDataController_getSubdistrictsByPostalCode: {
|
|
4046
|
+
parameters: {
|
|
4047
|
+
query: {
|
|
4048
|
+
/** @description Postal code (รหัสไปรษณีย์) */
|
|
4049
|
+
postal_code: string;
|
|
4050
|
+
};
|
|
4051
|
+
header?: never;
|
|
4052
|
+
path?: never;
|
|
4053
|
+
cookie?: never;
|
|
4054
|
+
};
|
|
4055
|
+
requestBody?: never;
|
|
4056
|
+
responses: {
|
|
4057
|
+
/** @description List of subdistricts with full location */
|
|
4058
|
+
200: {
|
|
4059
|
+
headers: {
|
|
4060
|
+
[name: string]: unknown;
|
|
4061
|
+
};
|
|
4062
|
+
content?: never;
|
|
4063
|
+
};
|
|
4064
|
+
};
|
|
4065
|
+
};
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
type GovCenterPaths = paths;
|
|
4069
|
+
type ApiMethod = 'get' | 'post' | 'patch' | 'delete';
|
|
4070
|
+
/** Paths that accept this method, e.g. PathFor<'get'> = '/e-services/gis/catalog' | … */
|
|
4071
|
+
type PathFor<M extends ApiMethod> = {
|
|
4072
|
+
[P in keyof paths]: [NonNullable<paths[P][M]>] extends [never] ? never : P;
|
|
4073
|
+
}[keyof paths];
|
|
4074
|
+
type Operation<M extends ApiMethod, P extends PathFor<M>> = NonNullable<paths[P][M]>;
|
|
4075
|
+
type ParamsOf<Op> = Op extends {
|
|
4076
|
+
parameters: {
|
|
4077
|
+
path?: infer X;
|
|
4078
|
+
};
|
|
4079
|
+
} ? NonNullable<X> : never;
|
|
4080
|
+
type QueryOf<Op> = Op extends {
|
|
4081
|
+
parameters: {
|
|
4082
|
+
query?: infer X;
|
|
4083
|
+
};
|
|
4084
|
+
} ? NonNullable<X> : never;
|
|
4085
|
+
type BodyOf<Op> = Op extends {
|
|
4086
|
+
requestBody?: {
|
|
4087
|
+
content: {
|
|
4088
|
+
'application/json': infer B;
|
|
4089
|
+
};
|
|
4090
|
+
};
|
|
4091
|
+
} ? B : never;
|
|
4092
|
+
type BodyRequired<Op> = Op extends {
|
|
4093
|
+
requestBody: {
|
|
4094
|
+
content: unknown;
|
|
4095
|
+
};
|
|
4096
|
+
} ? true : false;
|
|
4097
|
+
type JsonOf<R> = R extends {
|
|
4098
|
+
content: {
|
|
4099
|
+
'application/json': infer T;
|
|
4100
|
+
};
|
|
4101
|
+
} ? T : unknown;
|
|
4102
|
+
/** The JSON result of a call; `unknown` until GovCenter documents it with @ApiOkResponse. */
|
|
4103
|
+
type ResponseOf<Op> = Op extends {
|
|
4104
|
+
responses: infer R;
|
|
4105
|
+
} ? 200 extends keyof R ? JsonOf<R[200]> : 201 extends keyof R ? JsonOf<R[201]> : unknown : unknown;
|
|
4106
|
+
/** Known query keys only (a typo is a type error); arrays are sent comma-separated. */
|
|
4107
|
+
type TypedQuery<Q> = {
|
|
4108
|
+
[K in keyof Q]?: Q[K] | Array<string | number> | null;
|
|
4109
|
+
};
|
|
4110
|
+
type ParamsPart<Op> = [ParamsOf<Op>] extends [never] ? {
|
|
4111
|
+
params?: never;
|
|
4112
|
+
} : {
|
|
4113
|
+
params: {
|
|
4114
|
+
[K in keyof ParamsOf<Op>]: string | number;
|
|
4115
|
+
};
|
|
4116
|
+
};
|
|
4117
|
+
type QueryPart<Op> = [QueryOf<Op>] extends [never] ? {
|
|
4118
|
+
query?: Record<string, QueryValue>;
|
|
4119
|
+
} : {
|
|
4120
|
+
query?: TypedQuery<QueryOf<Op>>;
|
|
4121
|
+
};
|
|
4122
|
+
type BodyPart<Op> = [BodyOf<Op>] extends [never] ? {
|
|
4123
|
+
body?: unknown;
|
|
4124
|
+
} : BodyRequired<Op> extends true ? {
|
|
4125
|
+
body: BodyOf<Op>;
|
|
4126
|
+
} : {
|
|
4127
|
+
body?: BodyOf<Op>;
|
|
4128
|
+
};
|
|
4129
|
+
type TypedOptions<Op> = Omit<RequestOptions, 'params' | 'query' | 'body'> & ParamsPart<Op> & QueryPart<Op> & BodyPart<Op>;
|
|
4130
|
+
/** Options can be left out only when nothing in them is required. */
|
|
4131
|
+
type OptionsArg<Op> = {} extends TypedOptions<Op> ? [options?: TypedOptions<Op>] : [options: TypedOptions<Op>];
|
|
4132
|
+
|
|
4133
|
+
type HttpMethod = 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
|
4134
|
+
interface GovCenterClient {
|
|
4135
|
+
/** Paths GovCenter publishes; a path that does not exist is a type error. */
|
|
4136
|
+
get<P extends PathFor<'get'>>(path: P, ...options: OptionsArg<Operation<'get', P>>): Promise<ResponseOf<Operation<'get', P>>>;
|
|
4137
|
+
post<P extends PathFor<'post'>>(path: P, ...options: OptionsArg<Operation<'post', P>>): Promise<ResponseOf<Operation<'post', P>>>;
|
|
4138
|
+
patch<P extends PathFor<'patch'>>(path: P, ...options: OptionsArg<Operation<'patch', P>>): Promise<ResponseOf<Operation<'patch', P>>>;
|
|
4139
|
+
delete<P extends PathFor<'delete'>>(path: P, ...options: OptionsArg<Operation<'delete', P>>): Promise<ResponseOf<Operation<'delete', P>>>;
|
|
4140
|
+
/** Any path, e.g. one GovCenter added after this SDK version. No type checks. */
|
|
4141
|
+
request<T = unknown>(method: HttpMethod, path: string, options?: RequestOptions): Promise<T>;
|
|
4142
|
+
getConfig(): Readonly<GovCenterClientInfo>;
|
|
4143
|
+
}
|
|
4144
|
+
/** GovCenter API address of each environment (no `/v1`). */
|
|
4145
|
+
declare const GOVCENTER_API_URLS: Readonly<Record<GovCenterEnvironment, string>>;
|
|
4146
|
+
declare function createGovCenterClient(config?: GovCenterClientConfig): GovCenterClient;
|
|
4147
|
+
|
|
4148
|
+
export { type ApiMethod as A, GOVCENTER_API_URLS as G, type HttpMethod as H, type Operation as O, type PathFor as P, type QueryValue as Q, type RequestOptions as R, type TypedOptions as T, type GovCenterClient as a, type GovCenterClientConfig as b, type components as c, type GovCenterClientInfo as d, type GovCenterEnvironment as e, type GovCenterPaths as f, type ResponseOf as g, createGovCenterClient as h };
|