@forklaunch/implementation-billing-base 0.1.6 → 0.1.8

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 (74) hide show
  1. package/lib/__test__/schemaEquality.test.js +44 -20
  2. package/lib/eject/{schemas → domain/schemas}/billingPortal.schema.ts +7 -5
  3. package/lib/eject/{schemas → domain/schemas}/checkoutSession.schema.ts +7 -5
  4. package/lib/eject/{schemas → domain/schemas}/paymentLink.schema.ts +7 -5
  5. package/lib/eject/{schemas → domain/schemas}/plan.schema.ts +5 -5
  6. package/lib/eject/{schemas → domain/schemas}/subscription.schema.ts +7 -5
  7. package/lib/eject/services/billingPortal.service.ts +10 -13
  8. package/lib/eject/services/checkoutSession.service.ts +8 -11
  9. package/lib/eject/services/paymentLink.service.ts +11 -14
  10. package/lib/eject/services/plan.service.ts +11 -14
  11. package/lib/eject/services/subscription.service.ts +15 -15
  12. package/lib/schemas/billingPortal.schema.d.ts +10 -2
  13. package/lib/schemas/billingPortal.schema.d.ts.map +1 -1
  14. package/lib/schemas/billingPortal.schema.js +3 -3
  15. package/lib/schemas/checkoutSession.schema.d.ts +10 -2
  16. package/lib/schemas/checkoutSession.schema.d.ts.map +1 -1
  17. package/lib/schemas/checkoutSession.schema.js +3 -3
  18. package/lib/schemas/paymentLink.schema.d.ts +10 -2
  19. package/lib/schemas/paymentLink.schema.d.ts.map +1 -1
  20. package/lib/schemas/paymentLink.schema.js +3 -3
  21. package/lib/schemas/plan.schema.d.ts +10 -2
  22. package/lib/schemas/plan.schema.d.ts.map +1 -1
  23. package/lib/schemas/plan.schema.js +3 -3
  24. package/lib/schemas/subscription.schema.d.ts +10 -2
  25. package/lib/schemas/subscription.schema.d.ts.map +1 -1
  26. package/lib/schemas/subscription.schema.js +3 -3
  27. package/lib/schemas/typebox/billingPortal.schema.d.ts +9 -3
  28. package/lib/schemas/typebox/billingPortal.schema.d.ts.map +1 -1
  29. package/lib/schemas/typebox/billingPortal.schema.js +5 -5
  30. package/lib/schemas/typebox/checkoutSession.schema.d.ts +9 -3
  31. package/lib/schemas/typebox/checkoutSession.schema.d.ts.map +1 -1
  32. package/lib/schemas/typebox/checkoutSession.schema.js +5 -5
  33. package/lib/schemas/typebox/paymentLink.schema.d.ts +9 -3
  34. package/lib/schemas/typebox/paymentLink.schema.d.ts.map +1 -1
  35. package/lib/schemas/typebox/paymentLink.schema.js +5 -5
  36. package/lib/schemas/typebox/plan.schema.d.ts +9 -3
  37. package/lib/schemas/typebox/plan.schema.d.ts.map +1 -1
  38. package/lib/schemas/typebox/plan.schema.js +5 -5
  39. package/lib/schemas/typebox/subscription.schema.d.ts +9 -3
  40. package/lib/schemas/typebox/subscription.schema.d.ts.map +1 -1
  41. package/lib/schemas/typebox/subscription.schema.js +5 -5
  42. package/lib/schemas/zod/billingPortal.schema.d.ts +9 -3
  43. package/lib/schemas/zod/billingPortal.schema.d.ts.map +1 -1
  44. package/lib/schemas/zod/billingPortal.schema.js +5 -5
  45. package/lib/schemas/zod/checkoutSession.schema.d.ts +9 -3
  46. package/lib/schemas/zod/checkoutSession.schema.d.ts.map +1 -1
  47. package/lib/schemas/zod/checkoutSession.schema.js +5 -5
  48. package/lib/schemas/zod/paymentLink.schema.d.ts +9 -3
  49. package/lib/schemas/zod/paymentLink.schema.d.ts.map +1 -1
  50. package/lib/schemas/zod/paymentLink.schema.js +5 -5
  51. package/lib/schemas/zod/plan.schema.d.ts +9 -3
  52. package/lib/schemas/zod/plan.schema.d.ts.map +1 -1
  53. package/lib/schemas/zod/plan.schema.js +5 -5
  54. package/lib/schemas/zod/subscription.schema.d.ts +9 -3
  55. package/lib/schemas/zod/subscription.schema.d.ts.map +1 -1
  56. package/lib/schemas/zod/subscription.schema.js +5 -5
  57. package/lib/services/billingPortal.service.d.ts +3 -3
  58. package/lib/services/billingPortal.service.d.ts.map +1 -1
  59. package/lib/services/billingPortal.service.js +11 -11
  60. package/lib/services/checkoutSession.service.d.ts +3 -3
  61. package/lib/services/checkoutSession.service.d.ts.map +1 -1
  62. package/lib/services/checkoutSession.service.js +9 -9
  63. package/lib/services/paymentLink.service.d.ts +3 -3
  64. package/lib/services/paymentLink.service.d.ts.map +1 -1
  65. package/lib/services/paymentLink.service.js +12 -12
  66. package/lib/services/plan.service.d.ts +3 -3
  67. package/lib/services/plan.service.d.ts.map +1 -1
  68. package/lib/services/plan.service.js +12 -12
  69. package/lib/services/subscription.service.d.ts +3 -3
  70. package/lib/services/subscription.service.d.ts.map +1 -1
  71. package/lib/services/subscription.service.js +14 -14
  72. package/lib/tsconfig.tsbuildinfo +1 -1
  73. package/package.json +10 -8
  74. /package/lib/eject/{schemas → domain/schemas}/index.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/implementation-billing-base",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Billing basic implementation for forklaunch",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -14,12 +14,14 @@
14
14
  "author": "Forklift Technologies, Inc.",
15
15
  "exports": {
16
16
  "./schemas": {
17
- "types": "./lib/schemas/index.d.ts",
18
- "import": "./lib/schemas/index.js"
17
+ "import": "./lib/schemas/index.js",
18
+ "require": "./lib/schemas/index.js",
19
+ "types": "./lib/schemas/index.d.ts"
19
20
  },
20
21
  "./services": {
21
- "types": "./lib/services/index.d.ts",
22
- "import": "./lib/services/index.js"
22
+ "import": "./lib/services/index.js",
23
+ "require": "./lib/services/index.js",
24
+ "types": "./lib/services/index.d.ts"
23
25
  }
24
26
  },
25
27
  "files": [
@@ -27,13 +29,13 @@
27
29
  ],
28
30
  "dependencies": {
29
31
  "@forklaunch/common": "^0.2.6",
30
- "@forklaunch/core": "^0.6.4",
32
+ "@forklaunch/core": "^0.6.6",
31
33
  "@forklaunch/validator": "^0.4.12",
32
34
  "@mikro-orm/core": "^6.4.12",
33
35
  "@sinclair/typebox": "^0.34.33",
34
36
  "ajv": "^8.17.1",
35
37
  "zod": "^3.24.2",
36
- "@forklaunch/interfaces-billing": "0.1.6"
38
+ "@forklaunch/interfaces-billing": "0.1.8"
37
39
  },
38
40
  "devDependencies": {
39
41
  "depcheck": "^1.4.7",
@@ -47,7 +49,7 @@
47
49
  "format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.{ts,tsx,json}' --write",
48
50
  "lint": "eslint . -c eslint.config.mjs",
49
51
  "lint:fix": "eslint . -c eslint.config.mjs --fix",
50
- "package:eject": "rm -rf lib/eject && mkdir -p lib/eject && cp -r schemas/zod lib/eject/schemas && cp schemas/index.ts lib/eject/schemas && cp -r services lib/eject/services && find lib/eject -type f -name '*.ts' -exec sed -i '' 's|@forklaunch/validator/zod|@{{app_name}}/core|g' {} +",
52
+ "package:eject": "./eject-package.bash",
51
53
  "publish:package": "./publish-package.bash",
52
54
  "test": "vitest --passWithNoTests"
53
55
  }
File without changes