@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.
- package/.turbo/turbo-build.log +40 -40
- package/CHANGELOG.md +96 -45
- package/dist/billing/billing.entity.d.ts +0 -1
- package/dist/billing/billing.enum.d.ts +0 -1
- package/dist/billing/billing.event.d.ts +3 -4
- package/dist/billing/billing.event.js +1 -1
- package/dist/billing/billing.handler.d.ts +0 -1
- package/dist/billing/billing.operations.d.ts +4 -5
- package/dist/billing/billing.operations.js +1 -1
- package/dist/billing/billing.presentation.d.ts +2 -3
- package/dist/billing/billing.presentation.js +4 -1
- package/dist/billing/billing.schema.d.ts +0 -1
- package/dist/billing/index.d.ts +0 -1
- package/dist/billing/index.js +6 -3
- package/dist/browser/billing/billing.event.js +1 -1
- package/dist/browser/billing/billing.operations.js +1 -1
- package/dist/browser/billing/billing.presentation.js +4 -1
- package/dist/browser/billing/index.js +6 -3
- package/dist/browser/dashboard/dashboard.presentation.js +4 -1
- package/dist/browser/dashboard/index.js +4 -1
- package/dist/browser/docs/index.js +1 -1
- package/dist/browser/docs/saas-boilerplate.docblock.js +1 -1
- package/dist/browser/example.js +1 -1
- package/dist/browser/index.js +19 -10
- package/dist/browser/presentations/index.js +12 -3
- package/dist/browser/project/index.js +6 -3
- package/dist/browser/project/project.event.js +1 -1
- package/dist/browser/project/project.operations.js +1 -1
- package/dist/browser/project/project.presentation.js +4 -1
- package/dist/browser/saas-boilerplate.feature.js +1 -1
- package/dist/browser/tests/operations.test-spec.js +1 -1
- package/dist/dashboard/dashboard.presentation.d.ts +2 -3
- package/dist/dashboard/dashboard.presentation.js +4 -1
- package/dist/dashboard/index.d.ts +0 -1
- package/dist/dashboard/index.js +4 -1
- package/dist/docs/index.d.ts +0 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/saas-boilerplate.docblock.d.ts +0 -1
- package/dist/docs/saas-boilerplate.docblock.js +1 -1
- package/dist/example.d.ts +1 -2
- package/dist/example.js +1 -1
- package/dist/handlers/index.d.ts +0 -1
- package/dist/handlers/saas.handlers.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +19 -10
- package/dist/node/billing/billing.event.js +1 -1
- package/dist/node/billing/billing.operations.js +1 -1
- package/dist/node/billing/billing.presentation.js +4 -1
- package/dist/node/billing/index.js +6 -3
- package/dist/node/dashboard/dashboard.presentation.js +4 -1
- package/dist/node/dashboard/index.js +4 -1
- package/dist/node/docs/index.js +1 -1
- package/dist/node/docs/saas-boilerplate.docblock.js +1 -1
- package/dist/node/example.js +1 -1
- package/dist/node/index.js +19 -10
- package/dist/node/presentations/index.js +12 -3
- package/dist/node/project/index.js +6 -3
- package/dist/node/project/project.event.js +1 -1
- package/dist/node/project/project.operations.js +1 -1
- package/dist/node/project/project.presentation.js +4 -1
- package/dist/node/saas-boilerplate.feature.js +1 -1
- package/dist/node/tests/operations.test-spec.js +1 -1
- package/dist/presentations/index.d.ts +0 -1
- package/dist/presentations/index.js +12 -3
- package/dist/project/index.d.ts +0 -1
- package/dist/project/index.js +6 -3
- package/dist/project/project.entity.d.ts +0 -1
- package/dist/project/project.enum.d.ts +0 -1
- package/dist/project/project.event.d.ts +4 -5
- package/dist/project/project.event.js +1 -1
- package/dist/project/project.handler.d.ts +0 -1
- package/dist/project/project.operations.d.ts +5 -6
- package/dist/project/project.operations.js +1 -1
- package/dist/project/project.presentation.d.ts +2 -3
- package/dist/project/project.presentation.js +4 -1
- package/dist/project/project.schema.d.ts +0 -1
- package/dist/saas-boilerplate.feature.d.ts +1 -2
- package/dist/saas-boilerplate.feature.js +1 -1
- package/dist/seeders/index.d.ts +0 -1
- package/dist/settings/index.d.ts +0 -1
- package/dist/settings/settings.entity.d.ts +0 -1
- package/dist/settings/settings.enum.d.ts +0 -1
- package/dist/shared/mock-data.d.ts +0 -1
- package/dist/shared/overlay-types.d.ts +0 -1
- package/dist/tests/operations.test-spec.d.ts +4 -5
- package/dist/tests/operations.test-spec.js +1 -1
- package/dist/ui/SaasDashboard.d.ts +0 -1
- package/dist/ui/SaasProjectList.d.ts +0 -1
- package/dist/ui/SaasSettingsPanel.d.ts +0 -1
- package/dist/ui/hooks/index.d.ts +0 -1
- package/dist/ui/hooks/useProjectList.d.ts +0 -1
- package/dist/ui/hooks/useProjectMutations.d.ts +0 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/modals/CreateProjectModal.d.ts +0 -1
- package/dist/ui/modals/ProjectActionsModal.d.ts +0 -1
- package/dist/ui/modals/index.d.ts +0 -1
- package/dist/ui/overlays/demo-overlays.d.ts +0 -1
- package/dist/ui/overlays/index.d.ts +0 -1
- package/dist/ui/renderers/index.d.ts +0 -1
- package/dist/ui/renderers/project-list.markdown.d.ts +1 -2
- package/dist/ui/renderers/project-list.renderer.d.ts +1 -2
- package/package.json +14 -14
- package/src/billing/billing.event.ts +1 -1
- package/src/billing/billing.operations.ts +1 -1
- package/src/billing/billing.presentation.ts +4 -1
- package/src/dashboard/dashboard.presentation.ts +4 -1
- package/src/docs/saas-boilerplate.docblock.ts +2 -2
- package/src/example.ts +1 -1
- package/src/project/project.event.ts +1 -1
- package/src/project/project.operations.ts +1 -1
- package/src/project/project.presentation.ts +4 -1
- package/src/saas-boilerplate.feature.ts +1 -1
- package/src/tests/operations.test-spec.ts +1 -1
- package/src/ui/renderers/project-list.markdown.ts +1 -1
- package/src/ui/renderers/project-list.renderer.tsx +1 -1
- package/dist/billing/billing.entity.d.ts.map +0 -1
- package/dist/billing/billing.enum.d.ts.map +0 -1
- package/dist/billing/billing.event.d.ts.map +0 -1
- package/dist/billing/billing.handler.d.ts.map +0 -1
- package/dist/billing/billing.operations.d.ts.map +0 -1
- package/dist/billing/billing.presentation.d.ts.map +0 -1
- package/dist/billing/billing.schema.d.ts.map +0 -1
- package/dist/billing/index.d.ts.map +0 -1
- package/dist/dashboard/dashboard.presentation.d.ts.map +0 -1
- package/dist/dashboard/index.d.ts.map +0 -1
- package/dist/docs/index.d.ts.map +0 -1
- package/dist/docs/saas-boilerplate.docblock.d.ts.map +0 -1
- package/dist/example.d.ts.map +0 -1
- package/dist/handlers/index.d.ts.map +0 -1
- package/dist/handlers/saas.handlers.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/presentations/index.d.ts.map +0 -1
- package/dist/project/index.d.ts.map +0 -1
- package/dist/project/project.entity.d.ts.map +0 -1
- package/dist/project/project.enum.d.ts.map +0 -1
- package/dist/project/project.event.d.ts.map +0 -1
- package/dist/project/project.handler.d.ts.map +0 -1
- package/dist/project/project.operations.d.ts.map +0 -1
- package/dist/project/project.presentation.d.ts.map +0 -1
- package/dist/project/project.schema.d.ts.map +0 -1
- package/dist/saas-boilerplate.feature.d.ts.map +0 -1
- package/dist/seeders/index.d.ts.map +0 -1
- package/dist/settings/index.d.ts.map +0 -1
- package/dist/settings/settings.entity.d.ts.map +0 -1
- package/dist/settings/settings.enum.d.ts.map +0 -1
- package/dist/shared/mock-data.d.ts.map +0 -1
- package/dist/shared/overlay-types.d.ts.map +0 -1
- package/dist/tests/operations.test-spec.d.ts.map +0 -1
- package/dist/ui/SaasDashboard.d.ts.map +0 -1
- package/dist/ui/SaasProjectList.d.ts.map +0 -1
- package/dist/ui/SaasSettingsPanel.d.ts.map +0 -1
- package/dist/ui/hooks/index.d.ts.map +0 -1
- package/dist/ui/hooks/useProjectList.d.ts.map +0 -1
- package/dist/ui/hooks/useProjectMutations.d.ts.map +0 -1
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/modals/CreateProjectModal.d.ts.map +0 -1
- package/dist/ui/modals/ProjectActionsModal.d.ts.map +0 -1
- package/dist/ui/modals/index.d.ts.map +0 -1
- package/dist/ui/overlays/demo-overlays.d.ts.map +0 -1
- package/dist/ui/overlays/index.d.ts.map +0 -1
- package/dist/ui/renderers/index.d.ts.map +0 -1
- package/dist/ui/renderers/project-list.markdown.d.ts.map +0 -1
- package/dist/ui/renderers/project-list.renderer.d.ts.map +0 -1
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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",
|
package/dist/node/docs/index.js
CHANGED
|
@@ -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",
|
package/dist/node/example.js
CHANGED
package/dist/node/index.js
CHANGED
|
@@ -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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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,6 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/billing/billing.presentation.ts
|
|
3
|
-
import {
|
|
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",
|
|
@@ -49,7 +52,10 @@ var UsageDashboardPresentation = definePresentation({
|
|
|
49
52
|
});
|
|
50
53
|
|
|
51
54
|
// src/dashboard/dashboard.presentation.ts
|
|
52
|
-
import {
|
|
55
|
+
import {
|
|
56
|
+
definePresentation as definePresentation2,
|
|
57
|
+
StabilityEnum as StabilityEnum2
|
|
58
|
+
} from "@contractspec/lib.contracts-spec";
|
|
53
59
|
var SaasDashboardPresentation = definePresentation2({
|
|
54
60
|
meta: {
|
|
55
61
|
key: "saas.dashboard",
|
|
@@ -222,7 +228,10 @@ var ListProjectsOutputModel = defineSchemaModel({
|
|
|
222
228
|
});
|
|
223
229
|
|
|
224
230
|
// src/project/project.presentation.ts
|
|
225
|
-
import {
|
|
231
|
+
import {
|
|
232
|
+
definePresentation as definePresentation3,
|
|
233
|
+
StabilityEnum as StabilityEnum3
|
|
234
|
+
} from "@contractspec/lib.contracts-spec";
|
|
226
235
|
var ProjectListPresentation = definePresentation3({
|
|
227
236
|
meta: {
|
|
228
237
|
key: "saas.project.list",
|
package/dist/project/index.d.ts
CHANGED
|
@@ -8,4 +8,3 @@ export { ProjectCreatedEvent, ProjectUpdatedEvent, ProjectDeletedEvent, ProjectA
|
|
|
8
8
|
export { ProjectStatusEnum, ProjectEntity, ProjectMemberEntity, } from './project.entity';
|
|
9
9
|
export { ProjectListPresentation, ProjectDetailPresentation, } from './project.presentation';
|
|
10
10
|
export { mockListProjectsHandler, mockGetProjectHandler, mockCreateProjectHandler, mockUpdateProjectHandler, mockDeleteProjectHandler, type Project, type CreateProjectInput, type UpdateProjectInput, type ListProjectsInput, type ListProjectsOutput, } from './project.handler';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/project/index.js
CHANGED
|
@@ -299,7 +299,7 @@ var ListProjectsOutputModel = defineSchemaModel({
|
|
|
299
299
|
import {
|
|
300
300
|
defineCommand,
|
|
301
301
|
defineQuery
|
|
302
|
-
} from "@contractspec/lib.contracts/operations";
|
|
302
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
303
303
|
var OWNERS = ["example.saas-boilerplate"];
|
|
304
304
|
var CreateProjectContract = defineCommand({
|
|
305
305
|
meta: {
|
|
@@ -539,7 +539,7 @@ var ListProjectsContract = defineQuery({
|
|
|
539
539
|
|
|
540
540
|
// src/project/project.event.ts
|
|
541
541
|
import { ScalarTypeEnum as ScalarTypeEnum2, defineSchemaModel as defineSchemaModel2 } from "@contractspec/lib.schema";
|
|
542
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
542
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
543
543
|
var ProjectCreatedPayload = defineSchemaModel2({
|
|
544
544
|
name: "ProjectCreatedPayload",
|
|
545
545
|
description: "Payload when a project is created",
|
|
@@ -709,7 +709,10 @@ var ProjectMemberEntity = defineEntity({
|
|
|
709
709
|
});
|
|
710
710
|
|
|
711
711
|
// src/project/project.presentation.ts
|
|
712
|
-
import {
|
|
712
|
+
import {
|
|
713
|
+
definePresentation,
|
|
714
|
+
StabilityEnum
|
|
715
|
+
} from "@contractspec/lib.contracts-spec";
|
|
713
716
|
var ProjectListPresentation = definePresentation({
|
|
714
717
|
meta: {
|
|
715
718
|
key: "saas.project.list",
|
|
@@ -7,4 +7,3 @@ export declare const ProjectStatusSchemaEnum: import("@contractspec/lib.schema")
|
|
|
7
7
|
* Project status filter enum (includes 'all' option).
|
|
8
8
|
*/
|
|
9
9
|
export declare const ProjectStatusFilterEnum: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
10
|
-
//# sourceMappingURL=project.enum.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Event: A new project has been created.
|
|
3
3
|
*/
|
|
4
|
-
export declare const ProjectCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
4
|
+
export declare const ProjectCreatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
5
|
projectId: {
|
|
6
6
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
@@ -26,7 +26,7 @@ export declare const ProjectCreatedEvent: import("@contractspec/lib.contracts").
|
|
|
26
26
|
/**
|
|
27
27
|
* Event: A project has been updated.
|
|
28
28
|
*/
|
|
29
|
-
export declare const ProjectUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
29
|
+
export declare const ProjectUpdatedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
30
30
|
projectId: {
|
|
31
31
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
@@ -48,7 +48,7 @@ export declare const ProjectUpdatedEvent: import("@contractspec/lib.contracts").
|
|
|
48
48
|
/**
|
|
49
49
|
* Event: A project has been deleted.
|
|
50
50
|
*/
|
|
51
|
-
export declare const ProjectDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
51
|
+
export declare const ProjectDeletedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
52
52
|
projectId: {
|
|
53
53
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
54
54
|
isOptional: false;
|
|
@@ -69,7 +69,7 @@ export declare const ProjectDeletedEvent: import("@contractspec/lib.contracts").
|
|
|
69
69
|
/**
|
|
70
70
|
* Event: A project has been archived.
|
|
71
71
|
*/
|
|
72
|
-
export declare const ProjectArchivedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
72
|
+
export declare const ProjectArchivedEvent: import("@contractspec/lib.contracts-spec").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
73
73
|
projectId: {
|
|
74
74
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
75
75
|
isOptional: false;
|
|
@@ -83,4 +83,3 @@ export declare const ProjectArchivedEvent: import("@contractspec/lib.contracts")
|
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
}>>;
|
|
86
|
-
//# sourceMappingURL=project.event.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/project/project.event.ts
|
|
3
3
|
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
4
|
-
import { defineEvent } from "@contractspec/lib.contracts";
|
|
4
|
+
import { defineEvent } from "@contractspec/lib.contracts-spec";
|
|
5
5
|
var ProjectCreatedPayload = defineSchemaModel({
|
|
6
6
|
name: "ProjectCreatedPayload",
|
|
7
7
|
description: "Payload when a project is created",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Create a new project.
|
|
3
3
|
*/
|
|
4
|
-
export declare const CreateProjectContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
4
|
+
export declare const CreateProjectContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
5
5
|
name: {
|
|
6
6
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
@@ -124,7 +124,7 @@ export declare const CreateProjectContract: import("@contractspec/lib.contracts"
|
|
|
124
124
|
/**
|
|
125
125
|
* Get project by ID.
|
|
126
126
|
*/
|
|
127
|
-
export declare const GetProjectContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
127
|
+
export declare const GetProjectContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
128
128
|
projectId: {
|
|
129
129
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
130
130
|
isOptional: false;
|
|
@@ -179,7 +179,7 @@ export declare const GetProjectContract: import("@contractspec/lib.contracts").O
|
|
|
179
179
|
/**
|
|
180
180
|
* Update a project.
|
|
181
181
|
*/
|
|
182
|
-
export declare const UpdateProjectContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
182
|
+
export declare const UpdateProjectContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
183
183
|
projectId: {
|
|
184
184
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
185
185
|
isOptional: false;
|
|
@@ -310,7 +310,7 @@ export declare const UpdateProjectContract: import("@contractspec/lib.contracts"
|
|
|
310
310
|
/**
|
|
311
311
|
* Delete a project.
|
|
312
312
|
*/
|
|
313
|
-
export declare const DeleteProjectContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
313
|
+
export declare const DeleteProjectContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
314
314
|
projectId: {
|
|
315
315
|
type: import("@contractspec/lib.schema").FieldType<string, string>;
|
|
316
316
|
isOptional: false;
|
|
@@ -334,7 +334,7 @@ export declare const DeleteProjectContract: import("@contractspec/lib.contracts"
|
|
|
334
334
|
/**
|
|
335
335
|
* List organization projects.
|
|
336
336
|
*/
|
|
337
|
-
export declare const ListProjectsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
337
|
+
export declare const ListProjectsContract: import("@contractspec/lib.contracts-spec").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
|
|
338
338
|
status: {
|
|
339
339
|
type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
|
|
340
340
|
isOptional: true;
|
|
@@ -410,4 +410,3 @@ export declare const ListProjectsContract: import("@contractspec/lib.contracts")
|
|
|
410
410
|
isOptional: false;
|
|
411
411
|
};
|
|
412
412
|
}>, undefined>;
|
|
413
|
-
//# sourceMappingURL=project.operations.d.ts.map
|
|
@@ -127,7 +127,7 @@ var ListProjectsOutputModel = defineSchemaModel({
|
|
|
127
127
|
import {
|
|
128
128
|
defineCommand,
|
|
129
129
|
defineQuery
|
|
130
|
-
} from "@contractspec/lib.contracts/operations";
|
|
130
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
131
131
|
var OWNERS = ["example.saas-boilerplate"];
|
|
132
132
|
var CreateProjectContract = defineCommand({
|
|
133
133
|
meta: {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Presentation for displaying a list of projects.
|
|
3
3
|
*/
|
|
4
|
-
export declare const ProjectListPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
4
|
+
export declare const ProjectListPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
5
5
|
/**
|
|
6
6
|
* Presentation for project detail view.
|
|
7
7
|
*/
|
|
8
|
-
export declare const ProjectDetailPresentation: import("@contractspec/lib.contracts").PresentationSpec;
|
|
9
|
-
//# sourceMappingURL=project.presentation.d.ts.map
|
|
8
|
+
export declare const ProjectDetailPresentation: import("@contractspec/lib.contracts-spec").PresentationSpec;
|
|
@@ -124,7 +124,10 @@ var ListProjectsOutputModel = defineSchemaModel({
|
|
|
124
124
|
});
|
|
125
125
|
|
|
126
126
|
// src/project/project.presentation.ts
|
|
127
|
-
import {
|
|
127
|
+
import {
|
|
128
|
+
definePresentation,
|
|
129
|
+
StabilityEnum
|
|
130
|
+
} from "@contractspec/lib.contracts-spec";
|
|
128
131
|
var ProjectListPresentation = definePresentation({
|
|
129
132
|
meta: {
|
|
130
133
|
key: "saas.project.list",
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
* SaaS Boilerplate feature module that bundles project management,
|
|
3
3
|
* billing, and settings operations into an installable feature.
|
|
4
4
|
*/
|
|
5
|
-
export declare const SaasBoilerplateFeature: import("@contractspec/lib.contracts").FeatureModuleSpec;
|
|
6
|
-
//# sourceMappingURL=saas-boilerplate.feature.d.ts.map
|
|
5
|
+
export declare const SaasBoilerplateFeature: import("@contractspec/lib.contracts-spec").FeatureModuleSpec;
|
package/dist/seeders/index.d.ts
CHANGED
package/dist/settings/index.d.ts
CHANGED
|
@@ -29,4 +29,3 @@ export declare const FeatureFlagEntity: import("@contractspec/lib.schema").Entit
|
|
|
29
29
|
createdAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
30
30
|
updatedAt: import("@contractspec/lib.schema").EntityScalarField;
|
|
31
31
|
}>;
|
|
32
|
-
//# sourceMappingURL=settings.entity.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export declare const ProjectListTest: import("@contractspec/lib.contracts").TestSpec;
|
|
2
|
-
export declare const ProjectGetTest: import("@contractspec/lib.contracts").TestSpec;
|
|
3
|
-
export declare const BillingSubscriptionGetTest: import("@contractspec/lib.contracts").TestSpec;
|
|
4
|
-
export declare const BillingUsageSummaryTest: import("@contractspec/lib.contracts").TestSpec;
|
|
5
|
-
//# sourceMappingURL=operations.test-spec.d.ts.map
|
|
1
|
+
export declare const ProjectListTest: import("@contractspec/lib.contracts-spec/tests").TestSpec;
|
|
2
|
+
export declare const ProjectGetTest: import("@contractspec/lib.contracts-spec/tests").TestSpec;
|
|
3
|
+
export declare const BillingSubscriptionGetTest: import("@contractspec/lib.contracts-spec/tests").TestSpec;
|
|
4
|
+
export declare const BillingUsageSummaryTest: import("@contractspec/lib.contracts-spec/tests").TestSpec;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/tests/operations.test-spec.ts
|
|
3
|
-
import { defineTestSpec } from "@contractspec/lib.contracts";
|
|
3
|
+
import { defineTestSpec } from "@contractspec/lib.contracts-spec/tests";
|
|
4
4
|
var ProjectListTest = defineTestSpec({
|
|
5
5
|
meta: {
|
|
6
6
|
key: "saas.project.list.test",
|