@talkplay/shared-types 1.0.7 → 1.0.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.d.mts CHANGED
@@ -247,10 +247,28 @@ type AddressEntity = {
247
247
  state: BrStatesEnum;
248
248
  };
249
249
 
250
+ declare enum TkplayErrorNamesEnum {
251
+ EFI_ERROR = "EfiError",// 400
252
+ BILLING_ERROR = "BillingError",// 402
253
+ BAD_REQUEST = "BadRequest",// 400
254
+ UNAUTHORIZED = "Unauthorized",// 401
255
+ FORBIDDEN = "Forbidden",// 403
256
+ NOT_FOUND = "NotFound",// 404
257
+ METHOD_NOT_ALLOWED = "MethodNotAllowed",// 405
258
+ CONFLICT = "Conflict",// 409
259
+ UNPROCESSABLE_ENTITY = "UnprocessableEntity",// 422
260
+ TOO_MANY_REQUESTS = "TooManyRequests",// 429
261
+ INTERNAL_SERVER_ERROR = "InternalServerError",// 500
262
+ NOT_IMPLEMENTED = "NotImplemented",// 501
263
+ BAD_GATEWAY = "BadGateway",// 502
264
+ SERVICE_UNAVAILABLE = "ServiceUnavailable",// 503
265
+ GATEWAY_TIMEOUT = "GatewayTimeout"
266
+ }
267
+
250
268
  type TkplayErrorEntity = {
251
- httpCode: 400 | 401 | 402 | 404 | 500;
252
269
  message: string;
253
- name: "BadRequestError" | "NotFoundError" | "UnauthorizedError" | "ForbiddenError";
270
+ name: `${TkplayErrorNamesEnum}`;
271
+ httpCode: 400 | 401 | 402 | 403 | 404 | 405 | 409 | 422 | 429 | 500 | 501 | 502 | 503 | 504;
254
272
  };
255
273
 
256
274
  type RadioContractEntity = BaseEntity & {
package/dist/index.d.ts CHANGED
@@ -247,10 +247,28 @@ type AddressEntity = {
247
247
  state: BrStatesEnum;
248
248
  };
249
249
 
250
+ declare enum TkplayErrorNamesEnum {
251
+ EFI_ERROR = "EfiError",// 400
252
+ BILLING_ERROR = "BillingError",// 402
253
+ BAD_REQUEST = "BadRequest",// 400
254
+ UNAUTHORIZED = "Unauthorized",// 401
255
+ FORBIDDEN = "Forbidden",// 403
256
+ NOT_FOUND = "NotFound",// 404
257
+ METHOD_NOT_ALLOWED = "MethodNotAllowed",// 405
258
+ CONFLICT = "Conflict",// 409
259
+ UNPROCESSABLE_ENTITY = "UnprocessableEntity",// 422
260
+ TOO_MANY_REQUESTS = "TooManyRequests",// 429
261
+ INTERNAL_SERVER_ERROR = "InternalServerError",// 500
262
+ NOT_IMPLEMENTED = "NotImplemented",// 501
263
+ BAD_GATEWAY = "BadGateway",// 502
264
+ SERVICE_UNAVAILABLE = "ServiceUnavailable",// 503
265
+ GATEWAY_TIMEOUT = "GatewayTimeout"
266
+ }
267
+
250
268
  type TkplayErrorEntity = {
251
- httpCode: 400 | 401 | 402 | 404 | 500;
252
269
  message: string;
253
- name: "BadRequestError" | "NotFoundError" | "UnauthorizedError" | "ForbiddenError";
270
+ name: `${TkplayErrorNamesEnum}`;
271
+ httpCode: 400 | 401 | 402 | 403 | 404 | 405 | 409 | 422 | 429 | 500 | 501 | 502 | 503 | 504;
254
272
  };
255
273
 
256
274
  type RadioContractEntity = BaseEntity & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkplay/shared-types",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",