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.5-next.7 to 0.0.5-next.8

dist/types/models/services/IInformationService.d.ts

2

dist/types/index.d.ts

@@ -37,3 +37,3 @@ export * from "./helpers/httpErrorHelper";

export * from "./models/services/IHealthInfo";
export * from "./models/services/IInformation";
export * from "./models/services/IInformationService";
export * from "./models/services/IServerInfo";

@@ -1,2 +0,2 @@

import type { IService } from "@gtsc/services";
import type { IComponent } from "@gtsc/core";
import type { IHttpRequestIdentity } from "../protocol/IHttpRequestIdentity";

@@ -9,3 +9,3 @@ import type { IHttpResponse } from "../protocol/IHttpResponse";

*/
export interface IHttpRestRouteProcessor extends IService {
export interface IHttpRestRouteProcessor extends IComponent {
/**

@@ -12,0 +12,0 @@ * Pre process the REST request for the specified route.

@@ -43,3 +43,3 @@ # @gtsc/api-models

- [IHealthInfo](interfaces/IHealthInfo.md)
- [IInformation](interfaces/IInformation.md)
- [IInformationService](interfaces/IInformationService.md)
- [IServerInfo](interfaces/IServerInfo.md)

@@ -46,0 +46,0 @@

@@ -7,3 +7,3 @@ # Interface: IHttpRestRouteProcessor

- `IService`
- `IComponent`

@@ -16,7 +16,7 @@ ## Properties

The name of the service.
The name of the component.
#### Inherited from
`IService.CLASS_NAME`
`IComponent.CLASS_NAME`

@@ -27,5 +27,5 @@ ## Methods

> `optional` **bootstrap**(`nodeLoggingConnectorType`?): `Promise`\<`void`\>
> `optional` **bootstrap**(`nodeLoggingConnectorType`?): `Promise`\<`boolean`\>
Bootstrap the service by creating and initializing any resources it needs.
Bootstrap the component by creating and initializing any resources it needs.

@@ -40,9 +40,9 @@ #### Parameters

`Promise`\<`void`\>
`Promise`\<`boolean`\>
Nothing.
True if the bootstrapping process was successful.
#### Inherited from
`IService.bootstrap`
`IComponent.bootstrap`

@@ -55,3 +55,3 @@ ***

The service needs to be started when the node is initialized.
The component needs to be started when the node is initialized.

@@ -62,3 +62,3 @@ #### Parameters

The identity of the node starting the service.
The identity of the node starting the component.

@@ -77,3 +77,3 @@ • **nodeLoggingConnectorType?**: `string`

`IService.start`
`IComponent.start`

@@ -86,3 +86,3 @@ ***

The service needs to be stopped when the node is closed.
The component needs to be stopped when the node is closed.

@@ -93,3 +93,3 @@ #### Parameters

The identity of the node stopping the service.
The identity of the node stopping the component.

@@ -108,3 +108,3 @@ • **nodeLoggingConnectorType?**: `string`

`IService.stop`
`IComponent.stop`

@@ -111,0 +111,0 @@ ***

{
"name": "@gtsc/api-models",
"version": "0.0.5-next.7",
"version": "0.0.5-next.8",
"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