@forklaunch/implementation-billing-base 0.1.8 → 0.1.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 (54) hide show
  1. package/lib/__test__/schemaEquality.test.d.ts +1 -1
  2. package/lib/__test__/schemaEquality.test.js +305 -146
  3. package/lib/eject/domain/schemas/billingPortal.schema.ts +1 -7
  4. package/lib/eject/domain/schemas/checkoutSession.schema.ts +1 -0
  5. package/lib/jest.config.d.ts +1 -1
  6. package/lib/jest.config.js +16 -16
  7. package/lib/schemas/billingPortal.schema.d.ts +107 -34
  8. package/lib/schemas/billingPortal.schema.js +4 -1
  9. package/lib/schemas/checkoutSession.schema.d.ts +169 -53
  10. package/lib/schemas/checkoutSession.schema.d.ts.map +1 -1
  11. package/lib/schemas/checkoutSession.schema.js +4 -1
  12. package/lib/schemas/index.d.ts +1 -1
  13. package/lib/schemas/paymentLink.schema.d.ts +210 -64
  14. package/lib/schemas/paymentLink.schema.js +4 -1
  15. package/lib/schemas/plan.schema.d.ts +326 -76
  16. package/lib/schemas/plan.schema.js +4 -1
  17. package/lib/schemas/subscription.schema.d.ts +364 -88
  18. package/lib/schemas/subscription.schema.js +4 -1
  19. package/lib/schemas/typebox/billingPortal.schema.d.ts +172 -38
  20. package/lib/schemas/typebox/billingPortal.schema.js +23 -17
  21. package/lib/schemas/typebox/checkoutSession.schema.d.ts +197 -55
  22. package/lib/schemas/typebox/checkoutSession.schema.js +25 -13
  23. package/lib/schemas/typebox/paymentLink.schema.d.ts +275 -65
  24. package/lib/schemas/typebox/paymentLink.schema.js +27 -15
  25. package/lib/schemas/typebox/plan.schema.d.ts +409 -77
  26. package/lib/schemas/typebox/plan.schema.js +31 -17
  27. package/lib/schemas/typebox/subscription.schema.d.ts +481 -89
  28. package/lib/schemas/typebox/subscription.schema.js +31 -19
  29. package/lib/schemas/zod/billingPortal.schema.d.ts +42 -38
  30. package/lib/schemas/zod/billingPortal.schema.js +23 -17
  31. package/lib/schemas/zod/checkoutSession.schema.d.ts +107 -53
  32. package/lib/schemas/zod/checkoutSession.schema.d.ts.map +1 -1
  33. package/lib/schemas/zod/checkoutSession.schema.js +26 -13
  34. package/lib/schemas/zod/paymentLink.schema.d.ts +99 -65
  35. package/lib/schemas/zod/paymentLink.schema.js +27 -15
  36. package/lib/schemas/zod/plan.schema.d.ts +177 -77
  37. package/lib/schemas/zod/plan.schema.js +31 -17
  38. package/lib/schemas/zod/subscription.schema.d.ts +181 -89
  39. package/lib/schemas/zod/subscription.schema.js +31 -19
  40. package/lib/services/billingPortal.service.d.ts +77 -28
  41. package/lib/services/billingPortal.service.js +64 -45
  42. package/lib/services/checkoutSession.service.d.ts +77 -29
  43. package/lib/services/checkoutSession.service.js +54 -43
  44. package/lib/services/index.d.ts +1 -1
  45. package/lib/services/paymentLink.service.d.ts +82 -32
  46. package/lib/services/paymentLink.service.js +84 -66
  47. package/lib/services/plan.service.d.ts +73 -26
  48. package/lib/services/plan.service.js +45 -40
  49. package/lib/services/subscription.service.d.ts +136 -44
  50. package/lib/services/subscription.service.js +111 -88
  51. package/lib/tsconfig.tsbuildinfo +1 -1
  52. package/lib/vitest.config.d.ts +2 -2
  53. package/lib/vitest.config.js +4 -4
  54. package/package.json +13 -13
@@ -1,3 +1,3 @@
1
- declare const _default: import("vite").UserConfig;
1
+ declare const _default: import('vite').UserConfig;
2
2
  export default _default;
3
- //# sourceMappingURL=vitest.config.d.ts.map
3
+ //# sourceMappingURL=vitest.config.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from 'vitest/config';
2
2
  export default defineConfig({
3
- test: {
4
- globals: true,
5
- exclude: ['**/lib/**', '**/node_modules/**']
6
- }
3
+ test: {
4
+ globals: true,
5
+ exclude: ['**/lib/**', '**/node_modules/**']
6
+ }
7
7
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/implementation-billing-base",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Billing basic implementation for forklaunch",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -14,36 +14,36 @@
14
14
  "author": "Forklift Technologies, Inc.",
15
15
  "exports": {
16
16
  "./schemas": {
17
+ "types": "./lib/schemas/index.d.ts",
17
18
  "import": "./lib/schemas/index.js",
18
- "require": "./lib/schemas/index.js",
19
- "types": "./lib/schemas/index.d.ts"
19
+ "require": "./lib/schemas/index.js"
20
20
  },
21
21
  "./services": {
22
+ "types": "./lib/services/index.d.ts",
22
23
  "import": "./lib/services/index.js",
23
- "require": "./lib/services/index.js",
24
- "types": "./lib/services/index.d.ts"
24
+ "require": "./lib/services/index.js"
25
25
  }
26
26
  },
27
27
  "files": [
28
28
  "lib/**"
29
29
  ],
30
30
  "dependencies": {
31
- "@forklaunch/common": "^0.2.6",
32
- "@forklaunch/core": "^0.6.6",
33
- "@forklaunch/validator": "^0.4.12",
34
- "@mikro-orm/core": "^6.4.12",
31
+ "@forklaunch/common": "link:../../../../framework/common",
32
+ "@forklaunch/core": "link:../../../../framework/core",
33
+ "@forklaunch/validator": "link:../../../../framework/validator",
34
+ "@mikro-orm/core": "^6.4.13",
35
35
  "@sinclair/typebox": "^0.34.33",
36
36
  "ajv": "^8.17.1",
37
- "zod": "^3.24.2",
38
- "@forklaunch/interfaces-billing": "0.1.8"
37
+ "zod": "^3.24.3",
38
+ "@forklaunch/interfaces-billing": "0.1.10"
39
39
  },
40
40
  "devDependencies": {
41
41
  "depcheck": "^1.4.7",
42
42
  "prettier": "^3.5.3",
43
- "typedoc": "^0.28.2"
43
+ "typedoc": "^0.28.3"
44
44
  },
45
45
  "scripts": {
46
- "build": "tsc && pnpm package:eject",
46
+ "build": "tsc && if [ -f eject-package.bash ]; then pnpm package:eject; fi",
47
47
  "clean": "rm -rf lib pnpm.lock.yaml node_modules",
48
48
  "docs": "typedoc --out docs *",
49
49
  "format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.{ts,tsx,json}' --write",