@seamapi/cli 0.8.0 → 0.9.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/bin/cli.js +10 -1
- package/bin/cli.js.map +1 -1
- package/lib/blueprint.d.ts +2 -1
- package/lib/blueprint.js +171 -26
- package/lib/blueprint.js.map +1 -1
- package/lib/get-api-blueprint.d.ts +4 -1
- package/lib/get-api-blueprint.js +3 -4
- package/lib/get-api-blueprint.js.map +1 -1
- package/lib/version.d.ts +3 -1
- package/lib/version.js +4 -1
- package/lib/version.js.map +1 -1
- package/package.json +4 -3
- package/src/bin/cli.ts +11 -1
- package/src/lib/blueprint.ts +228 -28
- package/src/lib/get-api-blueprint.ts +7 -3
- package/src/lib/version.ts +4 -1
|
@@ -5,15 +5,19 @@ import { getServer } from './get-server.js'
|
|
|
5
5
|
|
|
6
6
|
export type ApiBlueprint = Blueprint
|
|
7
7
|
|
|
8
|
+
export interface GetApiBlueprintOptions {
|
|
9
|
+
update?: boolean
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const getApiBlueprint = async (
|
|
9
13
|
useRemoteDefinitions: boolean,
|
|
14
|
+
options: GetApiBlueprintOptions = {},
|
|
10
15
|
): Promise<ApiBlueprint> => {
|
|
11
16
|
// Remote definitions describe whatever the server is currently running, so
|
|
12
|
-
// build them directly from the server's OpenAPI document.
|
|
13
|
-
// does not load @seamapi/types.
|
|
17
|
+
// build them directly from the server's OpenAPI document.
|
|
14
18
|
if (useRemoteDefinitions) return await createRemoteBlueprint()
|
|
15
19
|
|
|
16
|
-
return await getBlueprint()
|
|
20
|
+
return await getBlueprint(options)
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
const createRemoteBlueprint = async (): Promise<Blueprint> => {
|
package/src/lib/version.ts
CHANGED