@zuplo/openapi-tools 0.0.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 +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces.d.ts +40 -0
- package/dist/interfaces.d.ts.map +1 -0
- package/dist/interfaces.js +12 -0
- package/dist/interfaces.js.map +1 -0
- package/package.json +35 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type DeploymentStageName = "api" | "dev-portal";
|
|
2
|
+
export type LogLevel = keyof Pick<Logger, "debug" | "info" | "warn" | "error">;
|
|
3
|
+
interface LogFunction {
|
|
4
|
+
(obj: unknown, msg?: string, ...args: any[]): void;
|
|
5
|
+
(msg: string, ...args: any[]): void;
|
|
6
|
+
}
|
|
7
|
+
export interface Logger {
|
|
8
|
+
debug: LogFunction;
|
|
9
|
+
info: LogFunction;
|
|
10
|
+
warn: LogFunction;
|
|
11
|
+
error: LogFunction;
|
|
12
|
+
child?(bindings: Record<string, any>): Logger;
|
|
13
|
+
}
|
|
14
|
+
export interface BuildLogFn {
|
|
15
|
+
(message: string): void;
|
|
16
|
+
}
|
|
17
|
+
export type BuildLogLine = [
|
|
18
|
+
timestamp: string,
|
|
19
|
+
severity: string,
|
|
20
|
+
message: string,
|
|
21
|
+
status: string,
|
|
22
|
+
logId: string
|
|
23
|
+
];
|
|
24
|
+
export interface StageOutputLogger {
|
|
25
|
+
info: BuildLogFn;
|
|
26
|
+
warn: BuildLogFn;
|
|
27
|
+
error: BuildLogFn;
|
|
28
|
+
}
|
|
29
|
+
export interface OutputLogger {
|
|
30
|
+
child(name: DeploymentStageName): StageOutputLogger;
|
|
31
|
+
}
|
|
32
|
+
export declare class SilentOutput implements OutputLogger {
|
|
33
|
+
child: () => {
|
|
34
|
+
info: () => void;
|
|
35
|
+
warn: () => void;
|
|
36
|
+
error: () => void;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAIA,KAAK,mBAAmB,GAAG,KAAK,GAAG,YAAY,CAAC;AAEhD,MAAM,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAE/E,UAAU,WAAW;IACnB,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACnD,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;CACrC;AACD,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC;CAC/C;AAED,MAAM,WAAW,UAAU;IACzB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,MAAM;IACf,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;CACd,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,IAAI,EAAE,mBAAmB,GAAG,iBAAiB,CAAC;CACrD;AAED,qBAAa,YAAa,YAAW,YAAY;IAC/C,KAAK;;;;MAMF;CACJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
/* eslint-disable no-console */
|
|
3
|
+
export class SilentOutput {
|
|
4
|
+
child = () => ({
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
6
|
+
info: () => { },
|
|
7
|
+
warn: () => { },
|
|
8
|
+
error: () => { },
|
|
9
|
+
/* eslint-enable @typescript-eslint/no-empty-function */
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=interfaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,+BAA+B;AAyC/B,MAAM,OAAO,YAAY;IACvB,KAAK,GAAG,GAAG,EAAE,CAAC,CAAC;QACb,yDAAyD;QACzD,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;QACd,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;QACd,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC;QACf,wDAAwD;KACzD,CAAC,CAAC;CACJ"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zuplo/openapi-tools",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"version": "0.0.0",
|
|
6
|
+
"description": "Tooling for OpenAPI files",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/zuplo/core"
|
|
10
|
+
},
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist/**/*",
|
|
19
|
+
"*.js",
|
|
20
|
+
"*.d.ts"
|
|
21
|
+
],
|
|
22
|
+
"author": "Zuplo",
|
|
23
|
+
"license": "Copyright 2021",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc --build"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/chai": "^5.0.0",
|
|
29
|
+
"@types/mocha": "^10.0.7",
|
|
30
|
+
"@types/node": "^20.14.8",
|
|
31
|
+
"chai": "^5.1.1",
|
|
32
|
+
"mocha": "^10.7.3",
|
|
33
|
+
"typescript": "^5.6.2"
|
|
34
|
+
}
|
|
35
|
+
}
|