From 697e1453101a1c4221a241485ec322da483c4d0c Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 3 Feb 2024 20:24:11 +0100 Subject: [PATCH] fix(core): update --- package.json | 1 + pnpm-lock.yaml | 4 +++- ts/00_commitinfo_data.ts | 2 +- ts/plugins.ts | 7 +++++++ ts/requests/index.ts | 4 ++++ ts/requests/log.ts | 13 +++++++++++++ 6 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 ts/requests/log.ts diff --git a/package.json b/package.json index f5d413d..79a291d 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ }, "dependencies": { "@apiglobal/typedrequest-interfaces": "^2.0.1", + "@push.rocks/smartlog-interfaces": "^3.0.0", "@tsclass/tsclass": "^4.0.46" }, "browserslist": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ef7cdaf..68b1767 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ dependencies: '@apiglobal/typedrequest-interfaces': specifier: ^2.0.1 version: 2.0.1 + '@push.rocks/smartlog-interfaces': + specifier: ^3.0.0 + version: 3.0.0 '@tsclass/tsclass': specifier: ^4.0.46 version: 4.0.46 @@ -748,7 +751,6 @@ packages: resolution: {integrity: sha512-dfRqiSolGQwaF9gWmkixWOoXZxcWBjK3u6A1CpcfhCbVr2VSUMIrZ5t74/DgdfedsTrhDqoD0NGezsMXF2pFHQ==} dependencies: '@apiglobal/typedrequest-interfaces': 2.0.1 - dev: true /@push.rocks/smartlog@3.0.3: resolution: {integrity: sha512-E4UUSdbrf0TdSqI7LrUa3jgYQGKT6+ybSHuRcopFDt0W2/tBpY+/vPyAApJIa8iGFKJoi3oSTgYJbK90SwQwKg==} diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 7065b8c..e5dfe72 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@serve.zone/interfaces', - version: '1.0.15', + version: '1.0.16', description: 'interfaces for working with containers' } diff --git a/ts/plugins.ts b/ts/plugins.ts index ccea953..192724a 100644 --- a/ts/plugins.ts +++ b/ts/plugins.ts @@ -5,6 +5,13 @@ export { typedrequestInterfaces } +// @push.rocks scope +import * as smartlogInterfaces from '@push.rocks/smartlog-interfaces'; + +export { + smartlogInterfaces, +} + // tsclass scope import * as tsclass from '@tsclass/tsclass'; diff --git a/ts/requests/index.ts b/ts/requests/index.ts index 0fb6f4a..3d3737e 100644 --- a/ts/requests/index.ts +++ b/ts/requests/index.ts @@ -4,6 +4,8 @@ import * as certificateRequests from './certificate.js'; import * as clusterRequests from './cluster.js'; import * as configRequests from './config.js'; import * as identityRequests from './identity.js'; +import * as informRequests from './inform.js'; +import * as logRequests from './log.js'; import * as networkRequests from './network.js'; import * as routingRequests from './routing.js'; import * as secretRequests from './secret.js'; @@ -16,6 +18,8 @@ export { clusterRequests as cluster, configRequests as config, identityRequests as identity, + informRequests as inform, + logRequests as log, networkRequests as network, routingRequests as routing, secretRequests as secret, diff --git a/ts/requests/log.ts b/ts/requests/log.ts new file mode 100644 index 0000000..5c49e5a --- /dev/null +++ b/ts/requests/log.ts @@ -0,0 +1,13 @@ +import * as plugins from '../plugins.js'; + +export interface IRequest_Log extends plugins.typedrequestInterfaces.implementsTR< + plugins.typedrequestInterfaces.ITypedRequest, + IRequest_Log +> { + method: 'log'; + request: { + authToken: string; + logPackages: plugins.smartlogInterfaces.ILogPackage[]; + }, + response: {}; +} \ No newline at end of file