@contractspec/example.saas-boilerplate 3.8.9 → 3.8.11

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 (156) hide show
  1. package/.turbo/turbo-build.log +155 -155
  2. package/CHANGELOG.md +34 -0
  3. package/dist/billing/billing.entity.js +1 -113
  4. package/dist/billing/billing.enum.js +1 -19
  5. package/dist/billing/billing.event.js +1 -90
  6. package/dist/billing/billing.handler.js +1 -148
  7. package/dist/billing/billing.operations.js +1 -278
  8. package/dist/billing/billing.presentation.js +1 -55
  9. package/dist/billing/billing.schema.js +1 -121
  10. package/dist/billing/index.js +1 -691
  11. package/dist/browser/billing/billing.entity.js +1 -113
  12. package/dist/browser/billing/billing.enum.js +1 -19
  13. package/dist/browser/billing/billing.event.js +1 -90
  14. package/dist/browser/billing/billing.handler.js +1 -148
  15. package/dist/browser/billing/billing.operations.js +1 -278
  16. package/dist/browser/billing/billing.presentation.js +1 -55
  17. package/dist/browser/billing/billing.schema.js +1 -121
  18. package/dist/browser/billing/index.js +1 -691
  19. package/dist/browser/dashboard/dashboard.presentation.js +1 -55
  20. package/dist/browser/dashboard/index.js +1 -55
  21. package/dist/browser/docs/index.js +5 -49
  22. package/dist/browser/docs/saas-boilerplate.docblock.js +5 -49
  23. package/dist/browser/example.js +1 -39
  24. package/dist/browser/handlers/index.js +2 -358
  25. package/dist/browser/handlers/saas.handlers.js +2 -134
  26. package/dist/browser/index.js +9 -3591
  27. package/dist/browser/presentations/index.js +1 -299
  28. package/dist/browser/project/index.js +1 -793
  29. package/dist/browser/project/project.entity.js +1 -77
  30. package/dist/browser/project/project.enum.js +1 -18
  31. package/dist/browser/project/project.event.js +1 -103
  32. package/dist/browser/project/project.handler.js +1 -178
  33. package/dist/browser/project/project.operations.js +1 -372
  34. package/dist/browser/project/project.presentation.js +1 -180
  35. package/dist/browser/project/project.schema.js +1 -134
  36. package/dist/browser/saas-boilerplate.feature.js +1 -304
  37. package/dist/browser/seeders/index.js +2 -20
  38. package/dist/browser/settings/index.js +1 -75
  39. package/dist/browser/settings/settings.entity.js +1 -74
  40. package/dist/browser/settings/settings.enum.js +1 -11
  41. package/dist/browser/shared/mock-data.js +1 -104
  42. package/dist/browser/tests/operations.test-spec.js +1 -112
  43. package/dist/browser/ui/SaasDashboard.js +1 -1239
  44. package/dist/browser/ui/SaasDashboard.visualizations.js +1 -249
  45. package/dist/browser/ui/SaasProjectList.js +1 -162
  46. package/dist/browser/ui/SaasSettingsPanel.js +1 -145
  47. package/dist/browser/ui/hooks/index.js +1 -159
  48. package/dist/browser/ui/hooks/useProjectList.js +1 -66
  49. package/dist/browser/ui/hooks/useProjectMutations.js +1 -91
  50. package/dist/browser/ui/index.js +5 -2077
  51. package/dist/browser/ui/modals/CreateProjectModal.js +1 -153
  52. package/dist/browser/ui/modals/ProjectActionsModal.js +1 -335
  53. package/dist/browser/ui/modals/index.js +1 -487
  54. package/dist/browser/ui/overlays/demo-overlays.js +1 -61
  55. package/dist/browser/ui/overlays/index.js +1 -61
  56. package/dist/browser/ui/renderers/index.js +5 -901
  57. package/dist/browser/ui/renderers/project-list.markdown.js +5 -725
  58. package/dist/browser/ui/renderers/project-list.renderer.js +1 -177
  59. package/dist/browser/visualizations/catalog.js +1 -155
  60. package/dist/browser/visualizations/index.js +1 -217
  61. package/dist/browser/visualizations/selectors.js +1 -210
  62. package/dist/dashboard/dashboard.presentation.js +1 -55
  63. package/dist/dashboard/index.js +1 -55
  64. package/dist/docs/index.js +5 -49
  65. package/dist/docs/saas-boilerplate.docblock.js +5 -49
  66. package/dist/example.js +1 -39
  67. package/dist/handlers/index.js +2 -358
  68. package/dist/handlers/saas.handlers.js +2 -134
  69. package/dist/index.js +9 -3591
  70. package/dist/node/billing/billing.entity.js +1 -113
  71. package/dist/node/billing/billing.enum.js +1 -19
  72. package/dist/node/billing/billing.event.js +1 -90
  73. package/dist/node/billing/billing.handler.js +1 -148
  74. package/dist/node/billing/billing.operations.js +1 -278
  75. package/dist/node/billing/billing.presentation.js +1 -55
  76. package/dist/node/billing/billing.schema.js +1 -121
  77. package/dist/node/billing/index.js +1 -691
  78. package/dist/node/dashboard/dashboard.presentation.js +1 -55
  79. package/dist/node/dashboard/index.js +1 -55
  80. package/dist/node/docs/index.js +5 -49
  81. package/dist/node/docs/saas-boilerplate.docblock.js +5 -49
  82. package/dist/node/example.js +1 -39
  83. package/dist/node/handlers/index.js +2 -358
  84. package/dist/node/handlers/saas.handlers.js +2 -134
  85. package/dist/node/index.js +9 -3591
  86. package/dist/node/presentations/index.js +1 -299
  87. package/dist/node/project/index.js +1 -793
  88. package/dist/node/project/project.entity.js +1 -77
  89. package/dist/node/project/project.enum.js +1 -18
  90. package/dist/node/project/project.event.js +1 -103
  91. package/dist/node/project/project.handler.js +1 -178
  92. package/dist/node/project/project.operations.js +1 -372
  93. package/dist/node/project/project.presentation.js +1 -180
  94. package/dist/node/project/project.schema.js +1 -134
  95. package/dist/node/saas-boilerplate.feature.js +1 -304
  96. package/dist/node/seeders/index.js +2 -20
  97. package/dist/node/settings/index.js +1 -75
  98. package/dist/node/settings/settings.entity.js +1 -74
  99. package/dist/node/settings/settings.enum.js +1 -11
  100. package/dist/node/shared/mock-data.js +1 -104
  101. package/dist/node/tests/operations.test-spec.js +1 -112
  102. package/dist/node/ui/SaasDashboard.js +1 -1239
  103. package/dist/node/ui/SaasDashboard.visualizations.js +1 -249
  104. package/dist/node/ui/SaasProjectList.js +1 -162
  105. package/dist/node/ui/SaasSettingsPanel.js +1 -145
  106. package/dist/node/ui/hooks/index.js +1 -159
  107. package/dist/node/ui/hooks/useProjectList.js +1 -66
  108. package/dist/node/ui/hooks/useProjectMutations.js +1 -91
  109. package/dist/node/ui/index.js +5 -2077
  110. package/dist/node/ui/modals/CreateProjectModal.js +1 -153
  111. package/dist/node/ui/modals/ProjectActionsModal.js +1 -335
  112. package/dist/node/ui/modals/index.js +1 -487
  113. package/dist/node/ui/overlays/demo-overlays.js +1 -61
  114. package/dist/node/ui/overlays/index.js +1 -61
  115. package/dist/node/ui/renderers/index.js +5 -901
  116. package/dist/node/ui/renderers/project-list.markdown.js +5 -725
  117. package/dist/node/ui/renderers/project-list.renderer.js +1 -177
  118. package/dist/node/visualizations/catalog.js +1 -155
  119. package/dist/node/visualizations/index.js +1 -217
  120. package/dist/node/visualizations/selectors.js +1 -210
  121. package/dist/presentations/index.js +1 -299
  122. package/dist/project/index.js +1 -793
  123. package/dist/project/project.entity.js +1 -77
  124. package/dist/project/project.enum.js +1 -18
  125. package/dist/project/project.event.js +1 -103
  126. package/dist/project/project.handler.js +1 -178
  127. package/dist/project/project.operations.js +1 -372
  128. package/dist/project/project.presentation.js +1 -180
  129. package/dist/project/project.schema.js +1 -134
  130. package/dist/saas-boilerplate.feature.js +1 -304
  131. package/dist/seeders/index.js +2 -20
  132. package/dist/settings/index.js +1 -75
  133. package/dist/settings/settings.entity.js +1 -74
  134. package/dist/settings/settings.enum.js +1 -11
  135. package/dist/shared/mock-data.js +1 -104
  136. package/dist/tests/operations.test-spec.js +1 -112
  137. package/dist/ui/SaasDashboard.js +1 -1239
  138. package/dist/ui/SaasDashboard.visualizations.js +1 -249
  139. package/dist/ui/SaasProjectList.js +1 -162
  140. package/dist/ui/SaasSettingsPanel.js +1 -145
  141. package/dist/ui/hooks/index.js +1 -159
  142. package/dist/ui/hooks/useProjectList.js +1 -66
  143. package/dist/ui/hooks/useProjectMutations.js +1 -91
  144. package/dist/ui/index.js +5 -2077
  145. package/dist/ui/modals/CreateProjectModal.js +1 -153
  146. package/dist/ui/modals/ProjectActionsModal.js +1 -335
  147. package/dist/ui/modals/index.js +1 -487
  148. package/dist/ui/overlays/demo-overlays.js +1 -61
  149. package/dist/ui/overlays/index.js +1 -61
  150. package/dist/ui/renderers/index.js +5 -901
  151. package/dist/ui/renderers/project-list.markdown.js +5 -725
  152. package/dist/ui/renderers/project-list.renderer.js +1 -177
  153. package/dist/visualizations/catalog.js +1 -155
  154. package/dist/visualizations/index.js +1 -217
  155. package/dist/visualizations/selectors.js +1 -210
  156. package/package.json +12 -12
@@ -2,171 +2,171 @@ $ contractspec-bun-build prebuild
2
2
  $ bun run build:bundle && bun run build:types
3
3
  $ contractspec-bun-build transpile
4
4
  [contractspec-bun-build] transpile target=bun root=src entries=52 noBundle=false
5
- Bundled 52 modules in 69ms
5
+ Bundled 52 modules in 47ms
6
6
 
7
- billing/billing.entity.js 3.54 KB (entry point)
8
- tests/operations.test-spec.js 2.91 KB (entry point)
9
- seeders/index.js 0.60 KB (entry point)
7
+ billing/billing.entity.js 2.59 KB (entry point)
8
+ tests/operations.test-spec.js 2.1 KB (entry point)
9
+ seeders/index.js 437 bytes (entry point)
10
10
  shared/overlay-types.js 8 bytes (entry point)
11
- presentations/index.js 8.94 KB (entry point)
12
- ./index.js 122.20 KB (entry point)
13
- ui/index.js 74.0 KB (entry point)
14
- ui/modals/index.js 19.42 KB (entry point)
15
- ui/overlays/index.js 1.31 KB (entry point)
16
- ui/overlays/demo-overlays.js 1.31 KB (entry point)
17
- ui/renderers/index.js 28.1 KB (entry point)
18
- ui/renderers/project-list.renderer.js 5.82 KB (entry point)
19
- ui/renderers/project-list.markdown.js 22.26 KB (entry point)
20
- ui/SaasDashboard.js 46.0 KB (entry point)
21
- ui/modals/CreateProjectModal.js 6.22 KB (entry point)
22
- ui/modals/ProjectActionsModal.js 13.12 KB (entry point)
23
- ui/SaasDashboard.visualizations.js 7.55 KB (entry point)
24
- ui/SaasProjectList.js 5.28 KB (entry point)
25
- ui/SaasSettingsPanel.js 6.42 KB (entry point)
26
- ui/hooks/index.js 5.0 KB (entry point)
27
- ui/hooks/useProjectList.js 2.1 KB (entry point)
28
- ui/hooks/useProjectMutations.js 2.91 KB (entry point)
29
- ./saas-boilerplate.feature.js 9.49 KB (entry point)
30
- visualizations/index.js 6.39 KB (entry point)
31
- visualizations/selectors.js 6.17 KB (entry point)
32
- visualizations/catalog.js 4.37 KB (entry point)
33
- settings/index.js 2.30 KB (entry point)
34
- settings/settings.entity.js 2.28 KB (entry point)
35
- settings/settings.enum.js 310 bytes (entry point)
36
- project/index.js 22.50 KB (entry point)
37
- project/project.entity.js 2.27 KB (entry point)
38
- project/project.event.js 3.31 KB (entry point)
39
- project/project.operations.js 10.13 KB (entry point)
40
- project/project.presentation.js 5.64 KB (entry point)
41
- project/project.schema.js 4.39 KB (entry point)
42
- project/project.enum.js 387 bytes (entry point)
43
- dashboard/index.js 1.43 KB (entry point)
44
- dashboard/dashboard.presentation.js 1.43 KB (entry point)
45
- docs/index.js 3.84 KB (entry point)
46
- docs/saas-boilerplate.docblock.js 3.84 KB (entry point)
47
- ./example.js 1.1 KB (entry point)
48
- handlers/index.js 10.38 KB (entry point)
49
- project/project.handler.js 4.99 KB (entry point)
50
- handlers/saas.handlers.js 4.19 KB (entry point)
51
- billing/index.js 20.63 KB (entry point)
52
- billing/billing.event.js 3.00 KB (entry point)
53
- billing/billing.handler.js 3.84 KB (entry point)
54
- shared/mock-data.js 2.68 KB (entry point)
55
- billing/billing.operations.js 8.47 KB (entry point)
56
- billing/billing.presentation.js 1.48 KB (entry point)
57
- billing/billing.schema.js 4.50 KB (entry point)
58
- billing/billing.enum.js 443 bytes (entry point)
11
+ presentations/index.js 5.87 KB (entry point)
12
+ ./index.js 69.0 KB (entry point)
13
+ ui/index.js 35.24 KB (entry point)
14
+ ui/modals/index.js 7.59 KB (entry point)
15
+ ui/overlays/index.js 0.89 KB (entry point)
16
+ ui/overlays/demo-overlays.js 0.89 KB (entry point)
17
+ ui/renderers/index.js 16.65 KB (entry point)
18
+ ui/renderers/project-list.renderer.js 2.77 KB (entry point)
19
+ ui/renderers/project-list.markdown.js 13.87 KB (entry point)
20
+ ui/SaasDashboard.js 19.86 KB (entry point)
21
+ ui/modals/CreateProjectModal.js 2.69 KB (entry point)
22
+ ui/modals/ProjectActionsModal.js 4.92 KB (entry point)
23
+ ui/SaasDashboard.visualizations.js 4.39 KB (entry point)
24
+ ui/SaasProjectList.js 2.49 KB (entry point)
25
+ ui/SaasSettingsPanel.js 2.50 KB (entry point)
26
+ ui/hooks/index.js 2.59 KB (entry point)
27
+ ui/hooks/useProjectList.js 1.1 KB (entry point)
28
+ ui/hooks/useProjectMutations.js 1.54 KB (entry point)
29
+ ./saas-boilerplate.feature.js 6.35 KB (entry point)
30
+ visualizations/index.js 4.0 KB (entry point)
31
+ visualizations/selectors.js 3.80 KB (entry point)
32
+ visualizations/catalog.js 2.94 KB (entry point)
33
+ settings/index.js 1.66 KB (entry point)
34
+ settings/settings.entity.js 1.63 KB (entry point)
35
+ settings/settings.enum.js 222 bytes (entry point)
36
+ project/index.js 14.92 KB (entry point)
37
+ project/project.entity.js 1.66 KB (entry point)
38
+ project/project.event.js 2.15 KB (entry point)
39
+ project/project.operations.js 6.36 KB (entry point)
40
+ project/project.presentation.js 3.52 KB (entry point)
41
+ project/project.schema.js 2.68 KB (entry point)
42
+ project/project.enum.js 257 bytes (entry point)
43
+ dashboard/index.js 1.0 KB (entry point)
44
+ dashboard/dashboard.presentation.js 1.0 KB (entry point)
45
+ docs/index.js 3.51 KB (entry point)
46
+ docs/saas-boilerplate.docblock.js 3.51 KB (entry point)
47
+ ./example.js 0.80 KB (entry point)
48
+ handlers/index.js 6.62 KB (entry point)
49
+ project/project.handler.js 3.39 KB (entry point)
50
+ handlers/saas.handlers.js 2.62 KB (entry point)
51
+ billing/index.js 13.94 KB (entry point)
52
+ billing/billing.event.js 1.95 KB (entry point)
53
+ billing/billing.handler.js 2.63 KB (entry point)
54
+ shared/mock-data.js 2.1 KB (entry point)
55
+ billing/billing.operations.js 5.41 KB (entry point)
56
+ billing/billing.presentation.js 1.1 KB (entry point)
57
+ billing/billing.schema.js 2.88 KB (entry point)
58
+ billing/billing.enum.js 305 bytes (entry point)
59
59
 
60
60
  [contractspec-bun-build] transpile target=node root=src entries=52 noBundle=false
61
61
  Bundled 52 modules in 66ms
62
62
 
63
- billing/billing.entity.js 3.53 KB (entry point)
64
- tests/operations.test-spec.js 2.90 KB (entry point)
65
- seeders/index.js 0.59 KB (entry point)
63
+ billing/billing.entity.js 2.58 KB (entry point)
64
+ tests/operations.test-spec.js 2.1 KB (entry point)
65
+ seeders/index.js 429 bytes (entry point)
66
66
  shared/overlay-types.js 0 KB (entry point)
67
- presentations/index.js 8.93 KB (entry point)
68
- ./index.js 122.10 KB (entry point)
69
- ui/index.js 73.92 KB (entry point)
70
- ui/modals/index.js 19.40 KB (entry point)
71
- ui/overlays/index.js 1.30 KB (entry point)
72
- ui/overlays/demo-overlays.js 1.30 KB (entry point)
73
- ui/renderers/index.js 28.0 KB (entry point)
74
- ui/renderers/project-list.renderer.js 5.81 KB (entry point)
75
- ui/renderers/project-list.markdown.js 22.19 KB (entry point)
76
- ui/SaasDashboard.js 46.0 KB (entry point)
77
- ui/modals/CreateProjectModal.js 6.21 KB (entry point)
78
- ui/modals/ProjectActionsModal.js 13.1 KB (entry point)
79
- ui/SaasDashboard.visualizations.js 7.54 KB (entry point)
80
- ui/SaasProjectList.js 5.27 KB (entry point)
81
- ui/SaasSettingsPanel.js 6.41 KB (entry point)
82
- ui/hooks/index.js 5.0 KB (entry point)
83
- ui/hooks/useProjectList.js 2.0 KB (entry point)
84
- ui/hooks/useProjectMutations.js 2.91 KB (entry point)
85
- ./saas-boilerplate.feature.js 9.48 KB (entry point)
86
- visualizations/index.js 6.38 KB (entry point)
87
- visualizations/selectors.js 6.16 KB (entry point)
88
- visualizations/catalog.js 4.36 KB (entry point)
89
- settings/index.js 2.29 KB (entry point)
90
- settings/settings.entity.js 2.27 KB (entry point)
91
- settings/settings.enum.js 302 bytes (entry point)
92
- project/index.js 22.49 KB (entry point)
93
- project/project.entity.js 2.26 KB (entry point)
94
- project/project.event.js 3.30 KB (entry point)
95
- project/project.operations.js 10.12 KB (entry point)
96
- project/project.presentation.js 5.64 KB (entry point)
97
- project/project.schema.js 4.38 KB (entry point)
98
- project/project.enum.js 379 bytes (entry point)
99
- dashboard/index.js 1.42 KB (entry point)
100
- dashboard/dashboard.presentation.js 1.42 KB (entry point)
101
- docs/index.js 3.82 KB (entry point)
102
- docs/saas-boilerplate.docblock.js 3.82 KB (entry point)
103
- ./example.js 1.1 KB (entry point)
104
- handlers/index.js 10.37 KB (entry point)
105
- project/project.handler.js 4.98 KB (entry point)
106
- handlers/saas.handlers.js 4.19 KB (entry point)
107
- billing/index.js 20.62 KB (entry point)
108
- billing/billing.event.js 2.99 KB (entry point)
109
- billing/billing.handler.js 3.83 KB (entry point)
110
- shared/mock-data.js 2.68 KB (entry point)
111
- billing/billing.operations.js 8.46 KB (entry point)
112
- billing/billing.presentation.js 1.47 KB (entry point)
113
- billing/billing.schema.js 4.49 KB (entry point)
114
- billing/billing.enum.js 435 bytes (entry point)
67
+ presentations/index.js 5.86 KB (entry point)
68
+ ./index.js 68.94 KB (entry point)
69
+ ui/index.js 35.15 KB (entry point)
70
+ ui/modals/index.js 7.57 KB (entry point)
71
+ ui/overlays/index.js 0.88 KB (entry point)
72
+ ui/overlays/demo-overlays.js 0.88 KB (entry point)
73
+ ui/renderers/index.js 16.58 KB (entry point)
74
+ ui/renderers/project-list.renderer.js 2.76 KB (entry point)
75
+ ui/renderers/project-list.markdown.js 13.80 KB (entry point)
76
+ ui/SaasDashboard.js 19.82 KB (entry point)
77
+ ui/modals/CreateProjectModal.js 2.68 KB (entry point)
78
+ ui/modals/ProjectActionsModal.js 4.90 KB (entry point)
79
+ ui/SaasDashboard.visualizations.js 4.39 KB (entry point)
80
+ ui/SaasProjectList.js 2.48 KB (entry point)
81
+ ui/SaasSettingsPanel.js 2.49 KB (entry point)
82
+ ui/hooks/index.js 2.58 KB (entry point)
83
+ ui/hooks/useProjectList.js 1.1 KB (entry point)
84
+ ui/hooks/useProjectMutations.js 1.54 KB (entry point)
85
+ ./saas-boilerplate.feature.js 6.34 KB (entry point)
86
+ visualizations/index.js 4.0 KB (entry point)
87
+ visualizations/selectors.js 3.79 KB (entry point)
88
+ visualizations/catalog.js 2.93 KB (entry point)
89
+ settings/index.js 1.65 KB (entry point)
90
+ settings/settings.entity.js 1.62 KB (entry point)
91
+ settings/settings.enum.js 214 bytes (entry point)
92
+ project/index.js 14.91 KB (entry point)
93
+ project/project.entity.js 1.65 KB (entry point)
94
+ project/project.event.js 2.14 KB (entry point)
95
+ project/project.operations.js 6.36 KB (entry point)
96
+ project/project.presentation.js 3.51 KB (entry point)
97
+ project/project.schema.js 2.67 KB (entry point)
98
+ project/project.enum.js 249 bytes (entry point)
99
+ dashboard/index.js 1.0 KB (entry point)
100
+ dashboard/dashboard.presentation.js 1.0 KB (entry point)
101
+ docs/index.js 3.49 KB (entry point)
102
+ docs/saas-boilerplate.docblock.js 3.49 KB (entry point)
103
+ ./example.js 0.79 KB (entry point)
104
+ handlers/index.js 6.62 KB (entry point)
105
+ project/project.handler.js 3.38 KB (entry point)
106
+ handlers/saas.handlers.js 2.61 KB (entry point)
107
+ billing/index.js 13.93 KB (entry point)
108
+ billing/billing.event.js 1.95 KB (entry point)
109
+ billing/billing.handler.js 2.63 KB (entry point)
110
+ shared/mock-data.js 2.1 KB (entry point)
111
+ billing/billing.operations.js 5.40 KB (entry point)
112
+ billing/billing.presentation.js 1.1 KB (entry point)
113
+ billing/billing.schema.js 2.87 KB (entry point)
114
+ billing/billing.enum.js 297 bytes (entry point)
115
115
 
116
116
  [contractspec-bun-build] transpile target=browser root=src entries=52 noBundle=false
117
- Bundled 52 modules in 76ms
117
+ Bundled 52 modules in 70ms
118
118
 
119
- billing/billing.entity.js 3.53 KB (entry point)
120
- tests/operations.test-spec.js 2.90 KB (entry point)
121
- seeders/index.js 0.59 KB (entry point)
119
+ billing/billing.entity.js 2.58 KB (entry point)
120
+ tests/operations.test-spec.js 2.1 KB (entry point)
121
+ seeders/index.js 429 bytes (entry point)
122
122
  shared/overlay-types.js 0 KB (entry point)
123
- presentations/index.js 8.93 KB (entry point)
124
- ./index.js 122.10 KB (entry point)
125
- ui/index.js 73.92 KB (entry point)
126
- ui/modals/index.js 19.40 KB (entry point)
127
- ui/overlays/index.js 1.30 KB (entry point)
128
- ui/overlays/demo-overlays.js 1.30 KB (entry point)
129
- ui/renderers/index.js 28.0 KB (entry point)
130
- ui/renderers/project-list.renderer.js 5.81 KB (entry point)
131
- ui/renderers/project-list.markdown.js 22.19 KB (entry point)
132
- ui/SaasDashboard.js 46.0 KB (entry point)
133
- ui/modals/CreateProjectModal.js 6.21 KB (entry point)
134
- ui/modals/ProjectActionsModal.js 13.1 KB (entry point)
135
- ui/SaasDashboard.visualizations.js 7.54 KB (entry point)
136
- ui/SaasProjectList.js 5.27 KB (entry point)
137
- ui/SaasSettingsPanel.js 6.41 KB (entry point)
138
- ui/hooks/index.js 5.0 KB (entry point)
139
- ui/hooks/useProjectList.js 2.0 KB (entry point)
140
- ui/hooks/useProjectMutations.js 2.91 KB (entry point)
141
- ./saas-boilerplate.feature.js 9.48 KB (entry point)
142
- visualizations/index.js 6.38 KB (entry point)
143
- visualizations/selectors.js 6.16 KB (entry point)
144
- visualizations/catalog.js 4.36 KB (entry point)
145
- settings/index.js 2.29 KB (entry point)
146
- settings/settings.entity.js 2.27 KB (entry point)
147
- settings/settings.enum.js 302 bytes (entry point)
148
- project/index.js 22.49 KB (entry point)
149
- project/project.entity.js 2.26 KB (entry point)
150
- project/project.event.js 3.30 KB (entry point)
151
- project/project.operations.js 10.12 KB (entry point)
152
- project/project.presentation.js 5.64 KB (entry point)
153
- project/project.schema.js 4.38 KB (entry point)
154
- project/project.enum.js 379 bytes (entry point)
155
- dashboard/index.js 1.42 KB (entry point)
156
- dashboard/dashboard.presentation.js 1.42 KB (entry point)
157
- docs/index.js 3.82 KB (entry point)
158
- docs/saas-boilerplate.docblock.js 3.82 KB (entry point)
159
- ./example.js 1.1 KB (entry point)
160
- handlers/index.js 10.37 KB (entry point)
161
- project/project.handler.js 4.98 KB (entry point)
162
- handlers/saas.handlers.js 4.19 KB (entry point)
163
- billing/index.js 20.62 KB (entry point)
164
- billing/billing.event.js 2.99 KB (entry point)
165
- billing/billing.handler.js 3.83 KB (entry point)
166
- shared/mock-data.js 2.68 KB (entry point)
167
- billing/billing.operations.js 8.46 KB (entry point)
168
- billing/billing.presentation.js 1.47 KB (entry point)
169
- billing/billing.schema.js 4.49 KB (entry point)
170
- billing/billing.enum.js 435 bytes (entry point)
123
+ presentations/index.js 5.86 KB (entry point)
124
+ ./index.js 68.94 KB (entry point)
125
+ ui/index.js 35.15 KB (entry point)
126
+ ui/modals/index.js 7.57 KB (entry point)
127
+ ui/overlays/index.js 0.88 KB (entry point)
128
+ ui/overlays/demo-overlays.js 0.88 KB (entry point)
129
+ ui/renderers/index.js 16.58 KB (entry point)
130
+ ui/renderers/project-list.renderer.js 2.76 KB (entry point)
131
+ ui/renderers/project-list.markdown.js 13.80 KB (entry point)
132
+ ui/SaasDashboard.js 19.82 KB (entry point)
133
+ ui/modals/CreateProjectModal.js 2.68 KB (entry point)
134
+ ui/modals/ProjectActionsModal.js 4.90 KB (entry point)
135
+ ui/SaasDashboard.visualizations.js 4.39 KB (entry point)
136
+ ui/SaasProjectList.js 2.48 KB (entry point)
137
+ ui/SaasSettingsPanel.js 2.49 KB (entry point)
138
+ ui/hooks/index.js 2.58 KB (entry point)
139
+ ui/hooks/useProjectList.js 1.1 KB (entry point)
140
+ ui/hooks/useProjectMutations.js 1.54 KB (entry point)
141
+ ./saas-boilerplate.feature.js 6.34 KB (entry point)
142
+ visualizations/index.js 4.0 KB (entry point)
143
+ visualizations/selectors.js 3.79 KB (entry point)
144
+ visualizations/catalog.js 2.93 KB (entry point)
145
+ settings/index.js 1.65 KB (entry point)
146
+ settings/settings.entity.js 1.62 KB (entry point)
147
+ settings/settings.enum.js 214 bytes (entry point)
148
+ project/index.js 14.91 KB (entry point)
149
+ project/project.entity.js 1.65 KB (entry point)
150
+ project/project.event.js 2.14 KB (entry point)
151
+ project/project.operations.js 6.36 KB (entry point)
152
+ project/project.presentation.js 3.51 KB (entry point)
153
+ project/project.schema.js 2.67 KB (entry point)
154
+ project/project.enum.js 249 bytes (entry point)
155
+ dashboard/index.js 1.0 KB (entry point)
156
+ dashboard/dashboard.presentation.js 1.0 KB (entry point)
157
+ docs/index.js 3.49 KB (entry point)
158
+ docs/saas-boilerplate.docblock.js 3.49 KB (entry point)
159
+ ./example.js 0.79 KB (entry point)
160
+ handlers/index.js 6.62 KB (entry point)
161
+ project/project.handler.js 3.38 KB (entry point)
162
+ handlers/saas.handlers.js 2.61 KB (entry point)
163
+ billing/index.js 13.93 KB (entry point)
164
+ billing/billing.event.js 1.95 KB (entry point)
165
+ billing/billing.handler.js 2.63 KB (entry point)
166
+ shared/mock-data.js 2.1 KB (entry point)
167
+ billing/billing.operations.js 5.40 KB (entry point)
168
+ billing/billing.presentation.js 1.1 KB (entry point)
169
+ billing/billing.schema.js 2.87 KB (entry point)
170
+ billing/billing.enum.js 297 bytes (entry point)
171
171
 
172
172
  $ contractspec-bun-build types
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @contractspec/example.saas-boilerplate
2
2
 
3
+ ## 3.8.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies because of Expand ContractSpec authoring with preset-driven workspace setup, shell completion, packaged workspace schema artifacts, and richer form and UI surfaces across the CLI, editors, and shared runtimes.
8
+ - @contractspec/lib.contracts-spec@5.3.0
9
+ - @contractspec/lib.design-system@3.9.0
10
+ - @contractspec/lib.example-shared-ui@6.0.19
11
+ - @contractspec/lib.identity-rbac@3.7.19
12
+ - @contractspec/lib.jobs@3.7.19
13
+ - @contractspec/lib.presentation-runtime-core@3.9.7
14
+ - @contractspec/module.audit-trail@3.7.19
15
+ - @contractspec/module.notifications@3.7.18
16
+
17
+ ## 3.8.10
18
+
19
+ ### Patch Changes
20
+
21
+ - chore: auto-bump internal dependents
22
+ - Updated dependencies because of chore: auto-bump internal dependents
23
+ - Updated dependencies because of Introduce the Builder v3 control plane as a governed authoring layer over external execution providers.
24
+ - Updated dependencies because of Implement ContractSpec Connect as a first-class spec, runtime, and CLI workflow.
25
+ - Updated dependencies because of Pass Bun transpile paths through production JSX mode so published browser bundles stop emitting the dev runtime.
26
+ - @contractspec/lib.identity-rbac@3.7.18
27
+ - @contractspec/lib.jobs@3.7.18
28
+ - @contractspec/lib.presentation-runtime-core@3.9.6
29
+ - @contractspec/module.audit-trail@3.7.18
30
+ - @contractspec/module.notifications@3.7.17
31
+ - @contractspec/lib.contracts-spec@5.2.0
32
+ - @contractspec/lib.design-system@3.8.11
33
+ - @contractspec/lib.example-shared-ui@6.0.18
34
+ - @contractspec/lib.runtime-sandbox@2.7.14
35
+ - @contractspec/lib.schema@3.7.14
36
+
3
37
  ## 3.8.9
4
38
 
5
39
  ### Patch Changes
@@ -1,114 +1,2 @@
1
1
  // @bun
2
- // src/billing/billing.entity.ts
3
- import {
4
- defineEntity,
5
- defineEntityEnum,
6
- field,
7
- index
8
- } from "@contractspec/lib.schema";
9
- var SubscriptionStatusEnum = defineEntityEnum({
10
- name: "SubscriptionStatus",
11
- values: ["TRIALING", "ACTIVE", "PAST_DUE", "CANCELED", "PAUSED"],
12
- schema: "saas_app",
13
- description: "Status of a subscription."
14
- });
15
- var SubscriptionEntity = defineEntity({
16
- name: "Subscription",
17
- description: "Organization subscription/plan information.",
18
- schema: "saas_app",
19
- map: "subscription",
20
- fields: {
21
- id: field.id(),
22
- organizationId: field.foreignKey({ isUnique: true }),
23
- planId: field.string({ description: "Plan identifier" }),
24
- planName: field.string({ description: "Plan display name" }),
25
- status: field.enum("SubscriptionStatus"),
26
- currentPeriodStart: field.dateTime(),
27
- currentPeriodEnd: field.dateTime(),
28
- trialEndsAt: field.dateTime({ isOptional: true }),
29
- cancelAtPeriodEnd: field.boolean({ default: false }),
30
- canceledAt: field.dateTime({ isOptional: true }),
31
- stripeSubscriptionId: field.string({ isOptional: true }),
32
- stripeCustomerId: field.string({ isOptional: true }),
33
- metadata: field.json({ isOptional: true }),
34
- createdAt: field.createdAt(),
35
- updatedAt: field.updatedAt()
36
- },
37
- enums: [SubscriptionStatusEnum]
38
- });
39
- var BillingUsageEntity = defineEntity({
40
- name: "BillingUsage",
41
- description: "Track usage of metered features.",
42
- schema: "saas_app",
43
- map: "billing_usage",
44
- fields: {
45
- id: field.id(),
46
- organizationId: field.foreignKey(),
47
- feature: field.string({
48
- description: 'Feature being tracked (e.g., "api_calls", "storage_gb")'
49
- }),
50
- quantity: field.int({ description: "Usage quantity" }),
51
- unit: field.string({
52
- isOptional: true,
53
- description: "Unit of measurement"
54
- }),
55
- billingPeriod: field.string({
56
- description: 'Billing period (e.g., "2024-01")'
57
- }),
58
- recordedAt: field.dateTime({ description: "When usage was recorded" }),
59
- sourceId: field.string({
60
- isOptional: true,
61
- description: "Source of usage (e.g., request ID)"
62
- }),
63
- sourceType: field.string({ isOptional: true }),
64
- metadata: field.json({ isOptional: true })
65
- },
66
- indexes: [
67
- index.on(["organizationId", "feature", "billingPeriod"]),
68
- index.on(["organizationId", "recordedAt"])
69
- ]
70
- });
71
- var UsageLimitEntity = defineEntity({
72
- name: "UsageLimit",
73
- description: "Usage limits per plan/organization.",
74
- schema: "saas_app",
75
- map: "usage_limit",
76
- fields: {
77
- id: field.id(),
78
- planId: field.string({
79
- isOptional: true,
80
- description: "Plan this limit applies to"
81
- }),
82
- organizationId: field.string({
83
- isOptional: true,
84
- description: "Org-specific override"
85
- }),
86
- feature: field.string({ description: "Feature being limited" }),
87
- limit: field.int({ description: "Maximum allowed usage" }),
88
- resetPeriod: field.string({
89
- default: '"monthly"',
90
- description: "When limit resets"
91
- }),
92
- isSoftLimit: field.boolean({
93
- default: false,
94
- description: "Whether to warn vs block"
95
- }),
96
- overage: field.boolean({
97
- default: false,
98
- description: "Whether overage is allowed"
99
- }),
100
- overageRate: field.float({
101
- isOptional: true,
102
- description: "Cost per unit over limit"
103
- }),
104
- createdAt: field.createdAt(),
105
- updatedAt: field.updatedAt()
106
- },
107
- indexes: [index.unique(["planId", "feature"])]
108
- });
109
- export {
110
- UsageLimitEntity,
111
- SubscriptionStatusEnum,
112
- SubscriptionEntity,
113
- BillingUsageEntity
114
- };
2
+ import{defineEntity as q,defineEntityEnum as v,field as j,index as k}from"@contractspec/lib.schema";var w=v({name:"SubscriptionStatus",values:["TRIALING","ACTIVE","PAST_DUE","CANCELED","PAUSED"],schema:"saas_app",description:"Status of a subscription."}),A=q({name:"Subscription",description:"Organization subscription/plan information.",schema:"saas_app",map:"subscription",fields:{id:j.id(),organizationId:j.foreignKey({isUnique:!0}),planId:j.string({description:"Plan identifier"}),planName:j.string({description:"Plan display name"}),status:j.enum("SubscriptionStatus"),currentPeriodStart:j.dateTime(),currentPeriodEnd:j.dateTime(),trialEndsAt:j.dateTime({isOptional:!0}),cancelAtPeriodEnd:j.boolean({default:!1}),canceledAt:j.dateTime({isOptional:!0}),stripeSubscriptionId:j.string({isOptional:!0}),stripeCustomerId:j.string({isOptional:!0}),metadata:j.json({isOptional:!0}),createdAt:j.createdAt(),updatedAt:j.updatedAt()},enums:[w]}),B=q({name:"BillingUsage",description:"Track usage of metered features.",schema:"saas_app",map:"billing_usage",fields:{id:j.id(),organizationId:j.foreignKey(),feature:j.string({description:'Feature being tracked (e.g., "api_calls", "storage_gb")'}),quantity:j.int({description:"Usage quantity"}),unit:j.string({isOptional:!0,description:"Unit of measurement"}),billingPeriod:j.string({description:'Billing period (e.g., "2024-01")'}),recordedAt:j.dateTime({description:"When usage was recorded"}),sourceId:j.string({isOptional:!0,description:"Source of usage (e.g., request ID)"}),sourceType:j.string({isOptional:!0}),metadata:j.json({isOptional:!0})},indexes:[k.on(["organizationId","feature","billingPeriod"]),k.on(["organizationId","recordedAt"])]}),C=q({name:"UsageLimit",description:"Usage limits per plan/organization.",schema:"saas_app",map:"usage_limit",fields:{id:j.id(),planId:j.string({isOptional:!0,description:"Plan this limit applies to"}),organizationId:j.string({isOptional:!0,description:"Org-specific override"}),feature:j.string({description:"Feature being limited"}),limit:j.int({description:"Maximum allowed usage"}),resetPeriod:j.string({default:'"monthly"',description:"When limit resets"}),isSoftLimit:j.boolean({default:!1,description:"Whether to warn vs block"}),overage:j.boolean({default:!1,description:"Whether overage is allowed"}),overageRate:j.float({isOptional:!0,description:"Cost per unit over limit"}),createdAt:j.createdAt(),updatedAt:j.updatedAt()},indexes:[k.unique(["planId","feature"])]});export{C as UsageLimitEntity,w as SubscriptionStatusEnum,A as SubscriptionEntity,B as BillingUsageEntity};
@@ -1,20 +1,2 @@
1
1
  // @bun
2
- // src/billing/billing.enum.ts
3
- import { defineEnum } from "@contractspec/lib.schema";
4
- var SubscriptionStatusSchemaEnum = defineEnum("SubscriptionStatus", [
5
- "TRIALING",
6
- "ACTIVE",
7
- "PAST_DUE",
8
- "CANCELED",
9
- "PAUSED"
10
- ]);
11
- var FeatureAccessReasonEnum = defineEnum("FeatureAccessReason", [
12
- "included",
13
- "limit_available",
14
- "limit_reached",
15
- "not_in_plan"
16
- ]);
17
- export {
18
- SubscriptionStatusSchemaEnum,
19
- FeatureAccessReasonEnum
20
- };
2
+ import{defineEnum as g}from"@contractspec/lib.schema";var k=g("SubscriptionStatus",["TRIALING","ACTIVE","PAST_DUE","CANCELED","PAUSED"]),q=g("FeatureAccessReason",["included","limit_available","limit_reached","not_in_plan"]);export{k as SubscriptionStatusSchemaEnum,q as FeatureAccessReasonEnum};
@@ -1,91 +1,2 @@
1
1
  // @bun
2
- // src/billing/billing.event.ts
3
- import { defineEvent } from "@contractspec/lib.contracts-spec";
4
- import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
5
- var UsageRecordedPayload = defineSchemaModel({
6
- name: "UsageRecordedPayload",
7
- description: "Payload when feature usage is recorded",
8
- fields: {
9
- organizationId: {
10
- type: ScalarTypeEnum.String_unsecure(),
11
- isOptional: false
12
- },
13
- feature: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
14
- quantity: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
15
- billingPeriod: {
16
- type: ScalarTypeEnum.String_unsecure(),
17
- isOptional: false
18
- },
19
- recordedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
20
- }
21
- });
22
- var UsageLimitReachedPayload = defineSchemaModel({
23
- name: "UsageLimitReachedPayload",
24
- description: "Payload when usage limit is reached",
25
- fields: {
26
- organizationId: {
27
- type: ScalarTypeEnum.String_unsecure(),
28
- isOptional: false
29
- },
30
- feature: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
31
- limit: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
32
- currentUsage: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
33
- reachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
34
- }
35
- });
36
- var SubscriptionChangedPayload = defineSchemaModel({
37
- name: "SubscriptionChangedPayload",
38
- description: "Payload when subscription status changes",
39
- fields: {
40
- organizationId: {
41
- type: ScalarTypeEnum.String_unsecure(),
42
- isOptional: false
43
- },
44
- previousPlan: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
45
- newPlan: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
46
- previousStatus: {
47
- type: ScalarTypeEnum.String_unsecure(),
48
- isOptional: true
49
- },
50
- newStatus: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
51
- changedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
52
- }
53
- });
54
- var UsageRecordedEvent = defineEvent({
55
- meta: {
56
- key: "billing.usage.recorded",
57
- version: "1.0.0",
58
- description: "Feature usage has been recorded.",
59
- stability: "stable",
60
- owners: ["@saas-team"],
61
- tags: ["billing", "usage", "recorded"]
62
- },
63
- payload: UsageRecordedPayload
64
- });
65
- var UsageLimitReachedEvent = defineEvent({
66
- meta: {
67
- key: "billing.limit.reached",
68
- version: "1.0.0",
69
- description: "Usage limit has been reached for a feature.",
70
- stability: "stable",
71
- owners: ["@saas-team"],
72
- tags: ["billing", "limit", "reached"]
73
- },
74
- payload: UsageLimitReachedPayload
75
- });
76
- var SubscriptionChangedEvent = defineEvent({
77
- meta: {
78
- key: "billing.subscription.changed",
79
- version: "1.0.0",
80
- description: "Subscription status has changed.",
81
- stability: "stable",
82
- owners: ["@saas-team"],
83
- tags: ["billing", "subscription", "changed"]
84
- },
85
- payload: SubscriptionChangedPayload
86
- });
87
- export {
88
- UsageRecordedEvent,
89
- UsageLimitReachedEvent,
90
- SubscriptionChangedEvent
91
- };
2
+ import{defineEvent as k}from"@contractspec/lib.contracts-spec";import{defineSchemaModel as q,ScalarTypeEnum as j}from"@contractspec/lib.schema";var w=q({name:"UsageRecordedPayload",description:"Payload when feature usage is recorded",fields:{organizationId:{type:j.String_unsecure(),isOptional:!1},feature:{type:j.String_unsecure(),isOptional:!1},quantity:{type:j.Int_unsecure(),isOptional:!1},billingPeriod:{type:j.String_unsecure(),isOptional:!1},recordedAt:{type:j.DateTime(),isOptional:!1}}}),x=q({name:"UsageLimitReachedPayload",description:"Payload when usage limit is reached",fields:{organizationId:{type:j.String_unsecure(),isOptional:!1},feature:{type:j.String_unsecure(),isOptional:!1},limit:{type:j.Int_unsecure(),isOptional:!1},currentUsage:{type:j.Int_unsecure(),isOptional:!1},reachedAt:{type:j.DateTime(),isOptional:!1}}}),z=q({name:"SubscriptionChangedPayload",description:"Payload when subscription status changes",fields:{organizationId:{type:j.String_unsecure(),isOptional:!1},previousPlan:{type:j.String_unsecure(),isOptional:!0},newPlan:{type:j.String_unsecure(),isOptional:!1},previousStatus:{type:j.String_unsecure(),isOptional:!0},newStatus:{type:j.String_unsecure(),isOptional:!1},changedAt:{type:j.DateTime(),isOptional:!1}}}),D=k({meta:{key:"billing.usage.recorded",version:"1.0.0",description:"Feature usage has been recorded.",stability:"stable",owners:["@saas-team"],tags:["billing","usage","recorded"]},payload:w}),F=k({meta:{key:"billing.limit.reached",version:"1.0.0",description:"Usage limit has been reached for a feature.",stability:"stable",owners:["@saas-team"],tags:["billing","limit","reached"]},payload:x}),G=k({meta:{key:"billing.subscription.changed",version:"1.0.0",description:"Subscription status has changed.",stability:"stable",owners:["@saas-team"],tags:["billing","subscription","changed"]},payload:z});export{D as UsageRecordedEvent,F as UsageLimitReachedEvent,G as SubscriptionChangedEvent};