@contractspec/example.saas-boilerplate 1.57.0 → 1.58.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 +160 -180
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +20 -0
- package/dist/billing/billing.entity.d.ts +40 -45
- package/dist/billing/billing.entity.d.ts.map +1 -1
- package/dist/billing/billing.entity.js +110 -118
- package/dist/billing/billing.enum.d.ts +2 -7
- package/dist/billing/billing.enum.d.ts.map +1 -1
- package/dist/billing/billing.enum.js +17 -24
- package/dist/billing/billing.event.d.ts +67 -73
- package/dist/billing/billing.event.d.ts.map +1 -1
- package/dist/billing/billing.event.js +84 -146
- package/dist/billing/billing.handler.d.ts +59 -62
- package/dist/billing/billing.handler.d.ts.map +1 -1
- package/dist/billing/billing.handler.js +140 -49
- package/dist/billing/billing.operations.d.ts +138 -144
- package/dist/billing/billing.operations.d.ts.map +1 -1
- package/dist/billing/billing.operations.js +273 -175
- package/dist/billing/billing.presentation.d.ts +2 -7
- package/dist/billing/billing.presentation.d.ts.map +1 -1
- package/dist/billing/billing.presentation.js +51 -57
- package/dist/billing/billing.schema.d.ts +159 -164
- package/dist/billing/billing.schema.d.ts.map +1 -1
- package/dist/billing/billing.schema.js +112 -204
- package/dist/billing/index.d.ts +11 -8
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/index.js +689 -9
- package/dist/browser/billing/billing.entity.js +113 -0
- package/dist/browser/billing/billing.enum.js +19 -0
- package/dist/browser/billing/billing.event.js +90 -0
- package/dist/browser/billing/billing.handler.js +148 -0
- package/dist/browser/billing/billing.operations.js +278 -0
- package/dist/browser/billing/billing.presentation.js +52 -0
- package/dist/browser/billing/billing.schema.js +121 -0
- package/dist/browser/billing/index.js +688 -0
- package/dist/browser/dashboard/dashboard.presentation.js +52 -0
- package/dist/browser/dashboard/index.js +52 -0
- package/dist/browser/docs/index.js +93 -0
- package/dist/browser/docs/saas-boilerplate.docblock.js +93 -0
- package/dist/browser/example.js +39 -0
- package/dist/browser/handlers/index.js +358 -0
- package/dist/browser/handlers/saas.handlers.js +134 -0
- package/dist/browser/index.js +3340 -0
- package/dist/browser/presentations/index.js +290 -0
- package/dist/browser/project/index.js +790 -0
- package/dist/browser/project/project.entity.js +77 -0
- package/dist/browser/project/project.enum.js +18 -0
- package/dist/browser/project/project.event.js +103 -0
- package/dist/browser/project/project.handler.js +178 -0
- package/dist/browser/project/project.operations.js +372 -0
- package/dist/browser/project/project.presentation.js +177 -0
- package/dist/browser/project/project.schema.js +134 -0
- package/dist/browser/saas-boilerplate.feature.js +88 -0
- package/dist/browser/seeders/index.js +20 -0
- package/dist/browser/settings/index.js +75 -0
- package/dist/browser/settings/settings.entity.js +74 -0
- package/dist/browser/settings/settings.enum.js +11 -0
- package/dist/browser/shared/mock-data.js +104 -0
- package/dist/browser/shared/overlay-types.js +0 -0
- package/dist/browser/tests/operations.test-spec.js +112 -0
- package/dist/browser/ui/SaasDashboard.js +988 -0
- package/dist/browser/ui/SaasProjectList.js +162 -0
- package/dist/browser/ui/SaasSettingsPanel.js +145 -0
- package/dist/browser/ui/hooks/index.js +159 -0
- package/dist/browser/ui/hooks/useProjectList.js +66 -0
- package/dist/browser/ui/hooks/useProjectMutations.js +91 -0
- package/dist/browser/ui/index.js +1808 -0
- package/dist/browser/ui/modals/CreateProjectModal.js +153 -0
- package/dist/browser/ui/modals/ProjectActionsModal.js +335 -0
- package/dist/browser/ui/modals/index.js +487 -0
- package/dist/browser/ui/overlays/demo-overlays.js +61 -0
- package/dist/browser/ui/overlays/index.js +61 -0
- package/dist/browser/ui/renderers/index.js +675 -0
- package/dist/browser/ui/renderers/project-list.markdown.js +499 -0
- package/dist/browser/ui/renderers/project-list.renderer.js +177 -0
- package/dist/dashboard/dashboard.presentation.d.ts +2 -7
- package/dist/dashboard/dashboard.presentation.d.ts.map +1 -1
- package/dist/dashboard/dashboard.presentation.js +51 -53
- package/dist/dashboard/index.d.ts +5 -2
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +53 -3
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +94 -1
- package/dist/docs/saas-boilerplate.docblock.d.ts +2 -1
- package/dist/docs/saas-boilerplate.docblock.d.ts.map +1 -0
- package/dist/docs/saas-boilerplate.docblock.js +45 -51
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +38 -50
- package/dist/handlers/index.d.ts +7 -4
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +358 -4
- package/dist/handlers/saas.handlers.d.ts +60 -59
- package/dist/handlers/saas.handlers.d.ts.map +1 -1
- package/dist/handlers/saas.handlers.js +127 -140
- package/dist/index.d.ts +15 -45
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3335 -75
- package/dist/node/billing/billing.entity.js +113 -0
- package/dist/node/billing/billing.enum.js +19 -0
- package/dist/node/billing/billing.event.js +90 -0
- package/dist/node/billing/billing.handler.js +148 -0
- package/dist/node/billing/billing.operations.js +278 -0
- package/dist/node/billing/billing.presentation.js +52 -0
- package/dist/node/billing/billing.schema.js +121 -0
- package/dist/node/billing/index.js +688 -0
- package/dist/node/dashboard/dashboard.presentation.js +52 -0
- package/dist/node/dashboard/index.js +52 -0
- package/dist/node/docs/index.js +93 -0
- package/dist/node/docs/saas-boilerplate.docblock.js +93 -0
- package/dist/node/example.js +39 -0
- package/dist/node/handlers/index.js +358 -0
- package/dist/node/handlers/saas.handlers.js +134 -0
- package/dist/node/index.js +3340 -0
- package/dist/node/presentations/index.js +290 -0
- package/dist/node/project/index.js +790 -0
- package/dist/node/project/project.entity.js +77 -0
- package/dist/node/project/project.enum.js +18 -0
- package/dist/node/project/project.event.js +103 -0
- package/dist/node/project/project.handler.js +178 -0
- package/dist/node/project/project.operations.js +372 -0
- package/dist/node/project/project.presentation.js +177 -0
- package/dist/node/project/project.schema.js +134 -0
- package/dist/node/saas-boilerplate.feature.js +88 -0
- package/dist/node/seeders/index.js +20 -0
- package/dist/node/settings/index.js +75 -0
- package/dist/node/settings/settings.entity.js +74 -0
- package/dist/node/settings/settings.enum.js +11 -0
- package/dist/node/shared/mock-data.js +104 -0
- package/dist/node/shared/overlay-types.js +0 -0
- package/dist/node/tests/operations.test-spec.js +112 -0
- package/dist/node/ui/SaasDashboard.js +988 -0
- package/dist/node/ui/SaasProjectList.js +162 -0
- package/dist/node/ui/SaasSettingsPanel.js +145 -0
- package/dist/node/ui/hooks/index.js +159 -0
- package/dist/node/ui/hooks/useProjectList.js +66 -0
- package/dist/node/ui/hooks/useProjectMutations.js +91 -0
- package/dist/node/ui/index.js +1808 -0
- package/dist/node/ui/modals/CreateProjectModal.js +153 -0
- package/dist/node/ui/modals/ProjectActionsModal.js +335 -0
- package/dist/node/ui/modals/index.js +487 -0
- package/dist/node/ui/overlays/demo-overlays.js +61 -0
- package/dist/node/ui/overlays/index.js +61 -0
- package/dist/node/ui/renderers/index.js +675 -0
- package/dist/node/ui/renderers/project-list.markdown.js +499 -0
- package/dist/node/ui/renderers/project-list.renderer.js +177 -0
- package/dist/presentations/index.d.ts +13 -14
- package/dist/presentations/index.d.ts.map +1 -1
- package/dist/presentations/index.js +289 -15
- package/dist/project/index.d.ts +11 -8
- package/dist/project/index.d.ts.map +1 -0
- package/dist/project/index.js +791 -9
- package/dist/project/project.entity.d.ts +23 -28
- package/dist/project/project.entity.d.ts.map +1 -1
- package/dist/project/project.entity.js +75 -82
- package/dist/project/project.enum.d.ts +2 -7
- package/dist/project/project.enum.d.ts.map +1 -1
- package/dist/project/project.enum.js +16 -23
- package/dist/project/project.event.d.ts +69 -75
- package/dist/project/project.event.d.ts.map +1 -1
- package/dist/project/project.event.js +95 -156
- package/dist/project/project.handler.d.ts +44 -47
- package/dist/project/project.handler.d.ts.map +1 -1
- package/dist/project/project.handler.js +168 -71
- package/dist/project/project.operations.d.ts +341 -347
- package/dist/project/project.operations.d.ts.map +1 -1
- package/dist/project/project.operations.js +366 -253
- package/dist/project/project.presentation.d.ts +2 -7
- package/dist/project/project.presentation.d.ts.map +1 -1
- package/dist/project/project.presentation.js +174 -61
- package/dist/project/project.schema.d.ts +191 -196
- package/dist/project/project.schema.d.ts.map +1 -1
- package/dist/project/project.schema.js +125 -205
- package/dist/saas-boilerplate.feature.d.ts +1 -6
- package/dist/saas-boilerplate.feature.d.ts.map +1 -1
- package/dist/saas-boilerplate.feature.js +87 -206
- package/dist/seeders/index.d.ts +4 -8
- package/dist/seeders/index.d.ts.map +1 -1
- package/dist/seeders/index.js +18 -16
- package/dist/settings/index.d.ts +6 -3
- package/dist/settings/index.d.ts.map +1 -0
- package/dist/settings/index.js +75 -3
- package/dist/settings/settings.entity.d.ts +23 -28
- package/dist/settings/settings.entity.d.ts.map +1 -1
- package/dist/settings/settings.entity.js +72 -75
- package/dist/settings/settings.enum.d.ts +1 -6
- package/dist/settings/settings.enum.d.ts.map +1 -1
- package/dist/settings/settings.enum.js +10 -19
- package/dist/shared/mock-data.d.ts +74 -77
- package/dist/shared/mock-data.d.ts.map +1 -1
- package/dist/shared/mock-data.js +102 -135
- package/dist/shared/overlay-types.d.ts +25 -28
- package/dist/shared/overlay-types.d.ts.map +1 -1
- package/dist/shared/overlay-types.js +1 -0
- package/dist/tests/operations.test-spec.d.ts +4 -9
- package/dist/tests/operations.test-spec.d.ts.map +1 -1
- package/dist/tests/operations.test-spec.js +108 -118
- package/dist/ui/SaasDashboard.d.ts +1 -6
- package/dist/ui/SaasDashboard.d.ts.map +1 -1
- package/dist/ui/SaasDashboard.js +977 -286
- package/dist/ui/SaasProjectList.d.ts +4 -11
- package/dist/ui/SaasProjectList.d.ts.map +1 -1
- package/dist/ui/SaasProjectList.js +159 -72
- package/dist/ui/SaasSettingsPanel.d.ts +1 -6
- package/dist/ui/SaasSettingsPanel.d.ts.map +1 -1
- package/dist/ui/SaasSettingsPanel.js +142 -134
- package/dist/ui/hooks/index.d.ts +3 -3
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +158 -4
- package/dist/ui/hooks/useProjectList.d.ts +26 -30
- package/dist/ui/hooks/useProjectList.d.ts.map +1 -1
- package/dist/ui/hooks/useProjectList.js +63 -71
- package/dist/ui/hooks/useProjectMutations.d.ts +20 -24
- package/dist/ui/hooks/useProjectMutations.d.ts.map +1 -1
- package/dist/ui/hooks/useProjectMutations.js +88 -142
- package/dist/ui/index.d.ts +8 -14
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +1809 -15
- package/dist/ui/modals/CreateProjectModal.d.ts +10 -19
- package/dist/ui/modals/CreateProjectModal.d.ts.map +1 -1
- package/dist/ui/modals/CreateProjectModal.js +150 -135
- package/dist/ui/modals/ProjectActionsModal.d.ts +20 -33
- package/dist/ui/modals/ProjectActionsModal.d.ts.map +1 -1
- package/dist/ui/modals/ProjectActionsModal.js +333 -289
- package/dist/ui/modals/index.d.ts +3 -3
- package/dist/ui/modals/index.d.ts.map +1 -0
- package/dist/ui/modals/index.js +487 -3
- package/dist/ui/overlays/demo-overlays.d.ts +10 -8
- package/dist/ui/overlays/demo-overlays.d.ts.map +1 -1
- package/dist/ui/overlays/demo-overlays.js +60 -68
- package/dist/ui/overlays/index.d.ts +2 -2
- package/dist/ui/overlays/index.d.ts.map +1 -0
- package/dist/ui/overlays/index.js +62 -3
- package/dist/ui/renderers/index.d.ts +3 -3
- package/dist/ui/renderers/index.d.ts.map +1 -0
- package/dist/ui/renderers/index.js +675 -3
- package/dist/ui/renderers/project-list.markdown.d.ts +15 -14
- package/dist/ui/renderers/project-list.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/project-list.markdown.js +496 -146
- package/dist/ui/renderers/project-list.renderer.d.ts +6 -7
- package/dist/ui/renderers/project-list.renderer.d.ts.map +1 -1
- package/dist/ui/renderers/project-list.renderer.js +176 -15
- package/package.json +508 -98
- package/tsdown.config.js +1 -2
- package/.turbo/turbo-build$colon$bundle.log +0 -180
- package/dist/billing/billing.entity.js.map +0 -1
- package/dist/billing/billing.enum.js.map +0 -1
- package/dist/billing/billing.event.js.map +0 -1
- package/dist/billing/billing.handler.js.map +0 -1
- package/dist/billing/billing.operations.js.map +0 -1
- package/dist/billing/billing.presentation.js.map +0 -1
- package/dist/billing/billing.schema.js.map +0 -1
- package/dist/dashboard/dashboard.presentation.js.map +0 -1
- package/dist/docs/saas-boilerplate.docblock.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/saas.handlers.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/presentations/index.js.map +0 -1
- package/dist/project/project.entity.js.map +0 -1
- package/dist/project/project.enum.js.map +0 -1
- package/dist/project/project.event.js.map +0 -1
- package/dist/project/project.handler.js.map +0 -1
- package/dist/project/project.operations.js.map +0 -1
- package/dist/project/project.presentation.js.map +0 -1
- package/dist/project/project.schema.js.map +0 -1
- package/dist/saas-boilerplate.feature.js.map +0 -1
- package/dist/seeders/index.js.map +0 -1
- package/dist/settings/settings.entity.js.map +0 -1
- package/dist/settings/settings.enum.js.map +0 -1
- package/dist/shared/mock-data.js.map +0 -1
- package/dist/tests/operations.test-spec.js.map +0 -1
- package/dist/ui/SaasDashboard.js.map +0 -1
- package/dist/ui/SaasProjectList.js.map +0 -1
- package/dist/ui/SaasSettingsPanel.js.map +0 -1
- package/dist/ui/hooks/useProjectList.js.map +0 -1
- package/dist/ui/hooks/useProjectMutations.js.map +0 -1
- package/dist/ui/modals/CreateProjectModal.js.map +0 -1
- package/dist/ui/modals/ProjectActionsModal.js.map +0 -1
- package/dist/ui/overlays/demo-overlays.js.map +0 -1
- package/dist/ui/renderers/project-list.markdown.js.map +0 -1
- package/dist/ui/renderers/project-list.renderer.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,150 +1,500 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/shared/mock-data.ts
|
|
3
|
+
var MOCK_PROJECTS = [
|
|
4
|
+
{
|
|
5
|
+
id: "proj-1",
|
|
6
|
+
name: "Marketing Website",
|
|
7
|
+
description: "Main company website redesign project",
|
|
8
|
+
slug: "marketing-website",
|
|
9
|
+
organizationId: "demo-org",
|
|
10
|
+
createdBy: "user-1",
|
|
11
|
+
status: "ACTIVE",
|
|
12
|
+
isPublic: false,
|
|
13
|
+
tags: ["marketing", "website", "redesign"],
|
|
14
|
+
createdAt: new Date("2024-01-15T10:00:00Z"),
|
|
15
|
+
updatedAt: new Date("2024-03-20T14:30:00Z")
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: "proj-2",
|
|
19
|
+
name: "Mobile App v2",
|
|
20
|
+
description: "Next generation mobile application",
|
|
21
|
+
slug: "mobile-app-v2",
|
|
22
|
+
organizationId: "demo-org",
|
|
23
|
+
createdBy: "user-2",
|
|
24
|
+
status: "ACTIVE",
|
|
25
|
+
isPublic: false,
|
|
26
|
+
tags: ["mobile", "app", "v2"],
|
|
27
|
+
createdAt: new Date("2024-02-01T09:00:00Z"),
|
|
28
|
+
updatedAt: new Date("2024-04-05T11:15:00Z")
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "proj-3",
|
|
32
|
+
name: "API Integration",
|
|
33
|
+
description: "Third-party API integration project",
|
|
34
|
+
slug: "api-integration",
|
|
35
|
+
organizationId: "demo-org",
|
|
36
|
+
createdBy: "user-1",
|
|
37
|
+
status: "DRAFT",
|
|
38
|
+
isPublic: false,
|
|
39
|
+
tags: ["api", "integration"],
|
|
40
|
+
createdAt: new Date("2024-03-10T08:00:00Z"),
|
|
41
|
+
updatedAt: new Date("2024-03-10T08:00:00Z")
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "proj-4",
|
|
45
|
+
name: "Analytics Dashboard",
|
|
46
|
+
description: "Internal analytics and reporting dashboard",
|
|
47
|
+
slug: "analytics-dashboard",
|
|
48
|
+
organizationId: "demo-org",
|
|
49
|
+
createdBy: "user-3",
|
|
50
|
+
status: "ARCHIVED",
|
|
51
|
+
isPublic: true,
|
|
52
|
+
tags: ["analytics", "dashboard", "reporting"],
|
|
53
|
+
createdAt: new Date("2023-10-01T12:00:00Z"),
|
|
54
|
+
updatedAt: new Date("2024-02-28T16:45:00Z")
|
|
55
|
+
}
|
|
56
|
+
];
|
|
57
|
+
var MOCK_SUBSCRIPTION = {
|
|
58
|
+
id: "sub-1",
|
|
59
|
+
organizationId: "demo-org",
|
|
60
|
+
planId: "pro",
|
|
61
|
+
planName: "Professional",
|
|
62
|
+
status: "ACTIVE",
|
|
63
|
+
currentPeriodStart: new Date("2024-04-01T00:00:00Z"),
|
|
64
|
+
currentPeriodEnd: new Date("2024-05-01T00:00:00Z"),
|
|
65
|
+
limits: {
|
|
66
|
+
projects: 25,
|
|
67
|
+
users: 10,
|
|
68
|
+
storage: 50,
|
|
69
|
+
apiCalls: 1e5
|
|
70
|
+
},
|
|
71
|
+
usage: {
|
|
72
|
+
projects: 4,
|
|
73
|
+
users: 5,
|
|
74
|
+
storage: 12.5,
|
|
75
|
+
apiCalls: 45230
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var MOCK_USAGE_SUMMARY = {
|
|
79
|
+
organizationId: "demo-org",
|
|
80
|
+
period: "current_month",
|
|
81
|
+
apiCalls: {
|
|
82
|
+
total: 45230,
|
|
83
|
+
limit: 1e5,
|
|
84
|
+
percentUsed: 45.23
|
|
85
|
+
},
|
|
86
|
+
storage: {
|
|
87
|
+
totalGb: 12.5,
|
|
88
|
+
limitGb: 50,
|
|
89
|
+
percentUsed: 25
|
|
90
|
+
},
|
|
91
|
+
activeProjects: 4,
|
|
92
|
+
activeUsers: 5,
|
|
93
|
+
breakdown: [
|
|
94
|
+
{ date: "2024-04-01", apiCalls: 3200, storageGb: 12.1 },
|
|
95
|
+
{ date: "2024-04-02", apiCalls: 2800, storageGb: 12.2 },
|
|
96
|
+
{ date: "2024-04-03", apiCalls: 4100, storageGb: 12.3 },
|
|
97
|
+
{ date: "2024-04-04", apiCalls: 3600, storageGb: 12.4 },
|
|
98
|
+
{ date: "2024-04-05", apiCalls: 3800, storageGb: 12.5 }
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// src/billing/billing.handler.ts
|
|
103
|
+
async function mockGetSubscriptionHandler() {
|
|
104
|
+
return MOCK_SUBSCRIPTION;
|
|
105
|
+
}
|
|
106
|
+
async function mockGetUsageSummaryHandler(input) {
|
|
107
|
+
return {
|
|
108
|
+
...MOCK_USAGE_SUMMARY,
|
|
109
|
+
period: input.period ?? "current_month"
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
async function mockRecordUsageHandler(input) {
|
|
113
|
+
const currentUsage = MOCK_USAGE_SUMMARY.apiCalls.total;
|
|
114
|
+
const newTotal = currentUsage + input.quantity;
|
|
115
|
+
return {
|
|
116
|
+
recorded: true,
|
|
117
|
+
newTotal
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
async function mockCheckFeatureAccessHandler(input) {
|
|
121
|
+
const { feature } = input;
|
|
122
|
+
const featureMap = {
|
|
123
|
+
custom_domains: {
|
|
124
|
+
allowed: true
|
|
125
|
+
},
|
|
126
|
+
api_access: {
|
|
127
|
+
allowed: true,
|
|
128
|
+
currentUsage: MOCK_USAGE_SUMMARY.apiCalls.total,
|
|
129
|
+
limit: MOCK_USAGE_SUMMARY.apiCalls.limit
|
|
130
|
+
},
|
|
131
|
+
advanced_analytics: {
|
|
132
|
+
allowed: false,
|
|
133
|
+
reason: "FEATURE_NOT_INCLUDED"
|
|
134
|
+
},
|
|
135
|
+
unlimited_projects: {
|
|
136
|
+
allowed: false,
|
|
137
|
+
reason: "PLAN_LIMIT",
|
|
138
|
+
currentUsage: MOCK_SUBSCRIPTION.usage.projects,
|
|
139
|
+
limit: MOCK_SUBSCRIPTION.limits.projects
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
return featureMap[feature] ?? { allowed: true };
|
|
143
|
+
}
|
|
4
144
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
145
|
+
// src/project/project.handler.ts
|
|
146
|
+
async function mockListProjectsHandler(input) {
|
|
147
|
+
const { status, search, limit = 20, offset = 0 } = input;
|
|
148
|
+
let filtered = [...MOCK_PROJECTS];
|
|
149
|
+
if (status && status !== "all") {
|
|
150
|
+
filtered = filtered.filter((p) => p.status === status);
|
|
151
|
+
}
|
|
152
|
+
if (search) {
|
|
153
|
+
const q = search.toLowerCase();
|
|
154
|
+
filtered = filtered.filter((p) => p.name.toLowerCase().includes(q) || p.description?.toLowerCase().includes(q) || p.tags.some((t) => t.toLowerCase().includes(q)));
|
|
155
|
+
}
|
|
156
|
+
filtered.sort((a, b) => b.updatedAt.getTime() - a.updatedAt.getTime());
|
|
157
|
+
const total = filtered.length;
|
|
158
|
+
const projects = filtered.slice(offset, offset + limit);
|
|
159
|
+
return {
|
|
160
|
+
projects,
|
|
161
|
+
total
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
async function mockGetProjectHandler(input) {
|
|
165
|
+
const project = MOCK_PROJECTS.find((p) => p.id === input.projectId);
|
|
166
|
+
if (!project) {
|
|
167
|
+
throw new Error("NOT_FOUND");
|
|
168
|
+
}
|
|
169
|
+
return project;
|
|
170
|
+
}
|
|
171
|
+
async function mockCreateProjectHandler(input, context) {
|
|
172
|
+
if (input.slug) {
|
|
173
|
+
const exists = MOCK_PROJECTS.some((p) => p.slug === input.slug);
|
|
174
|
+
if (exists) {
|
|
175
|
+
throw new Error("SLUG_EXISTS");
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
const now = new Date;
|
|
179
|
+
return {
|
|
180
|
+
id: `proj-${Date.now()}`,
|
|
181
|
+
name: input.name,
|
|
182
|
+
description: input.description,
|
|
183
|
+
slug: input.slug ?? input.name.toLowerCase().replace(/\s+/g, "-"),
|
|
184
|
+
organizationId: context.organizationId,
|
|
185
|
+
createdBy: context.userId,
|
|
186
|
+
status: "DRAFT",
|
|
187
|
+
isPublic: input.isPublic ?? false,
|
|
188
|
+
tags: input.tags ?? [],
|
|
189
|
+
createdAt: now,
|
|
190
|
+
updatedAt: now
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
async function mockUpdateProjectHandler(input) {
|
|
194
|
+
const project = MOCK_PROJECTS.find((p) => p.id === input.projectId);
|
|
195
|
+
if (!project) {
|
|
196
|
+
throw new Error("NOT_FOUND");
|
|
197
|
+
}
|
|
198
|
+
return {
|
|
199
|
+
...project,
|
|
200
|
+
name: input.name ?? project.name,
|
|
201
|
+
description: input.description ?? project.description,
|
|
202
|
+
slug: input.slug ?? project.slug,
|
|
203
|
+
isPublic: input.isPublic ?? project.isPublic,
|
|
204
|
+
tags: input.tags ?? project.tags,
|
|
205
|
+
status: input.status ?? project.status,
|
|
206
|
+
updatedAt: new Date
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
async function mockDeleteProjectHandler(input) {
|
|
210
|
+
const project = MOCK_PROJECTS.find((p) => p.id === input.projectId);
|
|
211
|
+
if (!project) {
|
|
212
|
+
throw new Error("NOT_FOUND");
|
|
213
|
+
}
|
|
214
|
+
return { success: true };
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// src/handlers/saas.handlers.ts
|
|
218
|
+
import { web } from "@contractspec/lib.runtime-sandbox";
|
|
219
|
+
var { generateId } = web;
|
|
220
|
+
function rowToProject(row) {
|
|
221
|
+
return {
|
|
222
|
+
id: row.id,
|
|
223
|
+
projectId: row.projectId,
|
|
224
|
+
organizationId: row.organizationId,
|
|
225
|
+
name: row.name,
|
|
226
|
+
description: row.description ?? undefined,
|
|
227
|
+
status: row.status,
|
|
228
|
+
tier: row.tier,
|
|
229
|
+
createdAt: new Date(row.createdAt),
|
|
230
|
+
updatedAt: new Date(row.updatedAt)
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
function rowToSubscription(row) {
|
|
234
|
+
return {
|
|
235
|
+
id: row.id,
|
|
236
|
+
projectId: row.projectId,
|
|
237
|
+
organizationId: row.organizationId,
|
|
238
|
+
plan: row.plan,
|
|
239
|
+
status: row.status,
|
|
240
|
+
billingCycle: row.billingCycle,
|
|
241
|
+
currentPeriodStart: new Date(row.currentPeriodStart),
|
|
242
|
+
currentPeriodEnd: new Date(row.currentPeriodEnd),
|
|
243
|
+
cancelAtPeriodEnd: Boolean(row.cancelAtPeriodEnd)
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
function createSaasHandlers(db) {
|
|
247
|
+
async function listProjects(input) {
|
|
248
|
+
const {
|
|
249
|
+
projectId,
|
|
250
|
+
organizationId,
|
|
251
|
+
status,
|
|
252
|
+
search,
|
|
253
|
+
limit = 20,
|
|
254
|
+
offset = 0
|
|
255
|
+
} = input;
|
|
256
|
+
let whereClause = "WHERE projectId = ?";
|
|
257
|
+
const params = [projectId];
|
|
258
|
+
if (organizationId) {
|
|
259
|
+
whereClause += " AND organizationId = ?";
|
|
260
|
+
params.push(organizationId);
|
|
261
|
+
}
|
|
262
|
+
if (status && status !== "all") {
|
|
263
|
+
whereClause += " AND status = ?";
|
|
264
|
+
params.push(status);
|
|
265
|
+
}
|
|
266
|
+
if (search) {
|
|
267
|
+
whereClause += " AND (name LIKE ? OR description LIKE ?)";
|
|
268
|
+
params.push(`%${search}%`, `%${search}%`);
|
|
269
|
+
}
|
|
270
|
+
const countResult = (await db.query(`SELECT COUNT(*) as count FROM saas_project ${whereClause}`, params)).rows;
|
|
271
|
+
const total = countResult[0]?.count ?? 0;
|
|
272
|
+
const rows = (await db.query(`SELECT * FROM saas_project ${whereClause} ORDER BY createdAt DESC LIMIT ? OFFSET ?`, [...params, limit, offset])).rows;
|
|
273
|
+
return {
|
|
274
|
+
items: rows.map(rowToProject),
|
|
275
|
+
total,
|
|
276
|
+
hasMore: offset + rows.length < total
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
async function getProject(id) {
|
|
280
|
+
const rows = (await db.query(`SELECT * FROM saas_project WHERE id = ?`, [id])).rows;
|
|
281
|
+
return rows[0] ? rowToProject(rows[0]) : null;
|
|
282
|
+
}
|
|
283
|
+
async function createProject(input, context) {
|
|
284
|
+
const id = generateId("proj");
|
|
285
|
+
const now = new Date().toISOString();
|
|
286
|
+
await db.execute(`INSERT INTO saas_project (id, projectId, organizationId, name, description, status, tier, createdAt, updatedAt)
|
|
287
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`, [
|
|
288
|
+
id,
|
|
289
|
+
context.projectId,
|
|
290
|
+
context.organizationId,
|
|
291
|
+
input.name,
|
|
292
|
+
input.description ?? null,
|
|
293
|
+
"DRAFT",
|
|
294
|
+
input.tier ?? "FREE",
|
|
295
|
+
now,
|
|
296
|
+
now
|
|
297
|
+
]);
|
|
298
|
+
const rows = (await db.query(`SELECT * FROM saas_project WHERE id = ?`, [id])).rows;
|
|
299
|
+
return rowToProject(rows[0]);
|
|
300
|
+
}
|
|
301
|
+
async function updateProject(input) {
|
|
302
|
+
const now = new Date().toISOString();
|
|
303
|
+
const updates = ["updatedAt = ?"];
|
|
304
|
+
const params = [now];
|
|
305
|
+
if (input.name !== undefined) {
|
|
306
|
+
updates.push("name = ?");
|
|
307
|
+
params.push(input.name);
|
|
308
|
+
}
|
|
309
|
+
if (input.description !== undefined) {
|
|
310
|
+
updates.push("description = ?");
|
|
311
|
+
params.push(input.description);
|
|
312
|
+
}
|
|
313
|
+
if (input.status !== undefined) {
|
|
314
|
+
updates.push("status = ?");
|
|
315
|
+
params.push(input.status);
|
|
316
|
+
}
|
|
317
|
+
params.push(input.id);
|
|
318
|
+
await db.execute(`UPDATE saas_project SET ${updates.join(", ")} WHERE id = ?`, params);
|
|
319
|
+
const rows = (await db.query(`SELECT * FROM saas_project WHERE id = ?`, [input.id])).rows;
|
|
320
|
+
if (!rows[0]) {
|
|
321
|
+
throw new Error("NOT_FOUND");
|
|
322
|
+
}
|
|
323
|
+
return rowToProject(rows[0]);
|
|
324
|
+
}
|
|
325
|
+
async function deleteProject(id) {
|
|
326
|
+
await db.execute(`DELETE FROM saas_project WHERE id = ?`, [id]);
|
|
327
|
+
}
|
|
328
|
+
async function getSubscription(input) {
|
|
329
|
+
let query = `SELECT * FROM saas_subscription WHERE projectId = ?`;
|
|
330
|
+
const params = [input.projectId];
|
|
331
|
+
if (input.organizationId) {
|
|
332
|
+
query += " AND organizationId = ?";
|
|
333
|
+
params.push(input.organizationId);
|
|
334
|
+
}
|
|
335
|
+
query += " LIMIT 1";
|
|
336
|
+
const rows = (await db.query(query, params)).rows;
|
|
337
|
+
return rows[0] ? rowToSubscription(rows[0]) : null;
|
|
338
|
+
}
|
|
339
|
+
return {
|
|
340
|
+
listProjects,
|
|
341
|
+
getProject,
|
|
342
|
+
createProject,
|
|
343
|
+
updateProject,
|
|
344
|
+
deleteProject,
|
|
345
|
+
getSubscription
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
// src/ui/renderers/project-list.markdown.ts
|
|
349
|
+
var projectListMarkdownRenderer = {
|
|
350
|
+
target: "markdown",
|
|
351
|
+
render: async (desc, _ctx) => {
|
|
352
|
+
if (desc.source.type !== "component" || desc.source.componentKey !== "ProjectListView") {
|
|
353
|
+
throw new Error("projectListMarkdownRenderer: not ProjectListView");
|
|
354
|
+
}
|
|
355
|
+
const data = await mockListProjectsHandler({
|
|
356
|
+
limit: 20,
|
|
357
|
+
offset: 0
|
|
358
|
+
});
|
|
359
|
+
const items = data.projects ?? data.items ?? [];
|
|
360
|
+
const lines = [
|
|
361
|
+
"# Projects",
|
|
362
|
+
"",
|
|
363
|
+
`**Total**: ${data.total} projects`,
|
|
364
|
+
""
|
|
365
|
+
];
|
|
366
|
+
if (items.length === 0) {
|
|
367
|
+
lines.push("_No projects found._");
|
|
368
|
+
} else {
|
|
369
|
+
lines.push("| Status | Project | Description |");
|
|
370
|
+
lines.push("|--------|---------|-------------|");
|
|
371
|
+
for (const project of items) {
|
|
372
|
+
const status = project.status === "ACTIVE" ? "\u2705" : project.status === "ARCHIVED" ? "\uD83D\uDCE6" : "\u23F8\uFE0F";
|
|
373
|
+
lines.push(`| ${status} | **${project.name}** | ${project.description ?? "-"} |`);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
return {
|
|
377
|
+
mimeType: "text/markdown",
|
|
378
|
+
body: lines.join(`
|
|
379
|
+
`)
|
|
380
|
+
};
|
|
381
|
+
}
|
|
39
382
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
383
|
+
var saasDashboardMarkdownRenderer = {
|
|
384
|
+
target: "markdown",
|
|
385
|
+
render: async (desc, _ctx) => {
|
|
386
|
+
if (desc.source.type !== "component" || desc.source.componentKey !== "SaasDashboard") {
|
|
387
|
+
throw new Error("saasDashboardMarkdownRenderer: not SaasDashboard");
|
|
388
|
+
}
|
|
389
|
+
const [projectsData, subscription] = await Promise.all([
|
|
390
|
+
mockListProjectsHandler({ limit: 50 }),
|
|
391
|
+
mockGetSubscriptionHandler()
|
|
392
|
+
]);
|
|
393
|
+
const projects = projectsData.projects ?? [];
|
|
394
|
+
const activeProjects = projects.filter((p) => p.status === "ACTIVE").length;
|
|
395
|
+
const archivedProjects = projects.filter((p) => p.status === "ARCHIVED").length;
|
|
396
|
+
const lines = [
|
|
397
|
+
"# SaaS Dashboard",
|
|
398
|
+
"",
|
|
399
|
+
"> Organization overview and usage summary",
|
|
400
|
+
"",
|
|
401
|
+
"## Summary",
|
|
402
|
+
"",
|
|
403
|
+
"| Metric | Value |",
|
|
404
|
+
"|--------|-------|",
|
|
405
|
+
`| Total Projects | ${projectsData.total} |`,
|
|
406
|
+
`| Active Projects | ${activeProjects} |`,
|
|
407
|
+
`| Archived Projects | ${archivedProjects} |`,
|
|
408
|
+
`| Subscription Plan | ${subscription.planName} |`,
|
|
409
|
+
`| Subscription Status | ${subscription.status} |`,
|
|
410
|
+
"",
|
|
411
|
+
"## Projects",
|
|
412
|
+
""
|
|
413
|
+
];
|
|
414
|
+
if (projects.length === 0) {
|
|
415
|
+
lines.push("_No projects yet._");
|
|
416
|
+
} else {
|
|
417
|
+
lines.push("| Status | Project | Description |");
|
|
418
|
+
lines.push("|--------|---------|-------------|");
|
|
419
|
+
for (const project of projects.slice(0, 10)) {
|
|
420
|
+
const status = project.status === "ACTIVE" ? "\u2705" : project.status === "ARCHIVED" ? "\uD83D\uDCE6" : "\u23F8\uFE0F";
|
|
421
|
+
lines.push(`| ${status} | **${project.name}** | ${project.description ?? "-"} |`);
|
|
422
|
+
}
|
|
423
|
+
if (projects.length > 10) {
|
|
424
|
+
lines.push(`| ... | ... | _${projectsData.total - 10} more projects_ |`);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
lines.push("");
|
|
428
|
+
lines.push("## Subscription");
|
|
429
|
+
lines.push("");
|
|
430
|
+
lines.push(`- **Plan**: ${subscription.planName}`);
|
|
431
|
+
lines.push(`- **Status**: ${subscription.status}`);
|
|
432
|
+
if (subscription.currentPeriodEnd) {
|
|
433
|
+
lines.push(`- **Period End**: ${new Date(subscription.currentPeriodEnd).toLocaleDateString()}`);
|
|
434
|
+
}
|
|
435
|
+
return {
|
|
436
|
+
mimeType: "text/markdown",
|
|
437
|
+
body: lines.join(`
|
|
438
|
+
`)
|
|
439
|
+
};
|
|
440
|
+
}
|
|
91
441
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
442
|
+
var saasBillingMarkdownRenderer = {
|
|
443
|
+
target: "markdown",
|
|
444
|
+
render: async (desc, _ctx) => {
|
|
445
|
+
if (desc.source.type !== "component" || desc.source.componentKey !== "SubscriptionView") {
|
|
446
|
+
throw new Error("saasBillingMarkdownRenderer: not SubscriptionView");
|
|
447
|
+
}
|
|
448
|
+
const subscription = await mockGetSubscriptionHandler();
|
|
449
|
+
const lines = [
|
|
450
|
+
"# Billing & Subscription",
|
|
451
|
+
"",
|
|
452
|
+
"> Current subscription details and billing information",
|
|
453
|
+
"",
|
|
454
|
+
"## Subscription Details",
|
|
455
|
+
"",
|
|
456
|
+
"| Property | Value |",
|
|
457
|
+
"|----------|-------|",
|
|
458
|
+
`| Plan | ${subscription.planName} |`,
|
|
459
|
+
`| Status | ${subscription.status} |`,
|
|
460
|
+
`| ID | ${subscription.id} |`,
|
|
461
|
+
`| Period Start | ${new Date(subscription.currentPeriodStart).toLocaleDateString()} |`,
|
|
462
|
+
`| Period End | ${new Date(subscription.currentPeriodEnd).toLocaleDateString()} |`
|
|
463
|
+
];
|
|
464
|
+
lines.push("");
|
|
465
|
+
lines.push("## Plan Limits");
|
|
466
|
+
lines.push("");
|
|
467
|
+
lines.push(`- **Projects**: ${subscription.limits.projects}`);
|
|
468
|
+
lines.push(`- **Users**: ${subscription.limits.users}`);
|
|
469
|
+
lines.push("");
|
|
470
|
+
lines.push("## Plan Features");
|
|
471
|
+
lines.push("");
|
|
472
|
+
if (subscription.planName.toLowerCase().includes("free")) {
|
|
473
|
+
lines.push("- \u2705 Up to 3 projects");
|
|
474
|
+
lines.push("- \u2705 Basic support");
|
|
475
|
+
lines.push("- \u274C Priority support");
|
|
476
|
+
lines.push("- \u274C Advanced analytics");
|
|
477
|
+
} else if (subscription.planName.toLowerCase().includes("pro")) {
|
|
478
|
+
lines.push("- \u2705 Unlimited projects");
|
|
479
|
+
lines.push("- \u2705 Priority support");
|
|
480
|
+
lines.push("- \u2705 Advanced analytics");
|
|
481
|
+
lines.push("- \u274C Custom integrations");
|
|
482
|
+
} else {
|
|
483
|
+
lines.push("- \u2705 Unlimited projects");
|
|
484
|
+
lines.push("- \u2705 Priority support");
|
|
485
|
+
lines.push("- \u2705 Advanced analytics");
|
|
486
|
+
lines.push("- \u2705 Custom integrations");
|
|
487
|
+
lines.push("- \u2705 Dedicated support");
|
|
488
|
+
}
|
|
489
|
+
return {
|
|
490
|
+
mimeType: "text/markdown",
|
|
491
|
+
body: lines.join(`
|
|
492
|
+
`)
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
export {
|
|
497
|
+
saasDashboardMarkdownRenderer,
|
|
498
|
+
saasBillingMarkdownRenderer,
|
|
499
|
+
projectListMarkdownRenderer
|
|
146
500
|
};
|
|
147
|
-
|
|
148
|
-
//#endregion
|
|
149
|
-
export { projectListMarkdownRenderer, saasBillingMarkdownRenderer, saasDashboardMarkdownRenderer };
|
|
150
|
-
//# sourceMappingURL=project-list.markdown.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { projectListReactRenderer };
|
|
1
|
+
/**
|
|
2
|
+
* React renderer for SaaS Project List presentation
|
|
3
|
+
*/
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import type { PresentationRenderer } from '@contractspec/lib.contracts';
|
|
6
|
+
export declare const projectListReactRenderer: PresentationRenderer<React.ReactElement>;
|
|
8
7
|
//# sourceMappingURL=project-list.renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-list.renderer.d.ts","
|
|
1
|
+
{"version":3,"file":"project-list.renderer.d.ts","sourceRoot":"","sources":["../../../src/ui/renderers/project-list.renderer.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,wBAAwB,EAAE,oBAAoB,CAAC,KAAK,CAAC,YAAY,CAc3E,CAAC"}
|