@elevasis/core 0.10.0 → 0.11.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.
- package/dist/index.d.ts +67 -159
- package/dist/index.js +321 -613
- package/dist/organization-model/index.d.ts +67 -159
- package/dist/organization-model/index.js +321 -613
- package/dist/test-utils/index.d.ts +17 -45
- package/dist/test-utils/index.js +254 -600
- package/package.json +1 -1
- package/src/__tests__/template-core-compatibility.test.ts +73 -91
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +62 -148
- package/src/organization-model/README.md +101 -97
- package/src/organization-model/__tests__/domains/resource-mappings.test.ts +24 -93
- package/src/organization-model/__tests__/graph.test.ts +82 -894
- package/src/organization-model/__tests__/resolve.test.ts +59 -690
- package/src/organization-model/__tests__/schema.test.ts +83 -407
- package/src/organization-model/defaults.ts +276 -141
- package/src/organization-model/domains/features.ts +31 -22
- package/src/organization-model/foundation.ts +42 -54
- package/src/organization-model/graph/build.ts +42 -217
- package/src/organization-model/graph/index.ts +4 -4
- package/src/organization-model/graph/link.ts +10 -0
- package/src/organization-model/graph/schema.ts +21 -16
- package/src/organization-model/graph/types.ts +10 -10
- package/src/organization-model/helpers.ts +74 -0
- package/src/organization-model/index.ts +7 -7
- package/src/organization-model/organization-graph.mdx +89 -272
- package/src/organization-model/organization-model.mdx +149 -320
- package/src/organization-model/published.ts +15 -15
- package/src/organization-model/resolve.ts +8 -33
- package/src/organization-model/schema.ts +63 -205
- package/src/organization-model/types.ts +12 -11
- package/src/platform/registry/__tests__/command-view.test.ts +6 -5
- package/src/platform/registry/__tests__/resource-link.test.ts +30 -0
- package/src/platform/registry/__tests__/resource-registry.integration.test.ts +15 -15
- package/src/platform/registry/command-view.ts +10 -12
- package/src/platform/registry/index.ts +13 -8
- package/src/platform/registry/resource-link.ts +32 -0
- package/src/platform/registry/resource-registry.ts +12 -10
- package/src/platform/registry/serialization.ts +56 -73
- package/src/platform/registry/serialized-types.ts +17 -12
- package/src/platform/registry/types.ts +14 -43
- package/src/reference/_generated/contracts.md +62 -148
- package/src/reference/glossary.md +71 -105
- package/src/platform/registry/domains.ts +0 -165
package/dist/index.d.ts
CHANGED
|
@@ -7,12 +7,15 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
7
7
|
label: z.ZodString;
|
|
8
8
|
description: z.ZodOptional<z.ZodString>;
|
|
9
9
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
-
|
|
10
|
+
path: z.ZodOptional<z.ZodString>;
|
|
11
11
|
icon: z.ZodOptional<z.ZodString>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
color: z.ZodOptional<z.ZodString>;
|
|
13
|
+
uiPosition: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
"sidebar-primary": "sidebar-primary";
|
|
15
|
+
"sidebar-bottom": "sidebar-bottom";
|
|
16
|
+
}>>;
|
|
17
|
+
requiresAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
devOnly: z.ZodOptional<z.ZodBoolean>;
|
|
16
19
|
}, z.core.$strip>>>;
|
|
17
20
|
branding: z.ZodObject<{
|
|
18
21
|
organizationName: z.ZodString;
|
|
@@ -24,19 +27,19 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
24
27
|
dark: z.ZodOptional<z.ZodString>;
|
|
25
28
|
}, z.core.$strip>>;
|
|
26
29
|
}, z.core.$strip>;
|
|
27
|
-
navigation: z.ZodObject<{
|
|
30
|
+
navigation: z.ZodDefault<z.ZodObject<{
|
|
28
31
|
defaultSurfaceId: z.ZodOptional<z.ZodString>;
|
|
29
32
|
surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
30
33
|
id: z.ZodString;
|
|
31
34
|
label: z.ZodString;
|
|
32
35
|
path: z.ZodString;
|
|
33
36
|
surfaceType: z.ZodEnum<{
|
|
34
|
-
list: "list";
|
|
35
37
|
settings: "settings";
|
|
36
38
|
page: "page";
|
|
37
39
|
dashboard: "dashboard";
|
|
38
40
|
graph: "graph";
|
|
39
41
|
detail: "detail";
|
|
42
|
+
list: "list";
|
|
40
43
|
}>;
|
|
41
44
|
description: z.ZodOptional<z.ZodString>;
|
|
42
45
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -54,7 +57,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
54
57
|
placement: z.ZodString;
|
|
55
58
|
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
56
59
|
}, z.core.$strip>>>;
|
|
57
|
-
}, z.core.$strip
|
|
60
|
+
}, z.core.$strip>>;
|
|
58
61
|
sales: z.ZodObject<{
|
|
59
62
|
entityId: z.ZodString;
|
|
60
63
|
defaultPipelineId: z.ZodString;
|
|
@@ -73,9 +76,9 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
73
76
|
semanticClass: z.ZodEnum<{
|
|
74
77
|
open: "open";
|
|
75
78
|
active: "active";
|
|
79
|
+
nurturing: "nurturing";
|
|
76
80
|
closed_won: "closed_won";
|
|
77
81
|
closed_lost: "closed_lost";
|
|
78
|
-
nurturing: "nurturing";
|
|
79
82
|
}>;
|
|
80
83
|
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
81
84
|
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -236,12 +239,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
236
239
|
id: z.ZodString;
|
|
237
240
|
label: z.ZodString;
|
|
238
241
|
semanticClass: z.ZodEnum<{
|
|
239
|
-
execution: "execution";
|
|
240
|
-
schedule: "schedule";
|
|
241
|
-
queue: "queue";
|
|
242
242
|
"delivery.project": "delivery.project";
|
|
243
243
|
"delivery.milestone": "delivery.milestone";
|
|
244
244
|
"delivery.task": "delivery.task";
|
|
245
|
+
queue: "queue";
|
|
246
|
+
execution: "execution";
|
|
247
|
+
schedule: "schedule";
|
|
245
248
|
"schedule.run": "schedule.run";
|
|
246
249
|
request: "request";
|
|
247
250
|
}>;
|
|
@@ -253,104 +256,63 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
253
256
|
id: z.ZodString;
|
|
254
257
|
label: z.ZodString;
|
|
255
258
|
semanticClass: z.ZodEnum<{
|
|
259
|
+
queue: "queue";
|
|
260
|
+
executions: "executions";
|
|
256
261
|
sessions: "sessions";
|
|
257
262
|
notifications: "notifications";
|
|
258
263
|
schedules: "schedules";
|
|
259
|
-
executions: "executions";
|
|
260
|
-
queue: "queue";
|
|
261
264
|
}>;
|
|
262
265
|
featureId: z.ZodOptional<z.ZodString>;
|
|
263
266
|
supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
264
267
|
}, z.core.$strip>>>;
|
|
265
268
|
}, z.core.$strip>>;
|
|
266
|
-
resourceMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
267
|
-
label: z.ZodString;
|
|
268
|
-
description: z.ZodOptional<z.ZodString>;
|
|
269
|
-
color: z.ZodOptional<z.ZodString>;
|
|
270
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
271
|
-
id: z.ZodString;
|
|
272
|
-
resourceId: z.ZodString;
|
|
273
|
-
resourceType: z.ZodEnum<{
|
|
274
|
-
agent: "agent";
|
|
275
|
-
workflow: "workflow";
|
|
276
|
-
trigger: "trigger";
|
|
277
|
-
integration: "integration";
|
|
278
|
-
external: "external";
|
|
279
|
-
human_checkpoint: "human_checkpoint";
|
|
280
|
-
}>;
|
|
281
|
-
featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
282
|
-
entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
283
|
-
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
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>>;
|
|
296
|
-
}, z.core.$strip>>>;
|
|
297
269
|
}, z.core.$strip>;
|
|
298
270
|
|
|
271
|
+
declare const NodeIdPathSchema: z.ZodString;
|
|
272
|
+
declare const NodeIdStringSchema: z.ZodString;
|
|
273
|
+
declare const UiPositionSchema: z.ZodEnum<{
|
|
274
|
+
"sidebar-primary": "sidebar-primary";
|
|
275
|
+
"sidebar-bottom": "sidebar-bottom";
|
|
276
|
+
}>;
|
|
299
277
|
declare const FeatureSchema: z.ZodObject<{
|
|
300
278
|
id: z.ZodString;
|
|
301
279
|
label: z.ZodString;
|
|
302
280
|
description: z.ZodOptional<z.ZodString>;
|
|
303
281
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
304
|
-
|
|
282
|
+
path: z.ZodOptional<z.ZodString>;
|
|
305
283
|
icon: z.ZodOptional<z.ZodString>;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
284
|
+
color: z.ZodOptional<z.ZodString>;
|
|
285
|
+
uiPosition: z.ZodOptional<z.ZodEnum<{
|
|
286
|
+
"sidebar-primary": "sidebar-primary";
|
|
287
|
+
"sidebar-bottom": "sidebar-bottom";
|
|
288
|
+
}>>;
|
|
289
|
+
requiresAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
290
|
+
devOnly: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
}, z.core.$strip>;
|
|
292
|
+
|
|
293
|
+
declare const LinkSchema: z.ZodObject<{
|
|
294
|
+
nodeId: z.ZodString;
|
|
295
|
+
kind: z.ZodEnum<{
|
|
296
|
+
contains: "contains";
|
|
297
|
+
references: "references";
|
|
298
|
+
exposes: "exposes";
|
|
299
|
+
maps_to: "maps_to";
|
|
300
|
+
"operates-on": "operates-on";
|
|
301
|
+
uses: "uses";
|
|
302
|
+
}>;
|
|
310
303
|
}, z.core.$strip>;
|
|
311
304
|
|
|
312
305
|
declare const TechStackEntrySchema: z.ZodObject<{
|
|
313
306
|
platform: z.ZodString;
|
|
314
307
|
purpose: z.ZodString;
|
|
315
308
|
credentialStatus: z.ZodEnum<{
|
|
316
|
-
pending: "pending";
|
|
317
309
|
configured: "configured";
|
|
310
|
+
pending: "pending";
|
|
318
311
|
expired: "expired";
|
|
319
312
|
missing: "missing";
|
|
320
313
|
}>;
|
|
321
314
|
isSystemOfRecord: z.ZodDefault<z.ZodBoolean>;
|
|
322
315
|
}, 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
316
|
|
|
355
317
|
declare const PROJECTS_FEATURE_ID: "projects";
|
|
356
318
|
declare const PROJECTS_INDEX_SURFACE_ID: "projects.index";
|
|
@@ -394,9 +356,9 @@ declare const OrganizationModelSalesSchema: z.ZodObject<{
|
|
|
394
356
|
semanticClass: z.ZodEnum<{
|
|
395
357
|
open: "open";
|
|
396
358
|
active: "active";
|
|
359
|
+
nurturing: "nurturing";
|
|
397
360
|
closed_won: "closed_won";
|
|
398
361
|
closed_lost: "closed_lost";
|
|
399
|
-
nurturing: "nurturing";
|
|
400
362
|
}>;
|
|
401
363
|
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
402
364
|
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -457,76 +419,22 @@ declare const OrganizationModelProspectingSchema: z.ZodObject<{
|
|
|
457
419
|
}, z.core.$strip>>;
|
|
458
420
|
}, z.core.$strip>;
|
|
459
421
|
|
|
460
|
-
declare const SurfaceDefinitionSchema: z.ZodObject<{
|
|
461
|
-
id: z.ZodString;
|
|
462
|
-
label: z.ZodString;
|
|
463
|
-
path: z.ZodString;
|
|
464
|
-
surfaceType: z.ZodEnum<{
|
|
465
|
-
list: "list";
|
|
466
|
-
settings: "settings";
|
|
467
|
-
page: "page";
|
|
468
|
-
dashboard: "dashboard";
|
|
469
|
-
graph: "graph";
|
|
470
|
-
detail: "detail";
|
|
471
|
-
}>;
|
|
472
|
-
description: z.ZodOptional<z.ZodString>;
|
|
473
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
474
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
475
|
-
featureId: z.ZodOptional<z.ZodString>;
|
|
476
|
-
featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
477
|
-
entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
478
|
-
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
479
|
-
capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
480
|
-
parentId: z.ZodOptional<z.ZodString>;
|
|
481
|
-
}, z.core.$strip>;
|
|
482
|
-
declare const OrganizationModelNavigationSchema: z.ZodObject<{
|
|
483
|
-
defaultSurfaceId: z.ZodOptional<z.ZodString>;
|
|
484
|
-
surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
485
|
-
id: z.ZodString;
|
|
486
|
-
label: z.ZodString;
|
|
487
|
-
path: z.ZodString;
|
|
488
|
-
surfaceType: z.ZodEnum<{
|
|
489
|
-
list: "list";
|
|
490
|
-
settings: "settings";
|
|
491
|
-
page: "page";
|
|
492
|
-
dashboard: "dashboard";
|
|
493
|
-
graph: "graph";
|
|
494
|
-
detail: "detail";
|
|
495
|
-
}>;
|
|
496
|
-
description: z.ZodOptional<z.ZodString>;
|
|
497
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
498
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
499
|
-
featureId: z.ZodOptional<z.ZodString>;
|
|
500
|
-
featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
501
|
-
entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
502
|
-
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
503
|
-
capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
504
|
-
parentId: z.ZodOptional<z.ZodString>;
|
|
505
|
-
}, z.core.$strip>>>;
|
|
506
|
-
groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
507
|
-
id: z.ZodString;
|
|
508
|
-
label: z.ZodString;
|
|
509
|
-
placement: z.ZodString;
|
|
510
|
-
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
511
|
-
}, z.core.$strip>>>;
|
|
512
|
-
}, z.core.$strip>;
|
|
513
|
-
|
|
514
422
|
declare const OperationSemanticClassSchema: z.ZodEnum<{
|
|
423
|
+
queue: "queue";
|
|
424
|
+
executions: "executions";
|
|
515
425
|
sessions: "sessions";
|
|
516
426
|
notifications: "notifications";
|
|
517
427
|
schedules: "schedules";
|
|
518
|
-
executions: "executions";
|
|
519
|
-
queue: "queue";
|
|
520
428
|
}>;
|
|
521
429
|
declare const OperationEntrySchema: z.ZodObject<{
|
|
522
430
|
id: z.ZodString;
|
|
523
431
|
label: z.ZodString;
|
|
524
432
|
semanticClass: z.ZodEnum<{
|
|
433
|
+
queue: "queue";
|
|
434
|
+
executions: "executions";
|
|
525
435
|
sessions: "sessions";
|
|
526
436
|
notifications: "notifications";
|
|
527
437
|
schedules: "schedules";
|
|
528
|
-
executions: "executions";
|
|
529
|
-
queue: "queue";
|
|
530
438
|
}>;
|
|
531
439
|
featureId: z.ZodOptional<z.ZodString>;
|
|
532
440
|
supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -536,11 +444,11 @@ declare const OperationsDomainSchema: z.ZodObject<{
|
|
|
536
444
|
id: z.ZodString;
|
|
537
445
|
label: z.ZodString;
|
|
538
446
|
semanticClass: z.ZodEnum<{
|
|
447
|
+
queue: "queue";
|
|
448
|
+
executions: "executions";
|
|
539
449
|
sessions: "sessions";
|
|
540
450
|
notifications: "notifications";
|
|
541
451
|
schedules: "schedules";
|
|
542
|
-
executions: "executions";
|
|
543
|
-
queue: "queue";
|
|
544
452
|
}>;
|
|
545
453
|
featureId: z.ZodOptional<z.ZodString>;
|
|
546
454
|
supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -549,12 +457,12 @@ declare const OperationsDomainSchema: z.ZodObject<{
|
|
|
549
457
|
declare const DEFAULT_ORGANIZATION_MODEL_OPERATIONS: z.infer<typeof OperationsDomainSchema>;
|
|
550
458
|
|
|
551
459
|
declare const StatusSemanticClassSchema: z.ZodEnum<{
|
|
552
|
-
execution: "execution";
|
|
553
|
-
schedule: "schedule";
|
|
554
|
-
queue: "queue";
|
|
555
460
|
"delivery.project": "delivery.project";
|
|
556
461
|
"delivery.milestone": "delivery.milestone";
|
|
557
462
|
"delivery.task": "delivery.task";
|
|
463
|
+
queue: "queue";
|
|
464
|
+
execution: "execution";
|
|
465
|
+
schedule: "schedule";
|
|
558
466
|
"schedule.run": "schedule.run";
|
|
559
467
|
request: "request";
|
|
560
468
|
}>;
|
|
@@ -562,12 +470,12 @@ declare const StatusEntrySchema: z.ZodObject<{
|
|
|
562
470
|
id: z.ZodString;
|
|
563
471
|
label: z.ZodString;
|
|
564
472
|
semanticClass: z.ZodEnum<{
|
|
565
|
-
execution: "execution";
|
|
566
|
-
schedule: "schedule";
|
|
567
|
-
queue: "queue";
|
|
568
473
|
"delivery.project": "delivery.project";
|
|
569
474
|
"delivery.milestone": "delivery.milestone";
|
|
570
475
|
"delivery.task": "delivery.task";
|
|
476
|
+
queue: "queue";
|
|
477
|
+
execution: "execution";
|
|
478
|
+
schedule: "schedule";
|
|
571
479
|
"schedule.run": "schedule.run";
|
|
572
480
|
request: "request";
|
|
573
481
|
}>;
|
|
@@ -578,12 +486,12 @@ declare const StatusesDomainSchema: z.ZodObject<{
|
|
|
578
486
|
id: z.ZodString;
|
|
579
487
|
label: z.ZodString;
|
|
580
488
|
semanticClass: z.ZodEnum<{
|
|
581
|
-
execution: "execution";
|
|
582
|
-
schedule: "schedule";
|
|
583
|
-
queue: "queue";
|
|
584
489
|
"delivery.project": "delivery.project";
|
|
585
490
|
"delivery.milestone": "delivery.milestone";
|
|
586
491
|
"delivery.task": "delivery.task";
|
|
492
|
+
queue: "queue";
|
|
493
|
+
execution: "execution";
|
|
494
|
+
schedule: "schedule";
|
|
587
495
|
"schedule.run": "schedule.run";
|
|
588
496
|
request: "request";
|
|
589
497
|
}>;
|
|
@@ -730,9 +638,8 @@ type OrganizationModelSales = z.infer<typeof OrganizationModelSalesSchema>;
|
|
|
730
638
|
type OrganizationModelProspecting = z.infer<typeof OrganizationModelProspectingSchema>;
|
|
731
639
|
type OrganizationModelProjects = z.infer<typeof OrganizationModelProjectsSchema>;
|
|
732
640
|
type OrganizationModelFeature = z.infer<typeof FeatureSchema>;
|
|
733
|
-
type
|
|
734
|
-
type
|
|
735
|
-
type OrganizationModelResourceMapping = z.infer<typeof ResourceMappingSchema>;
|
|
641
|
+
type NodeIdPath = z.infer<typeof NodeIdPathSchema>;
|
|
642
|
+
type NodeIdString = z.infer<typeof NodeIdStringSchema>;
|
|
736
643
|
type OrganizationModelTechStackEntry = z.infer<typeof TechStackEntrySchema>;
|
|
737
644
|
type OrganizationModelStatuses = z.infer<typeof StatusesDomainSchema>;
|
|
738
645
|
type OrganizationModelStatusEntry = z.infer<typeof StatusEntrySchema>;
|
|
@@ -760,10 +667,11 @@ declare const DEFAULT_ORGANIZATION_MODEL: OrganizationModel;
|
|
|
760
667
|
declare function defineOrganizationModel<T extends DeepPartial<OrganizationModel>>(model: T): T;
|
|
761
668
|
declare function resolveOrganizationModel(override?: DeepPartial<OrganizationModel>): OrganizationModel;
|
|
762
669
|
|
|
763
|
-
type FoundationSurfaceType =
|
|
670
|
+
type FoundationSurfaceType = 'page' | 'dashboard' | 'graph' | 'detail' | 'list' | 'settings';
|
|
764
671
|
type FoundationSurfaceIcon = 'dashboard' | 'crm' | 'lead-gen' | 'projects' | 'operations' | 'settings';
|
|
765
|
-
interface FoundationNavigationSurface extends Omit<
|
|
672
|
+
interface FoundationNavigationSurface extends Omit<OrganizationModelFeature, 'icon' | 'uiPosition'> {
|
|
766
673
|
icon?: FoundationSurfaceIcon;
|
|
674
|
+
surfaceType?: FoundationSurfaceType;
|
|
767
675
|
}
|
|
768
676
|
interface FoundationOrganizationModel extends Omit<OrganizationModel, 'navigation'> {
|
|
769
677
|
navigation: {
|
|
@@ -786,5 +694,5 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
|
|
|
786
694
|
getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
|
|
787
695
|
};
|
|
788
696
|
|
|
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,
|
|
697
|
+
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, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, 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, UiPositionSchema, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
|
|
698
|
+
export type { DeepPartial, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, NodeIdPath, NodeIdString, OrganizationModel, OrganizationModelBranding, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelFeature, OrganizationModelGoals, OrganizationModelKeyResult, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelOperationEntry, OrganizationModelOperationSemanticClass, OrganizationModelOperations, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelProjects, OrganizationModelProspecting, OrganizationModelRole, OrganizationModelRoles, OrganizationModelSales, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelTechStackEntry };
|