@nbt-dev/nbt 0.0.10 → 0.1.1
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/package.json +1 -1
- package/stdlib/workflows/schema.nbt +69 -17
- package/vendor/linux-x64/cartridges/workflows/schema.nbt +69 -17
- package/vendor/linux-x64/console +0 -0
- package/vendor/linux-x64/nbt +0 -0
- package/stdlib/crm/adapters/gohighlevel/README.md +0 -85
- package/stdlib/crm/adapters/gohighlevel/tests/README.md +0 -159
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_138fields.json +0 -222
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_140fields.json +0 -219
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_alt.json +0 -212
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_changed.json +0 -102
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_created.json +0 -95
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_full.json +0 -213
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_sparse.json +0 -161
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_update_a.json +0 -197
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_update_b.json +0 -197
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/opportunity_changed.json +0 -85
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/opportunity_created.json +0 -85
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_contact_pilot.json +0 -43
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_contact_with_price_closed.json +0 -7
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_contact_with_price_open.json +0 -7
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_appointment_delete.json +0 -1
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_calendar_update.json +0 -1
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_contact_create.json +0 -1
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_opp_status_update.json +0 -1
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_opportunity_pilot.json +0 -16
- package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_pipelines_pilot.json +0 -137
- package/stdlib/design/migrations/20260501210107_initial/migration.nbt +0 -19
- package/stdlib/design/migrations/20260501210107_initial/schema_snapshot.nbt +0 -21
- package/stdlib/design/migrations/20260610130000_design_system/migration.nbt +0 -50
- package/stdlib/design/migrations/20260610130000_design_system/schema_snapshot.nbt +0 -80
- package/stdlib/design/schema.nbt +0 -140
- package/vendor/linux-x64/cartridges/design/migrations/20260501210107_initial/migration.nbt +0 -19
- package/vendor/linux-x64/cartridges/design/migrations/20260501210107_initial/schema_snapshot.nbt +0 -21
- package/vendor/linux-x64/cartridges/design/migrations/20260610130000_design_system/migration.nbt +0 -50
- package/vendor/linux-x64/cartridges/design/migrations/20260610130000_design_system/schema_snapshot.nbt +0 -80
- package/vendor/linux-x64/cartridges/design/schema.nbt +0 -140
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
# Published designs are world-readable (a site's frontend stitches itself from
|
|
2
|
-
# them before any session exists); writes stay behind the auth gate.
|
|
3
|
-
@public_route "GET /api/design/Design"
|
|
4
|
-
@public_route "GET /api/design/Designer"
|
|
5
|
-
@public_route "GET /api/design/Token"
|
|
6
|
-
@public_route "GET /api/design/Component"
|
|
7
|
-
@public_route "GET /api/design/Block"
|
|
8
|
-
@public_route "GET /api/design/Rule"
|
|
9
|
-
@public_route "GET /api/design/Page"
|
|
10
|
-
|
|
11
|
-
#--- Entities ---
|
|
12
|
-
# A Design is a named DESIGN.md file. Its body lives in DesignVersion rows so
|
|
13
|
-
# the full revision history is preserved. Design.headVersionId points at the
|
|
14
|
-
# latest version for O(1) current-state reads.
|
|
15
|
-
|
|
16
|
-
entity Design {
|
|
17
|
-
id: ulid
|
|
18
|
-
createdAt: DateTime @default(now())
|
|
19
|
-
updatedAt: DateTime @updatedAt
|
|
20
|
-
name: string
|
|
21
|
-
slug: string
|
|
22
|
-
description: string
|
|
23
|
-
designerId: string # who made this design system
|
|
24
|
-
headVersionId: string
|
|
25
|
-
headVersion: u32
|
|
26
|
-
|
|
27
|
-
@@unique([slug])
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
entity DesignVersion {
|
|
31
|
-
id: ulid
|
|
32
|
-
createdAt: DateTime @default(now())
|
|
33
|
-
updatedAt: DateTime @updatedAt
|
|
34
|
-
designId: string
|
|
35
|
-
version: u32 # domain revision counter (1, 2, 3 …)
|
|
36
|
-
body: document @scope(designId)
|
|
37
|
-
source: string
|
|
38
|
-
note: string
|
|
39
|
-
createdBy: string
|
|
40
|
-
parseErrors: string
|
|
41
|
-
|
|
42
|
-
@@index([designId])
|
|
43
|
-
@@unique([designId, version])
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
#--- Design system ---
|
|
47
|
-
# The product thesis: frontends are stitched from REAL designer-made designs.
|
|
48
|
-
# Tokens/Components/Blocks carry designer attribution so anything rendered on a
|
|
49
|
-
# site traces back to the person who designed it. JSON-shaped payloads
|
|
50
|
-
# (propsSpec, slotsSpec, defaults, blocks, rule) are plain JSON strings the
|
|
51
|
-
# renderer parses — no docstore ceremony for prototype-sized payloads.
|
|
52
|
-
|
|
53
|
-
# Attribution-only profile: enough to say "this designer made X". No profile
|
|
54
|
-
# pages, no auth linkage — just the name behind the work.
|
|
55
|
-
entity Designer {
|
|
56
|
-
id: ulid
|
|
57
|
-
createdAt: DateTime @default(now())
|
|
58
|
-
updatedAt: DateTime @updatedAt
|
|
59
|
-
name: string # "Jane Doe"
|
|
60
|
-
handle: string # "jane"
|
|
61
|
-
url: string # portfolio link, may be empty
|
|
62
|
-
bio: string
|
|
63
|
-
|
|
64
|
-
@@unique([handle])
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
entity Token {
|
|
68
|
-
id: ulid
|
|
69
|
-
createdAt: DateTime @default(now())
|
|
70
|
-
updatedAt: DateTime @updatedAt
|
|
71
|
-
designId: string
|
|
72
|
-
name: string # "surface/brand", "text/primary", "font/body", "space/section"
|
|
73
|
-
kind: string # color | font | size | space | radius
|
|
74
|
-
value: string # "#0A0A0A", "Inter", "6rem"
|
|
75
|
-
darkValue: string # empty = same as value
|
|
76
|
-
|
|
77
|
-
@@index([designId])
|
|
78
|
-
@@unique([designId, name])
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
entity Component {
|
|
82
|
-
id: ulid
|
|
83
|
-
createdAt: DateTime @default(now())
|
|
84
|
-
updatedAt: DateTime @updatedAt
|
|
85
|
-
designId: string
|
|
86
|
-
name: string # "button", "nav", "hero", "feature-card", "footer"
|
|
87
|
-
version: u32
|
|
88
|
-
designerId: string # real attribution — the trace-to-designer anchor
|
|
89
|
-
propsSpec: string # JSON: [{"name":"label","type":"string","default":"..."}]
|
|
90
|
-
notes: string
|
|
91
|
-
|
|
92
|
-
@@index([designId])
|
|
93
|
-
@@unique([designId, name])
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
entity Block {
|
|
97
|
-
id: ulid
|
|
98
|
-
createdAt: DateTime @default(now())
|
|
99
|
-
updatedAt: DateTime @updatedAt
|
|
100
|
-
designId: string
|
|
101
|
-
name: string # "nav", "hero", "feature-grid", "cta", "footer"
|
|
102
|
-
version: u32
|
|
103
|
-
designerId: string
|
|
104
|
-
components: string # JSON array of component names this block stitches
|
|
105
|
-
slotsSpec: string # JSON: [{"name":"headline","type":"string"}, ...]
|
|
106
|
-
defaults: string # JSON: default slot content
|
|
107
|
-
|
|
108
|
-
@@index([designId])
|
|
109
|
-
@@unique([designId, name])
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
entity Rule {
|
|
113
|
-
id: ulid
|
|
114
|
-
createdAt: DateTime @default(now())
|
|
115
|
-
updatedAt: DateTime @updatedAt
|
|
116
|
-
designId: string
|
|
117
|
-
subject: string # block/component name, or "page"
|
|
118
|
-
kind: string # ordering | count | pairing
|
|
119
|
-
rule: string # machine-checkable JSON, e.g. {"first":"nav"} / {"max":1,"of":"hero"}
|
|
120
|
-
note: string # designer's human rationale
|
|
121
|
-
|
|
122
|
-
@@index([designId])
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
entity Page {
|
|
126
|
-
id: ulid
|
|
127
|
-
createdAt: DateTime @default(now())
|
|
128
|
-
updatedAt: DateTime @updatedAt
|
|
129
|
-
designId: string
|
|
130
|
-
slug: string # "landing"
|
|
131
|
-
title: string
|
|
132
|
-
blocks: string # JSON: [{"block":"nav","props":{...}}, ...]
|
|
133
|
-
|
|
134
|
-
@@index([designId])
|
|
135
|
-
@@unique([designId, slug])
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
# Behavior (former Design.create/save_version/get_head/list_versions actions +
|
|
139
|
-
# tasks/parse.nbt @task) moved to hand-written Jai over the generated ORM,
|
|
140
|
-
# which also registers the HTTP routes.
|