@nbt-dev/nbt 0.0.1 → 0.0.3

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 (149) hide show
  1. package/LICENSE +177 -21
  2. package/README.md +16 -13
  3. package/TRADEMARKS.md +49 -0
  4. package/dist/nbt.js +398 -19
  5. package/package.json +5 -4
  6. package/stdlib/auth/README.md +83 -0
  7. package/stdlib/auth/migrations/20260424144652_initial/migration.nbt +48 -0
  8. package/stdlib/auth/migrations/20260424144652_initial/schema_snapshot.nbt +58 -0
  9. package/stdlib/auth/migrations/20260521191014_update_user/migration.nbt +3 -0
  10. package/stdlib/auth/migrations/20260521191014_update_user/schema_snapshot.nbt +59 -0
  11. package/stdlib/auth/schema.nbt +142 -0
  12. package/stdlib/calendar/adapters/gohighlevel/tests/fixtures/v2_calendar_pilot.json +12 -0
  13. package/stdlib/calendar/adapters/gohighlevel/tests/fixtures/webhooks/appointment_changed.json +70 -0
  14. package/stdlib/calendar/adapters/gohighlevel/tests/fixtures/webhooks/appointment_created.json +72 -0
  15. package/stdlib/calendar/migrations/20260501210107_initial/migration.nbt +60 -0
  16. package/stdlib/calendar/migrations/20260501210107_initial/schema_snapshot.nbt +66 -0
  17. package/stdlib/calendar/migrations/20260513151050_schema_update/migration.nbt +17 -0
  18. package/stdlib/calendar/migrations/20260513151050_schema_update/schema_snapshot.nbt +83 -0
  19. package/stdlib/calendar/schema.nbt +85 -0
  20. package/stdlib/chat/migrations/20260429222411_initial/migration.nbt +59 -0
  21. package/stdlib/chat/migrations/20260429222411_initial/schema_snapshot.nbt +71 -0
  22. package/stdlib/chat/migrations/20260430185225_add_messagereaction/migration.nbt +9 -0
  23. package/stdlib/chat/migrations/20260430185225_add_messagereaction/schema_snapshot.nbt +78 -0
  24. package/stdlib/chat/migrations/20260514202654_update_directmessageroom/migration.nbt +4 -0
  25. package/stdlib/chat/migrations/20260514202654_update_directmessageroom/schema_snapshot.nbt +80 -0
  26. package/stdlib/chat/migrations/20260518191152_update_message/migration.nbt +3 -0
  27. package/stdlib/chat/migrations/20260518191152_update_message/schema_snapshot.nbt +81 -0
  28. package/stdlib/chat/schema.nbt +130 -0
  29. package/stdlib/crm/adapters/gohighlevel/README.md +85 -0
  30. package/stdlib/crm/adapters/gohighlevel/tests/README.md +159 -0
  31. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_138fields.json +222 -0
  32. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_140fields.json +219 -0
  33. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_alt.json +212 -0
  34. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_changed.json +102 -0
  35. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_created.json +95 -0
  36. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_full.json +213 -0
  37. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_sparse.json +161 -0
  38. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_update_a.json +197 -0
  39. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/contact_update_b.json +197 -0
  40. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/opportunity_changed.json +85 -0
  41. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/opportunity_created.json +85 -0
  42. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_contact_pilot.json +43 -0
  43. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_contact_with_price_closed.json +7 -0
  44. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_contact_with_price_open.json +7 -0
  45. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_appointment_delete.json +1 -0
  46. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_calendar_update.json +1 -0
  47. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_contact_create.json +1 -0
  48. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_event_opp_status_update.json +1 -0
  49. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_opportunity_pilot.json +16 -0
  50. package/stdlib/crm/adapters/gohighlevel/tests/fixtures/webhooks/v2_pipelines_pilot.json +137 -0
  51. package/stdlib/crm/migrations/20260501210107_initial/migration.nbt +63 -0
  52. package/stdlib/crm/migrations/20260501210107_initial/schema_snapshot.nbt +73 -0
  53. package/stdlib/crm/migrations/20260513151050_schema_update/migration.nbt +13 -0
  54. package/stdlib/crm/migrations/20260513151050_schema_update/schema_snapshot.nbt +86 -0
  55. package/stdlib/crm/schema.nbt +146 -0
  56. package/stdlib/design/migrations/20260501210107_initial/migration.nbt +19 -0
  57. package/stdlib/design/migrations/20260501210107_initial/schema_snapshot.nbt +21 -0
  58. package/stdlib/design/migrations/20260610130000_design_system/migration.nbt +50 -0
  59. package/stdlib/design/migrations/20260610130000_design_system/schema_snapshot.nbt +80 -0
  60. package/stdlib/design/schema.nbt +140 -0
  61. package/stdlib/dns/migrations/20260501210107_initial/migration.nbt +32 -0
  62. package/stdlib/dns/migrations/20260501210107_initial/schema_snapshot.nbt +36 -0
  63. package/stdlib/dns/schema.nbt +68 -0
  64. package/stdlib/email/migrations/20260427235207_initial/migration.nbt +75 -0
  65. package/stdlib/email/migrations/20260427235207_initial/schema_snapshot.nbt +87 -0
  66. package/stdlib/email/schema.nbt +145 -0
  67. package/stdlib/ingest/README.md +29 -0
  68. package/stdlib/ingest/migrations/20260424144652_initial/migration.nbt +18 -0
  69. package/stdlib/ingest/migrations/20260424144652_initial/schema_snapshot.nbt +20 -0
  70. package/stdlib/ingest/migrations/20260429203747_schema_update/migration.nbt +3 -0
  71. package/stdlib/ingest/migrations/20260429203747_schema_update/schema_snapshot.nbt +21 -0
  72. package/stdlib/ingest/schema.nbt +37 -0
  73. package/stdlib/notifications/README.md +118 -0
  74. package/stdlib/notifications/migrations/20260430204408_initial/migration.nbt +42 -0
  75. package/stdlib/notifications/migrations/20260430204408_initial/schema_snapshot.nbt +46 -0
  76. package/stdlib/notifications/schema.nbt +67 -0
  77. package/stdlib/phone/migrations/20260605205722_initial/migration.nbt +50 -0
  78. package/stdlib/phone/migrations/20260605205722_initial/schema_snapshot.nbt +56 -0
  79. package/stdlib/phone/schema.nbt +95 -0
  80. package/stdlib/registry/migrations/20260602181932_initial/migration.nbt +8 -0
  81. package/stdlib/registry/migrations/20260602181932_initial/schema_snapshot.nbt +8 -0
  82. package/stdlib/registry/schema.nbt +20 -0
  83. package/stdlib/workflows/schema.nbt +43 -0
  84. package/vendor/linux-x64/cartridges/auth/migrations/20260424144652_initial/migration.nbt +48 -0
  85. package/vendor/linux-x64/cartridges/auth/migrations/20260424144652_initial/schema_snapshot.nbt +58 -0
  86. package/vendor/linux-x64/cartridges/auth/migrations/20260521191014_update_user/migration.nbt +3 -0
  87. package/vendor/linux-x64/cartridges/auth/migrations/20260521191014_update_user/schema_snapshot.nbt +59 -0
  88. package/vendor/linux-x64/cartridges/auth/schema.nbt +142 -0
  89. package/vendor/linux-x64/cartridges/calendar/migrations/20260501210107_initial/migration.nbt +60 -0
  90. package/vendor/linux-x64/cartridges/calendar/migrations/20260501210107_initial/schema_snapshot.nbt +66 -0
  91. package/vendor/linux-x64/cartridges/calendar/migrations/20260513151050_schema_update/migration.nbt +17 -0
  92. package/vendor/linux-x64/cartridges/calendar/migrations/20260513151050_schema_update/schema_snapshot.nbt +83 -0
  93. package/vendor/linux-x64/cartridges/calendar/schema.nbt +85 -0
  94. package/vendor/linux-x64/cartridges/chat/migrations/20260429222411_initial/migration.nbt +59 -0
  95. package/vendor/linux-x64/cartridges/chat/migrations/20260429222411_initial/schema_snapshot.nbt +71 -0
  96. package/vendor/linux-x64/cartridges/chat/migrations/20260430185225_add_messagereaction/migration.nbt +9 -0
  97. package/vendor/linux-x64/cartridges/chat/migrations/20260430185225_add_messagereaction/schema_snapshot.nbt +78 -0
  98. package/vendor/linux-x64/cartridges/chat/migrations/20260514202654_update_directmessageroom/migration.nbt +4 -0
  99. package/vendor/linux-x64/cartridges/chat/migrations/20260514202654_update_directmessageroom/schema_snapshot.nbt +80 -0
  100. package/vendor/linux-x64/cartridges/chat/migrations/20260518191152_update_message/migration.nbt +3 -0
  101. package/vendor/linux-x64/cartridges/chat/migrations/20260518191152_update_message/schema_snapshot.nbt +81 -0
  102. package/vendor/linux-x64/cartridges/chat/schema.nbt +130 -0
  103. package/vendor/linux-x64/cartridges/crm/migrations/20260501210107_initial/migration.nbt +63 -0
  104. package/vendor/linux-x64/cartridges/crm/migrations/20260501210107_initial/schema_snapshot.nbt +73 -0
  105. package/vendor/linux-x64/cartridges/crm/migrations/20260513151050_schema_update/migration.nbt +13 -0
  106. package/vendor/linux-x64/cartridges/crm/migrations/20260513151050_schema_update/schema_snapshot.nbt +86 -0
  107. package/vendor/linux-x64/cartridges/crm/schema.nbt +146 -0
  108. package/vendor/linux-x64/cartridges/design/migrations/20260501210107_initial/migration.nbt +19 -0
  109. package/vendor/linux-x64/cartridges/design/migrations/20260501210107_initial/schema_snapshot.nbt +21 -0
  110. package/vendor/linux-x64/cartridges/design/migrations/20260610130000_design_system/migration.nbt +50 -0
  111. package/vendor/linux-x64/cartridges/design/migrations/20260610130000_design_system/schema_snapshot.nbt +80 -0
  112. package/vendor/linux-x64/cartridges/design/schema.nbt +140 -0
  113. package/vendor/linux-x64/cartridges/dns/migrations/20260501210107_initial/migration.nbt +32 -0
  114. package/vendor/linux-x64/cartridges/dns/migrations/20260501210107_initial/schema_snapshot.nbt +36 -0
  115. package/vendor/linux-x64/cartridges/dns/schema.nbt +68 -0
  116. package/vendor/linux-x64/cartridges/email/migrations/20260427235207_initial/migration.nbt +75 -0
  117. package/vendor/linux-x64/cartridges/email/migrations/20260427235207_initial/schema_snapshot.nbt +87 -0
  118. package/vendor/linux-x64/cartridges/email/schema.nbt +145 -0
  119. package/vendor/linux-x64/cartridges/ingest/migrations/20260424144652_initial/migration.nbt +18 -0
  120. package/vendor/linux-x64/cartridges/ingest/migrations/20260424144652_initial/schema_snapshot.nbt +20 -0
  121. package/vendor/linux-x64/cartridges/ingest/migrations/20260429203747_schema_update/migration.nbt +3 -0
  122. package/vendor/linux-x64/cartridges/ingest/migrations/20260429203747_schema_update/schema_snapshot.nbt +21 -0
  123. package/vendor/linux-x64/cartridges/ingest/schema.nbt +37 -0
  124. package/vendor/linux-x64/cartridges/notifications/migrations/20260430204408_initial/migration.nbt +42 -0
  125. package/vendor/linux-x64/cartridges/notifications/migrations/20260430204408_initial/schema_snapshot.nbt +46 -0
  126. package/vendor/linux-x64/cartridges/notifications/schema.nbt +67 -0
  127. package/vendor/linux-x64/cartridges/phone/migrations/20260605205722_initial/migration.nbt +50 -0
  128. package/vendor/linux-x64/cartridges/phone/migrations/20260605205722_initial/schema_snapshot.nbt +56 -0
  129. package/vendor/linux-x64/cartridges/phone/schema.nbt +95 -0
  130. package/vendor/linux-x64/cartridges/registry/migrations/20260602181932_initial/migration.nbt +8 -0
  131. package/vendor/linux-x64/cartridges/registry/migrations/20260602181932_initial/schema_snapshot.nbt +8 -0
  132. package/vendor/linux-x64/cartridges/registry/schema.nbt +20 -0
  133. package/vendor/linux-x64/cartridges/workflows/schema.nbt +43 -0
  134. package/vendor/linux-x64/console +0 -0
  135. package/vendor/linux-x64/nbt +0 -0
  136. package/contracts/audit/.dist/contract.json +0 -56
  137. package/contracts/auth/.dist/contract.json +0 -252
  138. package/contracts/calendar/.dist/contract.json +0 -141
  139. package/contracts/chat/.dist/contract.json +0 -229
  140. package/contracts/crm/.dist/contract.json +0 -239
  141. package/contracts/design/.dist/contract.json +0 -85
  142. package/contracts/dns/.dist/contract.json +0 -123
  143. package/contracts/email/.dist/contract.json +0 -267
  144. package/contracts/embed/.dist/contract.json +0 -137
  145. package/contracts/ingest/.dist/contract.json +0 -86
  146. package/contracts/notifications/.dist/contract.json +0 -133
  147. package/contracts/phone/.dist/contract.json +0 -168
  148. package/contracts/registry/.dist/contract.json +0 -49
  149. package/contracts/workflows/.dist/contract.json +0 -106
@@ -0,0 +1,85 @@
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
+ }
@@ -0,0 +1,43 @@
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
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "id": "ctc-mlp-2",
3
+ "firstName": "Carol",
4
+ "customFields": [
5
+ {"id": "fid_total", "name": "Total Contract Price", "value": "99999.99"}
6
+ ]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "id": "ctc-mlp-1",
3
+ "firstName": "Bob",
4
+ "customFields": [
5
+ {"id": "fid_total", "name": "Total Contract Price", "value": "42710.10"}
6
+ ]
7
+ }
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,137 @@
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
+ }
@@ -0,0 +1,63 @@
1
+ migration initial {
2
+ add_entity Contact
3
+ add_field Contact firstName string default("")
4
+ add_field Contact lastName string default("")
5
+ add_field Contact fullName string default("")
6
+ add_field Contact phone string default("")
7
+ add_field Contact mobile string default("")
8
+ add_field Contact email string default("")
9
+ add_field Contact address string default("")
10
+ add_field Contact fullAddress string default("")
11
+ add_field Contact postalCode string default("")
12
+ add_field Contact city string default("")
13
+ add_field Contact stateOrProvince string default("")
14
+ add_field Contact country string default("")
15
+ add_field Contact timezone string default("")
16
+ add_field Contact lat float default(0)
17
+ add_field Contact lon float default(0)
18
+ add_field Contact company string default("")
19
+ add_field Contact website string default("")
20
+ add_field Contact title string default("")
21
+ add_field Contact industry string default("")
22
+ add_field Contact source string default("")
23
+ add_field Contact notes string default("")
24
+ add_field Contact data document default(0)
25
+ add_field Contact customData document default(0)
26
+ add_entity Deal
27
+ add_field Deal name string default("")
28
+ add_field Deal contact Contact default(0)
29
+ add_field Deal value float default(0)
30
+ add_field Deal currency string default("")
31
+ add_field Deal type string default("")
32
+ add_field Deal stage string default("")
33
+ add_field Deal pipeline Pipeline default(0)
34
+ add_field Deal pipelineStage PipelineStage default(0)
35
+ add_field Deal data document default(0)
36
+ add_field Deal customData document default(0)
37
+ add_entity Pipeline
38
+ add_field Pipeline name string default("")
39
+ add_field Pipeline description string default("")
40
+ add_field Pipeline stages PipelineStage default(0)
41
+ add_field Pipeline deals Deal default(0)
42
+ add_entity PipelineStage
43
+ add_field PipelineStage name string default("")
44
+ add_field PipelineStage order u32 default(0)
45
+ add_field PipelineStage pipeline Pipeline default(0)
46
+ add_field PipelineStage deals Deal default(0)
47
+ add_entity PipelineStageTransition
48
+ add_field PipelineStageTransition fromPipelineId u64 default(0)
49
+ add_field PipelineStageTransition toPipelineId u64 default(0)
50
+ add_field PipelineStageTransition fromStageId u64 default(0)
51
+ add_field PipelineStageTransition toStageId u64 default(0)
52
+ add_field PipelineStageTransition movedBy User default(0)
53
+ add_index PipelineStageTransition [fromPipelineId, toPipelineId, fromStageId, toStageId]
54
+ add_entity User
55
+ add_field User name string default("")
56
+ add_field User username string default("")
57
+ add_field User email string default("")
58
+ add_field User emailVerified bool default(false)
59
+ add_field User externalId string default("")
60
+ add_field User capsVersion u32 default(0)
61
+ add_index User [email]
62
+ add_index User [externalId]
63
+ }
@@ -0,0 +1,73 @@
1
+ entity Contact {
2
+ firstName?: string
3
+ lastName?: string
4
+ fullName?: string
5
+ phone?: string
6
+ mobile?: string
7
+ email?: string
8
+ address?: string
9
+ fullAddress?: string
10
+ postalCode?: string
11
+ city?: string
12
+ stateOrProvince?: string
13
+ country?: string
14
+ timezone?: string
15
+ lat?: float
16
+ lon?: float
17
+ company?: string
18
+ website?: string
19
+ title?: string
20
+ industry?: string
21
+ source?: string
22
+ notes?: string
23
+ data: document
24
+ customData: document
25
+ }
26
+
27
+ entity Deal {
28
+ name: string
29
+ contact: Contact
30
+ value?: float
31
+ currency?: string
32
+ type?: string
33
+ stage?: string
34
+ pipeline?: Pipeline
35
+ pipelineStage?: PipelineStage
36
+ data: document
37
+ customData: document
38
+ }
39
+
40
+ entity Pipeline {
41
+ name: string
42
+ description?: string
43
+ stages: PipelineStage
44
+ deals: Deal
45
+ }
46
+
47
+ entity PipelineStage {
48
+ name: string
49
+ order: u32
50
+ pipeline: Pipeline
51
+ deals: Deal
52
+ }
53
+
54
+ entity PipelineStageTransition {
55
+ fromPipelineId?: u64
56
+ toPipelineId: u64
57
+ fromStageId?: u64
58
+ toStageId: u64
59
+ movedBy?: User
60
+ @@index([fromPipelineId, toPipelineId, fromStageId, toStageId])
61
+ }
62
+
63
+ entity User {
64
+ name: string
65
+ username?: string
66
+ email?: string
67
+ emailVerified: bool
68
+ externalId?: string
69
+ capsVersion: u32
70
+ @@index([email])
71
+ @@index([externalId])
72
+ }
73
+
@@ -0,0 +1,13 @@
1
+ migration schema_update {
2
+ add_entity Outcome
3
+ add_field Outcome appointmentId string default("")
4
+ add_field Outcome rating float default(0)
5
+ add_field Outcome status string default("")
6
+ add_field Outcome notes string default("")
7
+ add_field Outcome recordedAt DateTime default(0)
8
+ add_index Outcome [appointmentId]
9
+ add_field Deal status string default("")
10
+ add_field Deal appointmentId string default("")
11
+ add_field Deal totalContractPrice float default(0)
12
+ add_field Deal closedDate DateTime default(0)
13
+ }
@@ -0,0 +1,86 @@
1
+ entity Contact {
2
+ firstName?: string
3
+ lastName?: string
4
+ fullName?: string
5
+ phone?: string
6
+ mobile?: string
7
+ email?: string
8
+ address?: string
9
+ fullAddress?: string
10
+ postalCode?: string
11
+ city?: string
12
+ stateOrProvince?: string
13
+ country?: string
14
+ timezone?: string
15
+ lat?: float
16
+ lon?: float
17
+ company?: string
18
+ website?: string
19
+ title?: string
20
+ industry?: string
21
+ source?: string
22
+ notes?: string
23
+ data: document
24
+ customData: document
25
+ }
26
+
27
+ entity Outcome {
28
+ appointmentId: string
29
+ rating?: float
30
+ status?: string
31
+ notes?: string
32
+ recordedAt: DateTime
33
+ @@index([appointmentId])
34
+ }
35
+
36
+ entity Deal {
37
+ name: string
38
+ contact: Contact
39
+ value?: float
40
+ currency?: string
41
+ type?: string
42
+ stage?: string
43
+ pipeline?: Pipeline
44
+ pipelineStage?: PipelineStage
45
+ data: document
46
+ customData: document
47
+ status?: string
48
+ appointmentId?: string
49
+ totalContractPrice?: float
50
+ closedDate?: DateTime
51
+ }
52
+
53
+ entity Pipeline {
54
+ name: string
55
+ description?: string
56
+ stages: PipelineStage
57
+ deals: Deal
58
+ }
59
+
60
+ entity PipelineStage {
61
+ name: string
62
+ order: u32
63
+ pipeline: Pipeline
64
+ deals: Deal
65
+ }
66
+
67
+ entity PipelineStageTransition {
68
+ fromPipelineId?: u64
69
+ toPipelineId: u64
70
+ fromStageId?: u64
71
+ toStageId: u64
72
+ movedBy?: User
73
+ @@index([fromPipelineId, toPipelineId, fromStageId, toStageId])
74
+ }
75
+
76
+ entity User {
77
+ name: string
78
+ username?: string
79
+ email?: string
80
+ emailVerified: bool
81
+ externalId?: string
82
+ capsVersion: u32
83
+ @@index([email])
84
+ @@index([externalId])
85
+ }
86
+