@lssm/example.team-hub 0.0.0-canary-20251217063201 → 0.0.0-canary-20251217072406
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/dist/announcement/announcement.contracts.d.ts +15 -15
- package/dist/announcement/announcement.contracts.js +33 -1
- package/dist/announcement/announcement.schema.d.ts +15 -15
- package/dist/announcement/announcement.schema.js +74 -1
- package/dist/announcement/index.js +4 -1
- package/dist/docs/index.js +1 -1
- package/dist/docs/team-hub.docblock.js +61 -5
- package/dist/entities/index.d.ts +137 -137
- package/dist/entities/index.js +263 -1
- package/dist/events.d.ts +77 -77
- package/dist/events.js +162 -1
- package/dist/example.js +50 -1
- package/dist/handlers/index.js +8 -1
- package/dist/index.js +14 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +88 -1
- package/dist/libs/contracts/dist/client/index.js +5 -1
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -1
- package/dist/libs/contracts/dist/client/react/form-render.js +4 -1
- package/dist/libs/contracts/dist/client/react/index.js +4 -1
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js +60 -1
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +16 -76
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +16 -350
- package/dist/libs/contracts/dist/docs/index.js +29 -1
- package/dist/libs/contracts/dist/docs/presentations.js +71 -1
- package/dist/libs/contracts/dist/docs/registry.js +44 -1
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +16 -383
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +16 -68
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +16 -140
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +16 -86
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +21 -2
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +16 -213
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +73 -5
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +37 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +20 -262
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +48 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +24 -2
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +25 -16
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +67 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +22 -2
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +40 -36
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +47 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +23 -2
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +36 -3
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -1
- package/dist/libs/contracts/dist/events.js +10 -1
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -1
- package/dist/libs/contracts/dist/index.js +71 -1
- package/dist/libs/contracts/dist/install.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +377 -1
- package/dist/libs/contracts/dist/integrations/index.js +18 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +228 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +159 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +210 -1
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +242 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +13 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -1
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -1
- package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -1
- package/dist/libs/contracts/dist/jsonschema.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +306 -1
- package/dist/libs/contracts/dist/knowledge/index.js +7 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -1
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -1
- package/dist/libs/contracts/dist/llm/exporters.js +19 -1
- package/dist/libs/contracts/dist/llm/index.js +2 -1
- package/dist/libs/contracts/dist/llm/prompts.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +196 -1
- package/dist/libs/contracts/dist/openapi.js +1 -1
- package/dist/libs/contracts/dist/ownership.js +21 -1
- package/dist/libs/contracts/dist/presentations.js +1 -1
- package/dist/libs/contracts/dist/presentations.v2.js +11 -1
- package/dist/libs/contracts/dist/prompt.js +1 -1
- package/dist/libs/contracts/dist/promptRegistry.js +1 -1
- package/dist/libs/contracts/dist/regenerator/index.js +1 -1
- package/dist/libs/contracts/dist/regenerator/service.js +6 -1
- package/dist/libs/contracts/dist/registry.js +2 -1
- package/dist/libs/contracts/dist/resources.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +49 -1
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +34 -1
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -1
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -1
- package/dist/libs/contracts/dist/schema/dist/index.js +6 -1
- package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -1
- package/dist/libs/contracts/dist/server/index.js +8 -1
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -1
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -1
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -1
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -1
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -1
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -1
- package/dist/libs/contracts/dist/server/rest-express.js +1 -1
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -1
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -1
- package/dist/libs/contracts/dist/spec.js +34 -1
- package/dist/libs/contracts/dist/telemetry/index.js +1 -1
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -1
- package/dist/libs/contracts/dist/tests/index.js +1 -1
- package/dist/libs/contracts/dist/tests/runner.js +2 -1
- package/dist/libs/contracts/dist/workflow/index.js +1 -1
- package/dist/libs/contracts/dist/workflow/runner.js +1 -1
- package/dist/libs/schema/dist/EnumType.js +2 -1
- package/dist/libs/schema/dist/FieldType.js +49 -1
- package/dist/libs/schema/dist/ScalarTypeEnum.js +236 -1
- package/dist/libs/schema/dist/SchemaModel.js +39 -1
- package/dist/libs/schema/dist/entity/defineEntity.js +236 -1
- package/dist/libs/schema/dist/entity/index.js +2 -1
- package/dist/libs/schema/dist/entity/types.js +1 -1
- package/dist/libs/schema/dist/index.js +6 -1
- package/dist/presentations/index.js +12 -1
- package/dist/presentations.js +127 -1
- package/dist/ritual/index.js +4 -1
- package/dist/ritual/ritual.contracts.d.ts +28 -28
- package/dist/ritual/ritual.contracts.js +57 -1
- package/dist/ritual/ritual.schema.d.ts +20 -20
- package/dist/ritual/ritual.schema.js +99 -1
- package/dist/space/index.js +4 -1
- package/dist/space/space.contracts.d.ts +13 -13
- package/dist/space/space.contracts.js +33 -1
- package/dist/space/space.schema.d.ts +12 -12
- package/dist/space/space.schema.js +62 -1
- package/dist/task/index.js +4 -1
- package/dist/task/task.contracts.js +123 -1
- package/dist/task/task.schema.d.ts +19 -19
- package/dist/task/task.schema.js +95 -1
- package/dist/team-hub.feature.js +157 -1
- package/package.json +10 -10
|
@@ -1 +1,6 @@
|
|
|
1
|
-
import"./EnumType.js";
|
|
1
|
+
import "./EnumType.js";
|
|
2
|
+
import { FieldType } from "./FieldType.js";
|
|
3
|
+
import { ScalarTypeEnum } from "./ScalarTypeEnum.js";
|
|
4
|
+
import { SchemaModel, defineSchemaModel } from "./SchemaModel.js";
|
|
5
|
+
import { defineEntity, defineEntityEnum, field, index } from "./entity/defineEntity.js";
|
|
6
|
+
import "./entity/index.js";
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/presentations/index.ts
|
|
2
|
+
const TeamHubPresentations = [
|
|
3
|
+
"team-hub.dashboard",
|
|
4
|
+
"team-hub.space.list",
|
|
5
|
+
"team-hub.task.board",
|
|
6
|
+
"team-hub.task.detail",
|
|
7
|
+
"team-hub.ritual.calendar",
|
|
8
|
+
"team-hub.announcement.feed"
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { TeamHubPresentations };
|
package/dist/presentations.js
CHANGED
|
@@ -1 +1,127 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/presentations.ts
|
|
2
|
+
const TeamDashboardPresentation = {
|
|
3
|
+
meta: {
|
|
4
|
+
name: "team-hub.dashboard",
|
|
5
|
+
version: 1,
|
|
6
|
+
description: "Team hub dashboard with activity overview",
|
|
7
|
+
domain: "collaboration",
|
|
8
|
+
owners: ["@team-hub"],
|
|
9
|
+
tags: ["team", "dashboard"]
|
|
10
|
+
},
|
|
11
|
+
source: {
|
|
12
|
+
type: "component",
|
|
13
|
+
framework: "react",
|
|
14
|
+
componentKey: "TeamDashboard"
|
|
15
|
+
},
|
|
16
|
+
targets: ["react", "markdown"],
|
|
17
|
+
policy: { flags: ["team.dashboard.enabled"] }
|
|
18
|
+
};
|
|
19
|
+
const SpaceListPresentation = {
|
|
20
|
+
meta: {
|
|
21
|
+
name: "team-hub.space.list",
|
|
22
|
+
version: 1,
|
|
23
|
+
description: "List of team spaces",
|
|
24
|
+
domain: "collaboration",
|
|
25
|
+
owners: ["@team-hub"],
|
|
26
|
+
tags: [
|
|
27
|
+
"team",
|
|
28
|
+
"spaces",
|
|
29
|
+
"list"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
source: {
|
|
33
|
+
type: "component",
|
|
34
|
+
framework: "react",
|
|
35
|
+
componentKey: "SpaceList"
|
|
36
|
+
},
|
|
37
|
+
targets: ["react", "markdown"],
|
|
38
|
+
policy: { flags: ["team.spaces.enabled"] }
|
|
39
|
+
};
|
|
40
|
+
const TaskBoardPresentation = {
|
|
41
|
+
meta: {
|
|
42
|
+
name: "team-hub.task.board",
|
|
43
|
+
version: 1,
|
|
44
|
+
description: "Task board with kanban view",
|
|
45
|
+
domain: "collaboration",
|
|
46
|
+
owners: ["@team-hub"],
|
|
47
|
+
tags: [
|
|
48
|
+
"team",
|
|
49
|
+
"tasks",
|
|
50
|
+
"board",
|
|
51
|
+
"kanban"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
source: {
|
|
55
|
+
type: "component",
|
|
56
|
+
framework: "react",
|
|
57
|
+
componentKey: "TaskBoard"
|
|
58
|
+
},
|
|
59
|
+
targets: ["react"],
|
|
60
|
+
policy: { flags: ["team.tasks.enabled"] }
|
|
61
|
+
};
|
|
62
|
+
const TaskDetailPresentation = {
|
|
63
|
+
meta: {
|
|
64
|
+
name: "team-hub.task.detail",
|
|
65
|
+
version: 1,
|
|
66
|
+
description: "Task detail with comments and history",
|
|
67
|
+
domain: "collaboration",
|
|
68
|
+
owners: ["@team-hub"],
|
|
69
|
+
tags: [
|
|
70
|
+
"team",
|
|
71
|
+
"task",
|
|
72
|
+
"detail"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
source: {
|
|
76
|
+
type: "component",
|
|
77
|
+
framework: "react",
|
|
78
|
+
componentKey: "TaskDetail"
|
|
79
|
+
},
|
|
80
|
+
targets: ["react", "markdown"],
|
|
81
|
+
policy: { flags: ["team.tasks.enabled"] }
|
|
82
|
+
};
|
|
83
|
+
const RitualCalendarPresentation = {
|
|
84
|
+
meta: {
|
|
85
|
+
name: "team-hub.ritual.calendar",
|
|
86
|
+
version: 1,
|
|
87
|
+
description: "Calendar view of team rituals",
|
|
88
|
+
domain: "collaboration",
|
|
89
|
+
owners: ["@team-hub"],
|
|
90
|
+
tags: [
|
|
91
|
+
"team",
|
|
92
|
+
"rituals",
|
|
93
|
+
"calendar"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
source: {
|
|
97
|
+
type: "component",
|
|
98
|
+
framework: "react",
|
|
99
|
+
componentKey: "RitualCalendar"
|
|
100
|
+
},
|
|
101
|
+
targets: ["react"],
|
|
102
|
+
policy: { flags: ["team.rituals.enabled"] }
|
|
103
|
+
};
|
|
104
|
+
const AnnouncementFeedPresentation = {
|
|
105
|
+
meta: {
|
|
106
|
+
name: "team-hub.announcement.feed",
|
|
107
|
+
version: 1,
|
|
108
|
+
description: "Feed of team announcements",
|
|
109
|
+
domain: "collaboration",
|
|
110
|
+
owners: ["@team-hub"],
|
|
111
|
+
tags: [
|
|
112
|
+
"team",
|
|
113
|
+
"announcements",
|
|
114
|
+
"feed"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
source: {
|
|
118
|
+
type: "component",
|
|
119
|
+
framework: "react",
|
|
120
|
+
componentKey: "AnnouncementFeed"
|
|
121
|
+
},
|
|
122
|
+
targets: ["react", "markdown"],
|
|
123
|
+
policy: { flags: ["team.announcements.enabled"] }
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
//#endregion
|
|
127
|
+
export { AnnouncementFeedPresentation, RitualCalendarPresentation, SpaceListPresentation, TaskBoardPresentation, TaskDetailPresentation, TeamDashboardPresentation };
|
package/dist/ritual/index.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
import{LogRitualOccurrenceInputModel
|
|
1
|
+
import { LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualInputModel } from "./ritual.schema.js";
|
|
2
|
+
import { LogRitualOccurrenceContract, ScheduleRitualContract } from "./ritual.contracts.js";
|
|
3
|
+
|
|
4
|
+
export { LogRitualOccurrenceContract, LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualContract, ScheduleRitualInputModel };
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema257 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts12 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/ritual/ritual.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Schedule a ritual.
|
|
7
7
|
*/
|
|
8
|
-
declare const ScheduleRitualContract:
|
|
8
|
+
declare const ScheduleRitualContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_schema257.SchemaModel<{
|
|
9
9
|
spaceId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
title: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
cadence: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
dayOfWeek: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
23
23
|
isOptional: true;
|
|
24
24
|
};
|
|
25
25
|
time: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
facilitatorId: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
|
-
}>,
|
|
33
|
+
}>, _lssm_lib_schema257.SchemaModel<{
|
|
34
34
|
id: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
spaceId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
title: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
cadence: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
dayOfWeek: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
time: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
}>, undefined>;
|
|
59
59
|
/**
|
|
60
60
|
* Log ritual occurrence.
|
|
61
61
|
*/
|
|
62
|
-
declare const LogRitualOccurrenceContract:
|
|
62
|
+
declare const LogRitualOccurrenceContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_schema257.SchemaModel<{
|
|
63
63
|
ritualId: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
scheduledFor: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema257.FieldType<Date, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
status: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
summary: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
77
77
|
isOptional: true;
|
|
78
78
|
};
|
|
79
|
-
}>,
|
|
79
|
+
}>, _lssm_lib_schema257.SchemaModel<{
|
|
80
80
|
id: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
spaceId: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
title: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
cadence: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
dayOfWeek: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
time: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema257.FieldType<string, string>;
|
|
102
102
|
isOptional: true;
|
|
103
103
|
};
|
|
104
104
|
}>, undefined>;
|
|
@@ -1 +1,57 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { defineCommand } from "../libs/contracts/dist/spec.js";
|
|
2
|
+
import "../libs/contracts/dist/index.js";
|
|
3
|
+
import { LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualInputModel } from "./ritual.schema.js";
|
|
4
|
+
|
|
5
|
+
//#region src/ritual/ritual.contracts.ts
|
|
6
|
+
const OWNERS = ["@examples.team-hub"];
|
|
7
|
+
/**
|
|
8
|
+
* Schedule a ritual.
|
|
9
|
+
*/
|
|
10
|
+
const ScheduleRitualContract = defineCommand({
|
|
11
|
+
meta: {
|
|
12
|
+
name: "team.ritual.schedule",
|
|
13
|
+
version: 1,
|
|
14
|
+
stability: "stable",
|
|
15
|
+
owners: [...OWNERS],
|
|
16
|
+
tags: [
|
|
17
|
+
"team-hub",
|
|
18
|
+
"ritual",
|
|
19
|
+
"schedule"
|
|
20
|
+
],
|
|
21
|
+
description: "Schedule a recurring ritual.",
|
|
22
|
+
goal: "Team ceremonies.",
|
|
23
|
+
context: "Ritual management."
|
|
24
|
+
},
|
|
25
|
+
io: {
|
|
26
|
+
input: ScheduleRitualInputModel,
|
|
27
|
+
output: RitualModel
|
|
28
|
+
},
|
|
29
|
+
policy: { auth: "user" }
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Log ritual occurrence.
|
|
33
|
+
*/
|
|
34
|
+
const LogRitualOccurrenceContract = defineCommand({
|
|
35
|
+
meta: {
|
|
36
|
+
name: "team.ritual.logOccurrence",
|
|
37
|
+
version: 1,
|
|
38
|
+
stability: "stable",
|
|
39
|
+
owners: [...OWNERS],
|
|
40
|
+
tags: [
|
|
41
|
+
"team-hub",
|
|
42
|
+
"ritual",
|
|
43
|
+
"log"
|
|
44
|
+
],
|
|
45
|
+
description: "Log a ritual occurrence.",
|
|
46
|
+
goal: "Record ritual history.",
|
|
47
|
+
context: "Ritual management."
|
|
48
|
+
},
|
|
49
|
+
io: {
|
|
50
|
+
input: LogRitualOccurrenceInputModel,
|
|
51
|
+
output: RitualModel
|
|
52
|
+
},
|
|
53
|
+
policy: { auth: "user" }
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { LogRitualOccurrenceContract, ScheduleRitualContract };
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema283 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/ritual/ritual.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Recurring ritual.
|
|
6
6
|
*/
|
|
7
|
-
declare const RitualModel:
|
|
7
|
+
declare const RitualModel: _lssm_lib_schema283.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
spaceId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
title: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
cadence: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
dayOfWeek: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
26
26
|
isOptional: true;
|
|
27
27
|
};
|
|
28
28
|
time: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
30
30
|
isOptional: true;
|
|
31
31
|
};
|
|
32
32
|
}>;
|
|
33
33
|
/**
|
|
34
34
|
* Input for scheduling a ritual.
|
|
35
35
|
*/
|
|
36
|
-
declare const ScheduleRitualInputModel:
|
|
36
|
+
declare const ScheduleRitualInputModel: _lssm_lib_schema283.SchemaModel<{
|
|
37
37
|
spaceId: {
|
|
38
|
-
type:
|
|
38
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
title: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
cadence: {
|
|
46
|
-
type:
|
|
46
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
dayOfWeek: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
51
51
|
isOptional: true;
|
|
52
52
|
};
|
|
53
53
|
time: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
55
55
|
isOptional: true;
|
|
56
56
|
};
|
|
57
57
|
facilitatorId: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
}>;
|
|
62
62
|
/**
|
|
63
63
|
* Input for logging ritual occurrence.
|
|
64
64
|
*/
|
|
65
|
-
declare const LogRitualOccurrenceInputModel:
|
|
65
|
+
declare const LogRitualOccurrenceInputModel: _lssm_lib_schema283.SchemaModel<{
|
|
66
66
|
ritualId: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
scheduledFor: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema283.FieldType<Date, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
status: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
summary: {
|
|
79
|
-
type:
|
|
79
|
+
type: _lssm_lib_schema283.FieldType<string, string>;
|
|
80
80
|
isOptional: true;
|
|
81
81
|
};
|
|
82
82
|
}>;
|
|
@@ -1 +1,99 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { ScalarTypeEnum } from "../libs/schema/dist/ScalarTypeEnum.js";
|
|
2
|
+
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
+
import "../libs/schema/dist/index.js";
|
|
4
|
+
|
|
5
|
+
//#region src/ritual/ritual.schema.ts
|
|
6
|
+
/**
|
|
7
|
+
* Recurring ritual.
|
|
8
|
+
*/
|
|
9
|
+
const RitualModel = defineSchemaModel({
|
|
10
|
+
name: "Ritual",
|
|
11
|
+
description: "Recurring ritual",
|
|
12
|
+
fields: {
|
|
13
|
+
id: {
|
|
14
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
15
|
+
isOptional: false
|
|
16
|
+
},
|
|
17
|
+
spaceId: {
|
|
18
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
19
|
+
isOptional: false
|
|
20
|
+
},
|
|
21
|
+
title: {
|
|
22
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
23
|
+
isOptional: false
|
|
24
|
+
},
|
|
25
|
+
cadence: {
|
|
26
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
27
|
+
isOptional: false
|
|
28
|
+
},
|
|
29
|
+
dayOfWeek: {
|
|
30
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
31
|
+
isOptional: true
|
|
32
|
+
},
|
|
33
|
+
time: {
|
|
34
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
35
|
+
isOptional: true
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* Input for scheduling a ritual.
|
|
41
|
+
*/
|
|
42
|
+
const ScheduleRitualInputModel = defineSchemaModel({
|
|
43
|
+
name: "ScheduleRitualInput",
|
|
44
|
+
description: "Create a ritual",
|
|
45
|
+
fields: {
|
|
46
|
+
spaceId: {
|
|
47
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
48
|
+
isOptional: false
|
|
49
|
+
},
|
|
50
|
+
title: {
|
|
51
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
52
|
+
isOptional: false
|
|
53
|
+
},
|
|
54
|
+
cadence: {
|
|
55
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
56
|
+
isOptional: false
|
|
57
|
+
},
|
|
58
|
+
dayOfWeek: {
|
|
59
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
60
|
+
isOptional: true
|
|
61
|
+
},
|
|
62
|
+
time: {
|
|
63
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
64
|
+
isOptional: true
|
|
65
|
+
},
|
|
66
|
+
facilitatorId: {
|
|
67
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
68
|
+
isOptional: true
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* Input for logging ritual occurrence.
|
|
74
|
+
*/
|
|
75
|
+
const LogRitualOccurrenceInputModel = defineSchemaModel({
|
|
76
|
+
name: "LogRitualOccurrenceInput",
|
|
77
|
+
description: "Record ritual occurrence results",
|
|
78
|
+
fields: {
|
|
79
|
+
ritualId: {
|
|
80
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
81
|
+
isOptional: false
|
|
82
|
+
},
|
|
83
|
+
scheduledFor: {
|
|
84
|
+
type: ScalarTypeEnum.DateTime(),
|
|
85
|
+
isOptional: false
|
|
86
|
+
},
|
|
87
|
+
status: {
|
|
88
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
89
|
+
isOptional: false
|
|
90
|
+
},
|
|
91
|
+
summary: {
|
|
92
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
93
|
+
isOptional: true
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
//#endregion
|
|
99
|
+
export { LogRitualOccurrenceInputModel, RitualModel, ScheduleRitualInputModel };
|
package/dist/space/index.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
import{CreateSpaceInputModel
|
|
1
|
+
import { CreateSpaceInputModel, SpaceModel } from "./space.schema.js";
|
|
2
|
+
import { CreateSpaceContract } from "./space.contracts.js";
|
|
3
|
+
|
|
4
|
+
export { CreateSpaceContract, CreateSpaceInputModel, SpaceModel };
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema313 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts14 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/space/space.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create a new team space.
|
|
7
7
|
*/
|
|
8
|
-
declare const CreateSpaceContract:
|
|
8
|
+
declare const CreateSpaceContract: _lssm_lib_contracts14.ContractSpec<_lssm_lib_schema313.SchemaModel<{
|
|
9
9
|
name: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
description: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
orgId: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
ownerId: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
|
-
}>,
|
|
25
|
+
}>, _lssm_lib_schema313.SchemaModel<{
|
|
26
26
|
id: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
name: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
description: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
36
36
|
isOptional: true;
|
|
37
37
|
};
|
|
38
38
|
orgId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
ownerId: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema313.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
}>, undefined>;
|
|
@@ -1 +1,33 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import { defineCommand } from "../libs/contracts/dist/spec.js";
|
|
2
|
+
import "../libs/contracts/dist/index.js";
|
|
3
|
+
import { CreateSpaceInputModel, SpaceModel } from "./space.schema.js";
|
|
4
|
+
|
|
5
|
+
//#region src/space/space.contracts.ts
|
|
6
|
+
const OWNERS = ["@examples.team-hub"];
|
|
7
|
+
/**
|
|
8
|
+
* Create a new team space.
|
|
9
|
+
*/
|
|
10
|
+
const CreateSpaceContract = defineCommand({
|
|
11
|
+
meta: {
|
|
12
|
+
name: "team.space.create",
|
|
13
|
+
version: 1,
|
|
14
|
+
stability: "stable",
|
|
15
|
+
owners: [...OWNERS],
|
|
16
|
+
tags: [
|
|
17
|
+
"team-hub",
|
|
18
|
+
"space",
|
|
19
|
+
"create"
|
|
20
|
+
],
|
|
21
|
+
description: "Create a new team space.",
|
|
22
|
+
goal: "Organize teams/projects.",
|
|
23
|
+
context: "Workspace creation."
|
|
24
|
+
},
|
|
25
|
+
io: {
|
|
26
|
+
input: CreateSpaceInputModel,
|
|
27
|
+
output: SpaceModel
|
|
28
|
+
},
|
|
29
|
+
policy: { auth: "user" }
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { CreateSpaceContract };
|