@contractspec/example.saas-boilerplate 1.62.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 +76 -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 +13 -13
- 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,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 {
|
|
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",
|
package/dist/billing/index.d.ts
CHANGED
|
@@ -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
|
package/dist/billing/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 {
|
|
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 {
|
|
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",
|
|
@@ -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/browser/example.js
CHANGED
package/dist/browser/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,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 {
|
|
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",
|
package/dist/dashboard/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/dashboard/dashboard.presentation.ts
|
|
3
|
-
import {
|
|
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",
|
package/dist/docs/index.d.ts
CHANGED
package/dist/docs/index.js
CHANGED
|
@@ -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,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
package/dist/example.js
CHANGED
package/dist/handlers/index.d.ts
CHANGED
|
@@ -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
|
package/dist/index.d.ts
CHANGED
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 {
|
|
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 {
|
|
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 {
|
|
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",
|