@nbt-dev/nbt 0.0.9 → 0.1.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.
Files changed (50) hide show
  1. package/dist/nbt.js +117 -36
  2. package/package.json +1 -1
  3. package/stdlib/auth/migrations/20260614000000_add_user_devtools_settings/migration.nbt +4 -0
  4. package/stdlib/auth/migrations/20260614000000_add_user_devtools_settings/schema_snapshot.nbt +59 -0
  5. package/stdlib/auth/schema.nbt +5 -30
  6. package/stdlib/calendar/schema.nbt +2 -3
  7. package/stdlib/crm/schema.nbt +3 -4
  8. package/stdlib/design/schema.nbt +2 -2
  9. package/stdlib/dns/schema.nbt +3 -3
  10. package/stdlib/email/schema.nbt +12 -11
  11. package/stdlib/ingest/schema.nbt +4 -4
  12. package/stdlib/notifications/schema.nbt +2 -2
  13. package/stdlib/phone/schema.nbt +9 -10
  14. package/stdlib/workflows/schema.nbt +69 -21
  15. package/vendor/linux-x64/cartridges/auth/migrations/20260614000000_add_user_devtools_settings/migration.nbt +4 -0
  16. package/vendor/linux-x64/cartridges/auth/migrations/20260614000000_add_user_devtools_settings/schema_snapshot.nbt +59 -0
  17. package/vendor/linux-x64/cartridges/auth/schema.nbt +5 -30
  18. package/vendor/linux-x64/cartridges/calendar/schema.nbt +2 -3
  19. package/vendor/linux-x64/cartridges/crm/schema.nbt +3 -4
  20. package/vendor/linux-x64/cartridges/design/schema.nbt +2 -2
  21. package/vendor/linux-x64/cartridges/dns/schema.nbt +3 -3
  22. package/vendor/linux-x64/cartridges/email/schema.nbt +12 -11
  23. package/vendor/linux-x64/cartridges/ingest/schema.nbt +4 -4
  24. package/vendor/linux-x64/cartridges/notifications/schema.nbt +2 -2
  25. package/vendor/linux-x64/cartridges/phone/schema.nbt +9 -10
  26. package/vendor/linux-x64/cartridges/workflows/schema.nbt +69 -21
  27. package/vendor/linux-x64/console +0 -0
  28. package/vendor/linux-x64/nbt +0 -0
  29. package/stdlib/crm/adapters/gohighlevel/README.md +0 -85
  30. package/stdlib/crm/adapters/gohighlevel/tests/README.md +0 -159
  31. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_138fields.json +0 -222
  32. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_140fields.json +0 -219
  33. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_alt.json +0 -212
  34. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_changed.json +0 -102
  35. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_created.json +0 -95
  36. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_full.json +0 -213
  37. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_sparse.json +0 -161
  38. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_update_a.json +0 -197
  39. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_update_b.json +0 -197
  40. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/opportunity_changed.json +0 -85
  41. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/opportunity_created.json +0 -85
  42. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_contact_pilot.json +0 -43
  43. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_contact_with_price_closed.json +0 -7
  44. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_contact_with_price_open.json +0 -7
  45. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_appointment_delete.json +0 -1
  46. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_calendar_update.json +0 -1
  47. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_contact_create.json +0 -1
  48. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_opp_status_update.json +0 -1
  49. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_opportunity_pilot.json +0 -16
  50. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_pipelines_pilot.json +0 -137
@@ -1,85 +0,0 @@
1
- {
2
- "workflow": {"id": "a3f0a912-9dc1-4f1e-9c4d-2bb9a8a87a11", "name": "Opportunity Created Sync"},
3
- "type": "OpportunityCreate",
4
- "customData": {"org": "mlp", "project": "default", "type": "Opportunity"},
5
- "location": {
6
- "id": "loc_test",
7
- "name": "MyLocalPro Test",
8
- "address": "22 Old Village Rd Sturbridge MA 01566",
9
- "city": "Sturbridge",
10
- "country": "US",
11
- "fullAddress": "22 Old Village Rd Sturbridge MA 01566, Sturbridge MA 01566",
12
- "postalCode": "01566",
13
- "state": "MA"
14
- },
15
- "id": "opp_001",
16
- "contact_id": "ctc_alice_001",
17
- "opportunity_name": "Alice Anderson — 8kW Solar",
18
- "pipeline_id": "pip_solar",
19
- "pipeline_stage": "ps_qualified",
20
- "monetary_value": 24500.0,
21
- "status": "open",
22
- "tags": "solar,residential,priority",
23
- "first_name": "Alice",
24
- "last_name": "Anderson",
25
- "full_name": "Alice Anderson",
26
- "email": "alice@example.com",
27
- "phone": "+15551234567",
28
- "address1": "123 Main St",
29
- "full_address": "123 Main St, Toronto ON M5V 1A1",
30
- "city": "Toronto",
31
- "state": "ON",
32
- "country": "CA",
33
- "postal_code": "M5V 1A1",
34
- "timezone": "America/Toronto",
35
- "date_created": "2026-04-29T14:02:11.901Z",
36
- "contact_source": "Solar Survey MLP Skynet",
37
- "contact_type": "lead",
38
- "attributionSource": {},
39
- "contact": {
40
- "attributionSource": {
41
- "campaign": "spring-solar",
42
- "medium": "cpc",
43
- "sessionSource": "Website",
44
- "url": "https://mylocalpro.example/get-quote?utm_source=google&utm_medium=cpc&utm_campaign=spring-solar",
45
- "utmMedium": "cpc",
46
- "utmSource": "google"
47
- },
48
- "lastAttributionSource": {}
49
- },
50
- "Do You Own Your Home?": "Yes, I own my home",
51
- "Property Type": "Single Family",
52
- "Home Type": "Detached",
53
- "Roof Age": "10-15 years",
54
- "Usable Roof Faces": "south,west",
55
- "Shade?": "minimal",
56
- "Average Electric Bill": "245",
57
- "What Is Your Average Monthly Electric Bill?": "$200 - $299",
58
- "System Size kW (X.XX)": "8.00",
59
- "System Size KW's": "8",
60
- "Confidence": "high",
61
- "Lead Generation Source": "Website",
62
- "Battery Included": "false",
63
- "Financing Options": "lease",
64
- "Appointment Type": "Discovery Call",
65
- "Utility": "Toronto Hydro",
66
- "Utility Company": "Toronto Hydro",
67
- "Setter": "Diana Davis",
68
- "Setter Name": "Diana Davis",
69
- "Closer": "",
70
- "Appointment Outcome": "",
71
- "Appointment Time": "",
72
- "Date Sold": "",
73
- "Total Contract Price": "24500",
74
- "Proposal Sent": "false",
75
- "Inspection Date": "",
76
- "Closer (HVAC)": "",
77
- "# Touches": 3,
78
- "Outbound Dials": 8,
79
- "triggerData": {},
80
- "user": {
81
- "email": "diana@example.com",
82
- "firstName": "Diana",
83
- "lastName": "Davis"
84
- }
85
- }
@@ -1,43 +0,0 @@
1
- {
2
- "address1": "1 Riverview drive ",
3
- "city": "Massena ",
4
- "country": "US",
5
- "customFields": [
6
- {
7
- "id": "WhvC42AoVu7q9ZX7tM72",
8
- "name": "How long does the sun shine on your roof?",
9
- "value": "Afternoon Hours"
10
- },
11
- {
12
- "id": "Ws49hluj0RByDIOhlayC",
13
- "name": "What Is Your Average Monthly Electric Bill?",
14
- "value": "$300 - $399"
15
- },
16
- {
17
- "id": "pViJOR2t6EyhJYJs9Hsh",
18
- "name": "Do You Own Your Home?",
19
- "value": "Yes, I own my home"
20
- },
21
- {
22
- "id": "Y6e655cPNAfN4T16QoK2",
23
- "name": "Outbound Dials",
24
- "value": 1
25
- }
26
- ],
27
- "dateAdded": "2026-02-22T05:28:41.258Z",
28
- "dateUpdated": "2026-02-23T17:06:05.721Z",
29
- "email": "mcgrawm635@gmail.com",
30
- "firstName": "Mike",
31
- "id": "00Nz9BIAQxBSvjtXO1pg",
32
- "lastName": "McGraw",
33
- "name": "Mike McGraw",
34
- "phone": "+13156001857",
35
- "source": "Solar Survey Final VT",
36
- "tags": [
37
- "new lead",
38
- "vt",
39
- "vtfbmlsp",
40
- "landline"
41
- ],
42
- "timezone": "America/New_York"
43
- }
@@ -1,7 +0,0 @@
1
- {
2
- "id": "ctc-mlp-2",
3
- "firstName": "Carol",
4
- "customFields": [
5
- {"id": "fid_total", "name": "Total Contract Price", "value": "99999.99"}
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "id": "ctc-mlp-1",
3
- "firstName": "Bob",
4
- "customFields": [
5
- {"id": "fid_total", "name": "Total Contract Price", "value": "42710.10"}
6
- ]
7
- }
@@ -1 +0,0 @@
1
- {"type":"OpportunityStatusUpdate"}
@@ -1,16 +0,0 @@
1
- {
2
- "assignedTo": "u5oeSXiS3LCoTDvXamwm",
3
- "contactId": "qp1tUvCxSfrit9XuKVES",
4
- "createdAt": "2025-03-28T00:53:00.958Z",
5
- "customFields": [],
6
- "id": "003E3rpxfLYVupHToPH2",
7
- "monetaryValue": 0,
8
- "name": "Melissa Hudson",
9
- "pipelineId": "U7JKQjFnxmxd1I0Snstr",
10
- "pipelineName": "Appointments Pipeline A (Solar)",
11
- "pipelineStageId": "eaa69017-7608-43f9-b185-ab142d3225e6",
12
- "pipelineStageName": "Unqualified",
13
- "source": "skynet",
14
- "status": "lost",
15
- "updatedAt": "2025-03-28T22:47:27.858Z"
16
- }
@@ -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
- }