@contractspec/example.saas-boilerplate 1.44.0 → 1.45.0

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 (37) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +22 -22
  2. package/.turbo/turbo-build.log +28 -28
  3. package/CHANGELOG.md +45 -0
  4. package/dist/billing/billing.event.d.ts +21 -21
  5. package/dist/billing/billing.event.js +3 -3
  6. package/dist/billing/billing.event.js.map +1 -1
  7. package/dist/billing/billing.operations.d.ts +43 -43
  8. package/dist/billing/billing.operations.js +5 -5
  9. package/dist/billing/billing.operations.js.map +1 -1
  10. package/dist/billing/billing.presentation.js +2 -2
  11. package/dist/billing/billing.presentation.js.map +1 -1
  12. package/dist/dashboard/dashboard.presentation.js +2 -2
  13. package/dist/dashboard/dashboard.presentation.js.map +1 -1
  14. package/dist/example.d.ts +3 -33
  15. package/dist/example.d.ts.map +1 -1
  16. package/dist/example.js +16 -11
  17. package/dist/example.js.map +1 -1
  18. package/dist/project/project.event.js +4 -4
  19. package/dist/project/project.event.js.map +1 -1
  20. package/dist/project/project.operations.d.ts +3 -3
  21. package/dist/project/project.operations.js +8 -8
  22. package/dist/project/project.operations.js.map +1 -1
  23. package/dist/project/project.presentation.js +2 -2
  24. package/dist/project/project.presentation.js.map +1 -1
  25. package/dist/saas-boilerplate.feature.js +38 -38
  26. package/dist/saas-boilerplate.feature.js.map +1 -1
  27. package/package.json +10 -10
  28. package/src/billing/billing.event.ts +3 -3
  29. package/src/billing/billing.operations.ts +5 -5
  30. package/src/billing/billing.presentation.ts +2 -2
  31. package/src/dashboard/dashboard.presentation.ts +2 -2
  32. package/src/example.ts +16 -9
  33. package/src/project/project.event.ts +4 -4
  34. package/src/project/project.operations.ts +8 -8
  35. package/src/project/project.presentation.ts +2 -2
  36. package/src/saas-boilerplate.feature.ts +42 -38
  37. package/tsconfig.tsbuildinfo +1 -1
@@ -19,91 +19,95 @@ export const SaasBoilerplateFeature: FeatureModuleSpec = {
19
19
  owners: ['@saas-team'],
20
20
  tags: ['saas', 'projects', 'billing'],
21
21
  stability: 'experimental',
22
- version: 1,
22
+ version: '1.0.0',
23
23
  },
24
24
 
25
25
  // All contract operations included in this feature
26
26
  operations: [
27
27
  // Project operations
28
- { key: 'saas.project.create', version: 1 },
29
- { key: 'saas.project.get', version: 1 },
30
- { key: 'saas.project.update', version: 1 },
31
- { key: 'saas.project.delete', version: 1 },
32
- { key: 'saas.project.list', version: 1 },
28
+ { key: 'saas.project.create', version: '1.0.0' },
29
+ { key: 'saas.project.get', version: '1.0.0' },
30
+ { key: 'saas.project.update', version: '1.0.0' },
31
+ { key: 'saas.project.delete', version: '1.0.0' },
32
+ { key: 'saas.project.list', version: '1.0.0' },
33
33
 
34
34
  // Billing operations
35
- { key: 'saas.billing.subscription.get', version: 1 },
36
- { key: 'saas.billing.usage.record', version: 1 },
37
- { key: 'saas.billing.usage.summary', version: 1 },
38
- { key: 'saas.billing.feature.check', version: 1 },
35
+ { key: 'saas.billing.subscription.get', version: '1.0.0' },
36
+ { key: 'saas.billing.usage.record', version: '1.0.0' },
37
+ { key: 'saas.billing.usage.summary', version: '1.0.0' },
38
+ { key: 'saas.billing.feature.check', version: '1.0.0' },
39
39
  ],
40
40
 
41
41
  // Events emitted by this feature
42
42
  events: [
43
43
  // Project events
44
- { key: 'project.created', version: 1 },
45
- { key: 'project.updated', version: 1 },
46
- { key: 'project.deleted', version: 1 },
47
- { key: 'project.archived', version: 1 },
44
+ { key: 'project.created', version: '1.0.0' },
45
+ { key: 'project.updated', version: '1.0.0' },
46
+ { key: 'project.deleted', version: '1.0.0' },
47
+ { key: 'project.archived', version: '1.0.0' },
48
48
 
49
49
  // Billing events
50
- { key: 'billing.usage.recorded', version: 1 },
51
- { key: 'billing.subscription.changed', version: 1 },
52
- { key: 'billing.limit.reached', version: 1 },
50
+ { key: 'billing.usage.recorded', version: '1.0.0' },
51
+ { key: 'billing.subscription.changed', version: '1.0.0' },
52
+ { key: 'billing.limit.reached', version: '1.0.0' },
53
53
  ],
54
54
 
55
55
  // Presentations associated with this feature
56
56
  presentations: [
57
- { key: 'saas.dashboard', version: 1 },
58
- { key: 'saas.project.list', version: 1 },
59
- { key: 'saas.project.detail', version: 1 },
60
- { key: 'saas.billing.subscription', version: 1 },
61
- { key: 'saas.billing.usage', version: 1 },
62
- { key: 'saas.settings', version: 1 },
57
+ { key: 'saas.dashboard', version: '1.0.0' },
58
+ { key: 'saas.project.list', version: '1.0.0' },
59
+ { key: 'saas.project.detail', version: '1.0.0' },
60
+ { key: 'saas.billing.subscription', version: '1.0.0' },
61
+ { key: 'saas.billing.usage', version: '1.0.0' },
62
+ { key: 'saas.settings', version: '1.0.0' },
63
63
  ],
64
64
 
65
65
  // Link operations to their primary presentations
66
66
  opToPresentation: [
67
67
  {
68
- op: { key: 'saas.project.list', version: 1 },
69
- pres: { key: 'saas.project.list', version: 1 },
68
+ op: { key: 'saas.project.list', version: '1.0.0' },
69
+ pres: { key: 'saas.project.list', version: '1.0.0' },
70
70
  },
71
71
  {
72
- op: { key: 'saas.project.get', version: 1 },
73
- pres: { key: 'saas.project.detail', version: 1 },
72
+ op: { key: 'saas.project.get', version: '1.0.0' },
73
+ pres: { key: 'saas.project.detail', version: '1.0.0' },
74
74
  },
75
75
  {
76
- op: { key: 'saas.billing.subscription.get', version: 1 },
77
- pres: { key: 'saas.billing.subscription', version: 1 },
76
+ op: { key: 'saas.billing.subscription.get', version: '1.0.0' },
77
+ pres: { key: 'saas.billing.subscription', version: '1.0.0' },
78
78
  },
79
79
  {
80
- op: { key: 'saas.billing.usage.summary', version: 1 },
81
- pres: { key: 'saas.billing.usage', version: 1 },
80
+ op: { key: 'saas.billing.usage.summary', version: '1.0.0' },
81
+ pres: { key: 'saas.billing.usage', version: '1.0.0' },
82
82
  },
83
83
  ],
84
84
 
85
85
  // Target requirements for multi-surface rendering
86
86
  presentationsTargets: [
87
- { key: 'saas.dashboard', version: 1, targets: ['react', 'markdown'] },
87
+ { key: 'saas.dashboard', version: '1.0.0', targets: ['react', 'markdown'] },
88
88
  {
89
89
  key: 'saas.project.list',
90
- version: 1,
90
+ version: '1.0.0',
91
91
  targets: ['react', 'markdown', 'application/json'],
92
92
  },
93
93
  {
94
94
  key: 'saas.billing.subscription',
95
- version: 1,
95
+ version: '1.0.0',
96
+ targets: ['react', 'markdown'],
97
+ },
98
+ {
99
+ key: 'saas.billing.usage',
100
+ version: '1.0.0',
96
101
  targets: ['react', 'markdown'],
97
102
  },
98
- { key: 'saas.billing.usage', version: 1, targets: ['react', 'markdown'] },
99
103
  ],
100
104
 
101
105
  // Capability requirements
102
106
  capabilities: {
103
107
  requires: [
104
- { key: 'identity', version: 1 },
105
- { key: 'audit-trail', version: 1 },
106
- { key: 'notifications', version: 1 },
108
+ { key: 'identity', version: '1.0.0' },
109
+ { key: 'audit-trail', version: '1.0.0' },
110
+ { key: 'notifications', version: '1.0.0' },
107
111
  ],
108
112
  },
109
113
  };