@elevasis/core 0.4.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 (67) hide show
  1. package/dist/business/entities-published.d.ts +215 -0
  2. package/dist/business/entities-published.js +69 -0
  3. package/dist/index.d.ts +436 -42
  4. package/dist/index.js +601 -50
  5. package/dist/organization-model/index.d.ts +436 -42
  6. package/dist/organization-model/index.js +601 -50
  7. package/package.json +7 -3
  8. package/src/__tests__/publish.test.ts +1 -1
  9. package/src/__tests__/template-foundations-compatibility.test.ts +2 -2
  10. package/src/business/README.md +52 -0
  11. package/src/business/__tests__/entities-published.test.ts +33 -0
  12. package/src/business/acquisition/types.ts +2 -0
  13. package/src/business/entities-published.ts +24 -0
  14. package/src/commands/queue/types/task.ts +3 -3
  15. package/src/execution/engine/index.ts +8 -0
  16. package/src/execution/engine/tools/integration/server/adapters/attio/__tests__/attio-crud.integration.test.ts +2 -3
  17. package/src/execution/engine/tools/registry.ts +26 -24
  18. package/src/execution/engine/tools/tool-maps.ts +13 -9
  19. package/src/execution/engine/workflow/types.ts +2 -3
  20. package/src/organization-model/README.md +16 -12
  21. package/src/organization-model/__tests__/defaults.test.ts +175 -0
  22. package/src/organization-model/__tests__/domains/customers.test.ts +295 -0
  23. package/src/organization-model/__tests__/domains/goals.test.ts +479 -0
  24. package/src/organization-model/__tests__/domains/identity.test.ts +278 -0
  25. package/src/organization-model/__tests__/domains/navigation.test.ts +212 -0
  26. package/src/organization-model/__tests__/domains/offerings.test.ts +419 -0
  27. package/src/organization-model/__tests__/domains/operations.test.ts +203 -0
  28. package/src/organization-model/__tests__/domains/resource-mappings.test.ts +362 -0
  29. package/src/organization-model/__tests__/domains/roles.test.ts +347 -0
  30. package/src/organization-model/__tests__/domains/statuses.test.ts +243 -0
  31. package/src/organization-model/__tests__/foundation.test.ts +105 -0
  32. package/src/organization-model/__tests__/resolve.test.ts +447 -3
  33. package/src/organization-model/__tests__/schema.test.ts +407 -0
  34. package/src/organization-model/contracts.ts +12 -1
  35. package/src/organization-model/defaults.ts +53 -17
  36. package/src/organization-model/domains/customers.ts +75 -0
  37. package/src/organization-model/domains/goals.ts +80 -0
  38. package/src/organization-model/domains/identity.ts +87 -0
  39. package/src/organization-model/domains/navigation.ts +43 -4
  40. package/src/organization-model/domains/offerings.ts +66 -0
  41. package/src/organization-model/domains/operations.ts +85 -0
  42. package/src/organization-model/domains/{delivery.ts → projects.ts} +6 -6
  43. package/src/organization-model/domains/{lead-gen.ts → prospecting.ts} +5 -5
  44. package/src/organization-model/domains/roles.ts +55 -0
  45. package/src/organization-model/domains/sales.ts +94 -0
  46. package/src/organization-model/domains/shared.ts +30 -1
  47. package/src/organization-model/domains/statuses.ts +130 -0
  48. package/src/organization-model/foundation.ts +3 -3
  49. package/src/organization-model/index.ts +3 -3
  50. package/src/organization-model/organization-graph.mdx +1 -0
  51. package/src/organization-model/organization-model.mdx +84 -19
  52. package/src/organization-model/published.ts +62 -4
  53. package/src/organization-model/schema.ts +67 -7
  54. package/src/organization-model/types.ts +31 -7
  55. package/src/platform/constants/versions.ts +1 -1
  56. package/src/platform/registry/types.ts +1 -1
  57. package/src/projects/api-schemas.ts +1 -0
  58. package/src/reference/_generated/contracts.md +116 -8
  59. package/src/reference/glossary.md +25 -4
  60. package/src/requests/__tests__/api-schemas.test.ts +277 -0
  61. package/src/requests/api-schemas.ts +83 -0
  62. package/src/requests/index.ts +1 -0
  63. package/src/supabase/database.types.ts +88 -0
  64. package/src/organization-model/domains/crm.ts +0 -46
  65. /package/src/business/{delivery → projects}/index.ts +0 -0
  66. /package/src/business/{delivery → projects}/types.ts +0 -0
  67. /package/src/business/{crm → sales}/api-schemas.ts +0 -0
@@ -32,11 +32,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
32
32
  path: z.ZodString;
33
33
  surfaceType: z.ZodEnum<{
34
34
  list: "list";
35
+ settings: "settings";
35
36
  page: "page";
36
37
  dashboard: "dashboard";
37
38
  graph: "graph";
38
39
  detail: "detail";
39
- settings: "settings";
40
40
  }>;
41
41
  description: z.ZodOptional<z.ZodString>;
42
42
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -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,9 +308,61 @@ 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";
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";
359
+ declare const OPERATIONS_FEATURE_ID: "operations";
360
+ declare const MONITORING_FEATURE_ID: "monitoring";
361
+ declare const SETTINGS_FEATURE_ID: "settings";
362
+ declare const SEO_FEATURE_ID: "seo";
363
+ declare const SALES_PIPELINE_SURFACE_ID: "crm.pipeline";
364
+ declare const PROSPECTING_LISTS_SURFACE_ID: "lead-gen.lists";
365
+ declare const OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID: "operations.organization-graph";
178
366
 
179
367
  declare const OrganizationModelBrandingSchema: z.ZodObject<{
180
368
  organizationName: z.ZodString;
@@ -187,7 +375,7 @@ declare const OrganizationModelBrandingSchema: z.ZodObject<{
187
375
  }, z.core.$strip>>;
188
376
  }, z.core.$strip>;
189
377
 
190
- declare const OrganizationModelCrmSchema: z.ZodObject<{
378
+ declare const OrganizationModelSalesSchema: z.ZodObject<{
191
379
  entityId: z.ZodString;
192
380
  defaultPipelineId: z.ZodString;
193
381
  pipelines: z.ZodArray<z.ZodObject<{
@@ -215,7 +403,7 @@ declare const OrganizationModelCrmSchema: z.ZodObject<{
215
403
  }, z.core.$strip>>;
216
404
  }, z.core.$strip>;
217
405
 
218
- declare const OrganizationModelDeliverySchema: z.ZodObject<{
406
+ declare const OrganizationModelProjectsSchema: z.ZodObject<{
219
407
  projectEntityId: z.ZodString;
220
408
  milestoneEntityId: z.ZodString;
221
409
  taskEntityId: z.ZodString;
@@ -245,7 +433,7 @@ declare const OrganizationModelDeliverySchema: z.ZodObject<{
245
433
  }, z.core.$strip>>;
246
434
  }, z.core.$strip>;
247
435
 
248
- declare const OrganizationModelLeadGenSchema: z.ZodObject<{
436
+ declare const OrganizationModelProspectingSchema: z.ZodObject<{
249
437
  listEntityId: z.ZodString;
250
438
  companyEntityId: z.ZodString;
251
439
  contactEntityId: z.ZodString;
@@ -274,11 +462,11 @@ declare const SurfaceDefinitionSchema: z.ZodObject<{
274
462
  path: z.ZodString;
275
463
  surfaceType: z.ZodEnum<{
276
464
  list: "list";
465
+ settings: "settings";
277
466
  page: "page";
278
467
  dashboard: "dashboard";
279
468
  graph: "graph";
280
469
  detail: "detail";
281
- settings: "settings";
282
470
  }>;
283
471
  description: z.ZodOptional<z.ZodString>;
284
472
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -298,11 +486,11 @@ declare const OrganizationModelNavigationSchema: z.ZodObject<{
298
486
  path: z.ZodString;
299
487
  surfaceType: z.ZodEnum<{
300
488
  list: "list";
489
+ settings: "settings";
301
490
  page: "page";
302
491
  dashboard: "dashboard";
303
492
  graph: "graph";
304
493
  detail: "detail";
305
- settings: "settings";
306
494
  }>;
307
495
  description: z.ZodOptional<z.ZodString>;
308
496
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -317,45 +505,251 @@ declare const OrganizationModelNavigationSchema: z.ZodObject<{
317
505
  groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
318
506
  id: z.ZodString;
319
507
  label: z.ZodString;
320
- placement: z.ZodEnum<{
321
- primary: "primary";
322
- secondary: "secondary";
323
- bottom: "bottom";
324
- }>;
508
+ placement: z.ZodString;
325
509
  surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
326
510
  }, z.core.$strip>>>;
327
511
  }, z.core.$strip>;
328
512
 
329
- 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;
330
522
  label: z.ZodString;
331
- description: z.ZodOptional<z.ZodString>;
332
- color: z.ZodOptional<z.ZodString>;
333
- 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<{
334
561
  id: z.ZodString;
335
- resourceId: z.ZodString;
336
- resourceType: z.ZodEnum<{
337
- agent: "agent";
338
- workflow: "workflow";
339
- trigger: "trigger";
340
- integration: "integration";
341
- external: "external";
342
- 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";
343
572
  }>;
344
- featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
345
- entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
346
- surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
347
- 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>>>;
348
723
  }, z.core.$strip>;
724
+ declare const DEFAULT_ORGANIZATION_MODEL_GOALS: z.infer<typeof GoalsDomainSchema>;
349
725
 
350
726
  type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
351
727
  type OrganizationModelBranding = z.infer<typeof OrganizationModelBrandingSchema>;
352
- type OrganizationModelCrm = z.infer<typeof OrganizationModelCrmSchema>;
353
- type OrganizationModelLeadGen = z.infer<typeof OrganizationModelLeadGenSchema>;
354
- 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>;
355
731
  type OrganizationModelFeature = z.infer<typeof FeatureSchema>;
356
732
  type OrganizationModelNavigation = z.infer<typeof OrganizationModelNavigationSchema>;
357
733
  type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>;
358
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>;
359
753
  type DeepPartial<T> = T extends Array<infer U> ? Array<DeepPartial<U>> : T extends object ? {
360
754
  [K in keyof T]?: DeepPartial<T[K]>;
361
755
  } : T;
@@ -383,7 +777,7 @@ interface FoundationBranding {
383
777
  productName: string;
384
778
  shortName: string;
385
779
  }
386
- declare function createFoundationOrganizationModel(branding: FoundationBranding): {
780
+ declare function createFoundationOrganizationModel(override: DeepPartial<OrganizationModel>): {
387
781
  canonical: OrganizationModel;
388
782
  model: FoundationOrganizationModel;
389
783
  homeLabel: string;
@@ -391,5 +785,5 @@ declare function createFoundationOrganizationModel(branding: FoundationBranding)
391
785
  getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
392
786
  };
393
787
 
394
- export { DEFAULT_ORGANIZATION_MODEL, DELIVERY_PROJECTS_VIEW_CAPABILITY_ID, FeatureSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
395
- 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 };