@viridial/shared 1.0.2

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/README.md +114 -0
  2. package/USER-MODULE.md +268 -0
  3. package/dist/api/auth.service.d.ts +35 -0
  4. package/dist/api/auth.service.d.ts.map +1 -0
  5. package/dist/api/auth.service.js +63 -0
  6. package/dist/api/http.client.d.ts +19 -0
  7. package/dist/api/http.client.d.ts.map +1 -0
  8. package/dist/api/http.client.js +97 -0
  9. package/dist/api/property.service.d.ts +31 -0
  10. package/dist/api/property.service.d.ts.map +1 -0
  11. package/dist/api/property.service.js +47 -0
  12. package/dist/api/user.service.d.ts +86 -0
  13. package/dist/api/user.service.d.ts.map +1 -0
  14. package/dist/api/user.service.js +145 -0
  15. package/dist/composables/useAuth.d.ts +21 -0
  16. package/dist/composables/useAuth.d.ts.map +1 -0
  17. package/dist/composables/useAuth.js +43 -0
  18. package/dist/composables/useUser.d.ts +173 -0
  19. package/dist/composables/useUser.d.ts.map +1 -0
  20. package/dist/composables/useUser.js +132 -0
  21. package/dist/constants/api.constants.d.ts +32 -0
  22. package/dist/constants/api.constants.d.ts.map +1 -0
  23. package/dist/constants/api.constants.js +35 -0
  24. package/dist/index.d.ts +19 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.js +20 -0
  27. package/dist/stores/auth.store.d.ts +75 -0
  28. package/dist/stores/auth.store.d.ts.map +1 -0
  29. package/dist/stores/auth.store.js +71 -0
  30. package/dist/stores/user.store.d.ts +748 -0
  31. package/dist/stores/user.store.d.ts.map +1 -0
  32. package/dist/stores/user.store.js +264 -0
  33. package/dist/types/api.types.d.ts +27 -0
  34. package/dist/types/api.types.d.ts.map +1 -0
  35. package/dist/types/api.types.js +4 -0
  36. package/dist/types/auth.types.d.ts +38 -0
  37. package/dist/types/auth.types.d.ts.map +1 -0
  38. package/dist/types/auth.types.js +4 -0
  39. package/dist/types/property.types.d.ts +66 -0
  40. package/dist/types/property.types.d.ts.map +1 -0
  41. package/dist/types/property.types.js +20 -0
  42. package/dist/types/user.types.d.ts +103 -0
  43. package/dist/types/user.types.d.ts.map +1 -0
  44. package/dist/types/user.types.js +21 -0
  45. package/dist/utils/token.utils.d.ts +30 -0
  46. package/dist/utils/token.utils.d.ts.map +1 -0
  47. package/dist/utils/token.utils.js +56 -0
  48. package/package.json +96 -0
package/package.json ADDED
@@ -0,0 +1,96 @@
1
+ {
2
+ "name": "@viridial/shared",
3
+ "version": "1.0.2",
4
+ "type": "module",
5
+ "description": "Shared modules for Real Estate frontend applications - Vue 3, TypeScript, Pinia, Axios",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ }
18
+ },
19
+ "./*": {
20
+ "import": {
21
+ "types": "./dist/*.d.ts",
22
+ "default": "./dist/*.js"
23
+ }
24
+ },
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "dist/**/*",
29
+ "README.md",
30
+ "USER-MODULE.md",
31
+ "package.json",
32
+ "LICENSE"
33
+ ],
34
+ "keywords": [
35
+ "vue",
36
+ "vue3",
37
+ "typescript",
38
+ "pinia",
39
+ "axios",
40
+ "real-estate",
41
+ "shared",
42
+ "modules",
43
+ "frontend",
44
+ "microservices"
45
+ ],
46
+ "author": {
47
+ "name": "Viridial Dev",
48
+ "email": "support@viridial.com"
49
+ },
50
+ "license": "MIT",
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "https://github.com/your-org/realestate.git",
54
+ "directory": "frontend/shared"
55
+ },
56
+ "bugs": {
57
+ "url": "https://github.com/your-org/realestate/issues"
58
+ },
59
+ "homepage": "https://github.com/your-org/realestate#readme",
60
+ "engines": {
61
+ "node": ">=18.0.0",
62
+ "npm": ">=9.0.0"
63
+ },
64
+ "peerDependencies": {
65
+ "axios": "^1.6.0",
66
+ "pinia": "^2.1.0",
67
+ "vue": "^3.4.0",
68
+ "vue-router": "^4.3.0"
69
+ },
70
+ "dependencies": {
71
+ "axios": "^1.6.7",
72
+ "pinia": "^2.1.7",
73
+ "vue": "^3.4.27",
74
+ "vue-router": "^4.3.0"
75
+ },
76
+ "devDependencies": {
77
+ "@types/node": "^20.19.27",
78
+ "typescript": "^5.9.3"
79
+ },
80
+ "scripts": {
81
+ "build": "tsc",
82
+ "prepublishOnly": "npm run build",
83
+ "prepack": "npm run build",
84
+ "validate": "echo 'Validating package...' && npm run build && node -e \"console.log('Package is valid')\"",
85
+ "publish:public": "npm publish --access public",
86
+ "publish:beta": "npm publish --tag beta --access public",
87
+ "version:patch": "npm version patch",
88
+ "version:minor": "npm version minor",
89
+ "version:major": "npm version major",
90
+ "clean": "rm -rf dist"
91
+ },
92
+ "publishConfig": {
93
+ "access": "public",
94
+ "registry": "https://registry.npmjs.org/"
95
+ }
96
+ }