@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,137 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"pipelines": [
|
|
3
|
-
{
|
|
4
|
-
"id": "UxTCmFzbqr6IxQAIXqnD",
|
|
5
|
-
"name": "MLP SM Pipeline",
|
|
6
|
-
"opportunityCount": 12,
|
|
7
|
-
"stages": [
|
|
8
|
-
{
|
|
9
|
-
"id": "64cd63b4-bdc4-48c6-a58f-33f0ae4066fb",
|
|
10
|
-
"name": "Hot Leads (First 48 Hours)"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"id": "fb7c6191-ec24-435f-b61a-ec721c0aa513",
|
|
14
|
-
"name": "Warm Leads (Day 3-10)"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"id": "e78b46a1-0da9-496f-a8f1-1d4eca89d3a7",
|
|
18
|
-
"name": "Cool Leads (Day 10+)"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"id": "ae0e6d15-7556-4dbe-81bb-9154f29cbdc4",
|
|
22
|
-
"name": "Lead Replied"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"id": "17a4170c-3841-4901-9232-7be58f875319",
|
|
26
|
-
"name": "Currently Working"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"id": "811da9ed-4b67-47ac-8d58-1ef7f43d0ba9",
|
|
30
|
-
"name": "Workflow Reentry"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"id": "aeaecfd9-2c51-49cc-9aa8-d341a84c8d3d",
|
|
34
|
-
"name": "Discovery Call on Funnel"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"id": "14787095-0a31-4067-b7fd-f4ab785c3bcc",
|
|
38
|
-
"name": "Appointment Set"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"id": "f67e73cf-84e3-4dee-b6a0-91d913ff949c",
|
|
42
|
-
"name": "Task Set"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"id": "db326b60-09ad-42d4-81b6-303ee42fd6af",
|
|
46
|
-
"name": "Never Responded"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"id": "faa35266-9b4c-48b3-8438-9f2d782ce7b2",
|
|
50
|
-
"name": "Disqualified"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"id": "814e0795-abcc-46de-8256-631a93102c61",
|
|
54
|
-
"name": "Not Interested"
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"id": "286FgIGF2NMRoTJS4o5z",
|
|
60
|
-
"name": "Rehash Lori & Susan",
|
|
61
|
-
"opportunityCount": 3107,
|
|
62
|
-
"stages": [
|
|
63
|
-
{
|
|
64
|
-
"id": "5dbe3b2d-1e6b-47a7-a7b7-39e9336eae76",
|
|
65
|
-
"name": "No Show"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"id": "29c54677-e7f0-4715-a3fb-5025b7b00f6a",
|
|
69
|
-
"name": "Needs to Reschedule"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"id": "010541a1-220e-4715-9143-a04e27f90cfe",
|
|
73
|
-
"name": "Appointment Refused"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"id": "3e3dbf3c-cfc9-40a8-b48d-f14c46b7c9d3",
|
|
77
|
-
"name": "Appointment Reset"
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"id": "Rz9YDTwgtB7oZSEnr7Q0",
|
|
83
|
-
"name": "MLP Skynet Pipeline",
|
|
84
|
-
"opportunityCount": 212,
|
|
85
|
-
"stages": [
|
|
86
|
-
{
|
|
87
|
-
"id": "e3b2b805-4377-4591-a2db-af013d4a1989",
|
|
88
|
-
"name": "Hot Leads (First 48 Hours)"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"id": "5799baa2-4c47-4715-a509-b4bde322b8b6",
|
|
92
|
-
"name": "Warm Leads (Day 3-10)"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"id": "39f0bc73-9d2e-43ba-a196-97913f1134e3",
|
|
96
|
-
"name": "Cool Leads (Day 10+)"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"id": "25cbf317-87fe-4b17-b643-5cfc8e03a3c3",
|
|
100
|
-
"name": "Lead Replied"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"id": "6dbf45fa-1f35-4c41-9887-4813043f9f9d",
|
|
104
|
-
"name": "Currently Working"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"id": "76b07f0d-df0f-4c32-bfd5-b225a7b38503",
|
|
108
|
-
"name": "Workflow Reentry"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"id": "880c1db8-67ef-41bb-bbb9-43060daea2c4",
|
|
112
|
-
"name": "Discovery Call on Funnel"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"id": "a38d3706-8bed-4bc1-b957-b5fc2ab9cf22",
|
|
116
|
-
"name": "Appointment Set"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"id": "a0b5b71a-2228-413c-8523-993b7d35466a",
|
|
120
|
-
"name": "Task Set"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"id": "731bbb26-2636-47ea-8d82-8c3d4d7a8fed",
|
|
124
|
-
"name": "Never Responded"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"id": "29c9c778-01f5-4c2a-82ee-b813358b893a",
|
|
128
|
-
"name": "Disqualified"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"id": "2a104d02-7923-4ad2-a650-ebce9b18ea44",
|
|
132
|
-
"name": "Not Interested"
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
]
|
|
137
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
migration initial {
|
|
2
|
-
add_entity Design
|
|
3
|
-
add_field Design name string default("")
|
|
4
|
-
add_field Design slug string default("")
|
|
5
|
-
add_field Design description string default("")
|
|
6
|
-
add_field Design headVersionId string default("")
|
|
7
|
-
add_field Design headVersion u32 default(0)
|
|
8
|
-
add_unique Design [slug]
|
|
9
|
-
add_entity DesignVersion
|
|
10
|
-
add_field DesignVersion designId string default("")
|
|
11
|
-
add_field DesignVersion version u32 default(0)
|
|
12
|
-
add_field DesignVersion body document default(0)
|
|
13
|
-
add_field DesignVersion source string default("")
|
|
14
|
-
add_field DesignVersion note string default("")
|
|
15
|
-
add_field DesignVersion createdBy string default("")
|
|
16
|
-
add_field DesignVersion parseErrors string default("")
|
|
17
|
-
add_index DesignVersion [designId]
|
|
18
|
-
add_unique DesignVersion [designId, version]
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
entity Design {
|
|
2
|
-
name: string
|
|
3
|
-
slug: string
|
|
4
|
-
description: string
|
|
5
|
-
headVersionId: string
|
|
6
|
-
headVersion: u32
|
|
7
|
-
@@unique([slug])
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
entity DesignVersion {
|
|
11
|
-
designId: string
|
|
12
|
-
version: u32
|
|
13
|
-
body: document
|
|
14
|
-
source: string
|
|
15
|
-
note: string
|
|
16
|
-
createdBy: string
|
|
17
|
-
parseErrors: string
|
|
18
|
-
@@index([designId])
|
|
19
|
-
@@unique([designId, version])
|
|
20
|
-
}
|
|
21
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
migration design_system {
|
|
2
|
-
add_field Design designerId string default("")
|
|
3
|
-
add_entity Designer
|
|
4
|
-
add_field Designer name string default("")
|
|
5
|
-
add_field Designer handle string default("")
|
|
6
|
-
add_field Designer url string default("")
|
|
7
|
-
add_field Designer bio string default("")
|
|
8
|
-
add_unique Designer [handle]
|
|
9
|
-
add_entity Token
|
|
10
|
-
add_field Token designId string default("")
|
|
11
|
-
add_field Token name string default("")
|
|
12
|
-
add_field Token kind string default("")
|
|
13
|
-
add_field Token value string default("")
|
|
14
|
-
add_field Token darkValue string default("")
|
|
15
|
-
add_index Token [designId]
|
|
16
|
-
add_unique Token [designId, name]
|
|
17
|
-
add_entity Component
|
|
18
|
-
add_field Component designId string default("")
|
|
19
|
-
add_field Component name string default("")
|
|
20
|
-
add_field Component version u32 default(0)
|
|
21
|
-
add_field Component designerId string default("")
|
|
22
|
-
add_field Component propsSpec string default("")
|
|
23
|
-
add_field Component notes string default("")
|
|
24
|
-
add_index Component [designId]
|
|
25
|
-
add_unique Component [designId, name]
|
|
26
|
-
add_entity Block
|
|
27
|
-
add_field Block designId string default("")
|
|
28
|
-
add_field Block name string default("")
|
|
29
|
-
add_field Block version u32 default(0)
|
|
30
|
-
add_field Block designerId string default("")
|
|
31
|
-
add_field Block components string default("")
|
|
32
|
-
add_field Block slotsSpec string default("")
|
|
33
|
-
add_field Block defaults string default("")
|
|
34
|
-
add_index Block [designId]
|
|
35
|
-
add_unique Block [designId, name]
|
|
36
|
-
add_entity Rule
|
|
37
|
-
add_field Rule designId string default("")
|
|
38
|
-
add_field Rule subject string default("")
|
|
39
|
-
add_field Rule kind string default("")
|
|
40
|
-
add_field Rule rule string default("")
|
|
41
|
-
add_field Rule note string default("")
|
|
42
|
-
add_index Rule [designId]
|
|
43
|
-
add_entity Page
|
|
44
|
-
add_field Page designId string default("")
|
|
45
|
-
add_field Page slug string default("")
|
|
46
|
-
add_field Page title string default("")
|
|
47
|
-
add_field Page blocks string default("")
|
|
48
|
-
add_index Page [designId]
|
|
49
|
-
add_unique Page [designId, slug]
|
|
50
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
entity Design {
|
|
2
|
-
name: string
|
|
3
|
-
slug: string
|
|
4
|
-
description: string
|
|
5
|
-
designerId: string
|
|
6
|
-
headVersionId: string
|
|
7
|
-
headVersion: u32
|
|
8
|
-
@@unique([slug])
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
entity DesignVersion {
|
|
12
|
-
designId: string
|
|
13
|
-
version: u32
|
|
14
|
-
body: document
|
|
15
|
-
source: string
|
|
16
|
-
note: string
|
|
17
|
-
createdBy: string
|
|
18
|
-
parseErrors: string
|
|
19
|
-
@@index([designId])
|
|
20
|
-
@@unique([designId, version])
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
entity Designer {
|
|
24
|
-
name: string
|
|
25
|
-
handle: string
|
|
26
|
-
url: string
|
|
27
|
-
bio: string
|
|
28
|
-
@@unique([handle])
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
entity Token {
|
|
32
|
-
designId: string
|
|
33
|
-
name: string
|
|
34
|
-
kind: string
|
|
35
|
-
value: string
|
|
36
|
-
darkValue: string
|
|
37
|
-
@@index([designId])
|
|
38
|
-
@@unique([designId, name])
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
entity Component {
|
|
42
|
-
designId: string
|
|
43
|
-
name: string
|
|
44
|
-
version: u32
|
|
45
|
-
designerId: string
|
|
46
|
-
propsSpec: string
|
|
47
|
-
notes: string
|
|
48
|
-
@@index([designId])
|
|
49
|
-
@@unique([designId, name])
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
entity Block {
|
|
53
|
-
designId: string
|
|
54
|
-
name: string
|
|
55
|
-
version: u32
|
|
56
|
-
designerId: string
|
|
57
|
-
components: string
|
|
58
|
-
slotsSpec: string
|
|
59
|
-
defaults: string
|
|
60
|
-
@@index([designId])
|
|
61
|
-
@@unique([designId, name])
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
entity Rule {
|
|
65
|
-
designId: string
|
|
66
|
-
subject: string
|
|
67
|
-
kind: string
|
|
68
|
-
rule: string
|
|
69
|
-
note: string
|
|
70
|
-
@@index([designId])
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
entity Page {
|
|
74
|
-
designId: string
|
|
75
|
-
slug: string
|
|
76
|
-
title: string
|
|
77
|
-
blocks: string
|
|
78
|
-
@@index([designId])
|
|
79
|
-
@@unique([designId, slug])
|
|
80
|
-
}
|
package/stdlib/design/schema.nbt
DELETED
|
@@ -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.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
migration initial {
|
|
2
|
-
add_entity Design
|
|
3
|
-
add_field Design name string default("")
|
|
4
|
-
add_field Design slug string default("")
|
|
5
|
-
add_field Design description string default("")
|
|
6
|
-
add_field Design headVersionId string default("")
|
|
7
|
-
add_field Design headVersion u32 default(0)
|
|
8
|
-
add_unique Design [slug]
|
|
9
|
-
add_entity DesignVersion
|
|
10
|
-
add_field DesignVersion designId string default("")
|
|
11
|
-
add_field DesignVersion version u32 default(0)
|
|
12
|
-
add_field DesignVersion body document default(0)
|
|
13
|
-
add_field DesignVersion source string default("")
|
|
14
|
-
add_field DesignVersion note string default("")
|
|
15
|
-
add_field DesignVersion createdBy string default("")
|
|
16
|
-
add_field DesignVersion parseErrors string default("")
|
|
17
|
-
add_index DesignVersion [designId]
|
|
18
|
-
add_unique DesignVersion [designId, version]
|
|
19
|
-
}
|
package/vendor/linux-x64/cartridges/design/migrations/20260501210107_initial/schema_snapshot.nbt
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
entity Design {
|
|
2
|
-
name: string
|
|
3
|
-
slug: string
|
|
4
|
-
description: string
|
|
5
|
-
headVersionId: string
|
|
6
|
-
headVersion: u32
|
|
7
|
-
@@unique([slug])
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
entity DesignVersion {
|
|
11
|
-
designId: string
|
|
12
|
-
version: u32
|
|
13
|
-
body: document
|
|
14
|
-
source: string
|
|
15
|
-
note: string
|
|
16
|
-
createdBy: string
|
|
17
|
-
parseErrors: string
|
|
18
|
-
@@index([designId])
|
|
19
|
-
@@unique([designId, version])
|
|
20
|
-
}
|
|
21
|
-
|
package/vendor/linux-x64/cartridges/design/migrations/20260610130000_design_system/migration.nbt
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
migration design_system {
|
|
2
|
-
add_field Design designerId string default("")
|
|
3
|
-
add_entity Designer
|
|
4
|
-
add_field Designer name string default("")
|
|
5
|
-
add_field Designer handle string default("")
|
|
6
|
-
add_field Designer url string default("")
|
|
7
|
-
add_field Designer bio string default("")
|
|
8
|
-
add_unique Designer [handle]
|
|
9
|
-
add_entity Token
|
|
10
|
-
add_field Token designId string default("")
|
|
11
|
-
add_field Token name string default("")
|
|
12
|
-
add_field Token kind string default("")
|
|
13
|
-
add_field Token value string default("")
|
|
14
|
-
add_field Token darkValue string default("")
|
|
15
|
-
add_index Token [designId]
|
|
16
|
-
add_unique Token [designId, name]
|
|
17
|
-
add_entity Component
|
|
18
|
-
add_field Component designId string default("")
|
|
19
|
-
add_field Component name string default("")
|
|
20
|
-
add_field Component version u32 default(0)
|
|
21
|
-
add_field Component designerId string default("")
|
|
22
|
-
add_field Component propsSpec string default("")
|
|
23
|
-
add_field Component notes string default("")
|
|
24
|
-
add_index Component [designId]
|
|
25
|
-
add_unique Component [designId, name]
|
|
26
|
-
add_entity Block
|
|
27
|
-
add_field Block designId string default("")
|
|
28
|
-
add_field Block name string default("")
|
|
29
|
-
add_field Block version u32 default(0)
|
|
30
|
-
add_field Block designerId string default("")
|
|
31
|
-
add_field Block components string default("")
|
|
32
|
-
add_field Block slotsSpec string default("")
|
|
33
|
-
add_field Block defaults string default("")
|
|
34
|
-
add_index Block [designId]
|
|
35
|
-
add_unique Block [designId, name]
|
|
36
|
-
add_entity Rule
|
|
37
|
-
add_field Rule designId string default("")
|
|
38
|
-
add_field Rule subject string default("")
|
|
39
|
-
add_field Rule kind string default("")
|
|
40
|
-
add_field Rule rule string default("")
|
|
41
|
-
add_field Rule note string default("")
|
|
42
|
-
add_index Rule [designId]
|
|
43
|
-
add_entity Page
|
|
44
|
-
add_field Page designId string default("")
|
|
45
|
-
add_field Page slug string default("")
|
|
46
|
-
add_field Page title string default("")
|
|
47
|
-
add_field Page blocks string default("")
|
|
48
|
-
add_index Page [designId]
|
|
49
|
-
add_unique Page [designId, slug]
|
|
50
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
entity Design {
|
|
2
|
-
name: string
|
|
3
|
-
slug: string
|
|
4
|
-
description: string
|
|
5
|
-
designerId: string
|
|
6
|
-
headVersionId: string
|
|
7
|
-
headVersion: u32
|
|
8
|
-
@@unique([slug])
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
entity DesignVersion {
|
|
12
|
-
designId: string
|
|
13
|
-
version: u32
|
|
14
|
-
body: document
|
|
15
|
-
source: string
|
|
16
|
-
note: string
|
|
17
|
-
createdBy: string
|
|
18
|
-
parseErrors: string
|
|
19
|
-
@@index([designId])
|
|
20
|
-
@@unique([designId, version])
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
entity Designer {
|
|
24
|
-
name: string
|
|
25
|
-
handle: string
|
|
26
|
-
url: string
|
|
27
|
-
bio: string
|
|
28
|
-
@@unique([handle])
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
entity Token {
|
|
32
|
-
designId: string
|
|
33
|
-
name: string
|
|
34
|
-
kind: string
|
|
35
|
-
value: string
|
|
36
|
-
darkValue: string
|
|
37
|
-
@@index([designId])
|
|
38
|
-
@@unique([designId, name])
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
entity Component {
|
|
42
|
-
designId: string
|
|
43
|
-
name: string
|
|
44
|
-
version: u32
|
|
45
|
-
designerId: string
|
|
46
|
-
propsSpec: string
|
|
47
|
-
notes: string
|
|
48
|
-
@@index([designId])
|
|
49
|
-
@@unique([designId, name])
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
entity Block {
|
|
53
|
-
designId: string
|
|
54
|
-
name: string
|
|
55
|
-
version: u32
|
|
56
|
-
designerId: string
|
|
57
|
-
components: string
|
|
58
|
-
slotsSpec: string
|
|
59
|
-
defaults: string
|
|
60
|
-
@@index([designId])
|
|
61
|
-
@@unique([designId, name])
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
entity Rule {
|
|
65
|
-
designId: string
|
|
66
|
-
subject: string
|
|
67
|
-
kind: string
|
|
68
|
-
rule: string
|
|
69
|
-
note: string
|
|
70
|
-
@@index([designId])
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
entity Page {
|
|
74
|
-
designId: string
|
|
75
|
-
slug: string
|
|
76
|
-
title: string
|
|
77
|
-
blocks: string
|
|
78
|
-
@@index([designId])
|
|
79
|
-
@@unique([designId, slug])
|
|
80
|
-
}
|