@huaqiu/dsh-artifacts 0.3.3 → 0.3.7
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/lib/index.d.mts +8 -2
- package/lib/index.mjs +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
package/lib/index.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { ArtifactMeta, ArtifactType, CreateArtifactInput, CreateArtifactResult, HuaqiuArtifacts } from "./service.mjs";
|
|
1
|
+
import { ArtifactMeta, ArtifactType, CreateArtifactInput, CreateArtifactResult, HuaqiuArtifactService, HuaqiuArtifacts } from "./service.mjs";
|
|
2
2
|
import { Context } from "@deepseek-ai/cordis";
|
|
3
|
+
import { IncomingMessage, ServerResponse } from "node:http";
|
|
4
|
+
//#region src/routes.d.ts
|
|
5
|
+
declare const ARTIFACTS_ROUTE_PREFIX = "/api/v1/huaqiu/artifacts";
|
|
6
|
+
type ArtifactsHandler = (req: IncomingMessage, res: ServerResponse) => Promise<void> | void;
|
|
7
|
+
declare function createArtifactsHandler(service: HuaqiuArtifacts): ArtifactsHandler;
|
|
8
|
+
//#endregion
|
|
3
9
|
//#region src/index.d.ts
|
|
4
10
|
declare const name = "@huaqiu/dsh-artifacts";
|
|
5
11
|
declare const inject: readonly ["webServer"];
|
|
@@ -14,4 +20,4 @@ declare module '@deepseek-ai/cordis' {
|
|
|
14
20
|
}
|
|
15
21
|
declare function apply(ctx: Context, config?: HuaqiuArtifactsConfig): void;
|
|
16
22
|
//#endregion
|
|
17
|
-
export { type ArtifactMeta, type ArtifactType, type CreateArtifactInput, type CreateArtifactResult, type HuaqiuArtifacts, HuaqiuArtifactsConfig, apply, inject, name };
|
|
23
|
+
export { ARTIFACTS_ROUTE_PREFIX, type ArtifactMeta, type ArtifactType, type ArtifactsHandler, type CreateArtifactInput, type CreateArtifactResult, HuaqiuArtifactService, type HuaqiuArtifacts, HuaqiuArtifactsConfig, apply, createArtifactsHandler, inject, name };
|
package/lib/index.mjs
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -17,6 +17,8 @@ export type {
|
|
|
17
17
|
CreateArtifactResult,
|
|
18
18
|
HuaqiuArtifacts,
|
|
19
19
|
} from './service.js'
|
|
20
|
+
export { HuaqiuArtifactService } from './service.js'
|
|
21
|
+
export { ARTIFACTS_ROUTE_PREFIX, createArtifactsHandler, type ArtifactsHandler } from './routes.js'
|
|
20
22
|
|
|
21
23
|
export const name = '@huaqiu/dsh-artifacts'
|
|
22
24
|
export const inject = ['webServer'] as const
|