@contractspec/example.saas-boilerplate 3.8.8 → 3.8.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.
- package/.turbo/turbo-build.log +156 -156
- package/CHANGELOG.md +40 -0
- package/dist/billing/billing.entity.js +1 -113
- package/dist/billing/billing.enum.js +1 -19
- package/dist/billing/billing.event.js +1 -90
- package/dist/billing/billing.handler.js +1 -148
- package/dist/billing/billing.operations.js +1 -278
- package/dist/billing/billing.presentation.js +1 -55
- package/dist/billing/billing.schema.js +1 -121
- package/dist/billing/index.js +1 -691
- package/dist/browser/billing/billing.entity.js +1 -113
- package/dist/browser/billing/billing.enum.js +1 -19
- package/dist/browser/billing/billing.event.js +1 -90
- package/dist/browser/billing/billing.handler.js +1 -148
- package/dist/browser/billing/billing.operations.js +1 -278
- package/dist/browser/billing/billing.presentation.js +1 -55
- package/dist/browser/billing/billing.schema.js +1 -121
- package/dist/browser/billing/index.js +1 -691
- package/dist/browser/dashboard/dashboard.presentation.js +1 -55
- package/dist/browser/dashboard/index.js +1 -55
- package/dist/browser/docs/index.js +5 -49
- package/dist/browser/docs/saas-boilerplate.docblock.js +5 -49
- package/dist/browser/example.js +1 -39
- package/dist/browser/handlers/index.js +2 -358
- package/dist/browser/handlers/saas.handlers.js +2 -134
- package/dist/browser/index.js +9 -3591
- package/dist/browser/presentations/index.js +1 -299
- package/dist/browser/project/index.js +1 -793
- package/dist/browser/project/project.entity.js +1 -77
- package/dist/browser/project/project.enum.js +1 -18
- package/dist/browser/project/project.event.js +1 -103
- package/dist/browser/project/project.handler.js +1 -178
- package/dist/browser/project/project.operations.js +1 -372
- package/dist/browser/project/project.presentation.js +1 -180
- package/dist/browser/project/project.schema.js +1 -134
- package/dist/browser/saas-boilerplate.feature.js +1 -304
- package/dist/browser/seeders/index.js +2 -20
- package/dist/browser/settings/index.js +1 -75
- package/dist/browser/settings/settings.entity.js +1 -74
- package/dist/browser/settings/settings.enum.js +1 -11
- package/dist/browser/shared/mock-data.js +1 -104
- package/dist/browser/tests/operations.test-spec.js +1 -112
- package/dist/browser/ui/SaasDashboard.js +1 -1239
- package/dist/browser/ui/SaasDashboard.visualizations.js +1 -249
- package/dist/browser/ui/SaasProjectList.js +1 -162
- package/dist/browser/ui/SaasSettingsPanel.js +1 -145
- package/dist/browser/ui/hooks/index.js +1 -159
- package/dist/browser/ui/hooks/useProjectList.js +1 -66
- package/dist/browser/ui/hooks/useProjectMutations.js +1 -91
- package/dist/browser/ui/index.js +5 -2077
- package/dist/browser/ui/modals/CreateProjectModal.js +1 -153
- package/dist/browser/ui/modals/ProjectActionsModal.js +1 -335
- package/dist/browser/ui/modals/index.js +1 -487
- package/dist/browser/ui/overlays/demo-overlays.js +1 -61
- package/dist/browser/ui/overlays/index.js +1 -61
- package/dist/browser/ui/renderers/index.js +5 -901
- package/dist/browser/ui/renderers/project-list.markdown.js +5 -725
- package/dist/browser/ui/renderers/project-list.renderer.js +1 -177
- package/dist/browser/visualizations/catalog.js +1 -155
- package/dist/browser/visualizations/index.js +1 -217
- package/dist/browser/visualizations/selectors.js +1 -210
- package/dist/dashboard/dashboard.presentation.js +1 -55
- package/dist/dashboard/index.js +1 -55
- package/dist/docs/index.js +5 -49
- package/dist/docs/saas-boilerplate.docblock.js +5 -49
- package/dist/example.js +1 -39
- package/dist/handlers/index.js +2 -358
- package/dist/handlers/saas.handlers.js +2 -134
- package/dist/index.js +9 -3591
- package/dist/node/billing/billing.entity.js +1 -113
- package/dist/node/billing/billing.enum.js +1 -19
- package/dist/node/billing/billing.event.js +1 -90
- package/dist/node/billing/billing.handler.js +1 -148
- package/dist/node/billing/billing.operations.js +1 -278
- package/dist/node/billing/billing.presentation.js +1 -55
- package/dist/node/billing/billing.schema.js +1 -121
- package/dist/node/billing/index.js +1 -691
- package/dist/node/dashboard/dashboard.presentation.js +1 -55
- package/dist/node/dashboard/index.js +1 -55
- package/dist/node/docs/index.js +5 -49
- package/dist/node/docs/saas-boilerplate.docblock.js +5 -49
- package/dist/node/example.js +1 -39
- package/dist/node/handlers/index.js +2 -358
- package/dist/node/handlers/saas.handlers.js +2 -134
- package/dist/node/index.js +9 -3591
- package/dist/node/presentations/index.js +1 -299
- package/dist/node/project/index.js +1 -793
- package/dist/node/project/project.entity.js +1 -77
- package/dist/node/project/project.enum.js +1 -18
- package/dist/node/project/project.event.js +1 -103
- package/dist/node/project/project.handler.js +1 -178
- package/dist/node/project/project.operations.js +1 -372
- package/dist/node/project/project.presentation.js +1 -180
- package/dist/node/project/project.schema.js +1 -134
- package/dist/node/saas-boilerplate.feature.js +1 -304
- package/dist/node/seeders/index.js +2 -20
- package/dist/node/settings/index.js +1 -75
- package/dist/node/settings/settings.entity.js +1 -74
- package/dist/node/settings/settings.enum.js +1 -11
- package/dist/node/shared/mock-data.js +1 -104
- package/dist/node/tests/operations.test-spec.js +1 -112
- package/dist/node/ui/SaasDashboard.js +1 -1239
- package/dist/node/ui/SaasDashboard.visualizations.js +1 -249
- package/dist/node/ui/SaasProjectList.js +1 -162
- package/dist/node/ui/SaasSettingsPanel.js +1 -145
- package/dist/node/ui/hooks/index.js +1 -159
- package/dist/node/ui/hooks/useProjectList.js +1 -66
- package/dist/node/ui/hooks/useProjectMutations.js +1 -91
- package/dist/node/ui/index.js +5 -2077
- package/dist/node/ui/modals/CreateProjectModal.js +1 -153
- package/dist/node/ui/modals/ProjectActionsModal.js +1 -335
- package/dist/node/ui/modals/index.js +1 -487
- package/dist/node/ui/overlays/demo-overlays.js +1 -61
- package/dist/node/ui/overlays/index.js +1 -61
- package/dist/node/ui/renderers/index.js +5 -901
- package/dist/node/ui/renderers/project-list.markdown.js +5 -725
- package/dist/node/ui/renderers/project-list.renderer.js +1 -177
- package/dist/node/visualizations/catalog.js +1 -155
- package/dist/node/visualizations/index.js +1 -217
- package/dist/node/visualizations/selectors.js +1 -210
- package/dist/presentations/index.js +1 -299
- package/dist/project/index.js +1 -793
- package/dist/project/project.entity.js +1 -77
- package/dist/project/project.enum.js +1 -18
- package/dist/project/project.event.js +1 -103
- package/dist/project/project.handler.js +1 -178
- package/dist/project/project.operations.js +1 -372
- package/dist/project/project.presentation.js +1 -180
- package/dist/project/project.schema.js +1 -134
- package/dist/saas-boilerplate.feature.js +1 -304
- package/dist/seeders/index.js +2 -20
- package/dist/settings/index.js +1 -75
- package/dist/settings/settings.entity.js +1 -74
- package/dist/settings/settings.enum.js +1 -11
- package/dist/shared/mock-data.js +1 -104
- package/dist/tests/operations.test-spec.js +1 -112
- package/dist/ui/SaasDashboard.js +1 -1239
- package/dist/ui/SaasDashboard.visualizations.js +1 -249
- package/dist/ui/SaasProjectList.js +1 -162
- package/dist/ui/SaasSettingsPanel.js +1 -145
- package/dist/ui/hooks/index.js +1 -159
- package/dist/ui/hooks/useProjectList.js +1 -66
- package/dist/ui/hooks/useProjectMutations.js +1 -91
- package/dist/ui/index.js +5 -2077
- package/dist/ui/modals/CreateProjectModal.js +1 -153
- package/dist/ui/modals/ProjectActionsModal.js +1 -335
- package/dist/ui/modals/index.js +1 -487
- package/dist/ui/overlays/demo-overlays.js +1 -61
- package/dist/ui/overlays/index.js +1 -61
- package/dist/ui/renderers/index.js +5 -901
- package/dist/ui/renderers/project-list.markdown.js +5 -725
- package/dist/ui/renderers/project-list.renderer.js +1 -177
- package/dist/visualizations/catalog.js +1 -155
- package/dist/visualizations/index.js +1 -217
- package/dist/visualizations/selectors.js +1 -210
- package/package.json +15 -15
package/.turbo/turbo-build.log
CHANGED
|
@@ -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
|
|
5
|
+
Bundled 52 modules in 98ms
|
|
6
6
|
|
|
7
|
-
billing/billing.entity.js
|
|
8
|
-
tests/operations.test-spec.js 2.
|
|
9
|
-
seeders/index.js
|
|
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
|
|
12
|
-
./index.js
|
|
13
|
-
ui/index.js
|
|
14
|
-
ui/modals/index.js
|
|
15
|
-
ui/overlays/index.js
|
|
16
|
-
ui/overlays/demo-overlays.js
|
|
17
|
-
ui/renderers/index.js
|
|
18
|
-
ui/renderers/project-list.renderer.js
|
|
19
|
-
ui/renderers/project-list.markdown.js
|
|
20
|
-
ui/SaasDashboard.js
|
|
21
|
-
ui/modals/CreateProjectModal.js
|
|
22
|
-
ui/modals/ProjectActionsModal.js
|
|
23
|
-
ui/SaasDashboard.visualizations.js
|
|
24
|
-
ui/SaasProjectList.js
|
|
25
|
-
ui/SaasSettingsPanel.js
|
|
26
|
-
ui/hooks/index.js
|
|
27
|
-
ui/hooks/useProjectList.js
|
|
28
|
-
ui/hooks/useProjectMutations.js
|
|
29
|
-
./saas-boilerplate.feature.js
|
|
30
|
-
visualizations/index.js
|
|
31
|
-
visualizations/selectors.js
|
|
32
|
-
visualizations/catalog.js
|
|
33
|
-
settings/index.js
|
|
34
|
-
settings/settings.entity.js
|
|
35
|
-
settings/settings.enum.js
|
|
36
|
-
project/index.js
|
|
37
|
-
project/project.entity.js
|
|
38
|
-
project/project.event.js
|
|
39
|
-
project/project.operations.js
|
|
40
|
-
project/project.presentation.js
|
|
41
|
-
project/project.schema.js
|
|
42
|
-
project/project.enum.js
|
|
43
|
-
dashboard/index.js 1.
|
|
44
|
-
dashboard/dashboard.presentation.js 1.
|
|
45
|
-
docs/index.js 3.
|
|
46
|
-
docs/saas-boilerplate.docblock.js 3.
|
|
47
|
-
./example.js
|
|
48
|
-
handlers/index.js
|
|
49
|
-
project/project.handler.js
|
|
50
|
-
handlers/saas.handlers.js
|
|
51
|
-
billing/index.js
|
|
52
|
-
billing/billing.event.js
|
|
53
|
-
billing/billing.handler.js
|
|
54
|
-
shared/mock-data.js 2.
|
|
55
|
-
billing/billing.operations.js
|
|
56
|
-
billing/billing.presentation.js 1.
|
|
57
|
-
billing/billing.schema.js
|
|
58
|
-
billing/billing.enum.js
|
|
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
|
-
Bundled 52 modules in
|
|
61
|
+
Bundled 52 modules in 69ms
|
|
62
62
|
|
|
63
|
-
billing/billing.entity.js
|
|
64
|
-
tests/operations.test-spec.js 2.
|
|
65
|
-
seeders/index.js
|
|
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
|
|
68
|
-
./index.js
|
|
69
|
-
ui/index.js
|
|
70
|
-
ui/modals/index.js
|
|
71
|
-
ui/overlays/index.js
|
|
72
|
-
ui/overlays/demo-overlays.js
|
|
73
|
-
ui/renderers/index.js
|
|
74
|
-
ui/renderers/project-list.renderer.js
|
|
75
|
-
ui/renderers/project-list.markdown.js
|
|
76
|
-
ui/SaasDashboard.js
|
|
77
|
-
ui/modals/CreateProjectModal.js
|
|
78
|
-
ui/modals/ProjectActionsModal.js
|
|
79
|
-
ui/SaasDashboard.visualizations.js
|
|
80
|
-
ui/SaasProjectList.js
|
|
81
|
-
ui/SaasSettingsPanel.js
|
|
82
|
-
ui/hooks/index.js
|
|
83
|
-
ui/hooks/useProjectList.js
|
|
84
|
-
ui/hooks/useProjectMutations.js
|
|
85
|
-
./saas-boilerplate.feature.js
|
|
86
|
-
visualizations/index.js
|
|
87
|
-
visualizations/selectors.js
|
|
88
|
-
visualizations/catalog.js
|
|
89
|
-
settings/index.js
|
|
90
|
-
settings/settings.entity.js
|
|
91
|
-
settings/settings.enum.js
|
|
92
|
-
project/index.js
|
|
93
|
-
project/project.entity.js
|
|
94
|
-
project/project.event.js
|
|
95
|
-
project/project.operations.js
|
|
96
|
-
project/project.presentation.js
|
|
97
|
-
project/project.schema.js
|
|
98
|
-
project/project.enum.js
|
|
99
|
-
dashboard/index.js 1.
|
|
100
|
-
dashboard/dashboard.presentation.js 1.
|
|
101
|
-
docs/index.js 3.
|
|
102
|
-
docs/saas-boilerplate.docblock.js 3.
|
|
103
|
-
./example.js
|
|
104
|
-
handlers/index.js
|
|
105
|
-
project/project.handler.js
|
|
106
|
-
handlers/saas.handlers.js
|
|
107
|
-
billing/index.js
|
|
108
|
-
billing/billing.event.js
|
|
109
|
-
billing/billing.handler.js
|
|
110
|
-
shared/mock-data.js 2.
|
|
111
|
-
billing/billing.operations.js
|
|
112
|
-
billing/billing.presentation.js 1.
|
|
113
|
-
billing/billing.schema.js
|
|
114
|
-
billing/billing.enum.js
|
|
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
|
|
117
|
+
Bundled 52 modules in 72ms
|
|
118
118
|
|
|
119
|
-
billing/billing.entity.js
|
|
120
|
-
tests/operations.test-spec.js 2.
|
|
121
|
-
seeders/index.js
|
|
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
|
|
124
|
-
./index.js
|
|
125
|
-
ui/index.js
|
|
126
|
-
ui/modals/index.js
|
|
127
|
-
ui/overlays/index.js
|
|
128
|
-
ui/overlays/demo-overlays.js
|
|
129
|
-
ui/renderers/index.js
|
|
130
|
-
ui/renderers/project-list.renderer.js
|
|
131
|
-
ui/renderers/project-list.markdown.js
|
|
132
|
-
ui/SaasDashboard.js
|
|
133
|
-
ui/modals/CreateProjectModal.js
|
|
134
|
-
ui/modals/ProjectActionsModal.js
|
|
135
|
-
ui/SaasDashboard.visualizations.js
|
|
136
|
-
ui/SaasProjectList.js
|
|
137
|
-
ui/SaasSettingsPanel.js
|
|
138
|
-
ui/hooks/index.js
|
|
139
|
-
ui/hooks/useProjectList.js
|
|
140
|
-
ui/hooks/useProjectMutations.js
|
|
141
|
-
./saas-boilerplate.feature.js
|
|
142
|
-
visualizations/index.js
|
|
143
|
-
visualizations/selectors.js
|
|
144
|
-
visualizations/catalog.js
|
|
145
|
-
settings/index.js
|
|
146
|
-
settings/settings.entity.js
|
|
147
|
-
settings/settings.enum.js
|
|
148
|
-
project/index.js
|
|
149
|
-
project/project.entity.js
|
|
150
|
-
project/project.event.js
|
|
151
|
-
project/project.operations.js
|
|
152
|
-
project/project.presentation.js
|
|
153
|
-
project/project.schema.js
|
|
154
|
-
project/project.enum.js
|
|
155
|
-
dashboard/index.js 1.
|
|
156
|
-
dashboard/dashboard.presentation.js 1.
|
|
157
|
-
docs/index.js 3.
|
|
158
|
-
docs/saas-boilerplate.docblock.js 3.
|
|
159
|
-
./example.js
|
|
160
|
-
handlers/index.js
|
|
161
|
-
project/project.handler.js
|
|
162
|
-
handlers/saas.handlers.js
|
|
163
|
-
billing/index.js
|
|
164
|
-
billing/billing.event.js
|
|
165
|
-
billing/billing.handler.js
|
|
166
|
-
shared/mock-data.js 2.
|
|
167
|
-
billing/billing.operations.js
|
|
168
|
-
billing/billing.presentation.js 1.
|
|
169
|
-
billing/billing.schema.js
|
|
170
|
-
billing/billing.enum.js
|
|
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,45 @@
|
|
|
1
1
|
# @contractspec/example.saas-boilerplate
|
|
2
2
|
|
|
3
|
+
## 3.8.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- chore: auto-bump internal dependents
|
|
8
|
+
- Updated dependencies because of chore: auto-bump internal dependents
|
|
9
|
+
- Updated dependencies because of Introduce the Builder v3 control plane as a governed authoring layer over external execution providers.
|
|
10
|
+
- Updated dependencies because of Implement ContractSpec Connect as a first-class spec, runtime, and CLI workflow.
|
|
11
|
+
- Updated dependencies because of Pass Bun transpile paths through production JSX mode so published browser bundles stop emitting the dev runtime.
|
|
12
|
+
- @contractspec/lib.identity-rbac@3.7.18
|
|
13
|
+
- @contractspec/lib.jobs@3.7.18
|
|
14
|
+
- @contractspec/lib.presentation-runtime-core@3.9.6
|
|
15
|
+
- @contractspec/module.audit-trail@3.7.18
|
|
16
|
+
- @contractspec/module.notifications@3.7.17
|
|
17
|
+
- @contractspec/lib.contracts-spec@5.2.0
|
|
18
|
+
- @contractspec/lib.design-system@3.8.11
|
|
19
|
+
- @contractspec/lib.example-shared-ui@6.0.18
|
|
20
|
+
- @contractspec/lib.runtime-sandbox@2.7.14
|
|
21
|
+
- @contractspec/lib.schema@3.7.14
|
|
22
|
+
|
|
23
|
+
## 3.8.9
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Fix workflow runtime imports for sandboxed workflow execution and keep workflow authoring on safe subpaths.
|
|
28
|
+
- Migration: Keep Node-only workflow runner code out of "use workflow" entrypoints.
|
|
29
|
+
- Deprecations: Importing the broad `@contractspec/lib.contracts-spec/workflow` barrel from sandboxed workflow entrypoints is discouraged.
|
|
30
|
+
- Updated dependencies because of Fix workflow runtime imports for sandboxed workflow execution and keep workflow authoring on safe subpaths.
|
|
31
|
+
- Updated dependencies because of Add versioning-backed release capsules, generated patch notes, and guided upgrade flows.
|
|
32
|
+
- @contractspec/lib.presentation-runtime-core@3.9.5
|
|
33
|
+
- @contractspec/lib.example-shared-ui@6.0.17
|
|
34
|
+
- @contractspec/module.notifications@3.7.16
|
|
35
|
+
- @contractspec/lib.runtime-sandbox@2.7.14
|
|
36
|
+
- @contractspec/lib.contracts-spec@5.1.0
|
|
37
|
+
- @contractspec/module.audit-trail@3.7.17
|
|
38
|
+
- @contractspec/lib.design-system@3.8.10
|
|
39
|
+
- @contractspec/lib.identity-rbac@3.7.17
|
|
40
|
+
- @contractspec/lib.schema@3.7.14
|
|
41
|
+
- @contractspec/lib.jobs@3.7.17
|
|
42
|
+
|
|
3
43
|
## 3.8.8
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -1,114 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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};
|