@gtsc/api-models
Advanced tools
Comparing version 0.0.3-next.25 to 0.0.3-next.26
import type { IError } from "@gtsc/core"; | ||
import type { HttpStatusCode } from "@gtsc/web"; | ||
/** | ||
@@ -7,2 +8,6 @@ * Something went wrong with the request see the error field for more details. | ||
/** | ||
* Response status code. | ||
*/ | ||
statusCode: typeof HttpStatusCode.badRequest; | ||
/** | ||
* The body which contains the error. | ||
@@ -9,0 +14,0 @@ */ |
import type { IError } from "@gtsc/core"; | ||
import type { HttpStatusCode } from "@gtsc/web"; | ||
/** | ||
@@ -7,2 +8,6 @@ * The request resulted in a conflicting operation, see the error field for more details. | ||
/** | ||
* Response status code. | ||
*/ | ||
statusCode: typeof HttpStatusCode.conflict; | ||
/** | ||
* The body which contains the error. | ||
@@ -9,0 +14,0 @@ */ |
import type { IError } from "@gtsc/core"; | ||
import type { HttpStatusCode } from "@gtsc/web"; | ||
/** | ||
@@ -7,2 +8,6 @@ * The operation that you tried to perform is not possible, see the error field for more details. | ||
/** | ||
* Response status code. | ||
*/ | ||
statusCode: typeof HttpStatusCode.forbidden; | ||
/** | ||
* The body which contains the error. | ||
@@ -9,0 +14,0 @@ */ |
import type { IError } from "@gtsc/core"; | ||
import type { HttpStatusCode } from "@gtsc/web"; | ||
/** | ||
@@ -7,2 +8,6 @@ * The resource you tried to access does not exist, see the error field for more details. | ||
/** | ||
* Response status code. | ||
*/ | ||
statusCode: typeof HttpStatusCode.notFound; | ||
/** | ||
* The body which contains the error. | ||
@@ -9,0 +14,0 @@ */ |
import type { IError } from "@gtsc/core"; | ||
import type { HttpStatusCode } from "@gtsc/web"; | ||
/** | ||
@@ -7,2 +8,6 @@ * You are not authorized to use the API or no credentials were supplied. | ||
/** | ||
* Response status code. | ||
*/ | ||
statusCode: typeof HttpStatusCode.unauthorized; | ||
/** | ||
* The body which contains the error. | ||
@@ -9,0 +14,0 @@ */ |
import type { IError } from "@gtsc/core"; | ||
import type { HttpStatusCode } from "@gtsc/web"; | ||
/** | ||
@@ -7,2 +8,6 @@ * The operation could not be processed, see the error field for more details. | ||
/** | ||
* Response status code. | ||
*/ | ||
statusCode: typeof HttpStatusCode.unprocessableEntity; | ||
/** | ||
* The body which contains the error. | ||
@@ -9,0 +14,0 @@ */ |
@@ -9,3 +9,3 @@ import type { HttpStatusCode } from "@gtsc/web"; | ||
*/ | ||
statusCode: HttpStatusCode; | ||
statusCode: typeof HttpStatusCode.accepted; | ||
/** | ||
@@ -12,0 +12,0 @@ * Additional response headers. |
@@ -9,3 +9,3 @@ import type { HttpStatusCode } from "@gtsc/web"; | ||
*/ | ||
statusCode: HttpStatusCode; | ||
statusCode: typeof HttpStatusCode.created; | ||
/** | ||
@@ -12,0 +12,0 @@ * Additional response headers. |
@@ -9,3 +9,3 @@ import type { HttpStatusCode } from "@gtsc/web"; | ||
*/ | ||
statusCode: HttpStatusCode; | ||
statusCode: typeof HttpStatusCode.noContent; | ||
} |
@@ -9,3 +9,3 @@ import type { HttpStatusCode } from "@gtsc/web"; | ||
*/ | ||
statusCode: HttpStatusCode; | ||
statusCode: typeof HttpStatusCode.ok; | ||
} |
@@ -13,3 +13,3 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
> **statusCode**: `HttpStatusCode` | ||
> **statusCode**: `202` | ||
@@ -16,0 +16,0 @@ Response status code. |
@@ -11,2 +11,10 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
### statusCode | ||
> **statusCode**: `400` | ||
Response status code. | ||
*** | ||
### body | ||
@@ -13,0 +21,0 @@ |
@@ -11,2 +11,10 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
### statusCode | ||
> **statusCode**: `409` | ||
Response status code. | ||
*** | ||
### body | ||
@@ -13,0 +21,0 @@ |
@@ -13,3 +13,3 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
> **statusCode**: `HttpStatusCode` | ||
> **statusCode**: `201` | ||
@@ -16,0 +16,0 @@ Response status code. |
@@ -11,2 +11,10 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
### statusCode | ||
> **statusCode**: `403` | ||
Response status code. | ||
*** | ||
### body | ||
@@ -13,0 +21,0 @@ |
@@ -13,4 +13,4 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
> **statusCode**: `HttpStatusCode` | ||
> **statusCode**: `204` | ||
Response status code. |
@@ -11,2 +11,10 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
### statusCode | ||
> **statusCode**: `404` | ||
Response status code. | ||
*** | ||
### body | ||
@@ -13,0 +21,0 @@ |
@@ -13,4 +13,4 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
> **statusCode**: `HttpStatusCode` | ||
> **statusCode**: `200` | ||
Response status code. |
@@ -11,2 +11,10 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
### statusCode | ||
> **statusCode**: `401` | ||
Response status code. | ||
*** | ||
### body | ||
@@ -13,0 +21,0 @@ |
@@ -11,2 +11,10 @@ [**@gtsc/api-models**](../overview.md) • **Docs** | ||
### statusCode | ||
> **statusCode**: `422` | ||
Response status code. | ||
*** | ||
### body | ||
@@ -13,0 +21,0 @@ |
{ | ||
"name": "@gtsc/api-models", | ||
"version": "0.0.3-next.25", | ||
"version": "0.0.3-next.26", | ||
"description": "Contains models and classes for use with APIs", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53066
679