@pylo/node 0.0.9 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -2
  2. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -407,9 +407,14 @@ function generateEntitiesFile(entities, importSource) {
407
407
  lines.push(
408
408
  "// Auto-generated by @pylo/core codegen \u2014 DO NOT EDIT",
409
409
  "",
410
- `import type { PaginationData } from '${importSource}';`,
411
- ""
410
+ `import type { PaginationData } from '${importSource}';`
412
411
  );
412
+ const enumTypes = collectEnumTypes(entities);
413
+ if (enumTypes.length > 0) {
414
+ const names = enumTypes.map((e) => e.typeName).join(", ");
415
+ lines.push(`import type { ${names} } from './index.js';`);
416
+ }
417
+ lines.push("");
413
418
  for (const entity of entities) {
414
419
  lines.push(`export interface ${entity.pascalName} {`);
415
420
  for (const field of entity.fields) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pylo/node",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Server-side Pylo SDK with API key authentication",
5
5
  "exports": {
6
6
  ".": {
@@ -28,8 +28,8 @@
28
28
  "@types/node": "^22.15.21",
29
29
  "tsup": "^8.5.1",
30
30
  "typescript": "^5.9.3",
31
- "@pylo/core": "0.0.11",
32
- "@pylo/auth": "0.0.4"
31
+ "@pylo/core": "0.0.12",
32
+ "@pylo/auth": "0.0.5"
33
33
  },
34
34
  "license": "ISC",
35
35
  "scripts": {