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