@abejarano/ts-mongodb-criteria 1.2.1

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 (46) hide show
  1. package/README.md +329 -0
  2. package/dist/AggregateRoot.d.ts +4 -0
  3. package/dist/AggregateRoot.js +6 -0
  4. package/dist/criteria/Criteria.d.ts +11 -0
  5. package/dist/criteria/Criteria.js +19 -0
  6. package/dist/criteria/Filter.d.ts +10 -0
  7. package/dist/criteria/Filter.js +24 -0
  8. package/dist/criteria/FilterField.d.ts +4 -0
  9. package/dist/criteria/FilterField.js +10 -0
  10. package/dist/criteria/FilterOperator.d.ts +18 -0
  11. package/dist/criteria/FilterOperator.js +36 -0
  12. package/dist/criteria/FilterValue.d.ts +30 -0
  13. package/dist/criteria/FilterValue.js +74 -0
  14. package/dist/criteria/Filters.d.ts +8 -0
  15. package/dist/criteria/Filters.js +16 -0
  16. package/dist/criteria/Order.d.ts +12 -0
  17. package/dist/criteria/Order.js +30 -0
  18. package/dist/criteria/OrderBy.d.ts +7 -0
  19. package/dist/criteria/OrderBy.js +17 -0
  20. package/dist/criteria/OrderType.d.ts +13 -0
  21. package/dist/criteria/OrderType.js +34 -0
  22. package/dist/criteria/Paginate.d.ts +5 -0
  23. package/dist/criteria/Paginate.js +2 -0
  24. package/dist/criteria/index.d.ts +10 -0
  25. package/dist/criteria/index.js +26 -0
  26. package/dist/exceptions/InvalidArgumentError.exception.d.ts +2 -0
  27. package/dist/exceptions/InvalidArgumentError.exception.js +6 -0
  28. package/dist/index.d.ts +3 -0
  29. package/dist/index.js +19 -0
  30. package/dist/mongo/MongoClientFactory.d.ts +17 -0
  31. package/dist/mongo/MongoClientFactory.js +49 -0
  32. package/dist/mongo/MongoCriteriaConverter.d.ts +43 -0
  33. package/dist/mongo/MongoCriteriaConverter.js +115 -0
  34. package/dist/mongo/MongoRepository.d.ts +15 -0
  35. package/dist/mongo/MongoRepository.js +95 -0
  36. package/dist/mongo/index.d.ts +3 -0
  37. package/dist/mongo/index.js +19 -0
  38. package/dist/valueObject/EnumValueObject.d.ts +7 -0
  39. package/dist/valueObject/EnumValueObject.js +16 -0
  40. package/dist/valueObject/StringValueObject.d.ts +8 -0
  41. package/dist/valueObject/StringValueObject.js +24 -0
  42. package/dist/valueObject/ValueObject.d.ts +8 -0
  43. package/dist/valueObject/ValueObject.js +23 -0
  44. package/dist/valueObject/index.d.ts +3 -0
  45. package/dist/valueObject/index.js +19 -0
  46. package/package.json +62 -0
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@abejarano/ts-mongodb-criteria",
3
+ "author": "angel bejarano / angel.bejarano@jaspesoft.com",
4
+ "version": "1.2.1",
5
+ "description": "Patrón Criteria para consultas MongoDB en TypeScript",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc -p tsconfig.json",
13
+ "clean": "rimraf dist",
14
+ "prepare": "yarn build",
15
+ "prebuild": "yarn clean",
16
+ "format": "prettier --write .",
17
+ "format:check": "prettier --check .",
18
+ "typecheck": "tsc --noEmit",
19
+ "prepack": "yarn build",
20
+ "version:patch": "npm version patch",
21
+ "version:minor": "npm version minor",
22
+ "version:major": "npm version major",
23
+ "test": "jest",
24
+ "test:watch": "jest --watch",
25
+ "test:coverage": "jest --coverage"
26
+ },
27
+ "keywords": [
28
+ "mongodb",
29
+ "criteria",
30
+ "query",
31
+ "typescript"
32
+ ],
33
+ "license": "MIT",
34
+ "devDependencies": {
35
+ "@types/mongodb": "^4.0.7",
36
+ "@types/node": "^24.5.2",
37
+ "mongodb": "^7.0.0",
38
+ "prettier": "^3.7.4",
39
+ "rimraf": "^6.1.2",
40
+ "typescript": "^5.9.3",
41
+ "semantic-release": "^24.2.9",
42
+ "@semantic-release/changelog": "^6.0.3",
43
+ "@semantic-release/git": "^10.0.1",
44
+ "jest": "^29.7.0",
45
+ "@types/jest": "^29.5.12",
46
+ "ts-jest": "^29.1.2"
47
+ },
48
+ "peerDependencies": {
49
+ "mongodb": ">=6"
50
+ },
51
+ "engines": {
52
+ "node": ">=20"
53
+ },
54
+ "repository": {
55
+ "type": "git",
56
+ "url": "git+https://github.com/abejarano/ts-mongo-criteria.git"
57
+ },
58
+ "publishConfig": {
59
+ "registry": "https://registry.npmjs.org",
60
+ "access": "public"
61
+ }
62
+ }