@contractspec/example.saas-boilerplate 1.61.0 → 2.0.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 (163) hide show
  1. package/.turbo/turbo-build.log +40 -40
  2. package/CHANGELOG.md +96 -45
  3. package/dist/billing/billing.entity.d.ts +0 -1
  4. package/dist/billing/billing.enum.d.ts +0 -1
  5. package/dist/billing/billing.event.d.ts +3 -4
  6. package/dist/billing/billing.event.js +1 -1
  7. package/dist/billing/billing.handler.d.ts +0 -1
  8. package/dist/billing/billing.operations.d.ts +4 -5
  9. package/dist/billing/billing.operations.js +1 -1
  10. package/dist/billing/billing.presentation.d.ts +2 -3
  11. package/dist/billing/billing.presentation.js +4 -1
  12. package/dist/billing/billing.schema.d.ts +0 -1
  13. package/dist/billing/index.d.ts +0 -1
  14. package/dist/billing/index.js +6 -3
  15. package/dist/browser/billing/billing.event.js +1 -1
  16. package/dist/browser/billing/billing.operations.js +1 -1
  17. package/dist/browser/billing/billing.presentation.js +4 -1
  18. package/dist/browser/billing/index.js +6 -3
  19. package/dist/browser/dashboard/dashboard.presentation.js +4 -1
  20. package/dist/browser/dashboard/index.js +4 -1
  21. package/dist/browser/docs/index.js +1 -1
  22. package/dist/browser/docs/saas-boilerplate.docblock.js +1 -1
  23. package/dist/browser/example.js +1 -1
  24. package/dist/browser/index.js +19 -10
  25. package/dist/browser/presentations/index.js +12 -3
  26. package/dist/browser/project/index.js +6 -3
  27. package/dist/browser/project/project.event.js +1 -1
  28. package/dist/browser/project/project.operations.js +1 -1
  29. package/dist/browser/project/project.presentation.js +4 -1
  30. package/dist/browser/saas-boilerplate.feature.js +1 -1
  31. package/dist/browser/tests/operations.test-spec.js +1 -1
  32. package/dist/dashboard/dashboard.presentation.d.ts +2 -3
  33. package/dist/dashboard/dashboard.presentation.js +4 -1
  34. package/dist/dashboard/index.d.ts +0 -1
  35. package/dist/dashboard/index.js +4 -1
  36. package/dist/docs/index.d.ts +0 -1
  37. package/dist/docs/index.js +1 -1
  38. package/dist/docs/saas-boilerplate.docblock.d.ts +0 -1
  39. package/dist/docs/saas-boilerplate.docblock.js +1 -1
  40. package/dist/example.d.ts +1 -2
  41. package/dist/example.js +1 -1
  42. package/dist/handlers/index.d.ts +0 -1
  43. package/dist/handlers/saas.handlers.d.ts +0 -1
  44. package/dist/index.d.ts +0 -1
  45. package/dist/index.js +19 -10
  46. package/dist/node/billing/billing.event.js +1 -1
  47. package/dist/node/billing/billing.operations.js +1 -1
  48. package/dist/node/billing/billing.presentation.js +4 -1
  49. package/dist/node/billing/index.js +6 -3
  50. package/dist/node/dashboard/dashboard.presentation.js +4 -1
  51. package/dist/node/dashboard/index.js +4 -1
  52. package/dist/node/docs/index.js +1 -1
  53. package/dist/node/docs/saas-boilerplate.docblock.js +1 -1
  54. package/dist/node/example.js +1 -1
  55. package/dist/node/index.js +19 -10
  56. package/dist/node/presentations/index.js +12 -3
  57. package/dist/node/project/index.js +6 -3
  58. package/dist/node/project/project.event.js +1 -1
  59. package/dist/node/project/project.operations.js +1 -1
  60. package/dist/node/project/project.presentation.js +4 -1
  61. package/dist/node/saas-boilerplate.feature.js +1 -1
  62. package/dist/node/tests/operations.test-spec.js +1 -1
  63. package/dist/presentations/index.d.ts +0 -1
  64. package/dist/presentations/index.js +12 -3
  65. package/dist/project/index.d.ts +0 -1
  66. package/dist/project/index.js +6 -3
  67. package/dist/project/project.entity.d.ts +0 -1
  68. package/dist/project/project.enum.d.ts +0 -1
  69. package/dist/project/project.event.d.ts +4 -5
  70. package/dist/project/project.event.js +1 -1
  71. package/dist/project/project.handler.d.ts +0 -1
  72. package/dist/project/project.operations.d.ts +5 -6
  73. package/dist/project/project.operations.js +1 -1
  74. package/dist/project/project.presentation.d.ts +2 -3
  75. package/dist/project/project.presentation.js +4 -1
  76. package/dist/project/project.schema.d.ts +0 -1
  77. package/dist/saas-boilerplate.feature.d.ts +1 -2
  78. package/dist/saas-boilerplate.feature.js +1 -1
  79. package/dist/seeders/index.d.ts +0 -1
  80. package/dist/settings/index.d.ts +0 -1
  81. package/dist/settings/settings.entity.d.ts +0 -1
  82. package/dist/settings/settings.enum.d.ts +0 -1
  83. package/dist/shared/mock-data.d.ts +0 -1
  84. package/dist/shared/overlay-types.d.ts +0 -1
  85. package/dist/tests/operations.test-spec.d.ts +4 -5
  86. package/dist/tests/operations.test-spec.js +1 -1
  87. package/dist/ui/SaasDashboard.d.ts +0 -1
  88. package/dist/ui/SaasProjectList.d.ts +0 -1
  89. package/dist/ui/SaasSettingsPanel.d.ts +0 -1
  90. package/dist/ui/hooks/index.d.ts +0 -1
  91. package/dist/ui/hooks/useProjectList.d.ts +0 -1
  92. package/dist/ui/hooks/useProjectMutations.d.ts +0 -1
  93. package/dist/ui/index.d.ts +0 -1
  94. package/dist/ui/modals/CreateProjectModal.d.ts +0 -1
  95. package/dist/ui/modals/ProjectActionsModal.d.ts +0 -1
  96. package/dist/ui/modals/index.d.ts +0 -1
  97. package/dist/ui/overlays/demo-overlays.d.ts +0 -1
  98. package/dist/ui/overlays/index.d.ts +0 -1
  99. package/dist/ui/renderers/index.d.ts +0 -1
  100. package/dist/ui/renderers/project-list.markdown.d.ts +1 -2
  101. package/dist/ui/renderers/project-list.renderer.d.ts +1 -2
  102. package/package.json +14 -14
  103. package/src/billing/billing.event.ts +1 -1
  104. package/src/billing/billing.operations.ts +1 -1
  105. package/src/billing/billing.presentation.ts +4 -1
  106. package/src/dashboard/dashboard.presentation.ts +4 -1
  107. package/src/docs/saas-boilerplate.docblock.ts +2 -2
  108. package/src/example.ts +1 -1
  109. package/src/project/project.event.ts +1 -1
  110. package/src/project/project.operations.ts +1 -1
  111. package/src/project/project.presentation.ts +4 -1
  112. package/src/saas-boilerplate.feature.ts +1 -1
  113. package/src/tests/operations.test-spec.ts +1 -1
  114. package/src/ui/renderers/project-list.markdown.ts +1 -1
  115. package/src/ui/renderers/project-list.renderer.tsx +1 -1
  116. package/dist/billing/billing.entity.d.ts.map +0 -1
  117. package/dist/billing/billing.enum.d.ts.map +0 -1
  118. package/dist/billing/billing.event.d.ts.map +0 -1
  119. package/dist/billing/billing.handler.d.ts.map +0 -1
  120. package/dist/billing/billing.operations.d.ts.map +0 -1
  121. package/dist/billing/billing.presentation.d.ts.map +0 -1
  122. package/dist/billing/billing.schema.d.ts.map +0 -1
  123. package/dist/billing/index.d.ts.map +0 -1
  124. package/dist/dashboard/dashboard.presentation.d.ts.map +0 -1
  125. package/dist/dashboard/index.d.ts.map +0 -1
  126. package/dist/docs/index.d.ts.map +0 -1
  127. package/dist/docs/saas-boilerplate.docblock.d.ts.map +0 -1
  128. package/dist/example.d.ts.map +0 -1
  129. package/dist/handlers/index.d.ts.map +0 -1
  130. package/dist/handlers/saas.handlers.d.ts.map +0 -1
  131. package/dist/index.d.ts.map +0 -1
  132. package/dist/presentations/index.d.ts.map +0 -1
  133. package/dist/project/index.d.ts.map +0 -1
  134. package/dist/project/project.entity.d.ts.map +0 -1
  135. package/dist/project/project.enum.d.ts.map +0 -1
  136. package/dist/project/project.event.d.ts.map +0 -1
  137. package/dist/project/project.handler.d.ts.map +0 -1
  138. package/dist/project/project.operations.d.ts.map +0 -1
  139. package/dist/project/project.presentation.d.ts.map +0 -1
  140. package/dist/project/project.schema.d.ts.map +0 -1
  141. package/dist/saas-boilerplate.feature.d.ts.map +0 -1
  142. package/dist/seeders/index.d.ts.map +0 -1
  143. package/dist/settings/index.d.ts.map +0 -1
  144. package/dist/settings/settings.entity.d.ts.map +0 -1
  145. package/dist/settings/settings.enum.d.ts.map +0 -1
  146. package/dist/shared/mock-data.d.ts.map +0 -1
  147. package/dist/shared/overlay-types.d.ts.map +0 -1
  148. package/dist/tests/operations.test-spec.d.ts.map +0 -1
  149. package/dist/ui/SaasDashboard.d.ts.map +0 -1
  150. package/dist/ui/SaasProjectList.d.ts.map +0 -1
  151. package/dist/ui/SaasSettingsPanel.d.ts.map +0 -1
  152. package/dist/ui/hooks/index.d.ts.map +0 -1
  153. package/dist/ui/hooks/useProjectList.d.ts.map +0 -1
  154. package/dist/ui/hooks/useProjectMutations.d.ts.map +0 -1
  155. package/dist/ui/index.d.ts.map +0 -1
  156. package/dist/ui/modals/CreateProjectModal.d.ts.map +0 -1
  157. package/dist/ui/modals/ProjectActionsModal.d.ts.map +0 -1
  158. package/dist/ui/modals/index.d.ts.map +0 -1
  159. package/dist/ui/overlays/demo-overlays.d.ts.map +0 -1
  160. package/dist/ui/overlays/index.d.ts.map +0 -1
  161. package/dist/ui/renderers/index.d.ts.map +0 -1
  162. package/dist/ui/renderers/project-list.markdown.d.ts.map +0 -1
  163. package/dist/ui/renderers/project-list.renderer.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Get subscription status.
3
3
  */
4
- export declare const GetSubscriptionContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").AnySchemaModel, import("@contractspec/lib.schema").SchemaModel<{
4
+ export declare const GetSubscriptionContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").AnySchemaModel, import("@contractspec/lib.schema").SchemaModel<{
5
5
  id: {
6
6
  type: import("@contractspec/lib.schema").FieldType<string, string>;
7
7
  isOptional: false;
@@ -42,7 +42,7 @@ export declare const GetSubscriptionContract: import("@contractspec/lib.contract
42
42
  /**
43
43
  * Record feature usage.
44
44
  */
45
- export declare const RecordUsageContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
45
+ export declare const RecordUsageContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
46
46
  feature: {
47
47
  type: import("@contractspec/lib.schema").FieldType<string, string>;
48
48
  isOptional: false;
@@ -98,7 +98,7 @@ export declare const RecordUsageContract: import("@contractspec/lib.contracts").
98
98
  /**
99
99
  * Get usage summary.
100
100
  */
101
- export declare const GetUsageSummaryContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
101
+ export declare const GetUsageSummaryContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
102
102
  billingPeriod: {
103
103
  type: import("@contractspec/lib.schema").FieldType<string, string>;
104
104
  isOptional: true;
@@ -138,7 +138,7 @@ export declare const GetUsageSummaryContract: import("@contractspec/lib.contract
138
138
  /**
139
139
  * Check feature access.
140
140
  */
141
- export declare const CheckFeatureAccessContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
141
+ export declare const CheckFeatureAccessContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
142
142
  feature: {
143
143
  type: import("@contractspec/lib.schema").FieldType<string, string>;
144
144
  isOptional: false;
@@ -157,4 +157,3 @@ export declare const CheckFeatureAccessContract: import("@contractspec/lib.contr
157
157
  isOptional: true;
158
158
  };
159
159
  }>, undefined>;
160
- //# sourceMappingURL=billing.operations.d.ts.map
@@ -111,7 +111,7 @@ var CheckFeatureAccessOutputModel = defineSchemaModel({
111
111
  });
112
112
 
113
113
  // src/billing/billing.operations.ts
114
- import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
114
+ import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
115
115
  var OWNERS = ["@example.saas-boilerplate"];
116
116
  var GetSubscriptionContract = defineQuery({
117
117
  meta: {
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * Presentation for subscription overview.
3
3
  */
4
- export declare const SubscriptionPresentation: import("@contractspec/lib.contracts").PresentationSpec;
4
+ export declare const SubscriptionPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
5
5
  /**
6
6
  * Presentation for usage dashboard.
7
7
  */
8
- export declare const UsageDashboardPresentation: import("@contractspec/lib.contracts").PresentationSpec;
9
- //# sourceMappingURL=billing.presentation.d.ts.map
8
+ export declare const UsageDashboardPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
@@ -1,6 +1,9 @@
1
1
  // @bun
2
2
  // src/billing/billing.presentation.ts
3
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
3
+ import {
4
+ definePresentation,
5
+ StabilityEnum
6
+ } from "@contractspec/lib.contracts-spec";
4
7
  var SubscriptionPresentation = definePresentation({
5
8
  meta: {
6
9
  key: "saas.billing.subscription",
@@ -193,4 +193,3 @@ export declare const CheckFeatureAccessOutputModel: import("@contractspec/lib.sc
193
193
  isOptional: true;
194
194
  };
195
195
  }>;
196
- //# sourceMappingURL=billing.schema.d.ts.map
@@ -8,4 +8,3 @@ export { UsageRecordedEvent, UsageLimitReachedEvent, SubscriptionChangedEvent, }
8
8
  export { SubscriptionStatusEnum, SubscriptionEntity, BillingUsageEntity, UsageLimitEntity, } from './billing.entity';
9
9
  export { SubscriptionPresentation, UsageDashboardPresentation, } from './billing.presentation';
10
10
  export { mockGetSubscriptionHandler, mockGetUsageSummaryHandler, mockRecordUsageHandler, mockCheckFeatureAccessHandler, type Subscription, type UsageSummary, type RecordUsageInput, type CheckFeatureAccessInput, type CheckFeatureAccessOutput, } from './billing.handler';
11
- //# sourceMappingURL=index.d.ts.map
@@ -125,7 +125,7 @@ var FeatureAccessReasonEnum = defineEnum("FeatureAccessReason", [
125
125
 
126
126
  // src/billing/billing.event.ts
127
127
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
128
- import { defineEvent } from "@contractspec/lib.contracts";
128
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
129
129
  var UsageRecordedPayload = defineSchemaModel({
130
130
  name: "UsageRecordedPayload",
131
131
  description: "Payload when feature usage is recorded",
@@ -448,7 +448,7 @@ var CheckFeatureAccessOutputModel = defineSchemaModel2({
448
448
  });
449
449
 
450
450
  // src/billing/billing.operations.ts
451
- import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
451
+ import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
452
452
  var OWNERS = ["@example.saas-boilerplate"];
453
453
  var GetSubscriptionContract = defineQuery({
454
454
  meta: {
@@ -610,7 +610,10 @@ var CheckFeatureAccessContract = defineQuery({
610
610
  });
611
611
 
612
612
  // src/billing/billing.presentation.ts
613
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
613
+ import {
614
+ definePresentation,
615
+ StabilityEnum
616
+ } from "@contractspec/lib.contracts-spec";
614
617
  var SubscriptionPresentation = definePresentation({
615
618
  meta: {
616
619
  key: "saas.billing.subscription",
@@ -1,6 +1,6 @@
1
1
  // src/billing/billing.event.ts
2
2
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
- import { defineEvent } from "@contractspec/lib.contracts";
3
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
4
4
  var UsageRecordedPayload = defineSchemaModel({
5
5
  name: "UsageRecordedPayload",
6
6
  description: "Payload when feature usage is recorded",
@@ -110,7 +110,7 @@ var CheckFeatureAccessOutputModel = defineSchemaModel({
110
110
  });
111
111
 
112
112
  // src/billing/billing.operations.ts
113
- import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
113
+ import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
114
114
  var OWNERS = ["@example.saas-boilerplate"];
115
115
  var GetSubscriptionContract = defineQuery({
116
116
  meta: {
@@ -1,5 +1,8 @@
1
1
  // src/billing/billing.presentation.ts
2
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
2
+ import {
3
+ definePresentation,
4
+ StabilityEnum
5
+ } from "@contractspec/lib.contracts-spec";
3
6
  var SubscriptionPresentation = definePresentation({
4
7
  meta: {
5
8
  key: "saas.billing.subscription",
@@ -124,7 +124,7 @@ var FeatureAccessReasonEnum = defineEnum("FeatureAccessReason", [
124
124
 
125
125
  // src/billing/billing.event.ts
126
126
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
127
- import { defineEvent } from "@contractspec/lib.contracts";
127
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
128
128
  var UsageRecordedPayload = defineSchemaModel({
129
129
  name: "UsageRecordedPayload",
130
130
  description: "Payload when feature usage is recorded",
@@ -447,7 +447,7 @@ var CheckFeatureAccessOutputModel = defineSchemaModel2({
447
447
  });
448
448
 
449
449
  // src/billing/billing.operations.ts
450
- import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
450
+ import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
451
451
  var OWNERS = ["@example.saas-boilerplate"];
452
452
  var GetSubscriptionContract = defineQuery({
453
453
  meta: {
@@ -609,7 +609,10 @@ var CheckFeatureAccessContract = defineQuery({
609
609
  });
610
610
 
611
611
  // src/billing/billing.presentation.ts
612
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
612
+ import {
613
+ definePresentation,
614
+ StabilityEnum
615
+ } from "@contractspec/lib.contracts-spec";
613
616
  var SubscriptionPresentation = definePresentation({
614
617
  meta: {
615
618
  key: "saas.billing.subscription",
@@ -1,5 +1,8 @@
1
1
  // src/dashboard/dashboard.presentation.ts
2
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
2
+ import {
3
+ definePresentation,
4
+ StabilityEnum
5
+ } from "@contractspec/lib.contracts-spec";
3
6
  var SaasDashboardPresentation = definePresentation({
4
7
  meta: {
5
8
  key: "saas.dashboard",
@@ -1,5 +1,8 @@
1
1
  // src/dashboard/dashboard.presentation.ts
2
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
2
+ import {
3
+ definePresentation,
4
+ StabilityEnum
5
+ } from "@contractspec/lib.contracts-spec";
3
6
  var SaasDashboardPresentation = definePresentation({
4
7
  meta: {
5
8
  key: "saas.dashboard",
@@ -1,5 +1,5 @@
1
1
  // src/docs/saas-boilerplate.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var saasBoilerplateDocBlocks = [
4
4
  {
5
5
  id: "docs.examples.saas-boilerplate.goal",
@@ -1,5 +1,5 @@
1
1
  // src/docs/saas-boilerplate.docblock.ts
2
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
3
3
  var saasBoilerplateDocBlocks = [
4
4
  {
5
5
  id: "docs.examples.saas-boilerplate.goal",
@@ -1,5 +1,5 @@
1
1
  // src/example.ts
2
- import { defineExample } from "@contractspec/lib.contracts";
2
+ import { defineExample } from "@contractspec/lib.contracts-spec";
3
3
  var example = defineExample({
4
4
  meta: {
5
5
  key: "saas-boilerplate",
@@ -124,7 +124,7 @@ var FeatureAccessReasonEnum = defineEnum("FeatureAccessReason", [
124
124
 
125
125
  // src/billing/billing.event.ts
126
126
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
127
- import { defineEvent } from "@contractspec/lib.contracts";
127
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
128
128
  var UsageRecordedPayload = defineSchemaModel({
129
129
  name: "UsageRecordedPayload",
130
130
  description: "Payload when feature usage is recorded",
@@ -447,7 +447,7 @@ var CheckFeatureAccessOutputModel = defineSchemaModel2({
447
447
  });
448
448
 
449
449
  // src/billing/billing.operations.ts
450
- import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
450
+ import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
451
451
  var OWNERS = ["@example.saas-boilerplate"];
452
452
  var GetSubscriptionContract = defineQuery({
453
453
  meta: {
@@ -609,7 +609,10 @@ var CheckFeatureAccessContract = defineQuery({
609
609
  });
610
610
 
611
611
  // src/billing/billing.presentation.ts
612
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
612
+ import {
613
+ definePresentation,
614
+ StabilityEnum
615
+ } from "@contractspec/lib.contracts-spec";
613
616
  var SubscriptionPresentation = definePresentation({
614
617
  meta: {
615
618
  key: "saas.billing.subscription",
@@ -657,7 +660,10 @@ var UsageDashboardPresentation = definePresentation({
657
660
  }
658
661
  });
659
662
  // src/dashboard/dashboard.presentation.ts
660
- import { definePresentation as definePresentation2, StabilityEnum as StabilityEnum2 } from "@contractspec/lib.contracts";
663
+ import {
664
+ definePresentation as definePresentation2,
665
+ StabilityEnum as StabilityEnum2
666
+ } from "@contractspec/lib.contracts-spec";
661
667
  var SaasDashboardPresentation = definePresentation2({
662
668
  meta: {
663
669
  key: "saas.dashboard",
@@ -705,7 +711,7 @@ var SettingsPanelPresentation = definePresentation2({
705
711
  }
706
712
  });
707
713
  // src/docs/saas-boilerplate.docblock.ts
708
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
714
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
709
715
  var saasBoilerplateDocBlocks = [
710
716
  {
711
717
  id: "docs.examples.saas-boilerplate.goal",
@@ -798,7 +804,7 @@ var saasBoilerplateDocBlocks = [
798
804
  ];
799
805
  registerDocBlocks(saasBoilerplateDocBlocks);
800
806
  // src/example.ts
801
- import { defineExample } from "@contractspec/lib.contracts";
807
+ import { defineExample } from "@contractspec/lib.contracts-spec";
802
808
  var example = defineExample({
803
809
  meta: {
804
810
  key: "saas-boilerplate",
@@ -1165,7 +1171,7 @@ var ListProjectsOutputModel = defineSchemaModel3({
1165
1171
  import {
1166
1172
  defineCommand as defineCommand2,
1167
1173
  defineQuery as defineQuery2
1168
- } from "@contractspec/lib.contracts/operations";
1174
+ } from "@contractspec/lib.contracts-spec/operations";
1169
1175
  var OWNERS2 = ["example.saas-boilerplate"];
1170
1176
  var CreateProjectContract = defineCommand2({
1171
1177
  meta: {
@@ -1405,7 +1411,7 @@ var ListProjectsContract = defineQuery2({
1405
1411
 
1406
1412
  // src/project/project.event.ts
1407
1413
  import { ScalarTypeEnum as ScalarTypeEnum4, defineSchemaModel as defineSchemaModel4 } from "@contractspec/lib.schema";
1408
- import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
1414
+ import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
1409
1415
  var ProjectCreatedPayload = defineSchemaModel4({
1410
1416
  name: "ProjectCreatedPayload",
1411
1417
  description: "Payload when a project is created",
@@ -1575,7 +1581,10 @@ var ProjectMemberEntity = defineEntity2({
1575
1581
  });
1576
1582
 
1577
1583
  // src/project/project.presentation.ts
1578
- import { definePresentation as definePresentation3, StabilityEnum as StabilityEnum3 } from "@contractspec/lib.contracts";
1584
+ import {
1585
+ definePresentation as definePresentation3,
1586
+ StabilityEnum as StabilityEnum3
1587
+ } from "@contractspec/lib.contracts-spec";
1579
1588
  var ProjectListPresentation = definePresentation3({
1580
1589
  meta: {
1581
1590
  key: "saas.project.list",
@@ -1694,7 +1703,7 @@ var FeatureFlagEntity = defineEntity3({
1694
1703
  }
1695
1704
  });
1696
1705
  // src/saas-boilerplate.feature.ts
1697
- import { defineFeature } from "@contractspec/lib.contracts";
1706
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
1698
1707
  var SaasBoilerplateFeature = defineFeature({
1699
1708
  meta: {
1700
1709
  key: "saas-boilerplate",
@@ -1,5 +1,8 @@
1
1
  // src/billing/billing.presentation.ts
2
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
2
+ import {
3
+ definePresentation,
4
+ StabilityEnum
5
+ } from "@contractspec/lib.contracts-spec";
3
6
  var SubscriptionPresentation = definePresentation({
4
7
  meta: {
5
8
  key: "saas.billing.subscription",
@@ -48,7 +51,10 @@ var UsageDashboardPresentation = definePresentation({
48
51
  });
49
52
 
50
53
  // src/dashboard/dashboard.presentation.ts
51
- import { definePresentation as definePresentation2, StabilityEnum as StabilityEnum2 } from "@contractspec/lib.contracts";
54
+ import {
55
+ definePresentation as definePresentation2,
56
+ StabilityEnum as StabilityEnum2
57
+ } from "@contractspec/lib.contracts-spec";
52
58
  var SaasDashboardPresentation = definePresentation2({
53
59
  meta: {
54
60
  key: "saas.dashboard",
@@ -221,7 +227,10 @@ var ListProjectsOutputModel = defineSchemaModel({
221
227
  });
222
228
 
223
229
  // src/project/project.presentation.ts
224
- import { definePresentation as definePresentation3, StabilityEnum as StabilityEnum3 } from "@contractspec/lib.contracts";
230
+ import {
231
+ definePresentation as definePresentation3,
232
+ StabilityEnum as StabilityEnum3
233
+ } from "@contractspec/lib.contracts-spec";
225
234
  var ProjectListPresentation = definePresentation3({
226
235
  meta: {
227
236
  key: "saas.project.list",
@@ -298,7 +298,7 @@ var ListProjectsOutputModel = defineSchemaModel({
298
298
  import {
299
299
  defineCommand,
300
300
  defineQuery
301
- } from "@contractspec/lib.contracts/operations";
301
+ } from "@contractspec/lib.contracts-spec/operations";
302
302
  var OWNERS = ["example.saas-boilerplate"];
303
303
  var CreateProjectContract = defineCommand({
304
304
  meta: {
@@ -538,7 +538,7 @@ var ListProjectsContract = defineQuery({
538
538
 
539
539
  // src/project/project.event.ts
540
540
  import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
541
- import { defineEvent } from "@contractspec/lib.contracts";
541
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
542
542
  var ProjectCreatedPayload = defineSchemaModel2({
543
543
  name: "ProjectCreatedPayload",
544
544
  description: "Payload when a project is created",
@@ -708,7 +708,10 @@ var ProjectMemberEntity = defineEntity({
708
708
  });
709
709
 
710
710
  // src/project/project.presentation.ts
711
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
711
+ import {
712
+ definePresentation,
713
+ StabilityEnum
714
+ } from "@contractspec/lib.contracts-spec";
712
715
  var ProjectListPresentation = definePresentation({
713
716
  meta: {
714
717
  key: "saas.project.list",
@@ -1,6 +1,6 @@
1
1
  // src/project/project.event.ts
2
2
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
- import { defineEvent } from "@contractspec/lib.contracts";
3
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
4
4
  var ProjectCreatedPayload = defineSchemaModel({
5
5
  name: "ProjectCreatedPayload",
6
6
  description: "Payload when a project is created",
@@ -126,7 +126,7 @@ var ListProjectsOutputModel = defineSchemaModel({
126
126
  import {
127
127
  defineCommand,
128
128
  defineQuery
129
- } from "@contractspec/lib.contracts/operations";
129
+ } from "@contractspec/lib.contracts-spec/operations";
130
130
  var OWNERS = ["example.saas-boilerplate"];
131
131
  var CreateProjectContract = defineCommand({
132
132
  meta: {
@@ -123,7 +123,10 @@ var ListProjectsOutputModel = defineSchemaModel({
123
123
  });
124
124
 
125
125
  // src/project/project.presentation.ts
126
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
126
+ import {
127
+ definePresentation,
128
+ StabilityEnum
129
+ } from "@contractspec/lib.contracts-spec";
127
130
  var ProjectListPresentation = definePresentation({
128
131
  meta: {
129
132
  key: "saas.project.list",
@@ -1,5 +1,5 @@
1
1
  // src/saas-boilerplate.feature.ts
2
- import { defineFeature } from "@contractspec/lib.contracts";
2
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
3
3
  var SaasBoilerplateFeature = defineFeature({
4
4
  meta: {
5
5
  key: "saas-boilerplate",
@@ -1,5 +1,5 @@
1
1
  // src/tests/operations.test-spec.ts
2
- import { defineTestSpec } from "@contractspec/lib.contracts";
2
+ import { defineTestSpec } from "@contractspec/lib.contracts-spec/tests";
3
3
  var ProjectListTest = defineTestSpec({
4
4
  meta: {
5
5
  key: "saas.project.list.test",
@@ -1,9 +1,8 @@
1
1
  /**
2
2
  * Main dashboard presentation for the SaaS application.
3
3
  */
4
- export declare const SaasDashboardPresentation: import("@contractspec/lib.contracts").PresentationSpec;
4
+ export declare const SaasDashboardPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
5
5
  /**
6
6
  * Settings panel presentation.
7
7
  */
8
- export declare const SettingsPanelPresentation: import("@contractspec/lib.contracts").PresentationSpec;
9
- //# sourceMappingURL=dashboard.presentation.d.ts.map
8
+ export declare const SettingsPanelPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
@@ -1,6 +1,9 @@
1
1
  // @bun
2
2
  // src/dashboard/dashboard.presentation.ts
3
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
3
+ import {
4
+ definePresentation,
5
+ StabilityEnum
6
+ } from "@contractspec/lib.contracts-spec";
4
7
  var SaasDashboardPresentation = definePresentation({
5
8
  meta: {
6
9
  key: "saas.dashboard",
@@ -2,4 +2,3 @@
2
2
  * Dashboard domain - main SaaS dashboard and settings panels.
3
3
  */
4
4
  export { SaasDashboardPresentation, SettingsPanelPresentation, } from './dashboard.presentation';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,9 @@
1
1
  // @bun
2
2
  // src/dashboard/dashboard.presentation.ts
3
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
3
+ import {
4
+ definePresentation,
5
+ StabilityEnum
6
+ } from "@contractspec/lib.contracts-spec";
4
7
  var SaasDashboardPresentation = definePresentation({
5
8
  meta: {
6
9
  key: "saas.dashboard",
@@ -1,2 +1 @@
1
1
  import './saas-boilerplate.docblock';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/docs/saas-boilerplate.docblock.ts
3
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
3
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
4
4
  var saasBoilerplateDocBlocks = [
5
5
  {
6
6
  id: "docs.examples.saas-boilerplate.goal",
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=saas-boilerplate.docblock.d.ts.map
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/docs/saas-boilerplate.docblock.ts
3
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
3
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
4
4
  var saasBoilerplateDocBlocks = [
5
5
  {
6
6
  id: "docs.examples.saas-boilerplate.goal",
package/dist/example.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- declare const example: import("@contractspec/lib.contracts").ExampleSpec;
1
+ declare const example: import("@contractspec/lib.contracts-spec").ExampleSpec;
2
2
  export default example;
3
- //# sourceMappingURL=example.d.ts.map
package/dist/example.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/example.ts
3
- import { defineExample } from "@contractspec/lib.contracts";
3
+ import { defineExample } from "@contractspec/lib.contracts-spec";
4
4
  var example = defineExample({
5
5
  meta: {
6
6
  key: "saas-boilerplate",
@@ -4,4 +4,3 @@
4
4
  export { mockGetSubscriptionHandler, mockRecordUsageHandler, mockGetUsageSummaryHandler, mockCheckFeatureAccessHandler, } from '../billing/billing.handler';
5
5
  export { mockCreateProjectHandler, mockGetProjectHandler, mockListProjectsHandler, mockUpdateProjectHandler, mockDeleteProjectHandler, } from '../project/project.handler';
6
6
  export * from './saas.handlers';
7
- //# sourceMappingURL=index.d.ts.map
@@ -65,4 +65,3 @@ export declare function createSaasHandlers(db: DatabasePort): {
65
65
  }) => Promise<Subscription | null>;
66
66
  };
67
67
  export type SaasHandlers = ReturnType<typeof createSaasHandlers>;
68
- //# sourceMappingURL=saas.handlers.d.ts.map
package/dist/index.d.ts CHANGED
@@ -21,4 +21,3 @@ export declare const schemaComposition: {
21
21
  provider: "postgresql";
22
22
  outputPath: string;
23
23
  };
24
- //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -125,7 +125,7 @@ var FeatureAccessReasonEnum = defineEnum("FeatureAccessReason", [
125
125
 
126
126
  // src/billing/billing.event.ts
127
127
  import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
128
- import { defineEvent } from "@contractspec/lib.contracts";
128
+ import { defineEvent } from "@contractspec/lib.contracts-spec";
129
129
  var UsageRecordedPayload = defineSchemaModel({
130
130
  name: "UsageRecordedPayload",
131
131
  description: "Payload when feature usage is recorded",
@@ -448,7 +448,7 @@ var CheckFeatureAccessOutputModel = defineSchemaModel2({
448
448
  });
449
449
 
450
450
  // src/billing/billing.operations.ts
451
- import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
451
+ import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
452
452
  var OWNERS = ["@example.saas-boilerplate"];
453
453
  var GetSubscriptionContract = defineQuery({
454
454
  meta: {
@@ -610,7 +610,10 @@ var CheckFeatureAccessContract = defineQuery({
610
610
  });
611
611
 
612
612
  // src/billing/billing.presentation.ts
613
- import { definePresentation, StabilityEnum } from "@contractspec/lib.contracts";
613
+ import {
614
+ definePresentation,
615
+ StabilityEnum
616
+ } from "@contractspec/lib.contracts-spec";
614
617
  var SubscriptionPresentation = definePresentation({
615
618
  meta: {
616
619
  key: "saas.billing.subscription",
@@ -658,7 +661,10 @@ var UsageDashboardPresentation = definePresentation({
658
661
  }
659
662
  });
660
663
  // src/dashboard/dashboard.presentation.ts
661
- import { definePresentation as definePresentation2, StabilityEnum as StabilityEnum2 } from "@contractspec/lib.contracts";
664
+ import {
665
+ definePresentation as definePresentation2,
666
+ StabilityEnum as StabilityEnum2
667
+ } from "@contractspec/lib.contracts-spec";
662
668
  var SaasDashboardPresentation = definePresentation2({
663
669
  meta: {
664
670
  key: "saas.dashboard",
@@ -706,7 +712,7 @@ var SettingsPanelPresentation = definePresentation2({
706
712
  }
707
713
  });
708
714
  // src/docs/saas-boilerplate.docblock.ts
709
- import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
715
+ import { registerDocBlocks } from "@contractspec/lib.contracts-spec/docs";
710
716
  var saasBoilerplateDocBlocks = [
711
717
  {
712
718
  id: "docs.examples.saas-boilerplate.goal",
@@ -799,7 +805,7 @@ var saasBoilerplateDocBlocks = [
799
805
  ];
800
806
  registerDocBlocks(saasBoilerplateDocBlocks);
801
807
  // src/example.ts
802
- import { defineExample } from "@contractspec/lib.contracts";
808
+ import { defineExample } from "@contractspec/lib.contracts-spec";
803
809
  var example = defineExample({
804
810
  meta: {
805
811
  key: "saas-boilerplate",
@@ -1166,7 +1172,7 @@ var ListProjectsOutputModel = defineSchemaModel3({
1166
1172
  import {
1167
1173
  defineCommand as defineCommand2,
1168
1174
  defineQuery as defineQuery2
1169
- } from "@contractspec/lib.contracts/operations";
1175
+ } from "@contractspec/lib.contracts-spec/operations";
1170
1176
  var OWNERS2 = ["example.saas-boilerplate"];
1171
1177
  var CreateProjectContract = defineCommand2({
1172
1178
  meta: {
@@ -1406,7 +1412,7 @@ var ListProjectsContract = defineQuery2({
1406
1412
 
1407
1413
  // src/project/project.event.ts
1408
1414
  import { ScalarTypeEnum as ScalarTypeEnum4, defineSchemaModel as defineSchemaModel4 } from "@contractspec/lib.schema";
1409
- import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts";
1415
+ import { defineEvent as defineEvent2 } from "@contractspec/lib.contracts-spec";
1410
1416
  var ProjectCreatedPayload = defineSchemaModel4({
1411
1417
  name: "ProjectCreatedPayload",
1412
1418
  description: "Payload when a project is created",
@@ -1576,7 +1582,10 @@ var ProjectMemberEntity = defineEntity2({
1576
1582
  });
1577
1583
 
1578
1584
  // src/project/project.presentation.ts
1579
- import { definePresentation as definePresentation3, StabilityEnum as StabilityEnum3 } from "@contractspec/lib.contracts";
1585
+ import {
1586
+ definePresentation as definePresentation3,
1587
+ StabilityEnum as StabilityEnum3
1588
+ } from "@contractspec/lib.contracts-spec";
1580
1589
  var ProjectListPresentation = definePresentation3({
1581
1590
  meta: {
1582
1591
  key: "saas.project.list",
@@ -1695,7 +1704,7 @@ var FeatureFlagEntity = defineEntity3({
1695
1704
  }
1696
1705
  });
1697
1706
  // src/saas-boilerplate.feature.ts
1698
- import { defineFeature } from "@contractspec/lib.contracts";
1707
+ import { defineFeature } from "@contractspec/lib.contracts-spec";
1699
1708
  var SaasBoilerplateFeature = defineFeature({
1700
1709
  meta: {
1701
1710
  key: "saas-boilerplate",