@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.
@@ -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. This runtime path
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> => {
@@ -1,3 +1,6 @@
1
- const seamapiCliVersion = '0.8.0'
1
+ // Versions are replaced with generated values when the package is packed.
2
+ const seamapiCliVersion = '0.9.0'
3
+ const seamapiBlueprintVersion = '1.2.0'
2
4
 
5
+ export { seamapiBlueprintVersion }
3
6
  export default seamapiCliVersion