@vritti/api-sdk 0.1.7 → 0.1.8

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/dist/index.js CHANGED
@@ -2093,393 +2093,226 @@ var TenantBaseRepository = class {
2093
2093
  };
2094
2094
 
2095
2095
  // src/exceptions/bad-gateway.exception.ts
2096
- import { HttpStatus as HttpStatus2 } from "@nestjs/common";
2096
+ import { HttpStatus } from "@nestjs/common";
2097
2097
 
2098
2098
  // src/exceptions/base-field.exception.ts
2099
- import { HttpException, HttpStatus } from "@nestjs/common";
2100
- var BaseFieldException = class extends HttpException {
2099
+ import { HttpException } from "@nestjs/common";
2100
+ var HttpProblemException = class extends HttpException {
2101
2101
  static {
2102
- __name(this, "BaseFieldException");
2103
- }
2104
- constructor(statusOrMessageOrErrors, messageOrStatus, statusOrDetail, detail) {
2105
- let errors;
2106
- let httpStatus;
2107
- let finalDetail;
2108
- if (Array.isArray(statusOrMessageOrErrors)) {
2109
- errors = statusOrMessageOrErrors;
2110
- httpStatus = messageOrStatus || HttpStatus.BAD_REQUEST;
2111
- finalDetail = typeof statusOrDetail === "string" ? statusOrDetail : void 0;
2112
- } else if (typeof statusOrMessageOrErrors === "string" && typeof messageOrStatus === "string") {
2113
- errors = [
2114
- {
2115
- field: statusOrMessageOrErrors,
2116
- message: messageOrStatus
2117
- }
2118
- ];
2119
- httpStatus = statusOrDetail;
2120
- finalDetail = detail;
2121
- } else if (typeof statusOrMessageOrErrors === "string") {
2122
- errors = [
2123
- {
2124
- message: statusOrMessageOrErrors
2125
- }
2126
- ];
2127
- httpStatus = messageOrStatus;
2128
- finalDetail = typeof statusOrDetail === "string" ? statusOrDetail : void 0;
2129
- } else {
2130
- errors = [
2131
- {
2132
- message: "An error occurred"
2133
- }
2134
- ];
2135
- httpStatus = statusOrMessageOrErrors;
2136
- finalDetail = void 0;
2137
- }
2138
- const response = finalDetail !== void 0 ? {
2139
- errors,
2140
- detail: finalDetail
2141
- } : {
2142
- errors
2143
- };
2144
- super(response, httpStatus);
2102
+ __name(this, "HttpProblemException");
2103
+ }
2104
+ constructor(detailOrOptions, httpStatus) {
2105
+ const options = typeof detailOrOptions === "string" ? {
2106
+ detail: detailOrOptions
2107
+ } : detailOrOptions;
2108
+ super({
2109
+ type: options.type ?? "about:blank",
2110
+ label: options.label,
2111
+ detail: options.detail,
2112
+ errors: options.errors ?? []
2113
+ }, httpStatus);
2145
2114
  }
2146
2115
  };
2147
2116
 
2148
2117
  // src/exceptions/bad-gateway.exception.ts
2149
- var BadGatewayException = class extends BaseFieldException {
2118
+ var BadGatewayException = class extends HttpProblemException {
2150
2119
  static {
2151
2120
  __name(this, "BadGatewayException");
2152
2121
  }
2153
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2154
- if (Array.isArray(messageOrField)) {
2155
- super(messageOrField, HttpStatus2.BAD_GATEWAY, fieldMessageOrDetail);
2156
- } else if (detail !== void 0) {
2157
- super(messageOrField, fieldMessageOrDetail, HttpStatus2.BAD_GATEWAY, detail);
2158
- } else if (fieldMessageOrDetail) {
2159
- super(messageOrField, fieldMessageOrDetail, HttpStatus2.BAD_GATEWAY);
2160
- } else {
2161
- super(messageOrField, HttpStatus2.BAD_GATEWAY);
2162
- }
2122
+ constructor(detailOrOptions) {
2123
+ super(detailOrOptions ?? "Bad Gateway", HttpStatus.BAD_GATEWAY);
2163
2124
  }
2164
2125
  };
2165
2126
 
2166
2127
  // src/exceptions/bad-request.exception.ts
2167
- import { HttpStatus as HttpStatus3 } from "@nestjs/common";
2168
- var BadRequestException = class extends BaseFieldException {
2128
+ import { HttpStatus as HttpStatus2 } from "@nestjs/common";
2129
+ var BadRequestException = class extends HttpProblemException {
2169
2130
  static {
2170
2131
  __name(this, "BadRequestException");
2171
2132
  }
2172
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2173
- if (Array.isArray(messageOrField)) {
2174
- super(messageOrField, HttpStatus3.BAD_REQUEST, fieldMessageOrDetail);
2175
- } else if (detail !== void 0) {
2176
- super(messageOrField, fieldMessageOrDetail, HttpStatus3.BAD_REQUEST, detail);
2177
- } else if (fieldMessageOrDetail) {
2178
- super(messageOrField, fieldMessageOrDetail, HttpStatus3.BAD_REQUEST);
2179
- } else {
2180
- super(messageOrField, HttpStatus3.BAD_REQUEST);
2181
- }
2133
+ constructor(detailOrOptions) {
2134
+ super(detailOrOptions ?? "Bad Request", HttpStatus2.BAD_REQUEST);
2182
2135
  }
2183
2136
  };
2184
2137
 
2185
2138
  // src/exceptions/conflict.exception.ts
2186
- import { HttpStatus as HttpStatus4 } from "@nestjs/common";
2187
- var ConflictException = class extends BaseFieldException {
2139
+ import { HttpStatus as HttpStatus3 } from "@nestjs/common";
2140
+ var ConflictException = class extends HttpProblemException {
2188
2141
  static {
2189
2142
  __name(this, "ConflictException");
2190
2143
  }
2191
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2192
- if (Array.isArray(messageOrField)) {
2193
- super(messageOrField, HttpStatus4.CONFLICT, fieldMessageOrDetail);
2194
- } else if (detail !== void 0) {
2195
- super(messageOrField, fieldMessageOrDetail, HttpStatus4.CONFLICT, detail);
2196
- } else if (fieldMessageOrDetail) {
2197
- super(messageOrField, fieldMessageOrDetail, HttpStatus4.CONFLICT);
2198
- } else {
2199
- super(messageOrField, HttpStatus4.CONFLICT);
2200
- }
2144
+ constructor(detailOrOptions) {
2145
+ super(detailOrOptions ?? "Conflict", HttpStatus3.CONFLICT);
2201
2146
  }
2202
2147
  };
2203
2148
 
2204
2149
  // src/exceptions/forbidden.exception.ts
2205
- import { HttpStatus as HttpStatus5 } from "@nestjs/common";
2206
- var ForbiddenException2 = class extends BaseFieldException {
2150
+ import { HttpStatus as HttpStatus4 } from "@nestjs/common";
2151
+ var ForbiddenException2 = class extends HttpProblemException {
2207
2152
  static {
2208
2153
  __name(this, "ForbiddenException");
2209
2154
  }
2210
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2211
- if (Array.isArray(messageOrField)) {
2212
- super(messageOrField, HttpStatus5.FORBIDDEN, fieldMessageOrDetail);
2213
- } else if (detail !== void 0) {
2214
- super(messageOrField, fieldMessageOrDetail, HttpStatus5.FORBIDDEN, detail);
2215
- } else if (fieldMessageOrDetail) {
2216
- super(messageOrField, fieldMessageOrDetail, HttpStatus5.FORBIDDEN);
2217
- } else {
2218
- super(messageOrField, HttpStatus5.FORBIDDEN);
2219
- }
2155
+ constructor(detailOrOptions) {
2156
+ super(detailOrOptions ?? "Forbidden", HttpStatus4.FORBIDDEN);
2220
2157
  }
2221
2158
  };
2222
2159
 
2223
2160
  // src/exceptions/gone.exception.ts
2224
- import { HttpStatus as HttpStatus6 } from "@nestjs/common";
2225
- var GoneException = class extends BaseFieldException {
2161
+ import { HttpStatus as HttpStatus5 } from "@nestjs/common";
2162
+ var GoneException = class extends HttpProblemException {
2226
2163
  static {
2227
2164
  __name(this, "GoneException");
2228
2165
  }
2229
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2230
- if (Array.isArray(messageOrField)) {
2231
- super(messageOrField, HttpStatus6.GONE, fieldMessageOrDetail);
2232
- } else if (detail !== void 0) {
2233
- super(messageOrField, fieldMessageOrDetail, HttpStatus6.GONE, detail);
2234
- } else if (fieldMessageOrDetail) {
2235
- super(messageOrField, fieldMessageOrDetail, HttpStatus6.GONE);
2236
- } else {
2237
- super(messageOrField, HttpStatus6.GONE);
2238
- }
2166
+ constructor(detailOrOptions) {
2167
+ super(detailOrOptions ?? "Gone", HttpStatus5.GONE);
2239
2168
  }
2240
2169
  };
2241
2170
 
2242
2171
  // src/exceptions/internal-server-error.exception.ts
2243
- import { HttpStatus as HttpStatus7 } from "@nestjs/common";
2244
- var InternalServerErrorException3 = class extends BaseFieldException {
2172
+ import { HttpStatus as HttpStatus6 } from "@nestjs/common";
2173
+ var InternalServerErrorException3 = class extends HttpProblemException {
2245
2174
  static {
2246
2175
  __name(this, "InternalServerErrorException");
2247
2176
  }
2248
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2249
- if (Array.isArray(messageOrField)) {
2250
- super(messageOrField, HttpStatus7.INTERNAL_SERVER_ERROR, fieldMessageOrDetail);
2251
- } else if (detail !== void 0) {
2252
- super(messageOrField, fieldMessageOrDetail, HttpStatus7.INTERNAL_SERVER_ERROR, detail);
2253
- } else if (fieldMessageOrDetail) {
2254
- super(messageOrField, fieldMessageOrDetail, HttpStatus7.INTERNAL_SERVER_ERROR);
2255
- } else {
2256
- super(messageOrField, HttpStatus7.INTERNAL_SERVER_ERROR);
2257
- }
2177
+ constructor(detailOrOptions) {
2178
+ super(detailOrOptions ?? "Internal Server Error", HttpStatus6.INTERNAL_SERVER_ERROR);
2258
2179
  }
2259
2180
  };
2260
2181
 
2261
2182
  // src/exceptions/method-not-allowed.exception.ts
2262
- import { HttpStatus as HttpStatus8 } from "@nestjs/common";
2263
- var MethodNotAllowedException = class extends BaseFieldException {
2183
+ import { HttpStatus as HttpStatus7 } from "@nestjs/common";
2184
+ var MethodNotAllowedException = class extends HttpProblemException {
2264
2185
  static {
2265
2186
  __name(this, "MethodNotAllowedException");
2266
2187
  }
2267
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2268
- if (Array.isArray(messageOrField)) {
2269
- super(messageOrField, HttpStatus8.METHOD_NOT_ALLOWED, fieldMessageOrDetail);
2270
- } else if (detail !== void 0) {
2271
- super(messageOrField, fieldMessageOrDetail, HttpStatus8.METHOD_NOT_ALLOWED, detail);
2272
- } else if (fieldMessageOrDetail) {
2273
- super(messageOrField, fieldMessageOrDetail, HttpStatus8.METHOD_NOT_ALLOWED);
2274
- } else {
2275
- super(messageOrField, HttpStatus8.METHOD_NOT_ALLOWED);
2276
- }
2188
+ constructor(detailOrOptions) {
2189
+ super(detailOrOptions ?? "Method Not Allowed", HttpStatus7.METHOD_NOT_ALLOWED);
2277
2190
  }
2278
2191
  };
2279
2192
 
2280
2193
  // src/exceptions/not-acceptable.exception.ts
2281
- import { HttpStatus as HttpStatus9 } from "@nestjs/common";
2282
- var NotAcceptableException = class extends BaseFieldException {
2194
+ import { HttpStatus as HttpStatus8 } from "@nestjs/common";
2195
+ var NotAcceptableException = class extends HttpProblemException {
2283
2196
  static {
2284
2197
  __name(this, "NotAcceptableException");
2285
2198
  }
2286
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2287
- if (Array.isArray(messageOrField)) {
2288
- super(messageOrField, HttpStatus9.NOT_ACCEPTABLE, fieldMessageOrDetail);
2289
- } else if (detail !== void 0) {
2290
- super(messageOrField, fieldMessageOrDetail, HttpStatus9.NOT_ACCEPTABLE, detail);
2291
- } else if (fieldMessageOrDetail) {
2292
- super(messageOrField, fieldMessageOrDetail, HttpStatus9.NOT_ACCEPTABLE);
2293
- } else {
2294
- super(messageOrField, HttpStatus9.NOT_ACCEPTABLE);
2295
- }
2199
+ constructor(detailOrOptions) {
2200
+ super(detailOrOptions ?? "Not Acceptable", HttpStatus8.NOT_ACCEPTABLE);
2296
2201
  }
2297
2202
  };
2298
2203
 
2299
2204
  // src/exceptions/not-found.exception.ts
2300
- import { HttpStatus as HttpStatus10 } from "@nestjs/common";
2301
- var NotFoundException = class extends BaseFieldException {
2205
+ import { HttpStatus as HttpStatus9 } from "@nestjs/common";
2206
+ var NotFoundException = class extends HttpProblemException {
2302
2207
  static {
2303
2208
  __name(this, "NotFoundException");
2304
2209
  }
2305
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2306
- if (Array.isArray(messageOrField)) {
2307
- super(messageOrField, HttpStatus10.NOT_FOUND, fieldMessageOrDetail);
2308
- } else if (detail !== void 0) {
2309
- super(messageOrField, fieldMessageOrDetail, HttpStatus10.NOT_FOUND, detail);
2310
- } else if (fieldMessageOrDetail) {
2311
- super(messageOrField, fieldMessageOrDetail, HttpStatus10.NOT_FOUND);
2312
- } else {
2313
- super(messageOrField, HttpStatus10.NOT_FOUND);
2314
- }
2210
+ constructor(detailOrOptions) {
2211
+ super(detailOrOptions ?? "Not Found", HttpStatus9.NOT_FOUND);
2315
2212
  }
2316
2213
  };
2317
2214
 
2318
2215
  // src/exceptions/not-implemented.exception.ts
2319
- import { HttpStatus as HttpStatus11 } from "@nestjs/common";
2320
- var NotImplementedException = class extends BaseFieldException {
2216
+ import { HttpStatus as HttpStatus10 } from "@nestjs/common";
2217
+ var NotImplementedException = class extends HttpProblemException {
2321
2218
  static {
2322
2219
  __name(this, "NotImplementedException");
2323
2220
  }
2324
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2325
- if (Array.isArray(messageOrField)) {
2326
- super(messageOrField, HttpStatus11.NOT_IMPLEMENTED, fieldMessageOrDetail);
2327
- } else if (detail !== void 0) {
2328
- super(messageOrField, fieldMessageOrDetail, HttpStatus11.NOT_IMPLEMENTED, detail);
2329
- } else if (fieldMessageOrDetail) {
2330
- super(messageOrField, fieldMessageOrDetail, HttpStatus11.NOT_IMPLEMENTED);
2331
- } else {
2332
- super(messageOrField, HttpStatus11.NOT_IMPLEMENTED);
2333
- }
2221
+ constructor(detailOrOptions) {
2222
+ super(detailOrOptions ?? "Not Implemented", HttpStatus10.NOT_IMPLEMENTED);
2334
2223
  }
2335
2224
  };
2336
2225
 
2337
2226
  // src/exceptions/payload-too-large.exception.ts
2338
- import { HttpStatus as HttpStatus12 } from "@nestjs/common";
2339
- var PayloadTooLargeException = class extends BaseFieldException {
2227
+ import { HttpStatus as HttpStatus11 } from "@nestjs/common";
2228
+ var PayloadTooLargeException = class extends HttpProblemException {
2340
2229
  static {
2341
2230
  __name(this, "PayloadTooLargeException");
2342
2231
  }
2343
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2344
- if (Array.isArray(messageOrField)) {
2345
- super(messageOrField, HttpStatus12.PAYLOAD_TOO_LARGE, fieldMessageOrDetail);
2346
- } else if (detail !== void 0) {
2347
- super(messageOrField, fieldMessageOrDetail, HttpStatus12.PAYLOAD_TOO_LARGE, detail);
2348
- } else if (fieldMessageOrDetail) {
2349
- super(messageOrField, fieldMessageOrDetail, HttpStatus12.PAYLOAD_TOO_LARGE);
2350
- } else {
2351
- super(messageOrField, HttpStatus12.PAYLOAD_TOO_LARGE);
2352
- }
2232
+ constructor(detailOrOptions) {
2233
+ super(detailOrOptions ?? "Payload Too Large", HttpStatus11.PAYLOAD_TOO_LARGE);
2353
2234
  }
2354
2235
  };
2355
2236
 
2356
2237
  // src/exceptions/request-timeout.exception.ts
2357
- import { HttpStatus as HttpStatus13 } from "@nestjs/common";
2358
- var RequestTimeoutException = class extends BaseFieldException {
2238
+ import { HttpStatus as HttpStatus12 } from "@nestjs/common";
2239
+ var RequestTimeoutException = class extends HttpProblemException {
2359
2240
  static {
2360
2241
  __name(this, "RequestTimeoutException");
2361
2242
  }
2362
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2363
- if (Array.isArray(messageOrField)) {
2364
- super(messageOrField, HttpStatus13.REQUEST_TIMEOUT, fieldMessageOrDetail);
2365
- } else if (detail !== void 0) {
2366
- super(messageOrField, fieldMessageOrDetail, HttpStatus13.REQUEST_TIMEOUT, detail);
2367
- } else if (fieldMessageOrDetail) {
2368
- super(messageOrField, fieldMessageOrDetail, HttpStatus13.REQUEST_TIMEOUT);
2369
- } else {
2370
- super(messageOrField, HttpStatus13.REQUEST_TIMEOUT);
2371
- }
2243
+ constructor(detailOrOptions) {
2244
+ super(detailOrOptions ?? "Request Timeout", HttpStatus12.REQUEST_TIMEOUT);
2372
2245
  }
2373
2246
  };
2374
2247
 
2375
2248
  // src/exceptions/service-unavailable.exception.ts
2376
- import { HttpStatus as HttpStatus14 } from "@nestjs/common";
2377
- var ServiceUnavailableException = class extends BaseFieldException {
2249
+ import { HttpStatus as HttpStatus13 } from "@nestjs/common";
2250
+ var ServiceUnavailableException = class extends HttpProblemException {
2378
2251
  static {
2379
2252
  __name(this, "ServiceUnavailableException");
2380
2253
  }
2381
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2382
- if (Array.isArray(messageOrField)) {
2383
- super(messageOrField, HttpStatus14.SERVICE_UNAVAILABLE, fieldMessageOrDetail);
2384
- } else if (detail !== void 0) {
2385
- super(messageOrField, fieldMessageOrDetail, HttpStatus14.SERVICE_UNAVAILABLE, detail);
2386
- } else if (fieldMessageOrDetail) {
2387
- super(messageOrField, fieldMessageOrDetail, HttpStatus14.SERVICE_UNAVAILABLE);
2388
- } else {
2389
- super(messageOrField, HttpStatus14.SERVICE_UNAVAILABLE);
2390
- }
2254
+ constructor(detailOrOptions) {
2255
+ super(detailOrOptions ?? "Service Unavailable", HttpStatus13.SERVICE_UNAVAILABLE);
2391
2256
  }
2392
2257
  };
2393
2258
 
2394
2259
  // src/exceptions/too-many-requests.exception.ts
2395
- import { HttpStatus as HttpStatus15 } from "@nestjs/common";
2396
- var TooManyRequestsException = class extends BaseFieldException {
2260
+ import { HttpStatus as HttpStatus14 } from "@nestjs/common";
2261
+ var TooManyRequestsException = class extends HttpProblemException {
2397
2262
  static {
2398
2263
  __name(this, "TooManyRequestsException");
2399
2264
  }
2400
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2401
- if (Array.isArray(messageOrField)) {
2402
- super(messageOrField, HttpStatus15.TOO_MANY_REQUESTS, fieldMessageOrDetail);
2403
- } else if (detail !== void 0) {
2404
- super(messageOrField, fieldMessageOrDetail, HttpStatus15.TOO_MANY_REQUESTS, detail);
2405
- } else if (fieldMessageOrDetail) {
2406
- super(messageOrField, fieldMessageOrDetail, HttpStatus15.TOO_MANY_REQUESTS);
2407
- } else {
2408
- super(messageOrField, HttpStatus15.TOO_MANY_REQUESTS);
2409
- }
2265
+ constructor(detailOrOptions) {
2266
+ super(detailOrOptions ?? "Too Many Requests", HttpStatus14.TOO_MANY_REQUESTS);
2410
2267
  }
2411
2268
  };
2412
2269
 
2413
2270
  // src/exceptions/unauthorized.exception.ts
2414
- import { HttpStatus as HttpStatus16 } from "@nestjs/common";
2415
- var UnauthorizedException5 = class extends BaseFieldException {
2271
+ import { HttpStatus as HttpStatus15 } from "@nestjs/common";
2272
+ var UnauthorizedException5 = class extends HttpProblemException {
2416
2273
  static {
2417
2274
  __name(this, "UnauthorizedException");
2418
2275
  }
2419
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2420
- if (Array.isArray(messageOrField)) {
2421
- super(messageOrField, HttpStatus16.UNAUTHORIZED, fieldMessageOrDetail);
2422
- } else if (detail !== void 0) {
2423
- super(messageOrField, fieldMessageOrDetail, HttpStatus16.UNAUTHORIZED, detail);
2424
- } else if (fieldMessageOrDetail) {
2425
- super(messageOrField, fieldMessageOrDetail, HttpStatus16.UNAUTHORIZED);
2426
- } else {
2427
- super(messageOrField, HttpStatus16.UNAUTHORIZED);
2428
- }
2276
+ constructor(detailOrOptions) {
2277
+ super(detailOrOptions ?? "Unauthorized", HttpStatus15.UNAUTHORIZED);
2429
2278
  }
2430
2279
  };
2431
2280
 
2432
2281
  // src/exceptions/unprocessable-entity.exception.ts
2433
- import { HttpStatus as HttpStatus17 } from "@nestjs/common";
2434
- var UnprocessableEntityException = class extends BaseFieldException {
2282
+ import { HttpStatus as HttpStatus16 } from "@nestjs/common";
2283
+ var UnprocessableEntityException = class extends HttpProblemException {
2435
2284
  static {
2436
2285
  __name(this, "UnprocessableEntityException");
2437
2286
  }
2438
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2439
- if (Array.isArray(messageOrField)) {
2440
- super(messageOrField, HttpStatus17.UNPROCESSABLE_ENTITY, fieldMessageOrDetail);
2441
- } else if (detail !== void 0) {
2442
- super(messageOrField, fieldMessageOrDetail, HttpStatus17.UNPROCESSABLE_ENTITY, detail);
2443
- } else if (fieldMessageOrDetail) {
2444
- super(messageOrField, fieldMessageOrDetail, HttpStatus17.UNPROCESSABLE_ENTITY);
2445
- } else {
2446
- super(messageOrField, HttpStatus17.UNPROCESSABLE_ENTITY);
2447
- }
2287
+ constructor(detailOrOptions) {
2288
+ super(detailOrOptions ?? "Unprocessable Entity", HttpStatus16.UNPROCESSABLE_ENTITY);
2448
2289
  }
2449
2290
  };
2450
2291
 
2451
2292
  // src/exceptions/unsupported-media-type.exception.ts
2452
- import { HttpStatus as HttpStatus18 } from "@nestjs/common";
2453
- var UnsupportedMediaTypeException = class extends BaseFieldException {
2293
+ import { HttpStatus as HttpStatus17 } from "@nestjs/common";
2294
+ var UnsupportedMediaTypeException = class extends HttpProblemException {
2454
2295
  static {
2455
2296
  __name(this, "UnsupportedMediaTypeException");
2456
2297
  }
2457
- constructor(messageOrField, fieldMessageOrDetail, detail) {
2458
- if (Array.isArray(messageOrField)) {
2459
- super(messageOrField, HttpStatus18.UNSUPPORTED_MEDIA_TYPE, fieldMessageOrDetail);
2460
- } else if (detail !== void 0) {
2461
- super(messageOrField, fieldMessageOrDetail, HttpStatus18.UNSUPPORTED_MEDIA_TYPE, detail);
2462
- } else if (fieldMessageOrDetail) {
2463
- super(messageOrField, fieldMessageOrDetail, HttpStatus18.UNSUPPORTED_MEDIA_TYPE);
2464
- } else {
2465
- super(messageOrField, HttpStatus18.UNSUPPORTED_MEDIA_TYPE);
2466
- }
2298
+ constructor(detailOrOptions) {
2299
+ super(detailOrOptions ?? "Unsupported Media Type", HttpStatus17.UNSUPPORTED_MEDIA_TYPE);
2467
2300
  }
2468
2301
  };
2469
2302
 
2470
2303
  // src/exceptions/validation.exception.ts
2471
- import { HttpStatus as HttpStatus19 } from "@nestjs/common";
2472
- var ValidationException = class extends BaseFieldException {
2304
+ import { HttpStatus as HttpStatus18 } from "@nestjs/common";
2305
+ var ValidationException = class extends HttpProblemException {
2473
2306
  static {
2474
2307
  __name(this, "ValidationException");
2475
2308
  }
2476
- constructor(errors, detail) {
2477
- super(errors, HttpStatus19.BAD_REQUEST, detail);
2309
+ constructor(detailOrOptions) {
2310
+ super(detailOrOptions ?? "Validation Failed", HttpStatus18.BAD_REQUEST);
2478
2311
  }
2479
2312
  };
2480
2313
 
2481
2314
  // src/filters/http-exception.filter.ts
2482
- import { Catch, HttpException as HttpException2, HttpStatus as HttpStatus20, Logger as Logger10 } from "@nestjs/common";
2315
+ import { Catch, HttpException as HttpException2, HttpStatus as HttpStatus19, Logger as Logger10 } from "@nestjs/common";
2483
2316
  function _ts_decorate12(decorators, target, key, desc) {
2484
2317
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2485
2318
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -2488,7 +2321,7 @@ function _ts_decorate12(decorators, target, key, desc) {
2488
2321
  }
2489
2322
  __name(_ts_decorate12, "_ts_decorate");
2490
2323
  function getHttpStatusTitle(status) {
2491
- const enumKey = Object.entries(HttpStatus20).find(([key, value]) => value === status && Number.isNaN(Number(key)))?.[0];
2324
+ const enumKey = Object.entries(HttpStatus19).find(([key, value]) => value === status && Number.isNaN(Number(key)))?.[0];
2492
2325
  if (!enumKey) {
2493
2326
  return "Error";
2494
2327
  }
@@ -2503,17 +2336,23 @@ var HttpExceptionFilter = class _HttpExceptionFilter {
2503
2336
  catch(exception, host) {
2504
2337
  const ctx = host.switchToHttp();
2505
2338
  const response = ctx.getResponse();
2506
- let status = HttpStatus20.INTERNAL_SERVER_ERROR;
2507
- let errors = [];
2339
+ const request = ctx.getRequest();
2340
+ let status = HttpStatus19.INTERNAL_SERVER_ERROR;
2341
+ let type = "about:blank";
2342
+ let label;
2508
2343
  let detail = "Internal server error";
2344
+ let errors = [];
2509
2345
  if (exception instanceof HttpException2) {
2510
2346
  status = exception.getStatus();
2511
2347
  const exceptionResponse = exception.getResponse();
2512
2348
  if (typeof exceptionResponse === "object" && exceptionResponse !== null) {
2513
2349
  const responseObj = exceptionResponse;
2514
- if ("errors" in responseObj && Array.isArray(responseObj.errors)) {
2515
- errors = responseObj.errors;
2516
- detail = ("detail" in responseObj ? responseObj.detail : void 0) || exception.message;
2350
+ if ("type" in responseObj || "label" in responseObj || "errors" in responseObj) {
2351
+ const problemResponse = responseObj;
2352
+ type = problemResponse.type ?? "about:blank";
2353
+ label = problemResponse.label;
2354
+ detail = problemResponse.detail ?? exception.message ?? getHttpStatusTitle(status);
2355
+ errors = problemResponse.errors ?? [];
2517
2356
  } else if ("message" in responseObj && Array.isArray(responseObj.message)) {
2518
2357
  errors = responseObj.message.map((msg) => {
2519
2358
  if (typeof msg === "object" && "property" in msg && "constraints" in msg) {
@@ -2523,159 +2362,40 @@ var HttpExceptionFilter = class _HttpExceptionFilter {
2523
2362
  message: constraintValues[0] ?? "Validation failed"
2524
2363
  };
2525
2364
  }
2526
- return {
2527
- message: typeof msg === "string" ? msg : JSON.stringify(msg)
2528
- };
2529
- });
2365
+ return null;
2366
+ }).filter((error) => error !== null);
2530
2367
  detail = "Validation failed";
2531
2368
  } else if ("message" in responseObj) {
2532
2369
  const message = responseObj.message;
2533
- errors = [
2534
- {
2535
- message: Array.isArray(message) ? message.join(", ") : message
2536
- }
2537
- ];
2538
- detail = ("error" in responseObj ? responseObj.error : void 0) || exception.message;
2370
+ detail = Array.isArray(message) ? message.join(", ") : message;
2539
2371
  }
2540
2372
  } else if (typeof exceptionResponse === "string") {
2541
- errors = [
2542
- {
2543
- message: exceptionResponse
2544
- }
2545
- ];
2546
2373
  detail = exceptionResponse;
2547
2374
  }
2548
2375
  } else {
2549
2376
  const errorMessage = exception instanceof Error ? exception.message : "Unknown error";
2550
2377
  const stack = exception instanceof Error ? exception.stack : void 0;
2551
2378
  this.logger.error(`Unexpected error: ${errorMessage}`, stack);
2552
- errors = [
2553
- {
2554
- message: "An unexpected error occurred"
2555
- }
2556
- ];
2379
+ detail = "An unexpected error occurred";
2557
2380
  }
2558
2381
  const problemDetails = {
2382
+ type,
2559
2383
  title: getHttpStatusTitle(status),
2560
2384
  status,
2385
+ ...label && {
2386
+ label
2387
+ },
2561
2388
  detail,
2389
+ instance: request.url,
2562
2390
  errors
2563
2391
  };
2564
- response.status(status).send(problemDetails);
2392
+ response.header("Content-Type", "application/problem+json").status(status).send(problemDetails);
2565
2393
  }
2566
2394
  };
2567
2395
  HttpExceptionFilter = _ts_decorate12([
2568
2396
  Catch()
2569
2397
  ], HttpExceptionFilter);
2570
2398
 
2571
- // src/http/http.module.ts
2572
- import { Module as Module4 } from "@nestjs/common";
2573
-
2574
- // src/http/guards/csrf.guard.ts
2575
- import { ForbiddenException as ForbiddenException3, Injectable as Injectable9, Logger as Logger11 } from "@nestjs/common";
2576
- import { Reflector as Reflector5 } from "@nestjs/core";
2577
- function _ts_decorate13(decorators, target, key, desc) {
2578
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2579
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2580
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2581
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2582
- }
2583
- __name(_ts_decorate13, "_ts_decorate");
2584
- function _ts_metadata8(k, v) {
2585
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2586
- }
2587
- __name(_ts_metadata8, "_ts_metadata");
2588
- var CsrfGuard = class _CsrfGuard {
2589
- static {
2590
- __name(this, "CsrfGuard");
2591
- }
2592
- reflector;
2593
- logger = new Logger11(_CsrfGuard.name);
2594
- constructor(reflector) {
2595
- this.reflector = reflector;
2596
- }
2597
- async canActivate(context) {
2598
- const skipCsrf = this.reflector.getAllAndOverride(SKIP_CSRF_KEY, [
2599
- context.getHandler(),
2600
- context.getClass()
2601
- ]);
2602
- if (skipCsrf) {
2603
- this.logger.debug("CSRF validation skipped due to @SkipCsrf decorator");
2604
- return true;
2605
- }
2606
- const request = context.switchToHttp().getRequest();
2607
- const reply = context.switchToHttp().getResponse();
2608
- const safeMethods = [
2609
- "GET",
2610
- "HEAD",
2611
- "OPTIONS"
2612
- ];
2613
- if (safeMethods.includes(request.method)) {
2614
- return true;
2615
- }
2616
- try {
2617
- const fastifyInstance = request.server;
2618
- if (!fastifyInstance.csrfProtection) {
2619
- this.logger.error("CSRF protection plugin not found. Ensure @fastify/csrf-protection is registered.");
2620
- throw new ForbiddenException3("CSRF protection not configured");
2621
- }
2622
- await new Promise((resolve, reject) => {
2623
- fastifyInstance.csrfProtection(request, reply, (err) => {
2624
- if (err) {
2625
- reject(err);
2626
- } else {
2627
- resolve();
2628
- }
2629
- });
2630
- });
2631
- this.logger.debug(`CSRF validation successful for ${request.method} ${request.url}`);
2632
- return true;
2633
- } catch (error) {
2634
- this.logger.warn(`CSRF validation failed for ${request.method} ${request.url}: ${error instanceof Error ? error.message : "Unknown error"}`);
2635
- throw new ForbiddenException3({
2636
- errors: [
2637
- {
2638
- field: "csrf",
2639
- message: "Invalid or missing CSRF token"
2640
- }
2641
- ],
2642
- message: "CSRF validation failed"
2643
- });
2644
- }
2645
- }
2646
- };
2647
- CsrfGuard = _ts_decorate13([
2648
- Injectable9(),
2649
- _ts_metadata8("design:type", Function),
2650
- _ts_metadata8("design:paramtypes", [
2651
- typeof Reflector5 === "undefined" ? Object : Reflector5
2652
- ])
2653
- ], CsrfGuard);
2654
-
2655
- // src/http/http.module.ts
2656
- function _ts_decorate14(decorators, target, key, desc) {
2657
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2658
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2659
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2660
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2661
- }
2662
- __name(_ts_decorate14, "_ts_decorate");
2663
- var HttpModule = class {
2664
- static {
2665
- __name(this, "HttpModule");
2666
- }
2667
- };
2668
- HttpModule = _ts_decorate14([
2669
- Module4({
2670
- providers: [
2671
- CsrfGuard
2672
- ],
2673
- exports: [
2674
- CsrfGuard
2675
- ]
2676
- })
2677
- ], HttpModule);
2678
-
2679
2399
  // src/utils/phone.utils.ts
2680
2400
  var CALLING_CODE_TO_COUNTRY = {
2681
2401
  // 3-digit codes
@@ -2887,11 +2607,11 @@ function normalizePhoneNumber(phone) {
2887
2607
  __name(normalizePhoneNumber, "normalizePhoneNumber");
2888
2608
 
2889
2609
  // src/logger/interceptors/http-logger.interceptor.ts
2890
- import { Injectable as Injectable11, Optional as Optional2 } from "@nestjs/common";
2610
+ import { Injectable as Injectable10, Optional as Optional2 } from "@nestjs/common";
2891
2611
  import { catchError, tap as tap2 } from "rxjs/operators";
2892
2612
 
2893
2613
  // src/logger/services/logger.service.ts
2894
- import { Injectable as Injectable10, Optional } from "@nestjs/common";
2614
+ import { Injectable as Injectable9, Optional } from "@nestjs/common";
2895
2615
  import { createLogger, format, transports } from "winston";
2896
2616
  import DailyRotateFile from "winston-daily-rotate-file";
2897
2617
 
@@ -2929,17 +2649,17 @@ function addCorrelationIdToResponse(reply, correlationId, headerName = DEFAULT_C
2929
2649
  __name(addCorrelationIdToResponse, "addCorrelationIdToResponse");
2930
2650
 
2931
2651
  // src/logger/services/logger.service.ts
2932
- function _ts_decorate15(decorators, target, key, desc) {
2652
+ function _ts_decorate13(decorators, target, key, desc) {
2933
2653
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2934
2654
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2935
2655
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2936
2656
  return c > 3 && r && Object.defineProperty(target, key, r), r;
2937
2657
  }
2938
- __name(_ts_decorate15, "_ts_decorate");
2939
- function _ts_metadata9(k, v) {
2658
+ __name(_ts_decorate13, "_ts_decorate");
2659
+ function _ts_metadata8(k, v) {
2940
2660
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2941
2661
  }
2942
- __name(_ts_metadata9, "_ts_metadata");
2662
+ __name(_ts_metadata8, "_ts_metadata");
2943
2663
  function _ts_param4(paramIndex, decorator) {
2944
2664
  return function(target, key) {
2945
2665
  decorator(target, key, paramIndex);
@@ -3147,29 +2867,29 @@ ${trace}`;
3147
2867
  return childLogger;
3148
2868
  }
3149
2869
  };
3150
- LoggerService = _ts_decorate15([
3151
- Injectable10(),
2870
+ LoggerService = _ts_decorate13([
2871
+ Injectable9(),
3152
2872
  _ts_param4(0, Optional()),
3153
2873
  _ts_param4(1, Optional()),
3154
- _ts_metadata9("design:type", Function),
3155
- _ts_metadata9("design:paramtypes", [
2874
+ _ts_metadata8("design:type", Function),
2875
+ _ts_metadata8("design:paramtypes", [
3156
2876
  typeof LoggerModuleOptions === "undefined" ? Object : LoggerModuleOptions,
3157
2877
  typeof Logger === "undefined" ? Object : Logger
3158
2878
  ])
3159
2879
  ], LoggerService);
3160
2880
 
3161
2881
  // src/logger/interceptors/http-logger.interceptor.ts
3162
- function _ts_decorate16(decorators, target, key, desc) {
2882
+ function _ts_decorate14(decorators, target, key, desc) {
3163
2883
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3164
2884
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3165
2885
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3166
2886
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3167
2887
  }
3168
- __name(_ts_decorate16, "_ts_decorate");
3169
- function _ts_metadata10(k, v) {
2888
+ __name(_ts_decorate14, "_ts_decorate");
2889
+ function _ts_metadata9(k, v) {
3170
2890
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3171
2891
  }
3172
- __name(_ts_metadata10, "_ts_metadata");
2892
+ __name(_ts_metadata9, "_ts_metadata");
3173
2893
  function _ts_param5(paramIndex, decorator) {
3174
2894
  return function(target, key) {
3175
2895
  decorator(target, key, paramIndex);
@@ -3277,32 +2997,32 @@ var HttpLoggerInterceptor = class {
3277
2997
  }
3278
2998
  }
3279
2999
  };
3280
- HttpLoggerInterceptor = _ts_decorate16([
3281
- Injectable11(),
3000
+ HttpLoggerInterceptor = _ts_decorate14([
3001
+ Injectable10(),
3282
3002
  _ts_param5(1, Optional2()),
3283
- _ts_metadata10("design:type", Function),
3284
- _ts_metadata10("design:paramtypes", [
3003
+ _ts_metadata9("design:type", Function),
3004
+ _ts_metadata9("design:paramtypes", [
3285
3005
  typeof LoggerService === "undefined" ? Object : LoggerService,
3286
3006
  typeof HttpLoggerOptions === "undefined" ? Object : HttpLoggerOptions
3287
3007
  ])
3288
3008
  ], HttpLoggerInterceptor);
3289
3009
 
3290
3010
  // src/logger/logger.module.ts
3291
- import { Global as Global4, Logger as Logger12, Module as Module5 } from "@nestjs/common";
3011
+ import { Global as Global4, Logger as Logger11, Module as Module4 } from "@nestjs/common";
3292
3012
 
3293
3013
  // src/logger/middleware/correlation-id.middleware.ts
3294
- import { Injectable as Injectable12 } from "@nestjs/common";
3295
- function _ts_decorate17(decorators, target, key, desc) {
3014
+ import { Injectable as Injectable11 } from "@nestjs/common";
3015
+ function _ts_decorate15(decorators, target, key, desc) {
3296
3016
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3297
3017
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3298
3018
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3299
3019
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3300
3020
  }
3301
- __name(_ts_decorate17, "_ts_decorate");
3302
- function _ts_metadata11(k, v) {
3021
+ __name(_ts_decorate15, "_ts_decorate");
3022
+ function _ts_metadata10(k, v) {
3303
3023
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3304
3024
  }
3305
- __name(_ts_metadata11, "_ts_metadata");
3025
+ __name(_ts_metadata10, "_ts_metadata");
3306
3026
  var CorrelationIdMiddleware = class {
3307
3027
  static {
3308
3028
  __name(this, "CorrelationIdMiddleware");
@@ -3345,22 +3065,22 @@ var CorrelationIdMiddleware = class {
3345
3065
  }
3346
3066
  }
3347
3067
  };
3348
- CorrelationIdMiddleware = _ts_decorate17([
3349
- Injectable12(),
3350
- _ts_metadata11("design:type", Function),
3351
- _ts_metadata11("design:paramtypes", [
3068
+ CorrelationIdMiddleware = _ts_decorate15([
3069
+ Injectable11(),
3070
+ _ts_metadata10("design:type", Function),
3071
+ _ts_metadata10("design:paramtypes", [
3352
3072
  typeof CorrelationIdMiddlewareOptions === "undefined" ? Object : CorrelationIdMiddlewareOptions
3353
3073
  ])
3354
3074
  ], CorrelationIdMiddleware);
3355
3075
 
3356
3076
  // src/logger/logger.module.ts
3357
- function _ts_decorate18(decorators, target, key, desc) {
3077
+ function _ts_decorate16(decorators, target, key, desc) {
3358
3078
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3359
3079
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3360
3080
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3361
3081
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3362
3082
  }
3363
- __name(_ts_decorate18, "_ts_decorate");
3083
+ __name(_ts_decorate16, "_ts_decorate");
3364
3084
  var LOGGER_MODULE_OPTIONS = Symbol("LOGGER_MODULE_OPTIONS");
3365
3085
  var DEFAULT_LOGGER_OPTIONS = {
3366
3086
  provider: "winston",
@@ -3449,9 +3169,9 @@ function mergeWithDefaults(options = {}) {
3449
3169
  __name(mergeWithDefaults, "mergeWithDefaults");
3450
3170
  function createDefaultLoggerProvider(options) {
3451
3171
  return {
3452
- provide: Logger12,
3172
+ provide: Logger11,
3453
3173
  useFactory: /* @__PURE__ */ __name(() => {
3454
- const logger = new Logger12();
3174
+ const logger = new Logger11();
3455
3175
  if (options.level && typeof logger.setLogLevels === "function") {
3456
3176
  const levels = getLevelsUpTo(options.level);
3457
3177
  logger.setLogLevels(levels);
@@ -3481,7 +3201,7 @@ function createLoggerProviders(options = {}) {
3481
3201
  inject: [
3482
3202
  LOGGER_MODULE_OPTIONS,
3483
3203
  {
3484
- token: Logger12,
3204
+ token: Logger11,
3485
3205
  optional: true
3486
3206
  }
3487
3207
  ]
@@ -3632,10 +3352,10 @@ var LoggerModule = class _LoggerModule {
3632
3352
  ...asyncProviders,
3633
3353
  // Default logger provider
3634
3354
  {
3635
- provide: Logger12,
3355
+ provide: Logger11,
3636
3356
  useFactory: /* @__PURE__ */ __name((opts) => {
3637
3357
  if (opts.provider === "default") {
3638
- const logger = new Logger12();
3358
+ const logger = new Logger11();
3639
3359
  if (opts.level && typeof logger.setLogLevels === "function") {
3640
3360
  const levels = getLevelsUpTo(opts.level);
3641
3361
  logger.setLogLevels(levels);
@@ -3657,7 +3377,7 @@ var LoggerModule = class _LoggerModule {
3657
3377
  inject: [
3658
3378
  LOGGER_MODULE_OPTIONS,
3659
3379
  {
3660
- token: Logger12,
3380
+ token: Logger11,
3661
3381
  optional: true
3662
3382
  }
3663
3383
  ]
@@ -3763,15 +3483,14 @@ var LoggerModule = class _LoggerModule {
3763
3483
  throw new Error("LoggerModule.forRootAsync() requires one of: useFactory, useClass, or useExisting");
3764
3484
  }
3765
3485
  };
3766
- LoggerModule = _ts_decorate18([
3486
+ LoggerModule = _ts_decorate16([
3767
3487
  Global4(),
3768
- Module5({})
3488
+ Module4({})
3769
3489
  ], LoggerModule);
3770
3490
  export {
3771
3491
  AuthConfigModule,
3772
3492
  BadGatewayException,
3773
3493
  BadRequestException,
3774
- BaseFieldException,
3775
3494
  ConflictException,
3776
3495
  CorrelationIdMiddleware,
3777
3496
  DEFAULT_CORRELATION_HEADER,
@@ -3780,7 +3499,7 @@ export {
3780
3499
  GoneException,
3781
3500
  HttpExceptionFilter,
3782
3501
  HttpLoggerInterceptor,
3783
- HttpModule,
3502
+ HttpProblemException,
3784
3503
  InternalServerErrorException3 as InternalServerErrorException,
3785
3504
  LOGGER_MODULE_OPTIONS,
3786
3505
  LoggerModule,