pocketbase-zod-schema 0.2.2 → 0.2.4

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 (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cli/index.cjs +52 -1
  3. package/dist/cli/index.cjs.map +1 -1
  4. package/dist/cli/index.js +52 -1
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/cli/migrate.cjs +52 -1
  7. package/dist/cli/migrate.cjs.map +1 -1
  8. package/dist/cli/migrate.js +52 -1
  9. package/dist/cli/migrate.js.map +1 -1
  10. package/dist/index.cjs +658 -690
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +1 -3
  13. package/dist/index.d.ts +1 -3
  14. package/dist/index.js +658 -683
  15. package/dist/index.js.map +1 -1
  16. package/dist/migration/generator.cjs +52 -1
  17. package/dist/migration/generator.cjs.map +1 -1
  18. package/dist/migration/generator.d.cts +0 -7
  19. package/dist/migration/generator.d.ts +0 -7
  20. package/dist/migration/generator.js +52 -1
  21. package/dist/migration/generator.js.map +1 -1
  22. package/dist/migration/index.cjs +52 -1
  23. package/dist/migration/index.cjs.map +1 -1
  24. package/dist/migration/index.js +52 -1
  25. package/dist/migration/index.js.map +1 -1
  26. package/dist/migration/snapshot.cjs.map +1 -1
  27. package/dist/migration/snapshot.js.map +1 -1
  28. package/dist/mutator.cjs +2 -98
  29. package/dist/mutator.cjs.map +1 -1
  30. package/dist/mutator.d.cts +4 -31
  31. package/dist/mutator.d.ts +4 -31
  32. package/dist/mutator.js +2 -98
  33. package/dist/mutator.js.map +1 -1
  34. package/dist/schema.cjs +0 -78
  35. package/dist/schema.cjs.map +1 -1
  36. package/dist/schema.d.cts +0 -1
  37. package/dist/schema.d.ts +0 -1
  38. package/dist/schema.js +1 -72
  39. package/dist/schema.js.map +1 -1
  40. package/package.json +1 -6
  41. package/dist/types.cjs +0 -4
  42. package/dist/types.cjs.map +0 -1
  43. package/dist/types.d.cts +0 -14
  44. package/dist/types.d.ts +0 -14
  45. package/dist/types.js +0 -3
  46. package/dist/types.js.map +0 -1
  47. package/dist/user-BnFWg5tw.d.cts +0 -161
  48. package/dist/user-BnFWg5tw.d.ts +0 -161
package/dist/index.d.cts CHANGED
@@ -1,9 +1,7 @@
1
1
  export { StatusEnum, StatusEnumType } from './enums.cjs';
2
- export { UserMutator } from './mutator.cjs';
3
- export { ProjectInputType, ProjectType, TypedPocketBase, UserInputType, UserType } from './types.cjs';
2
+ export { BaseMutator, MutatorOptions } from './mutator.cjs';
4
3
  export { CollectionConfig, PermissionTemplates, PermissionValidationResult, RelationConfig, RelationField, RelationsConfig, RelationsField, baseImageFileSchema, baseSchema, baseSchemaWithTimestamps, boolField, createPermissions, dateField, defineCollection, editorField, emailField, extractRelationMetadata, fileField, filesField, geoPointField, inputImageFileSchema, isPermissionSchema, isTemplateConfig, jsonField, mergePermissions, numberField, omitImageFilesSchema, resolveTemplate, selectField, textField, urlField, validatePermissionConfig, validateRuleExpression, withIndexes, withPermissions } from './schema.cjs';
5
4
  export { A as APIRuleType, P as PermissionSchema, a as PermissionTemplate, b as PermissionTemplateConfig, R as RuleExpression } from './permissions-ZHafVSIx.cjs';
6
- export { P as ProjectCollection, a as ProjectInputSchema, b as ProjectSchema, U as UserCollection, d as UserCollectionSchema, c as UserInputSchema, e as UserSchema } from './user-BnFWg5tw.cjs';
7
5
  export { SchemaAnalyzer, SchemaAnalyzerConfig, buildFieldDefinition, buildSchemaDefinition, convertZodSchemaToCollectionSchema, discoverSchemaFiles, extractFieldDefinitions, extractIndexes, extractSchemaDefinitions, getCollectionNameFromFile, importSchemaModule, isAuthCollection, parseSchemaFiles, selectSchemaForCollection } from './migration/analyzer.cjs';
8
6
  export { SnapshotConfig, SnapshotManager, convertPocketBaseMigration, findLatestSnapshot, getSnapshotPath, getSnapshotVersion, loadBaseMigration, loadSnapshot, loadSnapshotIfExists, loadSnapshotWithMigrations, mergeSnapshots, saveSnapshot, snapshotExists, validateSnapshot } from './migration/snapshot.cjs';
9
7
  export { ChangeSummary, DestructiveChange, DiffEngine, DiffEngineConfig, aggregateChanges, categorizeChangesBySeverity, compare, compareFieldConstraints, compareFieldOptions, compareFieldTypes, comparePermissions, compareRelationConfigurations, detectDestructiveChanges, detectFieldChanges, filterSystemCollections, findNewCollections, findNewFields, findRemovedCollections, findRemovedFields, generateChangeSummary, getUsersSystemFields, isSystemCollection, matchCollectionsByName, matchFieldsByName, requiresForceFlag } from './migration/diff.cjs';
package/dist/index.d.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  export { StatusEnum, StatusEnumType } from './enums.js';
2
- export { UserMutator } from './mutator.js';
3
- export { ProjectInputType, ProjectType, TypedPocketBase, UserInputType, UserType } from './types.js';
2
+ export { BaseMutator, MutatorOptions } from './mutator.js';
4
3
  export { CollectionConfig, PermissionTemplates, PermissionValidationResult, RelationConfig, RelationField, RelationsConfig, RelationsField, baseImageFileSchema, baseSchema, baseSchemaWithTimestamps, boolField, createPermissions, dateField, defineCollection, editorField, emailField, extractRelationMetadata, fileField, filesField, geoPointField, inputImageFileSchema, isPermissionSchema, isTemplateConfig, jsonField, mergePermissions, numberField, omitImageFilesSchema, resolveTemplate, selectField, textField, urlField, validatePermissionConfig, validateRuleExpression, withIndexes, withPermissions } from './schema.js';
5
4
  export { A as APIRuleType, P as PermissionSchema, a as PermissionTemplate, b as PermissionTemplateConfig, R as RuleExpression } from './permissions-ZHafVSIx.js';
6
- export { P as ProjectCollection, a as ProjectInputSchema, b as ProjectSchema, U as UserCollection, d as UserCollectionSchema, c as UserInputSchema, e as UserSchema } from './user-BnFWg5tw.js';
7
5
  export { SchemaAnalyzer, SchemaAnalyzerConfig, buildFieldDefinition, buildSchemaDefinition, convertZodSchemaToCollectionSchema, discoverSchemaFiles, extractFieldDefinitions, extractIndexes, extractSchemaDefinitions, getCollectionNameFromFile, importSchemaModule, isAuthCollection, parseSchemaFiles, selectSchemaForCollection } from './migration/analyzer.js';
8
6
  export { SnapshotConfig, SnapshotManager, convertPocketBaseMigration, findLatestSnapshot, getSnapshotPath, getSnapshotVersion, loadBaseMigration, loadSnapshot, loadSnapshotIfExists, loadSnapshotWithMigrations, mergeSnapshots, saveSnapshot, snapshotExists, validateSnapshot } from './migration/snapshot.js';
9
7
  export { ChangeSummary, DestructiveChange, DiffEngine, DiffEngineConfig, aggregateChanges, categorizeChangesBySeverity, compare, compareFieldConstraints, compareFieldOptions, compareFieldTypes, comparePermissions, compareRelationConfigurations, detectDestructiveChanges, detectFieldChanges, filterSystemCollections, findNewCollections, findNewFields, findRemovedCollections, findRemovedFields, generateChangeSummary, getUsersSystemFields, isSystemCollection, matchCollectionsByName, matchFieldsByName, requiresForceFlag } from './migration/diff.js';