@rvoh/psychic 3.0.4 → 3.0.5

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.
@@ -249,7 +249,7 @@ ${INDENT} --client-config-file=../client/app/api/backend/client.ts \\
249
249
  ${INDENT} --export-name=backendApi`)
250
250
  .option('--schema-file <schemaFile>', 'path to the OpenAPI JSON spec file generated by Psychic, e.g., ./src/openapi/openapi.json')
251
251
  .option('--output-dir <outputDir>', 'directory where @hey-api/openapi-ts will generate typed API functions, types, and schemas, e.g., ../client/app/api/backend')
252
- .option('--client-config-file <clientConfigFile>', 'path to the @hey-api/client-fetch configuration file that sets the base URL and credentials, e.g., ../client/app/api/backend/client.ts')
252
+ .option('--client-config-file <clientConfigFile>', 'path to the @hey-api/openapi-ts client configuration file that sets the base URL and credentials, e.g., ../client/app/api/backend/client.ts')
253
253
  .option('--export-name <exportName>', 'the camelCased name for the exported API module, e.g., backendApi')
254
254
  .action(async ({ schemaFile, outputDir, clientConfigFile, exportName, }) => {
255
255
  await initializePsychicApp({
@@ -46,8 +46,8 @@ If not provided, it will default to:
46
46
  What would you like the path to your clientConfigFile to be?
47
47
 
48
48
  The clientConfigFile specifies where to generate the client configuration file
49
- that configures @hey-api/client-fetch with your base URL, credentials, and
50
- other request options.
49
+ that configures the @hey-api/openapi-ts client with your base URL, credentials,
50
+ and other request options.
51
51
 
52
52
  We expect you to provide this path with the api root in mind, so you will need
53
53
  to consider how to travel to the desired filepath from within your psychic
@@ -16,7 +16,7 @@ export default async function writeClientConfigFile({ clientConfigFile }) {
16
16
  await fs.mkdir(destDir, { recursive: true });
17
17
  }
18
18
  const contents = `\
19
- import { client } from '@hey-api/client-fetch'
19
+ import { client } from './client.gen'
20
20
 
21
21
  function baseUrl() {
22
22
  // add custom code here for determining your application's baseUrl
@@ -22,6 +22,6 @@ export default async function generateOpenapiZustandBindings(options = {}) {
22
22
  const opts = await promptForOptions(options);
23
23
  await writeClientConfigFile(opts);
24
24
  await writeInitializer(opts);
25
- await DreamCLI.spawn(PackageManager.add(['@hey-api/openapi-ts', '@hey-api/client-fetch'], { dev: true }));
25
+ await DreamCLI.spawn(PackageManager.add(['@hey-api/openapi-ts'], { dev: true }));
26
26
  printFinalStepsMessage(opts);
27
27
  }
@@ -249,7 +249,7 @@ ${INDENT} --client-config-file=../client/app/api/backend/client.ts \\
249
249
  ${INDENT} --export-name=backendApi`)
250
250
  .option('--schema-file <schemaFile>', 'path to the OpenAPI JSON spec file generated by Psychic, e.g., ./src/openapi/openapi.json')
251
251
  .option('--output-dir <outputDir>', 'directory where @hey-api/openapi-ts will generate typed API functions, types, and schemas, e.g., ../client/app/api/backend')
252
- .option('--client-config-file <clientConfigFile>', 'path to the @hey-api/client-fetch configuration file that sets the base URL and credentials, e.g., ../client/app/api/backend/client.ts')
252
+ .option('--client-config-file <clientConfigFile>', 'path to the @hey-api/openapi-ts client configuration file that sets the base URL and credentials, e.g., ../client/app/api/backend/client.ts')
253
253
  .option('--export-name <exportName>', 'the camelCased name for the exported API module, e.g., backendApi')
254
254
  .action(async ({ schemaFile, outputDir, clientConfigFile, exportName, }) => {
255
255
  await initializePsychicApp({
@@ -46,8 +46,8 @@ If not provided, it will default to:
46
46
  What would you like the path to your clientConfigFile to be?
47
47
 
48
48
  The clientConfigFile specifies where to generate the client configuration file
49
- that configures @hey-api/client-fetch with your base URL, credentials, and
50
- other request options.
49
+ that configures the @hey-api/openapi-ts client with your base URL, credentials,
50
+ and other request options.
51
51
 
52
52
  We expect you to provide this path with the api root in mind, so you will need
53
53
  to consider how to travel to the desired filepath from within your psychic
@@ -16,7 +16,7 @@ export default async function writeClientConfigFile({ clientConfigFile }) {
16
16
  await fs.mkdir(destDir, { recursive: true });
17
17
  }
18
18
  const contents = `\
19
- import { client } from '@hey-api/client-fetch'
19
+ import { client } from './client.gen'
20
20
 
21
21
  function baseUrl() {
22
22
  // add custom code here for determining your application's baseUrl
@@ -22,6 +22,6 @@ export default async function generateOpenapiZustandBindings(options = {}) {
22
22
  const opts = await promptForOptions(options);
23
23
  await writeClientConfigFile(opts);
24
24
  await writeInitializer(opts);
25
- await DreamCLI.spawn(PackageManager.add(['@hey-api/openapi-ts', '@hey-api/client-fetch'], { dev: true }));
25
+ await DreamCLI.spawn(PackageManager.add(['@hey-api/openapi-ts'], { dev: true }));
26
26
  printFinalStepsMessage(opts);
27
27
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic",
4
4
  "description": "Typescript web framework",
5
- "version": "3.0.4",
5
+ "version": "3.0.5",
6
6
  "author": "RVOHealth",
7
7
  "repository": {
8
8
  "type": "git",
@@ -118,7 +118,7 @@
118
118
  "koa-conditional-get": "^3.0.0",
119
119
  "koa-passport": "^6.0.0",
120
120
  "koa-session": "^7.0.2",
121
- "kysely": "^0.28.13",
121
+ "kysely": "^0.28.14",
122
122
  "kysely-codegen": "~0.19.0",
123
123
  "luxon-jest-matchers": "^0.1.14",
124
124
  "nodemon": "^3.1.11",