@lssm/example.analytics-dashboard 0.0.0-canary-20251217060804 → 0.0.0-canary-20251217062139
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/dashboard/dashboard.contracts.d.ts +131 -131
- package/dist/dashboard/dashboard.contracts.js +5 -5
- package/dist/dashboard/dashboard.enum.d.ts +4 -4
- package/dist/dashboard/dashboard.enum.js +5 -4
- package/dist/dashboard/dashboard.schema.d.ts +79 -79
- package/dist/dashboard/dashboard.schema.js +44 -42
- package/dist/docs/analytics-dashboard.docblock.js +3 -2
- package/dist/events.d.ts +40 -40
- package/dist/events.js +27 -24
- package/dist/index.d.ts +0 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js +84 -0
- package/dist/libs/contracts/dist/client/index.js +5 -0
- package/dist/libs/contracts/dist/client/react/feature-render.js +2 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +4 -0
- package/dist/libs/contracts/dist/client/react/index.js +4 -0
- package/dist/libs/contracts/dist/contract-registry/index.js +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +57 -0
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +91 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +365 -0
- package/dist/libs/contracts/dist/docs/index.js +29 -0
- package/dist/libs/contracts/dist/docs/presentations.js +67 -0
- package/dist/libs/contracts/dist/docs/registry.js +42 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +398 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +83 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +155 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +101 -0
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +80 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +228 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +357 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +21 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +16 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +281 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +22 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +79 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +84 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +57 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +22 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +40 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +86 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +22 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +62 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +155 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +20 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +101 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +20 -0
- package/dist/libs/contracts/dist/events.js +9 -0
- package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
- package/dist/libs/contracts/dist/index.js +71 -0
- package/dist/libs/contracts/dist/install.js +2 -0
- package/dist/libs/contracts/dist/integrations/contracts.js +371 -0
- package/dist/libs/contracts/dist/integrations/index.js +18 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +225 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +157 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +3 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +208 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +240 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +24 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +52 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +75 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +87 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +66 -0
- package/dist/libs/contracts/dist/integrations/providers/index.js +11 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +68 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +116 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +73 -0
- package/dist/libs/contracts/dist/integrations/providers/registry.js +10 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +83 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +61 -0
- package/dist/libs/contracts/dist/jsonschema.js +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +299 -0
- package/dist/libs/contracts/dist/knowledge/index.js +7 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +38 -0
- package/dist/libs/contracts/dist/knowledge/spaces/index.js +6 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +34 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +37 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +34 -0
- package/dist/libs/contracts/dist/llm/exporters.js +18 -0
- package/dist/libs/contracts/dist/llm/index.js +2 -0
- package/dist/libs/contracts/dist/llm/prompts.js +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +179 -0
- package/dist/libs/contracts/dist/openapi.js +1 -0
- package/dist/libs/contracts/dist/ownership.js +36 -0
- package/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +7 -0
- package/dist/libs/contracts/dist/prompt.js +1 -0
- package/dist/libs/contracts/dist/promptRegistry.js +1 -0
- package/dist/libs/contracts/dist/regenerator/index.js +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +1 -0
- package/dist/libs/contracts/dist/registry.js +2 -0
- package/dist/libs/contracts/dist/resources.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +2 -0
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +39 -0
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +222 -0
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +23 -0
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +2 -0
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +6 -0
- package/dist/libs/contracts/dist/server/graphql-pothos.js +6 -0
- package/dist/libs/contracts/dist/server/index.js +8 -0
- package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +4 -0
- package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +1 -0
- package/dist/libs/contracts/dist/server/mcp/registerResources.js +2 -0
- package/dist/libs/contracts/dist/server/mcp/registerTools.js +1 -0
- package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
- package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
- package/dist/libs/contracts/dist/server/rest-express.js +1 -0
- package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
- package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
- package/dist/libs/contracts/dist/spec.js +25 -0
- package/dist/libs/contracts/dist/telemetry/index.js +1 -0
- package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
- package/dist/libs/contracts/dist/tests/index.js +1 -0
- package/dist/libs/contracts/dist/tests/runner.js +2 -0
- package/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/contracts/dist/workflow/runner.js +1 -0
- package/dist/libs/schema/dist/EnumType.js +40 -0
- package/dist/libs/schema/dist/FieldType.js +39 -0
- package/dist/libs/schema/dist/ScalarTypeEnum.js +222 -0
- package/dist/libs/schema/dist/SchemaModel.js +24 -0
- package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
- package/dist/libs/schema/dist/entity/index.js +2 -0
- package/dist/libs/schema/dist/entity/types.js +1 -0
- package/dist/libs/schema/dist/index.js +6 -0
- package/dist/query/query.contracts.d.ts +45 -45
- package/dist/query/query.contracts.js +3 -3
- package/dist/query/query.enum.d.ts +2 -2
- package/dist/query/query.enum.js +3 -2
- package/dist/query/query.schema.d.ts +34 -34
- package/dist/query/query.schema.js +34 -32
- package/package.json +10 -10
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { e } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/financial-docs.js
|
|
4
|
+
const t = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: `knowledge.financial-docs`,
|
|
7
|
+
version: 1,
|
|
8
|
+
category: `canonical`,
|
|
9
|
+
displayName: `Financial Documents`,
|
|
10
|
+
title: `Household Financial Documents`,
|
|
11
|
+
description: `Invoices, bills, and contracts powering Pocket Family Office financial automation.`,
|
|
12
|
+
domain: `finance`,
|
|
13
|
+
owners: [`platform.finance`],
|
|
14
|
+
tags: [`finance`, `documents`],
|
|
15
|
+
stability: e.Beta
|
|
16
|
+
},
|
|
17
|
+
retention: { ttlDays: null },
|
|
18
|
+
access: {
|
|
19
|
+
policy: {
|
|
20
|
+
name: `knowledge.access.financial-docs`,
|
|
21
|
+
version: 1
|
|
22
|
+
},
|
|
23
|
+
trustLevel: `high`,
|
|
24
|
+
automationWritable: !0
|
|
25
|
+
},
|
|
26
|
+
indexing: {
|
|
27
|
+
embeddingModel: `mistral-embed`,
|
|
28
|
+
chunkSize: 700,
|
|
29
|
+
vectorDbIntegration: `vectordb.qdrant`
|
|
30
|
+
},
|
|
31
|
+
description: `Normalized financial documents enabling bill pay automation, reminders, and summaries.`
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { e } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/financial-overview.js
|
|
4
|
+
const t = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: `knowledge.financial-overview`,
|
|
7
|
+
version: 1,
|
|
8
|
+
category: `operational`,
|
|
9
|
+
displayName: `Financial Overview Summaries`,
|
|
10
|
+
title: `Derived Financial Summaries`,
|
|
11
|
+
description: `Aggregated cashflow summaries, category breakdowns, and balance trends derived from open banking data.`,
|
|
12
|
+
domain: `finance`,
|
|
13
|
+
owners: [`platform.finance`],
|
|
14
|
+
tags: [
|
|
15
|
+
`open-banking`,
|
|
16
|
+
`summaries`,
|
|
17
|
+
`cashflow`
|
|
18
|
+
],
|
|
19
|
+
stability: e.Experimental
|
|
20
|
+
},
|
|
21
|
+
retention: { ttlDays: 180 },
|
|
22
|
+
access: {
|
|
23
|
+
policy: {
|
|
24
|
+
name: `knowledge.access.financial-overview`,
|
|
25
|
+
version: 1
|
|
26
|
+
},
|
|
27
|
+
trustLevel: `medium`,
|
|
28
|
+
automationWritable: !0
|
|
29
|
+
},
|
|
30
|
+
indexing: {
|
|
31
|
+
embeddingModel: `mistral-embed`,
|
|
32
|
+
chunkSize: 600,
|
|
33
|
+
vectorDbIntegration: `vectordb.qdrant`
|
|
34
|
+
},
|
|
35
|
+
description: `Derived knowledge space containing weekly/monthly cashflow rollups and account health summaries. Raw transactions are excluded to respect privacy guardrails.`
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { e } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/product-canon.js
|
|
4
|
+
const t = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: `knowledge.product-canon`,
|
|
7
|
+
version: 1,
|
|
8
|
+
category: `canonical`,
|
|
9
|
+
displayName: `Product Canon`,
|
|
10
|
+
title: `Product Canon Knowledge Space`,
|
|
11
|
+
description: `Authoritative product knowledge covering strategy, roadmap, and delivery canon.`,
|
|
12
|
+
domain: `product`,
|
|
13
|
+
owners: [`platform.product`],
|
|
14
|
+
tags: [`knowledge`, `product`],
|
|
15
|
+
stability: e.Stable
|
|
16
|
+
},
|
|
17
|
+
retention: { ttlDays: null },
|
|
18
|
+
access: {
|
|
19
|
+
policy: {
|
|
20
|
+
name: `knowledge.access.product-canon`,
|
|
21
|
+
version: 1
|
|
22
|
+
},
|
|
23
|
+
trustLevel: `high`,
|
|
24
|
+
automationWritable: !1
|
|
25
|
+
},
|
|
26
|
+
indexing: {
|
|
27
|
+
embeddingModel: `text-embedding-3-large`,
|
|
28
|
+
chunkSize: 800,
|
|
29
|
+
vectorDbIntegration: `vectordb.qdrant`
|
|
30
|
+
},
|
|
31
|
+
description: `Single source of truth for product canon, principles, and strategic narratives.`
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { e } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/support-faq.js
|
|
4
|
+
const t = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: `knowledge.support-faq`,
|
|
7
|
+
version: 1,
|
|
8
|
+
category: `operational`,
|
|
9
|
+
displayName: `Support FAQ`,
|
|
10
|
+
title: `Support & Success FAQ`,
|
|
11
|
+
description: `Operational knowledge base for customer support and success.`,
|
|
12
|
+
domain: `support`,
|
|
13
|
+
owners: [`platform.support`],
|
|
14
|
+
tags: [`knowledge`, `support`],
|
|
15
|
+
stability: e.Beta
|
|
16
|
+
},
|
|
17
|
+
retention: {
|
|
18
|
+
ttlDays: 365,
|
|
19
|
+
archiveAfterDays: 180
|
|
20
|
+
},
|
|
21
|
+
access: {
|
|
22
|
+
policy: {
|
|
23
|
+
name: `knowledge.access.support`,
|
|
24
|
+
version: 1
|
|
25
|
+
},
|
|
26
|
+
trustLevel: `medium`,
|
|
27
|
+
automationWritable: !0
|
|
28
|
+
},
|
|
29
|
+
indexing: {
|
|
30
|
+
embeddingModel: `text-embedding-3-small`,
|
|
31
|
+
chunkSize: 700,
|
|
32
|
+
vectorDbIntegration: `vectordb.qdrant`
|
|
33
|
+
},
|
|
34
|
+
description: `Operational FAQs, runbooks, and customer success playbooks augmented with automation updates.`
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { e } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/knowledge/spaces/uploaded-docs.js
|
|
4
|
+
const t = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: `knowledge.uploaded-docs`,
|
|
7
|
+
version: 1,
|
|
8
|
+
category: `external`,
|
|
9
|
+
displayName: `Uploaded Documents`,
|
|
10
|
+
title: `Uploaded Knowledge Assets`,
|
|
11
|
+
description: `Documents uploaded by households, including invoices, contracts, and reference files.`,
|
|
12
|
+
domain: `operations`,
|
|
13
|
+
owners: [`platform.operations`],
|
|
14
|
+
tags: [`documents`, `storage`],
|
|
15
|
+
stability: e.Beta
|
|
16
|
+
},
|
|
17
|
+
retention: { ttlDays: null },
|
|
18
|
+
access: {
|
|
19
|
+
policy: {
|
|
20
|
+
name: `knowledge.access.uploaded-docs`,
|
|
21
|
+
version: 1
|
|
22
|
+
},
|
|
23
|
+
trustLevel: `medium`,
|
|
24
|
+
automationWritable: !0
|
|
25
|
+
},
|
|
26
|
+
indexing: {
|
|
27
|
+
embeddingModel: `mistral-embed`,
|
|
28
|
+
chunkSize: 900,
|
|
29
|
+
vectorDbIntegration: `vectordb.qdrant`
|
|
30
|
+
},
|
|
31
|
+
description: `User-provided documents normalized and embedded for retrieval augmented workflows.`
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../jsonschema.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../libs/contracts/dist/llm/exporters.js
|
|
4
|
+
const n = {
|
|
5
|
+
format: `full`,
|
|
6
|
+
includeSchemas: !0,
|
|
7
|
+
includeScenarios: !0,
|
|
8
|
+
includeExamples: !0,
|
|
9
|
+
includePolicy: !0,
|
|
10
|
+
includeSideEffects: !0
|
|
11
|
+
}, r = {
|
|
12
|
+
...n,
|
|
13
|
+
includeRelatedSpecs: !0,
|
|
14
|
+
includeRelatedEvents: !0,
|
|
15
|
+
includeRelatedPresentations: !0
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./exporters.js";
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { t } from "./schema/dist/SchemaModel.js";
|
|
2
|
+
import { l } from "./schema/dist/ScalarTypeEnum.js";
|
|
3
|
+
import "./schema/dist/index.js";
|
|
4
|
+
import { n, t as t$1 } from "./spec.js";
|
|
5
|
+
import { e, t as t$2 } from "./ownership.js";
|
|
6
|
+
|
|
7
|
+
//#region ../../libs/contracts/dist/onboarding-base.js
|
|
8
|
+
const o = new t({
|
|
9
|
+
name: `SaveOnboardingDraftInput`,
|
|
10
|
+
description: `Input for saving onboarding draft`,
|
|
11
|
+
fields: { data: {
|
|
12
|
+
type: l.JSON(),
|
|
13
|
+
isOptional: !1
|
|
14
|
+
} }
|
|
15
|
+
}), s = new t({
|
|
16
|
+
name: `SaveOnboardingDraftOutput`,
|
|
17
|
+
description: `Output for saving onboarding draft`,
|
|
18
|
+
fields: {
|
|
19
|
+
id: {
|
|
20
|
+
type: l.ID(),
|
|
21
|
+
isOptional: !1
|
|
22
|
+
},
|
|
23
|
+
organizationId: {
|
|
24
|
+
type: l.ID(),
|
|
25
|
+
isOptional: !1
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}), c = t$1({
|
|
29
|
+
meta: {
|
|
30
|
+
name: `base.onboarding.saveDraft`,
|
|
31
|
+
version: 1,
|
|
32
|
+
stability: e.Beta,
|
|
33
|
+
owners: [t$2.PlatformSigil],
|
|
34
|
+
tags: [`onboarding`, `draft`],
|
|
35
|
+
description: `Save or update onboarding draft for active organization`,
|
|
36
|
+
goal: `Persist onboarding progress incrementally for resumption and safety`,
|
|
37
|
+
context: `Auto-saves every few seconds during onboarding; enables users to leave and resume`
|
|
38
|
+
},
|
|
39
|
+
io: {
|
|
40
|
+
input: o,
|
|
41
|
+
output: s
|
|
42
|
+
},
|
|
43
|
+
policy: {
|
|
44
|
+
auth: `user`,
|
|
45
|
+
escalate: null
|
|
46
|
+
},
|
|
47
|
+
transport: {
|
|
48
|
+
gql: { field: `saveOnboardingDraft` },
|
|
49
|
+
rest: { method: `POST` }
|
|
50
|
+
}
|
|
51
|
+
}), l$1 = new t({
|
|
52
|
+
name: `GetOnboardingDraftOutput`,
|
|
53
|
+
description: `Onboarding draft payload`,
|
|
54
|
+
fields: {
|
|
55
|
+
id: {
|
|
56
|
+
type: l.ID(),
|
|
57
|
+
isOptional: !0
|
|
58
|
+
},
|
|
59
|
+
organizationId: {
|
|
60
|
+
type: l.ID(),
|
|
61
|
+
isOptional: !0
|
|
62
|
+
},
|
|
63
|
+
data: {
|
|
64
|
+
type: l.JSON(),
|
|
65
|
+
isOptional: !0
|
|
66
|
+
},
|
|
67
|
+
createdAt: {
|
|
68
|
+
type: l.DateTime(),
|
|
69
|
+
isOptional: !0
|
|
70
|
+
},
|
|
71
|
+
updatedAt: {
|
|
72
|
+
type: l.DateTime(),
|
|
73
|
+
isOptional: !0
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}), u = n({
|
|
77
|
+
meta: {
|
|
78
|
+
name: `base.onboarding.getDraft`,
|
|
79
|
+
version: 1,
|
|
80
|
+
stability: e.Beta,
|
|
81
|
+
owners: [t$2.PlatformSigil],
|
|
82
|
+
tags: [`onboarding`, `draft`],
|
|
83
|
+
description: `Get onboarding draft for active organization`,
|
|
84
|
+
goal: `Retrieve saved onboarding progress`,
|
|
85
|
+
context: `Called on mount to restore in-progress onboarding`
|
|
86
|
+
},
|
|
87
|
+
io: {
|
|
88
|
+
input: null,
|
|
89
|
+
output: l$1
|
|
90
|
+
},
|
|
91
|
+
policy: {
|
|
92
|
+
auth: `user`,
|
|
93
|
+
escalate: null
|
|
94
|
+
},
|
|
95
|
+
transport: {
|
|
96
|
+
gql: { field: `getOnboardingDraft` },
|
|
97
|
+
rest: { method: `GET` }
|
|
98
|
+
}
|
|
99
|
+
}), d = new t({
|
|
100
|
+
name: `DeleteOnboardingDraftOutput`,
|
|
101
|
+
description: `Result of delete operation`,
|
|
102
|
+
fields: { ok: {
|
|
103
|
+
type: l.Boolean(),
|
|
104
|
+
isOptional: !1
|
|
105
|
+
} }
|
|
106
|
+
}), f = t$1({
|
|
107
|
+
meta: {
|
|
108
|
+
name: `base.onboarding.deleteDraft`,
|
|
109
|
+
version: 1,
|
|
110
|
+
stability: e.Beta,
|
|
111
|
+
owners: [t$2.PlatformSigil],
|
|
112
|
+
tags: [`onboarding`, `draft`],
|
|
113
|
+
description: `Delete onboarding draft for active organization`,
|
|
114
|
+
goal: `Clear draft after completion or if user wants to restart`,
|
|
115
|
+
context: `Called after successful onboarding or explicit user reset`
|
|
116
|
+
},
|
|
117
|
+
io: {
|
|
118
|
+
input: null,
|
|
119
|
+
output: d
|
|
120
|
+
},
|
|
121
|
+
policy: {
|
|
122
|
+
auth: `user`,
|
|
123
|
+
escalate: null
|
|
124
|
+
},
|
|
125
|
+
transport: {
|
|
126
|
+
gql: { field: `deleteOnboardingDraft` },
|
|
127
|
+
rest: { method: `POST` }
|
|
128
|
+
}
|
|
129
|
+
}), p = new t({
|
|
130
|
+
name: `CompleteOnboardingBaseInput`,
|
|
131
|
+
description: `Input for completing onboarding`,
|
|
132
|
+
fields: { data: {
|
|
133
|
+
type: l.JSON(),
|
|
134
|
+
isOptional: !1
|
|
135
|
+
} }
|
|
136
|
+
}), m = new t({
|
|
137
|
+
name: `CompleteOnboardingBaseOutput`,
|
|
138
|
+
description: `Result of onboarding completion`,
|
|
139
|
+
fields: {
|
|
140
|
+
success: {
|
|
141
|
+
type: l.Boolean(),
|
|
142
|
+
isOptional: !1
|
|
143
|
+
},
|
|
144
|
+
userId: {
|
|
145
|
+
type: l.ID(),
|
|
146
|
+
isOptional: !0
|
|
147
|
+
},
|
|
148
|
+
organizationId: {
|
|
149
|
+
type: l.ID(),
|
|
150
|
+
isOptional: !0
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}), h = t$1({
|
|
154
|
+
meta: {
|
|
155
|
+
name: `base.onboarding.complete`,
|
|
156
|
+
version: 1,
|
|
157
|
+
stability: e.Beta,
|
|
158
|
+
owners: [t$2.PlatformSigil],
|
|
159
|
+
tags: [`onboarding`],
|
|
160
|
+
description: `Complete onboarding and finalize user/organization setup`,
|
|
161
|
+
goal: `Transition from draft to active profile`,
|
|
162
|
+
context: `Validates all required fields, creates/updates entities, marks onboarding complete`
|
|
163
|
+
},
|
|
164
|
+
io: {
|
|
165
|
+
input: p,
|
|
166
|
+
output: m
|
|
167
|
+
},
|
|
168
|
+
policy: {
|
|
169
|
+
auth: `user`,
|
|
170
|
+
escalate: null
|
|
171
|
+
},
|
|
172
|
+
transport: {
|
|
173
|
+
gql: { field: `completeOnboarding` },
|
|
174
|
+
rest: { method: `POST` }
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
//#endregion
|
|
179
|
+
export { d, l$1 as l, m, o, p, s };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./jsonschema.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//#region ../../libs/contracts/dist/ownership.js
|
|
2
|
+
const e = {
|
|
3
|
+
Idea: `idea`,
|
|
4
|
+
InCreation: `in_creation`,
|
|
5
|
+
Experimental: `experimental`,
|
|
6
|
+
Beta: `beta`,
|
|
7
|
+
Stable: `stable`,
|
|
8
|
+
Deprecated: `deprecated`
|
|
9
|
+
}, t = {
|
|
10
|
+
ProductColiving: `product.coliving`,
|
|
11
|
+
ProductStrit: `product.strit`,
|
|
12
|
+
ProductArtisanos: `product.artisanos`,
|
|
13
|
+
PlatformSigil: `platform.sigil`,
|
|
14
|
+
PlatformMarketplace: `platform.marketplace`,
|
|
15
|
+
PlatformContent: `platform.content`,
|
|
16
|
+
PlatformFeatureFlags: `platform.featureflags`
|
|
17
|
+
}, n = t, r = {
|
|
18
|
+
Spots: `spots`,
|
|
19
|
+
Collectivity: `collectivity`,
|
|
20
|
+
Marketplace: `marketplace`,
|
|
21
|
+
Sellers: `sellers`,
|
|
22
|
+
Auth: `auth`,
|
|
23
|
+
Login: `login`,
|
|
24
|
+
Signup: `signup`,
|
|
25
|
+
Guide: `guide`,
|
|
26
|
+
Docs: `docs`,
|
|
27
|
+
I18n: `i18n`,
|
|
28
|
+
AtomicPages: `atomic:pages`,
|
|
29
|
+
Incident: `incident`,
|
|
30
|
+
Hygiene: `hygiene`,
|
|
31
|
+
WeeklyPulse: `weekly_pulse`,
|
|
32
|
+
WebAuth: `webauth`
|
|
33
|
+
}, i = r;
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { e, r, t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from "zod";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "zod";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "zod";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./service.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "node:timers/promises";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "zod";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "zod";
|
|
2
|
+
import { GraphQLScalarType } from "graphql";
|
|
3
|
+
|
|
4
|
+
//#region ../../libs/contracts/dist/schema/dist/FieldType.js
|
|
5
|
+
var t = class extends GraphQLScalarType {
|
|
6
|
+
zodSchema;
|
|
7
|
+
jsonSchemaDef;
|
|
8
|
+
constructor(e$1) {
|
|
9
|
+
super(e$1), this.zodSchema = e$1.zod, this.jsonSchemaDef = e$1.jsonSchema;
|
|
10
|
+
}
|
|
11
|
+
getZod() {
|
|
12
|
+
return this.zodSchema;
|
|
13
|
+
}
|
|
14
|
+
getPothos() {
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
getJson() {
|
|
18
|
+
return typeof this.jsonSchemaDef == `function` ? this.jsonSchemaDef() : this.jsonSchemaDef;
|
|
19
|
+
}
|
|
20
|
+
getJsonSchemaDef() {
|
|
21
|
+
return this.jsonSchemaDef;
|
|
22
|
+
}
|
|
23
|
+
getJsonSchema() {
|
|
24
|
+
let e$1 = (t$1) => {
|
|
25
|
+
let n = typeof t$1 == `function` ? t$1() : t$1;
|
|
26
|
+
if (Array.isArray(n)) return n.map((t$2) => e$1(t$2));
|
|
27
|
+
if (n && typeof n == `object`) {
|
|
28
|
+
let t$2 = {};
|
|
29
|
+
for (let [r, i] of Object.entries(n)) t$2[r] = e$1(i);
|
|
30
|
+
return t$2;
|
|
31
|
+
}
|
|
32
|
+
return n;
|
|
33
|
+
};
|
|
34
|
+
return e$1(this.getJson());
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { t };
|