@elevasis/core 0.5.0 → 0.7.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 (66) hide show
  1. package/dist/index.d.ts +428 -42
  2. package/dist/index.js +596 -47
  3. package/dist/organization-model/index.d.ts +428 -42
  4. package/dist/organization-model/index.js +596 -47
  5. package/package.json +4 -3
  6. package/src/__tests__/template-foundations-compatibility.test.ts +2 -2
  7. package/src/_gen/__tests__/__snapshots__/contracts.md.snap +1131 -0
  8. package/src/_gen/__tests__/scaffold-contracts.test.ts +53 -0
  9. package/src/_gen/scaffold-contracts.ts +45 -0
  10. package/src/business/acquisition/types.ts +2 -0
  11. package/src/commands/queue/types/task.ts +3 -3
  12. package/src/execution/engine/index.ts +8 -0
  13. package/src/execution/engine/tools/registry.ts +26 -24
  14. package/src/execution/engine/tools/tool-maps.ts +13 -9
  15. package/src/execution/engine/workflow/types.ts +2 -3
  16. package/src/index.ts +10 -0
  17. package/src/organization-model/README.md +16 -12
  18. package/src/organization-model/__tests__/defaults.test.ts +175 -0
  19. package/src/organization-model/__tests__/domains/customers.test.ts +295 -0
  20. package/src/organization-model/__tests__/domains/goals.test.ts +479 -0
  21. package/src/organization-model/__tests__/domains/identity.test.ts +279 -0
  22. package/src/organization-model/__tests__/domains/navigation.test.ts +212 -0
  23. package/src/organization-model/__tests__/domains/offerings.test.ts +419 -0
  24. package/src/organization-model/__tests__/domains/operations.test.ts +203 -0
  25. package/src/organization-model/__tests__/domains/resource-mappings.test.ts +362 -0
  26. package/src/organization-model/__tests__/domains/roles.test.ts +347 -0
  27. package/src/organization-model/__tests__/domains/statuses.test.ts +243 -0
  28. package/src/organization-model/__tests__/foundation.test.ts +3 -3
  29. package/src/organization-model/__tests__/resolve.test.ts +447 -3
  30. package/src/organization-model/__tests__/schema.test.ts +407 -0
  31. package/src/organization-model/contracts.ts +5 -5
  32. package/src/organization-model/defaults.ts +39 -16
  33. package/src/organization-model/domains/customers.ts +75 -0
  34. package/src/organization-model/domains/goals.ts +80 -0
  35. package/src/organization-model/domains/identity.ts +94 -0
  36. package/src/organization-model/domains/navigation.ts +43 -4
  37. package/src/organization-model/domains/offerings.ts +66 -0
  38. package/src/organization-model/domains/operations.ts +85 -0
  39. package/src/organization-model/domains/{delivery.ts → projects.ts} +6 -6
  40. package/src/organization-model/domains/{lead-gen.ts → prospecting.ts} +5 -5
  41. package/src/organization-model/domains/roles.ts +55 -0
  42. package/src/organization-model/domains/sales.ts +94 -0
  43. package/src/organization-model/domains/shared.ts +30 -1
  44. package/src/organization-model/domains/statuses.ts +130 -0
  45. package/src/organization-model/index.ts +3 -3
  46. package/src/organization-model/organization-graph.mdx +1 -0
  47. package/src/organization-model/organization-model.mdx +84 -19
  48. package/src/organization-model/published.ts +53 -8
  49. package/src/organization-model/schema.ts +67 -7
  50. package/src/organization-model/types.ts +31 -7
  51. package/src/platform/constants/versions.ts +1 -1
  52. package/src/platform/registry/types.ts +1 -1
  53. package/src/projects/api-schemas.ts +1 -0
  54. package/src/reference/_generated/contracts.md +116 -8
  55. package/src/reference/glossary.md +25 -4
  56. package/src/requests/__tests__/api-schemas.test.ts +277 -0
  57. package/src/requests/api-schemas.ts +83 -0
  58. package/src/requests/index.ts +1 -0
  59. package/src/scaffold-registry/__tests__/schema.test.ts +280 -0
  60. package/src/scaffold-registry/index.ts +194 -0
  61. package/src/scaffold-registry/schema.ts +144 -0
  62. package/src/supabase/database.types.ts +158 -6
  63. package/src/organization-model/domains/crm.ts +0 -46
  64. /package/src/business/{delivery → projects}/index.ts +0 -0
  65. /package/src/business/{delivery → projects}/types.ts +0 -0
  66. /package/src/business/{crm → sales}/api-schemas.ts +0 -0
@@ -51,15 +51,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
51
51
  groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
52
52
  id: z.ZodString;
53
53
  label: z.ZodString;
54
- placement: z.ZodEnum<{
55
- primary: "primary";
56
- secondary: "secondary";
57
- bottom: "bottom";
58
- }>;
54
+ placement: z.ZodString;
59
55
  surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
60
56
  }, z.core.$strip>>>;
61
57
  }, z.core.$strip>;
62
- crm: z.ZodObject<{
58
+ sales: z.ZodObject<{
63
59
  entityId: z.ZodString;
64
60
  defaultPipelineId: z.ZodString;
65
61
  pipelines: z.ZodArray<z.ZodObject<{
@@ -86,7 +82,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
86
82
  }, z.core.$strip>>;
87
83
  }, z.core.$strip>>;
88
84
  }, z.core.$strip>;
89
- leadGen: z.ZodObject<{
85
+ prospecting: z.ZodObject<{
90
86
  listEntityId: z.ZodString;
91
87
  companyEntityId: z.ZodString;
92
88
  contactEntityId: z.ZodString;
@@ -108,7 +104,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
108
104
  order: z.ZodNumber;
109
105
  }, z.core.$strip>>;
110
106
  }, z.core.$strip>;
111
- delivery: z.ZodObject<{
107
+ projects: z.ZodObject<{
112
108
  projectEntityId: z.ZodString;
113
109
  milestoneEntityId: z.ZodString;
114
110
  taskEntityId: z.ZodString;
@@ -137,6 +133,136 @@ declare const OrganizationModelSchema: z.ZodObject<{
137
133
  order: z.ZodNumber;
138
134
  }, z.core.$strip>>;
139
135
  }, z.core.$strip>;
136
+ identity: z.ZodDefault<z.ZodObject<{
137
+ mission: z.ZodDefault<z.ZodString>;
138
+ vision: z.ZodDefault<z.ZodString>;
139
+ legalName: z.ZodDefault<z.ZodString>;
140
+ entityType: z.ZodDefault<z.ZodString>;
141
+ jurisdiction: z.ZodDefault<z.ZodString>;
142
+ industryCategory: z.ZodDefault<z.ZodString>;
143
+ geographicFocus: z.ZodDefault<z.ZodString>;
144
+ timeZone: z.ZodDefault<z.ZodString>;
145
+ businessHours: z.ZodDefault<z.ZodObject<{
146
+ monday: z.ZodOptional<z.ZodObject<{
147
+ open: z.ZodString;
148
+ close: z.ZodString;
149
+ }, z.core.$strip>>;
150
+ tuesday: z.ZodOptional<z.ZodObject<{
151
+ open: z.ZodString;
152
+ close: z.ZodString;
153
+ }, z.core.$strip>>;
154
+ wednesday: z.ZodOptional<z.ZodObject<{
155
+ open: z.ZodString;
156
+ close: z.ZodString;
157
+ }, z.core.$strip>>;
158
+ thursday: z.ZodOptional<z.ZodObject<{
159
+ open: z.ZodString;
160
+ close: z.ZodString;
161
+ }, z.core.$strip>>;
162
+ friday: z.ZodOptional<z.ZodObject<{
163
+ open: z.ZodString;
164
+ close: z.ZodString;
165
+ }, z.core.$strip>>;
166
+ saturday: z.ZodOptional<z.ZodObject<{
167
+ open: z.ZodString;
168
+ close: z.ZodString;
169
+ }, z.core.$strip>>;
170
+ sunday: z.ZodOptional<z.ZodObject<{
171
+ open: z.ZodString;
172
+ close: z.ZodString;
173
+ }, z.core.$strip>>;
174
+ }, z.core.$strip>>;
175
+ clientBrief: z.ZodDefault<z.ZodString>;
176
+ }, z.core.$strip>>;
177
+ customers: z.ZodDefault<z.ZodObject<{
178
+ segments: z.ZodDefault<z.ZodArray<z.ZodObject<{
179
+ id: z.ZodString;
180
+ name: z.ZodDefault<z.ZodString>;
181
+ description: z.ZodDefault<z.ZodString>;
182
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
183
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
184
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
185
+ firmographics: z.ZodDefault<z.ZodObject<{
186
+ industry: z.ZodOptional<z.ZodString>;
187
+ companySize: z.ZodOptional<z.ZodString>;
188
+ region: z.ZodOptional<z.ZodString>;
189
+ }, z.core.$strip>>;
190
+ valueProp: z.ZodDefault<z.ZodString>;
191
+ }, z.core.$strip>>>;
192
+ }, z.core.$strip>>;
193
+ offerings: z.ZodDefault<z.ZodObject<{
194
+ products: z.ZodDefault<z.ZodArray<z.ZodObject<{
195
+ id: z.ZodString;
196
+ name: z.ZodDefault<z.ZodString>;
197
+ description: z.ZodDefault<z.ZodString>;
198
+ pricingModel: z.ZodDefault<z.ZodEnum<{
199
+ custom: "custom";
200
+ "one-time": "one-time";
201
+ subscription: "subscription";
202
+ "usage-based": "usage-based";
203
+ }>>;
204
+ price: z.ZodDefault<z.ZodNumber>;
205
+ currency: z.ZodDefault<z.ZodString>;
206
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
207
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
208
+ }, z.core.$strip>>>;
209
+ }, z.core.$strip>>;
210
+ roles: z.ZodDefault<z.ZodObject<{
211
+ roles: z.ZodDefault<z.ZodArray<z.ZodObject<{
212
+ id: z.ZodString;
213
+ title: z.ZodString;
214
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
215
+ reportsToId: z.ZodOptional<z.ZodString>;
216
+ heldBy: z.ZodOptional<z.ZodString>;
217
+ }, z.core.$strip>>>;
218
+ }, z.core.$strip>>;
219
+ goals: z.ZodDefault<z.ZodObject<{
220
+ objectives: z.ZodDefault<z.ZodArray<z.ZodObject<{
221
+ id: z.ZodString;
222
+ description: z.ZodString;
223
+ periodStart: z.ZodString;
224
+ periodEnd: z.ZodString;
225
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
226
+ id: z.ZodString;
227
+ description: z.ZodString;
228
+ targetMetric: z.ZodString;
229
+ currentValue: z.ZodDefault<z.ZodNumber>;
230
+ targetValue: z.ZodOptional<z.ZodNumber>;
231
+ }, z.core.$strip>>>;
232
+ }, z.core.$strip>>>;
233
+ }, z.core.$strip>>;
234
+ statuses: z.ZodDefault<z.ZodObject<{
235
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
236
+ id: z.ZodString;
237
+ label: z.ZodString;
238
+ semanticClass: z.ZodEnum<{
239
+ execution: "execution";
240
+ schedule: "schedule";
241
+ queue: "queue";
242
+ "delivery.project": "delivery.project";
243
+ "delivery.milestone": "delivery.milestone";
244
+ "delivery.task": "delivery.task";
245
+ "schedule.run": "schedule.run";
246
+ request: "request";
247
+ }>;
248
+ category: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strip>>>;
250
+ }, z.core.$strip>>;
251
+ operations: z.ZodDefault<z.ZodObject<{
252
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
253
+ id: z.ZodString;
254
+ label: z.ZodString;
255
+ semanticClass: z.ZodEnum<{
256
+ sessions: "sessions";
257
+ notifications: "notifications";
258
+ schedules: "schedules";
259
+ executions: "executions";
260
+ queue: "queue";
261
+ }>;
262
+ featureId: z.ZodOptional<z.ZodString>;
263
+ supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
+ }, z.core.$strip>>>;
265
+ }, z.core.$strip>>;
140
266
  resourceMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
141
267
  label: z.ZodString;
142
268
  description: z.ZodOptional<z.ZodString>;
@@ -156,6 +282,17 @@ declare const OrganizationModelSchema: z.ZodObject<{
156
282
  entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
157
283
  surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
158
284
  capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
285
+ techStack: z.ZodOptional<z.ZodObject<{
286
+ platform: z.ZodString;
287
+ purpose: z.ZodString;
288
+ credentialStatus: z.ZodEnum<{
289
+ pending: "pending";
290
+ configured: "configured";
291
+ expired: "expired";
292
+ missing: "missing";
293
+ }>;
294
+ isSystemOfRecord: z.ZodDefault<z.ZodBoolean>;
295
+ }, z.core.$strip>>;
159
296
  }, z.core.$strip>>>;
160
297
  }, z.core.$strip>;
161
298
 
@@ -172,17 +309,60 @@ declare const FeatureSchema: z.ZodObject<{
172
309
  capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
173
310
  }, z.core.$strip>;
174
311
 
312
+ declare const TechStackEntrySchema: z.ZodObject<{
313
+ platform: z.ZodString;
314
+ purpose: z.ZodString;
315
+ credentialStatus: z.ZodEnum<{
316
+ pending: "pending";
317
+ configured: "configured";
318
+ expired: "expired";
319
+ missing: "missing";
320
+ }>;
321
+ isSystemOfRecord: z.ZodDefault<z.ZodBoolean>;
322
+ }, z.core.$strip>;
323
+ declare const ResourceMappingSchema: z.ZodObject<{
324
+ label: z.ZodString;
325
+ description: z.ZodOptional<z.ZodString>;
326
+ color: z.ZodOptional<z.ZodString>;
327
+ icon: z.ZodOptional<z.ZodString>;
328
+ id: z.ZodString;
329
+ resourceId: z.ZodString;
330
+ resourceType: z.ZodEnum<{
331
+ agent: "agent";
332
+ workflow: "workflow";
333
+ trigger: "trigger";
334
+ integration: "integration";
335
+ external: "external";
336
+ human_checkpoint: "human_checkpoint";
337
+ }>;
338
+ featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
339
+ entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
340
+ surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
341
+ capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
342
+ techStack: z.ZodOptional<z.ZodObject<{
343
+ platform: z.ZodString;
344
+ purpose: z.ZodString;
345
+ credentialStatus: z.ZodEnum<{
346
+ pending: "pending";
347
+ configured: "configured";
348
+ expired: "expired";
349
+ missing: "missing";
350
+ }>;
351
+ isSystemOfRecord: z.ZodDefault<z.ZodBoolean>;
352
+ }, z.core.$strip>>;
353
+ }, z.core.$strip>;
354
+
175
355
  declare const PROJECTS_FEATURE_ID: "projects";
176
356
  declare const PROJECTS_INDEX_SURFACE_ID: "projects.index";
177
- declare const DELIVERY_PROJECTS_VIEW_CAPABILITY_ID: "delivery.projects.view";
178
- declare const CRM_FEATURE_ID: "crm";
179
- declare const LEAD_GEN_FEATURE_ID: "lead-gen";
357
+ declare const PROJECTS_VIEW_CAPABILITY_ID: "delivery.projects.view";
358
+ declare const SALES_FEATURE_ID: "crm";
359
+ declare const PROSPECTING_FEATURE_ID: "lead-gen";
180
360
  declare const OPERATIONS_FEATURE_ID: "operations";
181
361
  declare const MONITORING_FEATURE_ID: "monitoring";
182
362
  declare const SETTINGS_FEATURE_ID: "settings";
183
363
  declare const SEO_FEATURE_ID: "seo";
184
- declare const CRM_PIPELINE_SURFACE_ID: "crm.pipeline";
185
- declare const LEAD_GEN_LISTS_SURFACE_ID: "lead-gen.lists";
364
+ declare const SALES_PIPELINE_SURFACE_ID: "crm.pipeline";
365
+ declare const PROSPECTING_LISTS_SURFACE_ID: "lead-gen.lists";
186
366
  declare const OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID: "operations.organization-graph";
187
367
 
188
368
  declare const OrganizationModelBrandingSchema: z.ZodObject<{
@@ -196,7 +376,7 @@ declare const OrganizationModelBrandingSchema: z.ZodObject<{
196
376
  }, z.core.$strip>>;
197
377
  }, z.core.$strip>;
198
378
 
199
- declare const OrganizationModelCrmSchema: z.ZodObject<{
379
+ declare const OrganizationModelSalesSchema: z.ZodObject<{
200
380
  entityId: z.ZodString;
201
381
  defaultPipelineId: z.ZodString;
202
382
  pipelines: z.ZodArray<z.ZodObject<{
@@ -224,7 +404,7 @@ declare const OrganizationModelCrmSchema: z.ZodObject<{
224
404
  }, z.core.$strip>>;
225
405
  }, z.core.$strip>;
226
406
 
227
- declare const OrganizationModelDeliverySchema: z.ZodObject<{
407
+ declare const OrganizationModelProjectsSchema: z.ZodObject<{
228
408
  projectEntityId: z.ZodString;
229
409
  milestoneEntityId: z.ZodString;
230
410
  taskEntityId: z.ZodString;
@@ -254,7 +434,7 @@ declare const OrganizationModelDeliverySchema: z.ZodObject<{
254
434
  }, z.core.$strip>>;
255
435
  }, z.core.$strip>;
256
436
 
257
- declare const OrganizationModelLeadGenSchema: z.ZodObject<{
437
+ declare const OrganizationModelProspectingSchema: z.ZodObject<{
258
438
  listEntityId: z.ZodString;
259
439
  companyEntityId: z.ZodString;
260
440
  contactEntityId: z.ZodString;
@@ -326,45 +506,251 @@ declare const OrganizationModelNavigationSchema: z.ZodObject<{
326
506
  groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
327
507
  id: z.ZodString;
328
508
  label: z.ZodString;
329
- placement: z.ZodEnum<{
330
- primary: "primary";
331
- secondary: "secondary";
332
- bottom: "bottom";
333
- }>;
509
+ placement: z.ZodString;
334
510
  surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
335
511
  }, z.core.$strip>>>;
336
512
  }, z.core.$strip>;
337
513
 
338
- declare const ResourceMappingSchema: z.ZodObject<{
514
+ declare const OperationSemanticClassSchema: z.ZodEnum<{
515
+ sessions: "sessions";
516
+ notifications: "notifications";
517
+ schedules: "schedules";
518
+ executions: "executions";
519
+ queue: "queue";
520
+ }>;
521
+ declare const OperationEntrySchema: z.ZodObject<{
522
+ id: z.ZodString;
339
523
  label: z.ZodString;
340
- description: z.ZodOptional<z.ZodString>;
341
- color: z.ZodOptional<z.ZodString>;
342
- icon: z.ZodOptional<z.ZodString>;
524
+ semanticClass: z.ZodEnum<{
525
+ sessions: "sessions";
526
+ notifications: "notifications";
527
+ schedules: "schedules";
528
+ executions: "executions";
529
+ queue: "queue";
530
+ }>;
531
+ featureId: z.ZodOptional<z.ZodString>;
532
+ supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
533
+ }, z.core.$strip>;
534
+ declare const OperationsDomainSchema: z.ZodObject<{
535
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
536
+ id: z.ZodString;
537
+ label: z.ZodString;
538
+ semanticClass: z.ZodEnum<{
539
+ sessions: "sessions";
540
+ notifications: "notifications";
541
+ schedules: "schedules";
542
+ executions: "executions";
543
+ queue: "queue";
544
+ }>;
545
+ featureId: z.ZodOptional<z.ZodString>;
546
+ supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
547
+ }, z.core.$strip>>>;
548
+ }, z.core.$strip>;
549
+ declare const DEFAULT_ORGANIZATION_MODEL_OPERATIONS: z.infer<typeof OperationsDomainSchema>;
550
+
551
+ declare const StatusSemanticClassSchema: z.ZodEnum<{
552
+ execution: "execution";
553
+ schedule: "schedule";
554
+ queue: "queue";
555
+ "delivery.project": "delivery.project";
556
+ "delivery.milestone": "delivery.milestone";
557
+ "delivery.task": "delivery.task";
558
+ "schedule.run": "schedule.run";
559
+ request: "request";
560
+ }>;
561
+ declare const StatusEntrySchema: z.ZodObject<{
343
562
  id: z.ZodString;
344
- resourceId: z.ZodString;
345
- resourceType: z.ZodEnum<{
346
- agent: "agent";
347
- workflow: "workflow";
348
- trigger: "trigger";
349
- integration: "integration";
350
- external: "external";
351
- human_checkpoint: "human_checkpoint";
563
+ label: z.ZodString;
564
+ semanticClass: z.ZodEnum<{
565
+ execution: "execution";
566
+ schedule: "schedule";
567
+ queue: "queue";
568
+ "delivery.project": "delivery.project";
569
+ "delivery.milestone": "delivery.milestone";
570
+ "delivery.task": "delivery.task";
571
+ "schedule.run": "schedule.run";
572
+ request: "request";
352
573
  }>;
353
- featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
354
- entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
355
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
356
- capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
574
+ category: z.ZodOptional<z.ZodString>;
575
+ }, z.core.$strip>;
576
+ declare const StatusesDomainSchema: z.ZodObject<{
577
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
578
+ id: z.ZodString;
579
+ label: z.ZodString;
580
+ semanticClass: z.ZodEnum<{
581
+ execution: "execution";
582
+ schedule: "schedule";
583
+ queue: "queue";
584
+ "delivery.project": "delivery.project";
585
+ "delivery.milestone": "delivery.milestone";
586
+ "delivery.task": "delivery.task";
587
+ "schedule.run": "schedule.run";
588
+ request: "request";
589
+ }>;
590
+ category: z.ZodOptional<z.ZodString>;
591
+ }, z.core.$strip>>>;
592
+ }, z.core.$strip>;
593
+ declare const DEFAULT_ORGANIZATION_MODEL_STATUSES: z.infer<typeof StatusesDomainSchema>;
594
+
595
+ declare const FirmographicsSchema: z.ZodObject<{
596
+ industry: z.ZodOptional<z.ZodString>;
597
+ companySize: z.ZodOptional<z.ZodString>;
598
+ region: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strip>;
600
+ declare const CustomerSegmentSchema: z.ZodObject<{
601
+ id: z.ZodString;
602
+ name: z.ZodDefault<z.ZodString>;
603
+ description: z.ZodDefault<z.ZodString>;
604
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
605
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
606
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
607
+ firmographics: z.ZodDefault<z.ZodObject<{
608
+ industry: z.ZodOptional<z.ZodString>;
609
+ companySize: z.ZodOptional<z.ZodString>;
610
+ region: z.ZodOptional<z.ZodString>;
611
+ }, z.core.$strip>>;
612
+ valueProp: z.ZodDefault<z.ZodString>;
613
+ }, z.core.$strip>;
614
+ declare const CustomersDomainSchema: z.ZodObject<{
615
+ segments: z.ZodDefault<z.ZodArray<z.ZodObject<{
616
+ id: z.ZodString;
617
+ name: z.ZodDefault<z.ZodString>;
618
+ description: z.ZodDefault<z.ZodString>;
619
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
620
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
621
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
622
+ firmographics: z.ZodDefault<z.ZodObject<{
623
+ industry: z.ZodOptional<z.ZodString>;
624
+ companySize: z.ZodOptional<z.ZodString>;
625
+ region: z.ZodOptional<z.ZodString>;
626
+ }, z.core.$strip>>;
627
+ valueProp: z.ZodDefault<z.ZodString>;
628
+ }, z.core.$strip>>>;
629
+ }, z.core.$strip>;
630
+ declare const DEFAULT_ORGANIZATION_MODEL_CUSTOMERS: z.infer<typeof CustomersDomainSchema>;
631
+
632
+ declare const PricingModelSchema: z.ZodEnum<{
633
+ custom: "custom";
634
+ "one-time": "one-time";
635
+ subscription: "subscription";
636
+ "usage-based": "usage-based";
637
+ }>;
638
+ declare const ProductSchema: z.ZodObject<{
639
+ id: z.ZodString;
640
+ name: z.ZodDefault<z.ZodString>;
641
+ description: z.ZodDefault<z.ZodString>;
642
+ pricingModel: z.ZodDefault<z.ZodEnum<{
643
+ custom: "custom";
644
+ "one-time": "one-time";
645
+ subscription: "subscription";
646
+ "usage-based": "usage-based";
647
+ }>>;
648
+ price: z.ZodDefault<z.ZodNumber>;
649
+ currency: z.ZodDefault<z.ZodString>;
650
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
651
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
652
+ }, z.core.$strip>;
653
+ declare const OfferingsDomainSchema: z.ZodObject<{
654
+ products: z.ZodDefault<z.ZodArray<z.ZodObject<{
655
+ id: z.ZodString;
656
+ name: z.ZodDefault<z.ZodString>;
657
+ description: z.ZodDefault<z.ZodString>;
658
+ pricingModel: z.ZodDefault<z.ZodEnum<{
659
+ custom: "custom";
660
+ "one-time": "one-time";
661
+ subscription: "subscription";
662
+ "usage-based": "usage-based";
663
+ }>>;
664
+ price: z.ZodDefault<z.ZodNumber>;
665
+ currency: z.ZodDefault<z.ZodString>;
666
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
667
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
668
+ }, z.core.$strip>>>;
669
+ }, z.core.$strip>;
670
+ declare const DEFAULT_ORGANIZATION_MODEL_OFFERINGS: z.infer<typeof OfferingsDomainSchema>;
671
+
672
+ declare const RoleSchema: z.ZodObject<{
673
+ id: z.ZodString;
674
+ title: z.ZodString;
675
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
676
+ reportsToId: z.ZodOptional<z.ZodString>;
677
+ heldBy: z.ZodOptional<z.ZodString>;
678
+ }, z.core.$strip>;
679
+ declare const RolesDomainSchema: z.ZodObject<{
680
+ roles: z.ZodDefault<z.ZodArray<z.ZodObject<{
681
+ id: z.ZodString;
682
+ title: z.ZodString;
683
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
684
+ reportsToId: z.ZodOptional<z.ZodString>;
685
+ heldBy: z.ZodOptional<z.ZodString>;
686
+ }, z.core.$strip>>>;
687
+ }, z.core.$strip>;
688
+ declare const DEFAULT_ORGANIZATION_MODEL_ROLES: z.infer<typeof RolesDomainSchema>;
689
+
690
+ declare const KeyResultSchema: z.ZodObject<{
691
+ id: z.ZodString;
692
+ description: z.ZodString;
693
+ targetMetric: z.ZodString;
694
+ currentValue: z.ZodDefault<z.ZodNumber>;
695
+ targetValue: z.ZodOptional<z.ZodNumber>;
696
+ }, z.core.$strip>;
697
+ declare const ObjectiveSchema: z.ZodObject<{
698
+ id: z.ZodString;
699
+ description: z.ZodString;
700
+ periodStart: z.ZodString;
701
+ periodEnd: z.ZodString;
702
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
703
+ id: z.ZodString;
704
+ description: z.ZodString;
705
+ targetMetric: z.ZodString;
706
+ currentValue: z.ZodDefault<z.ZodNumber>;
707
+ targetValue: z.ZodOptional<z.ZodNumber>;
708
+ }, z.core.$strip>>>;
709
+ }, z.core.$strip>;
710
+ declare const GoalsDomainSchema: z.ZodObject<{
711
+ objectives: z.ZodDefault<z.ZodArray<z.ZodObject<{
712
+ id: z.ZodString;
713
+ description: z.ZodString;
714
+ periodStart: z.ZodString;
715
+ periodEnd: z.ZodString;
716
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
717
+ id: z.ZodString;
718
+ description: z.ZodString;
719
+ targetMetric: z.ZodString;
720
+ currentValue: z.ZodDefault<z.ZodNumber>;
721
+ targetValue: z.ZodOptional<z.ZodNumber>;
722
+ }, z.core.$strip>>>;
723
+ }, z.core.$strip>>>;
357
724
  }, z.core.$strip>;
725
+ declare const DEFAULT_ORGANIZATION_MODEL_GOALS: z.infer<typeof GoalsDomainSchema>;
358
726
 
359
727
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
360
728
  type OrganizationModelBranding = z.infer<typeof OrganizationModelBrandingSchema>;
361
- type OrganizationModelCrm = z.infer<typeof OrganizationModelCrmSchema>;
362
- type OrganizationModelLeadGen = z.infer<typeof OrganizationModelLeadGenSchema>;
363
- type OrganizationModelDelivery = z.infer<typeof OrganizationModelDeliverySchema>;
729
+ type OrganizationModelSales = z.infer<typeof OrganizationModelSalesSchema>;
730
+ type OrganizationModelProspecting = z.infer<typeof OrganizationModelProspectingSchema>;
731
+ type OrganizationModelProjects = z.infer<typeof OrganizationModelProjectsSchema>;
364
732
  type OrganizationModelFeature = z.infer<typeof FeatureSchema>;
365
733
  type OrganizationModelNavigation = z.infer<typeof OrganizationModelNavigationSchema>;
366
734
  type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>;
367
735
  type OrganizationModelResourceMapping = z.infer<typeof ResourceMappingSchema>;
736
+ type OrganizationModelTechStackEntry = z.infer<typeof TechStackEntrySchema>;
737
+ type OrganizationModelStatuses = z.infer<typeof StatusesDomainSchema>;
738
+ type OrganizationModelStatusEntry = z.infer<typeof StatusEntrySchema>;
739
+ type OrganizationModelStatusSemanticClass = z.infer<typeof StatusSemanticClassSchema>;
740
+ type OrganizationModelOperations = z.infer<typeof OperationsDomainSchema>;
741
+ type OrganizationModelOperationEntry = z.infer<typeof OperationEntrySchema>;
742
+ type OrganizationModelOperationSemanticClass = z.infer<typeof OperationSemanticClassSchema>;
743
+ type OrganizationModelCustomers = z.infer<typeof CustomersDomainSchema>;
744
+ type OrganizationModelCustomerSegment = z.infer<typeof CustomerSegmentSchema>;
745
+ type OrganizationModelCustomerFirmographics = z.infer<typeof FirmographicsSchema>;
746
+ type OrganizationModelOfferings = z.infer<typeof OfferingsDomainSchema>;
747
+ type OrganizationModelProduct = z.infer<typeof ProductSchema>;
748
+ type OrganizationModelPricingModel = z.infer<typeof PricingModelSchema>;
749
+ type OrganizationModelRoles = z.infer<typeof RolesDomainSchema>;
750
+ type OrganizationModelRole = z.infer<typeof RoleSchema>;
751
+ type OrganizationModelGoals = z.infer<typeof GoalsDomainSchema>;
752
+ type OrganizationModelObjective = z.infer<typeof ObjectiveSchema>;
753
+ type OrganizationModelKeyResult = z.infer<typeof KeyResultSchema>;
368
754
  type DeepPartial<T> = T extends Array<infer U> ? Array<DeepPartial<U>> : T extends object ? {
369
755
  [K in keyof T]?: DeepPartial<T[K]>;
370
756
  } : T;
@@ -400,5 +786,5 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
400
786
  getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
401
787
  };
402
788
 
403
- export { CRM_FEATURE_ID, CRM_PIPELINE_SURFACE_ID, DEFAULT_ORGANIZATION_MODEL, DELIVERY_PROJECTS_VIEW_CAPABILITY_ID, FeatureSchema, LEAD_GEN_FEATURE_ID, LEAD_GEN_LISTS_SURFACE_ID, MONITORING_FEATURE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, SEO_FEATURE_ID, SETTINGS_FEATURE_ID, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
404
- export type { DeepPartial, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, OrganizationModel, OrganizationModelBranding, OrganizationModelCrm, OrganizationModelDelivery, OrganizationModelFeature, OrganizationModelLeadGen, OrganizationModelNavigation, OrganizationModelResourceMapping, OrganizationModelSurface };
789
+ export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, KeyResultSchema, MONITORING_FEATURE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID, ObjectiveSchema, OfferingsDomainSchema, OperationEntrySchema, OperationSemanticClassSchema, OperationsDomainSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_VIEW_CAPABILITY_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PricingModelSchema, ProductSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SEO_FEATURE_ID, SETTINGS_FEATURE_ID, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, TechStackEntrySchema, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
790
+ export type { DeepPartial, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, OrganizationModel, OrganizationModelBranding, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelFeature, OrganizationModelGoals, OrganizationModelKeyResult, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelOperationEntry, OrganizationModelOperationSemanticClass, OrganizationModelOperations, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelProjects, OrganizationModelProspecting, OrganizationModelResourceMapping, OrganizationModelRole, OrganizationModelRoles, OrganizationModelSales, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSurface, OrganizationModelTechStackEntry };