Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gtsc/api-models

Package Overview
Dependencies
Maintainers
0
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gtsc/api-models - npm Package Compare versions

Comparing version 0.0.3-next.25 to 0.0.3-next.26

5

dist/types/models/responses/errors/IBadRequestErrorResponse.d.ts
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 @@ */

2

dist/types/models/responses/success/IAcceptedResponse.d.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc