@contractspec/example.saas-boilerplate 0.0.0-canary-20260113170453
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$colon$bundle.log +188 -0
- package/.turbo/turbo-build.log +189 -0
- package/CHANGELOG.md +440 -0
- package/LICENSE +21 -0
- package/README.md +155 -0
- package/dist/billing/billing.entity.d.ts +61 -0
- package/dist/billing/billing.entity.d.ts.map +1 -0
- package/dist/billing/billing.entity.js +122 -0
- package/dist/billing/billing.entity.js.map +1 -0
- package/dist/billing/billing.enum.d.ts +16 -0
- package/dist/billing/billing.enum.d.ts.map +1 -0
- package/dist/billing/billing.enum.js +27 -0
- package/dist/billing/billing.enum.js.map +1 -0
- package/dist/billing/billing.event.d.ts +86 -0
- package/dist/billing/billing.event.d.ts.map +1 -0
- package/dist/billing/billing.event.js +153 -0
- package/dist/billing/billing.event.js.map +1 -0
- package/dist/billing/billing.handler.d.ts +82 -0
- package/dist/billing/billing.handler.d.ts.map +1 -0
- package/dist/billing/billing.handler.js +58 -0
- package/dist/billing/billing.handler.js.map +1 -0
- package/dist/billing/billing.operations.d.ts +166 -0
- package/dist/billing/billing.operations.d.ts.map +1 -0
- package/dist/billing/billing.operations.js +181 -0
- package/dist/billing/billing.operations.js.map +1 -0
- package/dist/billing/billing.presentation.d.ts +14 -0
- package/dist/billing/billing.presentation.d.ts.map +1 -0
- package/dist/billing/billing.presentation.js +59 -0
- package/dist/billing/billing.presentation.js.map +1 -0
- package/dist/billing/billing.schema.d.ts +201 -0
- package/dist/billing/billing.schema.d.ts.map +1 -0
- package/dist/billing/billing.schema.js +214 -0
- package/dist/billing/billing.schema.js.map +1 -0
- package/dist/billing/index.d.ts +8 -0
- package/dist/billing/index.js +9 -0
- package/dist/dashboard/dashboard.presentation.d.ts +14 -0
- package/dist/dashboard/dashboard.presentation.d.ts.map +1 -0
- package/dist/dashboard/dashboard.presentation.js +55 -0
- package/dist/dashboard/dashboard.presentation.js.map +1 -0
- package/dist/dashboard/index.d.ts +2 -0
- package/dist/dashboard/index.js +3 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -0
- package/dist/docs/saas-boilerplate.docblock.d.ts +1 -0
- package/dist/docs/saas-boilerplate.docblock.js +100 -0
- package/dist/docs/saas-boilerplate.docblock.js.map +1 -0
- package/dist/example.d.ts +7 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +53 -0
- package/dist/example.js.map +1 -0
- package/dist/handlers/index.d.ts +4 -0
- package/dist/handlers/index.js +5 -0
- package/dist/handlers/saas.handlers.d.ts +68 -0
- package/dist/handlers/saas.handlers.d.ts.map +1 -0
- package/dist/handlers/saas.handlers.js +148 -0
- package/dist/handlers/saas.handlers.js.map +1 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/presentations/index.d.ts +17 -0
- package/dist/presentations/index.d.ts.map +1 -0
- package/dist/presentations/index.js +17 -0
- package/dist/presentations/index.js.map +1 -0
- package/dist/project/index.d.ts +8 -0
- package/dist/project/index.js +9 -0
- package/dist/project/project.entity.d.ts +40 -0
- package/dist/project/project.entity.d.ts.map +1 -0
- package/dist/project/project.entity.js +85 -0
- package/dist/project/project.entity.js.map +1 -0
- package/dist/project/project.enum.d.ts +16 -0
- package/dist/project/project.enum.d.ts.map +1 -0
- package/dist/project/project.enum.js +26 -0
- package/dist/project/project.enum.js.map +1 -0
- package/dist/project/project.event.d.ts +92 -0
- package/dist/project/project.event.d.ts.map +1 -0
- package/dist/project/project.event.js +165 -0
- package/dist/project/project.event.js.map +1 -0
- package/dist/project/project.handler.d.ts +72 -0
- package/dist/project/project.handler.d.ts.map +1 -0
- package/dist/project/project.handler.js +82 -0
- package/dist/project/project.handler.js.map +1 -0
- package/dist/project/project.operations.d.ts +419 -0
- package/dist/project/project.operations.d.ts.map +1 -0
- package/dist/project/project.operations.js +260 -0
- package/dist/project/project.operations.js.map +1 -0
- package/dist/project/project.presentation.d.ts +14 -0
- package/dist/project/project.presentation.d.ts.map +1 -0
- package/dist/project/project.presentation.js +65 -0
- package/dist/project/project.presentation.js.map +1 -0
- package/dist/project/project.schema.d.ts +235 -0
- package/dist/project/project.schema.d.ts.map +1 -0
- package/dist/project/project.schema.js +215 -0
- package/dist/project/project.schema.js.map +1 -0
- package/dist/saas-boilerplate.feature.d.ts +12 -0
- package/dist/saas-boilerplate.feature.d.ts.map +1 -0
- package/dist/saas-boilerplate.feature.js +208 -0
- package/dist/saas-boilerplate.feature.js.map +1 -0
- package/dist/seeders/index.d.ts +10 -0
- package/dist/seeders/index.d.ts.map +1 -0
- package/dist/seeders/index.js +19 -0
- package/dist/seeders/index.js.map +1 -0
- package/dist/settings/index.d.ts +3 -0
- package/dist/settings/index.js +4 -0
- package/dist/settings/settings.entity.d.ts +37 -0
- package/dist/settings/settings.entity.d.ts.map +1 -0
- package/dist/settings/settings.entity.js +78 -0
- package/dist/settings/settings.entity.js.map +1 -0
- package/dist/settings/settings.enum.d.ts +10 -0
- package/dist/settings/settings.enum.d.ts.map +1 -0
- package/dist/settings/settings.enum.js +21 -0
- package/dist/settings/settings.enum.js.map +1 -0
- package/dist/shared/mock-data.d.ts +86 -0
- package/dist/shared/mock-data.d.ts.map +1 -0
- package/dist/shared/mock-data.js +138 -0
- package/dist/shared/mock-data.js.map +1 -0
- package/dist/shared/overlay-types.d.ts +34 -0
- package/dist/shared/overlay-types.d.ts.map +1 -0
- package/dist/shared/overlay-types.js +0 -0
- package/dist/tests/operations.test-spec.d.ts +10 -0
- package/dist/tests/operations.test-spec.d.ts.map +1 -0
- package/dist/tests/operations.test-spec.js +123 -0
- package/dist/tests/operations.test-spec.js.map +1 -0
- package/dist/ui/SaasDashboard.d.ts +7 -0
- package/dist/ui/SaasDashboard.d.ts.map +1 -0
- package/dist/ui/SaasDashboard.js +298 -0
- package/dist/ui/SaasDashboard.js.map +1 -0
- package/dist/ui/SaasProjectList.d.ts +14 -0
- package/dist/ui/SaasProjectList.d.ts.map +1 -0
- package/dist/ui/SaasProjectList.js +76 -0
- package/dist/ui/SaasProjectList.js.map +1 -0
- package/dist/ui/SaasSettingsPanel.d.ts +7 -0
- package/dist/ui/SaasSettingsPanel.d.ts.map +1 -0
- package/dist/ui/SaasSettingsPanel.js +138 -0
- package/dist/ui/SaasSettingsPanel.js.map +1 -0
- package/dist/ui/hooks/index.d.ts +3 -0
- package/dist/ui/hooks/index.js +6 -0
- package/dist/ui/hooks/useProjectList.d.ts +34 -0
- package/dist/ui/hooks/useProjectList.d.ts.map +1 -0
- package/dist/ui/hooks/useProjectList.js +75 -0
- package/dist/ui/hooks/useProjectList.js.map +1 -0
- package/dist/ui/hooks/useProjectMutations.d.ts +28 -0
- package/dist/ui/hooks/useProjectMutations.d.ts.map +1 -0
- package/dist/ui/hooks/useProjectMutations.js +146 -0
- package/dist/ui/hooks/useProjectMutations.js.map +1 -0
- package/dist/ui/index.d.ts +14 -0
- package/dist/ui/index.js +15 -0
- package/dist/ui/modals/CreateProjectModal.d.ts +23 -0
- package/dist/ui/modals/CreateProjectModal.d.ts.map +1 -0
- package/dist/ui/modals/CreateProjectModal.js +139 -0
- package/dist/ui/modals/CreateProjectModal.js.map +1 -0
- package/dist/ui/modals/ProjectActionsModal.d.ts +38 -0
- package/dist/ui/modals/ProjectActionsModal.d.ts.map +1 -0
- package/dist/ui/modals/ProjectActionsModal.js +292 -0
- package/dist/ui/modals/ProjectActionsModal.js.map +1 -0
- package/dist/ui/modals/index.d.ts +3 -0
- package/dist/ui/modals/index.js +4 -0
- package/dist/ui/overlays/demo-overlays.d.ts +19 -0
- package/dist/ui/overlays/demo-overlays.d.ts.map +1 -0
- package/dist/ui/overlays/demo-overlays.js +70 -0
- package/dist/ui/overlays/demo-overlays.js.map +1 -0
- package/dist/ui/overlays/index.d.ts +2 -0
- package/dist/ui/overlays/index.js +3 -0
- package/dist/ui/renderers/index.d.ts +3 -0
- package/dist/ui/renderers/index.js +4 -0
- package/dist/ui/renderers/project-list.markdown.d.ts +31 -0
- package/dist/ui/renderers/project-list.markdown.d.ts.map +1 -0
- package/dist/ui/renderers/project-list.markdown.js +148 -0
- package/dist/ui/renderers/project-list.markdown.js.map +1 -0
- package/dist/ui/renderers/project-list.renderer.d.ts +9 -0
- package/dist/ui/renderers/project-list.renderer.d.ts.map +1 -0
- package/dist/ui/renderers/project-list.renderer.js +17 -0
- package/dist/ui/renderers/project-list.renderer.js.map +1 -0
- package/example.ts +1 -0
- package/package.json +135 -0
- package/src/billing/billing.entity.ts +158 -0
- package/src/billing/billing.enum.ts +23 -0
- package/src/billing/billing.event.ts +108 -0
- package/src/billing/billing.handler.ts +137 -0
- package/src/billing/billing.operations.ts +187 -0
- package/src/billing/billing.presentation.ts +56 -0
- package/src/billing/billing.schema.ts +133 -0
- package/src/billing/index.ts +64 -0
- package/src/dashboard/dashboard.presentation.ts +56 -0
- package/src/dashboard/index.ts +8 -0
- package/src/docs/index.ts +1 -0
- package/src/docs/saas-boilerplate.docblock.ts +98 -0
- package/src/example.ts +38 -0
- package/src/handlers/index.ts +23 -0
- package/src/handlers/saas.handlers.ts +300 -0
- package/src/index.ts +76 -0
- package/src/presentations/index.ts +36 -0
- package/src/project/index.ts +66 -0
- package/src/project/project.entity.ts +93 -0
- package/src/project/project.enum.ts +22 -0
- package/src/project/project.event.ts +128 -0
- package/src/project/project.handler.ts +168 -0
- package/src/project/project.operations.ts +272 -0
- package/src/project/project.presentation.ts +58 -0
- package/src/project/project.schema.ts +147 -0
- package/src/saas-boilerplate.feature.ts +113 -0
- package/src/seeders/index.ts +28 -0
- package/src/settings/index.ts +9 -0
- package/src/settings/settings.entity.ts +89 -0
- package/src/settings/settings.enum.ts +11 -0
- package/src/shared/mock-data.ts +110 -0
- package/src/shared/overlay-types.ts +39 -0
- package/src/tests/operations.test-spec.ts +109 -0
- package/src/ui/SaasDashboard.tsx +325 -0
- package/src/ui/SaasProjectList.tsx +113 -0
- package/src/ui/SaasSettingsPanel.tsx +96 -0
- package/src/ui/hooks/index.ts +10 -0
- package/src/ui/hooks/useProjectList.ts +95 -0
- package/src/ui/hooks/useProjectMutations.ts +166 -0
- package/src/ui/index.ts +18 -0
- package/src/ui/modals/CreateProjectModal.tsx +176 -0
- package/src/ui/modals/ProjectActionsModal.tsx +346 -0
- package/src/ui/modals/index.ts +2 -0
- package/src/ui/overlays/demo-overlays.ts +74 -0
- package/src/ui/overlays/index.ts +1 -0
- package/src/ui/renderers/index.ts +7 -0
- package/src/ui/renderers/project-list.markdown.ts +239 -0
- package/src/ui/renderers/project-list.renderer.tsx +22 -0
- package/tsconfig.json +10 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsdown.config.js +7 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as _contractspec_lib_contracts1 from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/project/project.presentation.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Presentation for displaying a list of projects.
|
|
6
|
+
*/
|
|
7
|
+
declare const ProjectListPresentation: _contractspec_lib_contracts1.PresentationSpec;
|
|
8
|
+
/**
|
|
9
|
+
* Presentation for project detail view.
|
|
10
|
+
*/
|
|
11
|
+
declare const ProjectDetailPresentation: _contractspec_lib_contracts1.PresentationSpec;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ProjectDetailPresentation, ProjectListPresentation };
|
|
14
|
+
//# sourceMappingURL=project.presentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.presentation.d.ts","names":[],"sources":["../../src/project/project.presentation.ts"],"sourcesContent":[],"mappings":";;;;;;AAMa,cAAA,uBAwBX,EAAA,4BAAA,CAxBkC,gBAwBlC;AAKF;;;cAAa,2BAsBX,4BAAA,CAtBoC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ProjectModel } from "./project.schema.js";
|
|
2
|
+
import { StabilityEnum, definePresentation } from "@contractspec/lib.contracts";
|
|
3
|
+
|
|
4
|
+
//#region src/project/project.presentation.ts
|
|
5
|
+
/**
|
|
6
|
+
* Presentation for displaying a list of projects.
|
|
7
|
+
*/
|
|
8
|
+
const ProjectListPresentation = definePresentation({
|
|
9
|
+
meta: {
|
|
10
|
+
key: "saas.project.list",
|
|
11
|
+
version: "1.0.0",
|
|
12
|
+
title: "Project List",
|
|
13
|
+
description: "List view of projects with status, tags, and last updated info",
|
|
14
|
+
domain: "saas-boilerplate",
|
|
15
|
+
owners: ["@saas-team"],
|
|
16
|
+
tags: [
|
|
17
|
+
"project",
|
|
18
|
+
"list",
|
|
19
|
+
"dashboard"
|
|
20
|
+
],
|
|
21
|
+
stability: StabilityEnum.Beta,
|
|
22
|
+
goal: "Browse and manage projects",
|
|
23
|
+
context: "Project list page"
|
|
24
|
+
},
|
|
25
|
+
source: {
|
|
26
|
+
type: "component",
|
|
27
|
+
framework: "react",
|
|
28
|
+
componentKey: "ProjectListView",
|
|
29
|
+
props: ProjectModel
|
|
30
|
+
},
|
|
31
|
+
targets: [
|
|
32
|
+
"react",
|
|
33
|
+
"markdown",
|
|
34
|
+
"application/json"
|
|
35
|
+
],
|
|
36
|
+
policy: { flags: ["saas.projects.enabled"] }
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Presentation for project detail view.
|
|
40
|
+
*/
|
|
41
|
+
const ProjectDetailPresentation = definePresentation({
|
|
42
|
+
meta: {
|
|
43
|
+
key: "saas.project.detail",
|
|
44
|
+
version: "1.0.0",
|
|
45
|
+
title: "Project Details",
|
|
46
|
+
description: "Detailed view of a project with settings and activity",
|
|
47
|
+
domain: "saas-boilerplate",
|
|
48
|
+
owners: ["@saas-team"],
|
|
49
|
+
tags: ["project", "detail"],
|
|
50
|
+
stability: StabilityEnum.Beta,
|
|
51
|
+
goal: "View and edit project details",
|
|
52
|
+
context: "Project detail page"
|
|
53
|
+
},
|
|
54
|
+
source: {
|
|
55
|
+
type: "component",
|
|
56
|
+
framework: "react",
|
|
57
|
+
componentKey: "ProjectDetailView"
|
|
58
|
+
},
|
|
59
|
+
targets: ["react", "markdown"],
|
|
60
|
+
policy: { flags: ["saas.projects.enabled"] }
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { ProjectDetailPresentation, ProjectListPresentation };
|
|
65
|
+
//# sourceMappingURL=project.presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.presentation.js","names":[],"sources":["../../src/project/project.presentation.ts"],"sourcesContent":["import { definePresentation, StabilityEnum } from '@contractspec/lib.contracts';\nimport { ProjectModel } from './project.schema';\n\n/**\n * Presentation for displaying a list of projects.\n */\nexport const ProjectListPresentation = definePresentation({\n meta: {\n key: 'saas.project.list',\n version: '1.0.0',\n title: 'Project List',\n description:\n 'List view of projects with status, tags, and last updated info',\n domain: 'saas-boilerplate',\n owners: ['@saas-team'],\n tags: ['project', 'list', 'dashboard'],\n stability: StabilityEnum.Beta,\n goal: 'Browse and manage projects',\n context: 'Project list page',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProjectListView',\n props: ProjectModel,\n },\n targets: ['react', 'markdown', 'application/json'],\n policy: {\n flags: ['saas.projects.enabled'],\n },\n});\n\n/**\n * Presentation for project detail view.\n */\nexport const ProjectDetailPresentation = definePresentation({\n meta: {\n key: 'saas.project.detail',\n version: '1.0.0',\n title: 'Project Details',\n description: 'Detailed view of a project with settings and activity',\n domain: 'saas-boilerplate',\n owners: ['@saas-team'],\n tags: ['project', 'detail'],\n stability: StabilityEnum.Beta,\n goal: 'View and edit project details',\n context: 'Project detail page',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ProjectDetailView',\n },\n targets: ['react', 'markdown'],\n policy: {\n flags: ['saas.projects.enabled'],\n },\n});\n"],"mappings":";;;;;;;AAMA,MAAa,0BAA0B,mBAAmB;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,aAAa;EACtB,MAAM;GAAC;GAAW;GAAQ;GAAY;EACtC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS;EAAC;EAAS;EAAY;EAAmB;CAClD,QAAQ,EACN,OAAO,CAAC,wBAAwB,EACjC;CACF,CAAC;;;;AAKF,MAAa,4BAA4B,mBAAmB;CAC1D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,aAAa;EACtB,MAAM,CAAC,WAAW,SAAS;EAC3B,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACf;CACD,SAAS,CAAC,SAAS,WAAW;CAC9B,QAAQ,EACN,OAAO,CAAC,wBAAwB,EACjC;CACF,CAAC"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import * as _contractspec_lib_schema39 from "@contractspec/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/project/project.schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* A project within an organization.
|
|
6
|
+
*/
|
|
7
|
+
declare const ProjectModel: _contractspec_lib_schema39.SchemaModel<{
|
|
8
|
+
id: {
|
|
9
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
name: {
|
|
13
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
14
|
+
isOptional: false;
|
|
15
|
+
};
|
|
16
|
+
description: {
|
|
17
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
18
|
+
isOptional: true;
|
|
19
|
+
};
|
|
20
|
+
slug: {
|
|
21
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
22
|
+
isOptional: true;
|
|
23
|
+
};
|
|
24
|
+
organizationId: {
|
|
25
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
26
|
+
isOptional: false;
|
|
27
|
+
};
|
|
28
|
+
createdBy: {
|
|
29
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
30
|
+
isOptional: false;
|
|
31
|
+
};
|
|
32
|
+
status: {
|
|
33
|
+
type: _contractspec_lib_schema39.EnumType<[string, string, string, string]>;
|
|
34
|
+
isOptional: false;
|
|
35
|
+
};
|
|
36
|
+
isPublic: {
|
|
37
|
+
type: _contractspec_lib_schema39.FieldType<boolean, boolean>;
|
|
38
|
+
isOptional: false;
|
|
39
|
+
};
|
|
40
|
+
tags: {
|
|
41
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
42
|
+
isArray: true;
|
|
43
|
+
isOptional: false;
|
|
44
|
+
};
|
|
45
|
+
createdAt: {
|
|
46
|
+
type: _contractspec_lib_schema39.FieldType<Date, string>;
|
|
47
|
+
isOptional: false;
|
|
48
|
+
};
|
|
49
|
+
updatedAt: {
|
|
50
|
+
type: _contractspec_lib_schema39.FieldType<Date, string>;
|
|
51
|
+
isOptional: false;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Input for creating a project.
|
|
56
|
+
*/
|
|
57
|
+
declare const CreateProjectInputModel: _contractspec_lib_schema39.SchemaModel<{
|
|
58
|
+
name: {
|
|
59
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
60
|
+
isOptional: false;
|
|
61
|
+
};
|
|
62
|
+
description: {
|
|
63
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
64
|
+
isOptional: true;
|
|
65
|
+
};
|
|
66
|
+
slug: {
|
|
67
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
68
|
+
isOptional: true;
|
|
69
|
+
};
|
|
70
|
+
isPublic: {
|
|
71
|
+
type: _contractspec_lib_schema39.FieldType<boolean, boolean>;
|
|
72
|
+
isOptional: true;
|
|
73
|
+
};
|
|
74
|
+
tags: {
|
|
75
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
76
|
+
isArray: true;
|
|
77
|
+
isOptional: true;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
* Input for updating a project.
|
|
82
|
+
*/
|
|
83
|
+
declare const UpdateProjectInputModel: _contractspec_lib_schema39.SchemaModel<{
|
|
84
|
+
projectId: {
|
|
85
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
86
|
+
isOptional: false;
|
|
87
|
+
};
|
|
88
|
+
name: {
|
|
89
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
90
|
+
isOptional: true;
|
|
91
|
+
};
|
|
92
|
+
description: {
|
|
93
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
94
|
+
isOptional: true;
|
|
95
|
+
};
|
|
96
|
+
slug: {
|
|
97
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
98
|
+
isOptional: true;
|
|
99
|
+
};
|
|
100
|
+
isPublic: {
|
|
101
|
+
type: _contractspec_lib_schema39.FieldType<boolean, boolean>;
|
|
102
|
+
isOptional: true;
|
|
103
|
+
};
|
|
104
|
+
tags: {
|
|
105
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
106
|
+
isArray: true;
|
|
107
|
+
isOptional: true;
|
|
108
|
+
};
|
|
109
|
+
status: {
|
|
110
|
+
type: _contractspec_lib_schema39.EnumType<[string, string, string, string]>;
|
|
111
|
+
isOptional: true;
|
|
112
|
+
};
|
|
113
|
+
}>;
|
|
114
|
+
/**
|
|
115
|
+
* Input for getting a project.
|
|
116
|
+
*/
|
|
117
|
+
declare const GetProjectInputModel: _contractspec_lib_schema39.SchemaModel<{
|
|
118
|
+
projectId: {
|
|
119
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
120
|
+
isOptional: false;
|
|
121
|
+
};
|
|
122
|
+
}>;
|
|
123
|
+
/**
|
|
124
|
+
* Input for deleting a project.
|
|
125
|
+
*/
|
|
126
|
+
declare const DeleteProjectInputModel: _contractspec_lib_schema39.SchemaModel<{
|
|
127
|
+
projectId: {
|
|
128
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
129
|
+
isOptional: false;
|
|
130
|
+
};
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Output for delete operation.
|
|
134
|
+
*/
|
|
135
|
+
declare const DeleteProjectOutputModel: _contractspec_lib_schema39.SchemaModel<{
|
|
136
|
+
success: {
|
|
137
|
+
type: _contractspec_lib_schema39.FieldType<boolean, boolean>;
|
|
138
|
+
isOptional: false;
|
|
139
|
+
};
|
|
140
|
+
}>;
|
|
141
|
+
/**
|
|
142
|
+
* Payload for project deleted event.
|
|
143
|
+
*/
|
|
144
|
+
declare const ProjectDeletedPayloadModel: _contractspec_lib_schema39.SchemaModel<{
|
|
145
|
+
projectId: {
|
|
146
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
147
|
+
isOptional: false;
|
|
148
|
+
};
|
|
149
|
+
}>;
|
|
150
|
+
/**
|
|
151
|
+
* Input for listing projects.
|
|
152
|
+
*/
|
|
153
|
+
declare const ListProjectsInputModel: _contractspec_lib_schema39.SchemaModel<{
|
|
154
|
+
status: {
|
|
155
|
+
type: _contractspec_lib_schema39.EnumType<[string, string, string, string]>;
|
|
156
|
+
isOptional: true;
|
|
157
|
+
};
|
|
158
|
+
search: {
|
|
159
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
160
|
+
isOptional: true;
|
|
161
|
+
};
|
|
162
|
+
limit: {
|
|
163
|
+
type: _contractspec_lib_schema39.FieldType<number, number>;
|
|
164
|
+
isOptional: true;
|
|
165
|
+
defaultValue: number;
|
|
166
|
+
};
|
|
167
|
+
offset: {
|
|
168
|
+
type: _contractspec_lib_schema39.FieldType<number, number>;
|
|
169
|
+
isOptional: true;
|
|
170
|
+
defaultValue: number;
|
|
171
|
+
};
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* Output for listing projects.
|
|
175
|
+
*/
|
|
176
|
+
declare const ListProjectsOutputModel: _contractspec_lib_schema39.SchemaModel<{
|
|
177
|
+
projects: {
|
|
178
|
+
type: _contractspec_lib_schema39.SchemaModel<{
|
|
179
|
+
id: {
|
|
180
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
181
|
+
isOptional: false;
|
|
182
|
+
};
|
|
183
|
+
name: {
|
|
184
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
185
|
+
isOptional: false;
|
|
186
|
+
};
|
|
187
|
+
description: {
|
|
188
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
189
|
+
isOptional: true;
|
|
190
|
+
};
|
|
191
|
+
slug: {
|
|
192
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
193
|
+
isOptional: true;
|
|
194
|
+
};
|
|
195
|
+
organizationId: {
|
|
196
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
197
|
+
isOptional: false;
|
|
198
|
+
};
|
|
199
|
+
createdBy: {
|
|
200
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
201
|
+
isOptional: false;
|
|
202
|
+
};
|
|
203
|
+
status: {
|
|
204
|
+
type: _contractspec_lib_schema39.EnumType<[string, string, string, string]>;
|
|
205
|
+
isOptional: false;
|
|
206
|
+
};
|
|
207
|
+
isPublic: {
|
|
208
|
+
type: _contractspec_lib_schema39.FieldType<boolean, boolean>;
|
|
209
|
+
isOptional: false;
|
|
210
|
+
};
|
|
211
|
+
tags: {
|
|
212
|
+
type: _contractspec_lib_schema39.FieldType<string, string>;
|
|
213
|
+
isArray: true;
|
|
214
|
+
isOptional: false;
|
|
215
|
+
};
|
|
216
|
+
createdAt: {
|
|
217
|
+
type: _contractspec_lib_schema39.FieldType<Date, string>;
|
|
218
|
+
isOptional: false;
|
|
219
|
+
};
|
|
220
|
+
updatedAt: {
|
|
221
|
+
type: _contractspec_lib_schema39.FieldType<Date, string>;
|
|
222
|
+
isOptional: false;
|
|
223
|
+
};
|
|
224
|
+
}>;
|
|
225
|
+
isArray: true;
|
|
226
|
+
isOptional: false;
|
|
227
|
+
};
|
|
228
|
+
total: {
|
|
229
|
+
type: _contractspec_lib_schema39.FieldType<number, number>;
|
|
230
|
+
isOptional: false;
|
|
231
|
+
};
|
|
232
|
+
}>;
|
|
233
|
+
//#endregion
|
|
234
|
+
export { CreateProjectInputModel, DeleteProjectInputModel, DeleteProjectOutputModel, GetProjectInputModel, ListProjectsInputModel, ListProjectsOutputModel, ProjectDeletedPayloadModel, ProjectModel, UpdateProjectInputModel };
|
|
235
|
+
//# sourceMappingURL=project.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.schema.d.ts","names":[],"sources":["../../src/project/project.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AASa,cAAA,YAuBX,6BAvBuB,WAuBvB,CAAA;EAAA,EAAA,EAAA;UAAA,0BAAA,CAAA;;;;;;;;;;;;8CAvBuB,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;EA4BZ,CAAA;EAcX,cAAA,EAAA;;;;;8CAdkC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAmBvB,CAAA;EAgBX,MAAA,EAAA;;;;;;;;EAhBkC,IAAA,EAAA;IAqBvB,IAAA,sCAKX,CAAA,MAAA,EAAA,MAAA,CAAA;IAKW,OAAA,EAAA,IAAA;IAUA,UAAA,EAAA,KAAA;EAUA,CAAA;EAUA,SAAA,EAAA;IAiBX,IAAA,sCAAA,KAAA,EAAA,MAAA,CAAA;;;;8CAjBiC,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAsBtB,CAAA;CAOX,CAAA;;;;cA7GW,oDAAuB;;UAclC,0BAAA,CAAA;;;;;;;;;;EAwFkC,CAAA;;;;;;;;;;;;;;cAnFvB,oDAAuB;;UAgBlC,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,sBAKX,0BAAA,CAL+B;;UAK/B,0BAAA,CAAA;;;;;;;cAKW,yBAKX,0BAAA,CALkC;;UAKlC,0BAAA,CAAA;;;;;;;cAKW,0BAKX,0BAAA,CALmC;;UAKnC,0BAAA,CAAA;;;;;;;cAKW,4BAKX,0BAAA,CALqC;;UAKrC,0BAAA,CAAA;;;;;;;cAKW,mDAAsB;;UAiBjC,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;cAKW,oDAAuB;;;;cAOlC,0BAAA,CAAA"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { ProjectStatusFilterEnum, ProjectStatusSchemaEnum } from "./project.enum.js";
|
|
2
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/project/project.schema.ts
|
|
5
|
+
/**
|
|
6
|
+
* A project within an organization.
|
|
7
|
+
*/
|
|
8
|
+
const ProjectModel = defineSchemaModel({
|
|
9
|
+
name: "Project",
|
|
10
|
+
description: "A project within an organization",
|
|
11
|
+
fields: {
|
|
12
|
+
id: {
|
|
13
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
14
|
+
isOptional: false
|
|
15
|
+
},
|
|
16
|
+
name: {
|
|
17
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
18
|
+
isOptional: false
|
|
19
|
+
},
|
|
20
|
+
description: {
|
|
21
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
22
|
+
isOptional: true
|
|
23
|
+
},
|
|
24
|
+
slug: {
|
|
25
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
26
|
+
isOptional: true
|
|
27
|
+
},
|
|
28
|
+
organizationId: {
|
|
29
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
30
|
+
isOptional: false
|
|
31
|
+
},
|
|
32
|
+
createdBy: {
|
|
33
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
34
|
+
isOptional: false
|
|
35
|
+
},
|
|
36
|
+
status: {
|
|
37
|
+
type: ProjectStatusSchemaEnum,
|
|
38
|
+
isOptional: false
|
|
39
|
+
},
|
|
40
|
+
isPublic: {
|
|
41
|
+
type: ScalarTypeEnum.Boolean(),
|
|
42
|
+
isOptional: false
|
|
43
|
+
},
|
|
44
|
+
tags: {
|
|
45
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
46
|
+
isArray: true,
|
|
47
|
+
isOptional: false
|
|
48
|
+
},
|
|
49
|
+
createdAt: {
|
|
50
|
+
type: ScalarTypeEnum.DateTime(),
|
|
51
|
+
isOptional: false
|
|
52
|
+
},
|
|
53
|
+
updatedAt: {
|
|
54
|
+
type: ScalarTypeEnum.DateTime(),
|
|
55
|
+
isOptional: false
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* Input for creating a project.
|
|
61
|
+
*/
|
|
62
|
+
const CreateProjectInputModel = defineSchemaModel({
|
|
63
|
+
name: "CreateProjectInput",
|
|
64
|
+
description: "Input for creating a project",
|
|
65
|
+
fields: {
|
|
66
|
+
name: {
|
|
67
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
68
|
+
isOptional: false
|
|
69
|
+
},
|
|
70
|
+
description: {
|
|
71
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
72
|
+
isOptional: true
|
|
73
|
+
},
|
|
74
|
+
slug: {
|
|
75
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
76
|
+
isOptional: true
|
|
77
|
+
},
|
|
78
|
+
isPublic: {
|
|
79
|
+
type: ScalarTypeEnum.Boolean(),
|
|
80
|
+
isOptional: true
|
|
81
|
+
},
|
|
82
|
+
tags: {
|
|
83
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
84
|
+
isArray: true,
|
|
85
|
+
isOptional: true
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
/**
|
|
90
|
+
* Input for updating a project.
|
|
91
|
+
*/
|
|
92
|
+
const UpdateProjectInputModel = defineSchemaModel({
|
|
93
|
+
name: "UpdateProjectInput",
|
|
94
|
+
description: "Input for updating a project",
|
|
95
|
+
fields: {
|
|
96
|
+
projectId: {
|
|
97
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
98
|
+
isOptional: false
|
|
99
|
+
},
|
|
100
|
+
name: {
|
|
101
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
102
|
+
isOptional: true
|
|
103
|
+
},
|
|
104
|
+
description: {
|
|
105
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
106
|
+
isOptional: true
|
|
107
|
+
},
|
|
108
|
+
slug: {
|
|
109
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
110
|
+
isOptional: true
|
|
111
|
+
},
|
|
112
|
+
isPublic: {
|
|
113
|
+
type: ScalarTypeEnum.Boolean(),
|
|
114
|
+
isOptional: true
|
|
115
|
+
},
|
|
116
|
+
tags: {
|
|
117
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
118
|
+
isArray: true,
|
|
119
|
+
isOptional: true
|
|
120
|
+
},
|
|
121
|
+
status: {
|
|
122
|
+
type: ProjectStatusSchemaEnum,
|
|
123
|
+
isOptional: true
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
/**
|
|
128
|
+
* Input for getting a project.
|
|
129
|
+
*/
|
|
130
|
+
const GetProjectInputModel = defineSchemaModel({
|
|
131
|
+
name: "GetProjectInput",
|
|
132
|
+
fields: { projectId: {
|
|
133
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
134
|
+
isOptional: false
|
|
135
|
+
} }
|
|
136
|
+
});
|
|
137
|
+
/**
|
|
138
|
+
* Input for deleting a project.
|
|
139
|
+
*/
|
|
140
|
+
const DeleteProjectInputModel = defineSchemaModel({
|
|
141
|
+
name: "DeleteProjectInput",
|
|
142
|
+
fields: { projectId: {
|
|
143
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
144
|
+
isOptional: false
|
|
145
|
+
} }
|
|
146
|
+
});
|
|
147
|
+
/**
|
|
148
|
+
* Output for delete operation.
|
|
149
|
+
*/
|
|
150
|
+
const DeleteProjectOutputModel = defineSchemaModel({
|
|
151
|
+
name: "DeleteProjectOutput",
|
|
152
|
+
fields: { success: {
|
|
153
|
+
type: ScalarTypeEnum.Boolean(),
|
|
154
|
+
isOptional: false
|
|
155
|
+
} }
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* Payload for project deleted event.
|
|
159
|
+
*/
|
|
160
|
+
const ProjectDeletedPayloadModel = defineSchemaModel({
|
|
161
|
+
name: "ProjectDeletedPayload",
|
|
162
|
+
fields: { projectId: {
|
|
163
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
164
|
+
isOptional: false
|
|
165
|
+
} }
|
|
166
|
+
});
|
|
167
|
+
/**
|
|
168
|
+
* Input for listing projects.
|
|
169
|
+
*/
|
|
170
|
+
const ListProjectsInputModel = defineSchemaModel({
|
|
171
|
+
name: "ListProjectsInput",
|
|
172
|
+
description: "Input for listing projects",
|
|
173
|
+
fields: {
|
|
174
|
+
status: {
|
|
175
|
+
type: ProjectStatusFilterEnum,
|
|
176
|
+
isOptional: true
|
|
177
|
+
},
|
|
178
|
+
search: {
|
|
179
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
180
|
+
isOptional: true
|
|
181
|
+
},
|
|
182
|
+
limit: {
|
|
183
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
184
|
+
isOptional: true,
|
|
185
|
+
defaultValue: 20
|
|
186
|
+
},
|
|
187
|
+
offset: {
|
|
188
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
189
|
+
isOptional: true,
|
|
190
|
+
defaultValue: 0
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
/**
|
|
195
|
+
* Output for listing projects.
|
|
196
|
+
*/
|
|
197
|
+
const ListProjectsOutputModel = defineSchemaModel({
|
|
198
|
+
name: "ListProjectsOutput",
|
|
199
|
+
description: "Output for listing projects",
|
|
200
|
+
fields: {
|
|
201
|
+
projects: {
|
|
202
|
+
type: ProjectModel,
|
|
203
|
+
isArray: true,
|
|
204
|
+
isOptional: false
|
|
205
|
+
},
|
|
206
|
+
total: {
|
|
207
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
208
|
+
isOptional: false
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
//#endregion
|
|
214
|
+
export { CreateProjectInputModel, DeleteProjectInputModel, DeleteProjectOutputModel, GetProjectInputModel, ListProjectsInputModel, ListProjectsOutputModel, ProjectDeletedPayloadModel, ProjectModel, UpdateProjectInputModel };
|
|
215
|
+
//# sourceMappingURL=project.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.schema.js","names":[],"sources":["../../src/project/project.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\nimport {\n ProjectStatusSchemaEnum,\n ProjectStatusFilterEnum,\n} from './project.enum';\n\n/**\n * A project within an organization.\n */\nexport const ProjectModel = defineSchemaModel({\n name: 'Project',\n description: 'A project within an organization',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ProjectStatusSchemaEnum, isOptional: false },\n isPublic: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: false,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Input for creating a project.\n */\nexport const CreateProjectInputModel = defineSchemaModel({\n name: 'CreateProjectInput',\n description: 'Input for creating a project',\n fields: {\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n isPublic: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n\n/**\n * Input for updating a project.\n */\nexport const UpdateProjectInputModel = defineSchemaModel({\n name: 'UpdateProjectInput',\n description: 'Input for updating a project',\n fields: {\n projectId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n isPublic: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n status: { type: ProjectStatusSchemaEnum, isOptional: true },\n },\n});\n\n/**\n * Input for getting a project.\n */\nexport const GetProjectInputModel = defineSchemaModel({\n name: 'GetProjectInput',\n fields: {\n projectId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n/**\n * Input for deleting a project.\n */\nexport const DeleteProjectInputModel = defineSchemaModel({\n name: 'DeleteProjectInput',\n fields: {\n projectId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n/**\n * Output for delete operation.\n */\nexport const DeleteProjectOutputModel = defineSchemaModel({\n name: 'DeleteProjectOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n});\n\n/**\n * Payload for project deleted event.\n */\nexport const ProjectDeletedPayloadModel = defineSchemaModel({\n name: 'ProjectDeletedPayload',\n fields: {\n projectId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n/**\n * Input for listing projects.\n */\nexport const ListProjectsInputModel = defineSchemaModel({\n name: 'ListProjectsInput',\n description: 'Input for listing projects',\n fields: {\n status: { type: ProjectStatusFilterEnum, isOptional: true },\n search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n});\n\n/**\n * Output for listing projects.\n */\nexport const ListProjectsOutputModel = defineSchemaModel({\n name: 'ListProjectsOutput',\n description: 'Output for listing projects',\n fields: {\n projects: { type: ProjectModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n },\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/saas-boilerplate.feature.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* SaaS Boilerplate feature module that bundles project management,
|
|
7
|
+
* billing, and settings operations into an installable feature.
|
|
8
|
+
*/
|
|
9
|
+
declare const SaasBoilerplateFeature: _contractspec_lib_contracts0.FeatureModuleSpec;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SaasBoilerplateFeature };
|
|
12
|
+
//# sourceMappingURL=saas-boilerplate.feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"saas-boilerplate.feature.d.ts","names":[],"sources":["../src/saas-boilerplate.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWA;cAAa,wBAqGX,4BAAA,CArGiC"}
|