@t0.labs/daxta 0.2.0
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/README.md +40 -0
- package/assets/favicon.png +0 -0
- package/assets/viewer.html +1835 -0
- package/bin/daxta.js +2 -0
- package/dist/build/build-spec.d.ts +28 -0
- package/dist/build/build-spec.js +704 -0
- package/dist/build/incremental.d.ts +12 -0
- package/dist/build/incremental.js +121 -0
- package/dist/call/index.d.ts +24 -0
- package/dist/call/index.js +204 -0
- package/dist/catalog/index.d.ts +27 -0
- package/dist/catalog/index.js +111 -0
- package/dist/cli/install.d.ts +6 -0
- package/dist/cli/install.js +333 -0
- package/dist/cli/main.d.ts +1 -0
- package/dist/cli/main.js +102 -0
- package/dist/config.d.ts +31 -0
- package/dist/config.js +106 -0
- package/dist/fields/dto-fields.d.ts +4 -0
- package/dist/fields/dto-fields.js +372 -0
- package/dist/fields/export-fields.d.ts +23 -0
- package/dist/fields/export-fields.js +218 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +42 -0
- package/dist/jest/global-setup.d.ts +1 -0
- package/dist/jest/global-setup.js +7 -0
- package/dist/jest/global-teardown.d.ts +1 -0
- package/dist/jest/global-teardown.js +20 -0
- package/dist/jest/reporter.d.ts +7 -0
- package/dist/jest/reporter.js +29 -0
- package/dist/path.util.d.ts +6 -0
- package/dist/path.util.js +108 -0
- package/dist/recorder/index.d.ts +15 -0
- package/dist/recorder/index.js +176 -0
- package/dist/register.d.ts +1 -0
- package/dist/register.js +27 -0
- package/dist/serve/index.d.ts +9 -0
- package/dist/serve/index.js +126 -0
- package/dist/serve/middleware.d.ts +38 -0
- package/dist/serve/middleware.js +131 -0
- package/dist/serve/paths.d.ts +7 -0
- package/dist/serve/paths.js +66 -0
- package/dist/serve/proxy.d.ts +16 -0
- package/dist/serve/proxy.js +52 -0
- package/dist/serve/spec-utils.d.ts +2 -0
- package/dist/serve/spec-utils.js +27 -0
- package/dist/setup.d.ts +1 -0
- package/dist/setup.js +7 -0
- package/package.json +75 -0
package/bin/daxta.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RecordedHit } from '../recorder';
|
|
2
|
+
export type Scenario = {
|
|
3
|
+
name: string;
|
|
4
|
+
group: string;
|
|
5
|
+
status: number;
|
|
6
|
+
pathParams?: Record<string, string>;
|
|
7
|
+
query?: Record<string, string>;
|
|
8
|
+
headers?: Record<string, string>;
|
|
9
|
+
reqBody?: unknown;
|
|
10
|
+
resBody?: unknown;
|
|
11
|
+
};
|
|
12
|
+
export type BuildResult = {
|
|
13
|
+
skipped: boolean;
|
|
14
|
+
reason?: string;
|
|
15
|
+
hits: number;
|
|
16
|
+
operations: number;
|
|
17
|
+
updated: number;
|
|
18
|
+
unchanged: number;
|
|
19
|
+
changed: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare function loadHits(): RecordedHit[];
|
|
22
|
+
export declare function buildDaxtaSpec(options?: {
|
|
23
|
+
silent?: boolean;
|
|
24
|
+
requireHits?: boolean;
|
|
25
|
+
html?: boolean;
|
|
26
|
+
}): BuildResult;
|
|
27
|
+
/** @deprecated Use `buildDaxtaSpec` */
|
|
28
|
+
export declare const buildOpenApi: typeof buildDaxtaSpec;
|