@elevasis/core 0.10.0 → 0.11.1
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 +69 -159
- package/dist/index.js +324 -613
- package/dist/organization-model/index.d.ts +69 -159
- package/dist/organization-model/index.js +324 -613
- package/dist/test-utils/index.d.ts +192 -45
- package/dist/test-utils/index.js +260 -600
- package/package.json +1 -1
- package/src/__tests__/template-core-compatibility.test.ts +73 -91
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +94 -182
- package/src/auth/multi-tenancy/index.ts +20 -17
- package/src/auth/multi-tenancy/memberships/api-schemas.ts +142 -126
- package/src/auth/multi-tenancy/memberships/index.ts +26 -22
- package/src/auth/multi-tenancy/permissions.test.ts +42 -0
- package/src/auth/multi-tenancy/permissions.ts +104 -0
- package/src/organization-model/README.md +102 -97
- package/src/organization-model/__tests__/defaults.test.ts +19 -6
- 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/contracts.ts +4 -3
- package/src/organization-model/defaults.ts +277 -141
- package/src/organization-model/domains/features.ts +31 -22
- package/src/organization-model/domains/navigation.ts +27 -20
- 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 +152 -320
- package/src/organization-model/published.ts +20 -19
- 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/constants/versions.ts +3 -3
- 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 +93 -93
- package/src/platform/registry/resource-link.ts +32 -0
- package/src/platform/registry/resource-registry.ts +917 -876
- 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 +94 -182
- package/src/reference/glossary.md +71 -105
- package/src/scaffold-registry/__tests__/index.test.ts +125 -1
- package/src/scaffold-registry/__tests__/schema.test.ts +48 -20
- package/src/scaffold-registry/index.ts +236 -188
- package/src/scaffold-registry/schema.ts +47 -22
- package/src/supabase/database.types.ts +2880 -2719
- package/src/test-utils/fixtures/memberships.ts +82 -80
- 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,22 +27,23 @@ 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>;
|
|
46
|
+
devOnly: z.ZodOptional<z.ZodBoolean>;
|
|
43
47
|
icon: z.ZodOptional<z.ZodString>;
|
|
44
48
|
featureId: z.ZodOptional<z.ZodString>;
|
|
45
49
|
featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -54,7 +58,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
54
58
|
placement: z.ZodString;
|
|
55
59
|
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
56
60
|
}, z.core.$strip>>>;
|
|
57
|
-
}, z.core.$strip
|
|
61
|
+
}, z.core.$strip>>;
|
|
58
62
|
sales: z.ZodObject<{
|
|
59
63
|
entityId: z.ZodString;
|
|
60
64
|
defaultPipelineId: z.ZodString;
|
|
@@ -73,9 +77,9 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
73
77
|
semanticClass: z.ZodEnum<{
|
|
74
78
|
open: "open";
|
|
75
79
|
active: "active";
|
|
80
|
+
nurturing: "nurturing";
|
|
76
81
|
closed_won: "closed_won";
|
|
77
82
|
closed_lost: "closed_lost";
|
|
78
|
-
nurturing: "nurturing";
|
|
79
83
|
}>;
|
|
80
84
|
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
81
85
|
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -236,12 +240,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
236
240
|
id: z.ZodString;
|
|
237
241
|
label: z.ZodString;
|
|
238
242
|
semanticClass: z.ZodEnum<{
|
|
239
|
-
execution: "execution";
|
|
240
|
-
schedule: "schedule";
|
|
241
|
-
queue: "queue";
|
|
242
243
|
"delivery.project": "delivery.project";
|
|
243
244
|
"delivery.milestone": "delivery.milestone";
|
|
244
245
|
"delivery.task": "delivery.task";
|
|
246
|
+
queue: "queue";
|
|
247
|
+
execution: "execution";
|
|
248
|
+
schedule: "schedule";
|
|
245
249
|
"schedule.run": "schedule.run";
|
|
246
250
|
request: "request";
|
|
247
251
|
}>;
|
|
@@ -253,104 +257,63 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
253
257
|
id: z.ZodString;
|
|
254
258
|
label: z.ZodString;
|
|
255
259
|
semanticClass: z.ZodEnum<{
|
|
260
|
+
queue: "queue";
|
|
261
|
+
executions: "executions";
|
|
256
262
|
sessions: "sessions";
|
|
257
263
|
notifications: "notifications";
|
|
258
264
|
schedules: "schedules";
|
|
259
|
-
executions: "executions";
|
|
260
|
-
queue: "queue";
|
|
261
265
|
}>;
|
|
262
266
|
featureId: z.ZodOptional<z.ZodString>;
|
|
263
267
|
supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
264
268
|
}, z.core.$strip>>>;
|
|
265
269
|
}, 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
270
|
}, z.core.$strip>;
|
|
298
271
|
|
|
272
|
+
declare const NodeIdPathSchema: z.ZodString;
|
|
273
|
+
declare const NodeIdStringSchema: z.ZodString;
|
|
274
|
+
declare const UiPositionSchema: z.ZodEnum<{
|
|
275
|
+
"sidebar-primary": "sidebar-primary";
|
|
276
|
+
"sidebar-bottom": "sidebar-bottom";
|
|
277
|
+
}>;
|
|
299
278
|
declare const FeatureSchema: z.ZodObject<{
|
|
300
279
|
id: z.ZodString;
|
|
301
280
|
label: z.ZodString;
|
|
302
281
|
description: z.ZodOptional<z.ZodString>;
|
|
303
282
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
304
|
-
|
|
283
|
+
path: z.ZodOptional<z.ZodString>;
|
|
305
284
|
icon: z.ZodOptional<z.ZodString>;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
285
|
+
color: z.ZodOptional<z.ZodString>;
|
|
286
|
+
uiPosition: z.ZodOptional<z.ZodEnum<{
|
|
287
|
+
"sidebar-primary": "sidebar-primary";
|
|
288
|
+
"sidebar-bottom": "sidebar-bottom";
|
|
289
|
+
}>>;
|
|
290
|
+
requiresAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
devOnly: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
}, z.core.$strip>;
|
|
293
|
+
|
|
294
|
+
declare const LinkSchema: z.ZodObject<{
|
|
295
|
+
nodeId: z.ZodString;
|
|
296
|
+
kind: z.ZodEnum<{
|
|
297
|
+
contains: "contains";
|
|
298
|
+
references: "references";
|
|
299
|
+
exposes: "exposes";
|
|
300
|
+
maps_to: "maps_to";
|
|
301
|
+
"operates-on": "operates-on";
|
|
302
|
+
uses: "uses";
|
|
303
|
+
}>;
|
|
310
304
|
}, z.core.$strip>;
|
|
311
305
|
|
|
312
306
|
declare const TechStackEntrySchema: z.ZodObject<{
|
|
313
307
|
platform: z.ZodString;
|
|
314
308
|
purpose: z.ZodString;
|
|
315
309
|
credentialStatus: z.ZodEnum<{
|
|
316
|
-
pending: "pending";
|
|
317
310
|
configured: "configured";
|
|
311
|
+
pending: "pending";
|
|
318
312
|
expired: "expired";
|
|
319
313
|
missing: "missing";
|
|
320
314
|
}>;
|
|
321
315
|
isSystemOfRecord: z.ZodDefault<z.ZodBoolean>;
|
|
322
316
|
}, 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
317
|
|
|
355
318
|
declare const PROJECTS_FEATURE_ID: "projects";
|
|
356
319
|
declare const PROJECTS_INDEX_SURFACE_ID: "projects.index";
|
|
@@ -364,6 +327,7 @@ declare const SEO_FEATURE_ID: "seo";
|
|
|
364
327
|
declare const SALES_PIPELINE_SURFACE_ID: "crm.pipeline";
|
|
365
328
|
declare const PROSPECTING_LISTS_SURFACE_ID: "lead-gen.lists";
|
|
366
329
|
declare const OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID: "operations.organization-graph";
|
|
330
|
+
declare const OPERATIONS_COMMAND_VIEW_SURFACE_ID: "operations.command-view";
|
|
367
331
|
|
|
368
332
|
declare const OrganizationModelBrandingSchema: z.ZodObject<{
|
|
369
333
|
organizationName: z.ZodString;
|
|
@@ -394,9 +358,9 @@ declare const OrganizationModelSalesSchema: z.ZodObject<{
|
|
|
394
358
|
semanticClass: z.ZodEnum<{
|
|
395
359
|
open: "open";
|
|
396
360
|
active: "active";
|
|
361
|
+
nurturing: "nurturing";
|
|
397
362
|
closed_won: "closed_won";
|
|
398
363
|
closed_lost: "closed_lost";
|
|
399
|
-
nurturing: "nurturing";
|
|
400
364
|
}>;
|
|
401
365
|
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
402
366
|
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -457,76 +421,22 @@ declare const OrganizationModelProspectingSchema: z.ZodObject<{
|
|
|
457
421
|
}, z.core.$strip>>;
|
|
458
422
|
}, z.core.$strip>;
|
|
459
423
|
|
|
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
424
|
declare const OperationSemanticClassSchema: z.ZodEnum<{
|
|
425
|
+
queue: "queue";
|
|
426
|
+
executions: "executions";
|
|
515
427
|
sessions: "sessions";
|
|
516
428
|
notifications: "notifications";
|
|
517
429
|
schedules: "schedules";
|
|
518
|
-
executions: "executions";
|
|
519
|
-
queue: "queue";
|
|
520
430
|
}>;
|
|
521
431
|
declare const OperationEntrySchema: z.ZodObject<{
|
|
522
432
|
id: z.ZodString;
|
|
523
433
|
label: z.ZodString;
|
|
524
434
|
semanticClass: z.ZodEnum<{
|
|
435
|
+
queue: "queue";
|
|
436
|
+
executions: "executions";
|
|
525
437
|
sessions: "sessions";
|
|
526
438
|
notifications: "notifications";
|
|
527
439
|
schedules: "schedules";
|
|
528
|
-
executions: "executions";
|
|
529
|
-
queue: "queue";
|
|
530
440
|
}>;
|
|
531
441
|
featureId: z.ZodOptional<z.ZodString>;
|
|
532
442
|
supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -536,11 +446,11 @@ declare const OperationsDomainSchema: z.ZodObject<{
|
|
|
536
446
|
id: z.ZodString;
|
|
537
447
|
label: z.ZodString;
|
|
538
448
|
semanticClass: z.ZodEnum<{
|
|
449
|
+
queue: "queue";
|
|
450
|
+
executions: "executions";
|
|
539
451
|
sessions: "sessions";
|
|
540
452
|
notifications: "notifications";
|
|
541
453
|
schedules: "schedules";
|
|
542
|
-
executions: "executions";
|
|
543
|
-
queue: "queue";
|
|
544
454
|
}>;
|
|
545
455
|
featureId: z.ZodOptional<z.ZodString>;
|
|
546
456
|
supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -549,12 +459,12 @@ declare const OperationsDomainSchema: z.ZodObject<{
|
|
|
549
459
|
declare const DEFAULT_ORGANIZATION_MODEL_OPERATIONS: z.infer<typeof OperationsDomainSchema>;
|
|
550
460
|
|
|
551
461
|
declare const StatusSemanticClassSchema: z.ZodEnum<{
|
|
552
|
-
execution: "execution";
|
|
553
|
-
schedule: "schedule";
|
|
554
|
-
queue: "queue";
|
|
555
462
|
"delivery.project": "delivery.project";
|
|
556
463
|
"delivery.milestone": "delivery.milestone";
|
|
557
464
|
"delivery.task": "delivery.task";
|
|
465
|
+
queue: "queue";
|
|
466
|
+
execution: "execution";
|
|
467
|
+
schedule: "schedule";
|
|
558
468
|
"schedule.run": "schedule.run";
|
|
559
469
|
request: "request";
|
|
560
470
|
}>;
|
|
@@ -562,12 +472,12 @@ declare const StatusEntrySchema: z.ZodObject<{
|
|
|
562
472
|
id: z.ZodString;
|
|
563
473
|
label: z.ZodString;
|
|
564
474
|
semanticClass: z.ZodEnum<{
|
|
565
|
-
execution: "execution";
|
|
566
|
-
schedule: "schedule";
|
|
567
|
-
queue: "queue";
|
|
568
475
|
"delivery.project": "delivery.project";
|
|
569
476
|
"delivery.milestone": "delivery.milestone";
|
|
570
477
|
"delivery.task": "delivery.task";
|
|
478
|
+
queue: "queue";
|
|
479
|
+
execution: "execution";
|
|
480
|
+
schedule: "schedule";
|
|
571
481
|
"schedule.run": "schedule.run";
|
|
572
482
|
request: "request";
|
|
573
483
|
}>;
|
|
@@ -578,12 +488,12 @@ declare const StatusesDomainSchema: z.ZodObject<{
|
|
|
578
488
|
id: z.ZodString;
|
|
579
489
|
label: z.ZodString;
|
|
580
490
|
semanticClass: z.ZodEnum<{
|
|
581
|
-
execution: "execution";
|
|
582
|
-
schedule: "schedule";
|
|
583
|
-
queue: "queue";
|
|
584
491
|
"delivery.project": "delivery.project";
|
|
585
492
|
"delivery.milestone": "delivery.milestone";
|
|
586
493
|
"delivery.task": "delivery.task";
|
|
494
|
+
queue: "queue";
|
|
495
|
+
execution: "execution";
|
|
496
|
+
schedule: "schedule";
|
|
587
497
|
"schedule.run": "schedule.run";
|
|
588
498
|
request: "request";
|
|
589
499
|
}>;
|
|
@@ -730,9 +640,8 @@ type OrganizationModelSales = z.infer<typeof OrganizationModelSalesSchema>;
|
|
|
730
640
|
type OrganizationModelProspecting = z.infer<typeof OrganizationModelProspectingSchema>;
|
|
731
641
|
type OrganizationModelProjects = z.infer<typeof OrganizationModelProjectsSchema>;
|
|
732
642
|
type OrganizationModelFeature = z.infer<typeof FeatureSchema>;
|
|
733
|
-
type
|
|
734
|
-
type
|
|
735
|
-
type OrganizationModelResourceMapping = z.infer<typeof ResourceMappingSchema>;
|
|
643
|
+
type NodeIdPath = z.infer<typeof NodeIdPathSchema>;
|
|
644
|
+
type NodeIdString = z.infer<typeof NodeIdStringSchema>;
|
|
736
645
|
type OrganizationModelTechStackEntry = z.infer<typeof TechStackEntrySchema>;
|
|
737
646
|
type OrganizationModelStatuses = z.infer<typeof StatusesDomainSchema>;
|
|
738
647
|
type OrganizationModelStatusEntry = z.infer<typeof StatusEntrySchema>;
|
|
@@ -760,10 +669,11 @@ declare const DEFAULT_ORGANIZATION_MODEL: OrganizationModel;
|
|
|
760
669
|
declare function defineOrganizationModel<T extends DeepPartial<OrganizationModel>>(model: T): T;
|
|
761
670
|
declare function resolveOrganizationModel(override?: DeepPartial<OrganizationModel>): OrganizationModel;
|
|
762
671
|
|
|
763
|
-
type FoundationSurfaceType =
|
|
672
|
+
type FoundationSurfaceType = 'page' | 'dashboard' | 'graph' | 'detail' | 'list' | 'settings';
|
|
764
673
|
type FoundationSurfaceIcon = 'dashboard' | 'crm' | 'lead-gen' | 'projects' | 'operations' | 'settings';
|
|
765
|
-
interface FoundationNavigationSurface extends Omit<
|
|
674
|
+
interface FoundationNavigationSurface extends Omit<OrganizationModelFeature, 'icon' | 'uiPosition'> {
|
|
766
675
|
icon?: FoundationSurfaceIcon;
|
|
676
|
+
surfaceType?: FoundationSurfaceType;
|
|
767
677
|
}
|
|
768
678
|
interface FoundationOrganizationModel extends Omit<OrganizationModel, 'navigation'> {
|
|
769
679
|
navigation: {
|
|
@@ -786,5 +696,5 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
|
|
|
786
696
|
getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
|
|
787
697
|
};
|
|
788
698
|
|
|
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,
|
|
699
|
+
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_COMMAND_VIEW_SURFACE_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, UiPositionSchema, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
|
|
700
|
+
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 };
|