@elevasis/ui 2.41.1 → 2.43.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/api/index.js +3 -3
- package/dist/app/index.d.ts +74 -3
- package/dist/app/index.js +3 -3
- package/dist/auth/index.js +3 -3
- package/dist/charts/index.js +3 -3
- package/dist/{chunk-QDXTIQT4.js → chunk-FUKNHVUV.js} +205 -415
- package/dist/{chunk-7FJI76OH.js → chunk-NVVAQNKE.js} +1 -1
- package/dist/{chunk-V5HWC5EW.js → chunk-UECAFQKT.js} +1 -1
- package/dist/{chunk-5M4HSHQ5.js → chunk-XDEUR36B.js} +388 -25
- package/dist/components/index.d.ts +8 -1
- package/dist/components/index.js +3 -3
- package/dist/components/navigation/index.js +3 -3
- package/dist/features/auth/index.d.ts +3 -0
- package/dist/features/auth/index.js +4 -4
- package/dist/features/clients/index.d.ts +6 -3
- package/dist/features/clients/index.js +80 -19
- package/dist/features/crm/index.d.ts +3 -0
- package/dist/features/crm/index.js +3 -3
- package/dist/features/dashboard/index.d.ts +5 -1
- package/dist/features/dashboard/index.js +3 -3
- package/dist/features/delivery/index.d.ts +3 -0
- package/dist/features/delivery/index.js +3 -3
- package/dist/features/knowledge/index.js +3 -3
- package/dist/features/lead-gen/index.d.ts +77 -4
- package/dist/features/lead-gen/index.js +3 -3
- package/dist/features/monitoring/index.js +3 -3
- package/dist/features/monitoring/requests/index.js +4 -4
- package/dist/features/operations/index.d.ts +71 -3
- package/dist/features/operations/index.js +3 -3
- package/dist/features/settings/index.d.ts +3 -0
- package/dist/features/settings/index.js +3 -3
- package/dist/hooks/access/index.js +3 -3
- package/dist/hooks/delivery/index.d.ts +3 -0
- package/dist/hooks/delivery/index.js +3 -3
- package/dist/hooks/index.d.ts +38 -19
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +5 -1
- package/dist/hooks/published.d.ts +38 -19
- package/dist/hooks/published.js +3 -3
- package/dist/index.d.ts +104 -21
- package/dist/index.js +4 -4
- package/dist/initialization/index.d.ts +3 -0
- package/dist/knowledge/index.d.ts +76 -7
- package/dist/knowledge/index.js +68 -8
- package/dist/layout/index.js +3 -3
- package/dist/organization/index.js +3 -3
- package/dist/profile/index.d.ts +3 -0
- package/dist/provider/index.d.ts +74 -3
- package/dist/provider/index.js +3 -3
- package/dist/provider/published.d.ts +74 -3
- package/dist/provider/published.js +3 -3
- package/dist/supabase/index.d.ts +6 -0
- package/dist/test-utils/index.js +3 -3
- package/dist/types/index.d.ts +8 -1
- package/dist/utils/index.d.ts +5 -1
- package/dist/utils/index.js +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrganizationContext } from './chunk-DD3CCMCZ.js';
|
|
2
|
-
import { APIClientError } from './chunk-
|
|
2
|
+
import { APIClientError } from './chunk-XDEUR36B.js';
|
|
3
3
|
import { createContext, useContext, useMemo, useCallback } from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -167,6 +167,131 @@ function debounce(fn, wait) {
|
|
|
167
167
|
};
|
|
168
168
|
return debounced;
|
|
169
169
|
}
|
|
170
|
+
var ORGANIZATION_MODEL_ICON_TOKENS = [
|
|
171
|
+
// Navigation / app areas
|
|
172
|
+
"dashboard",
|
|
173
|
+
"calendar",
|
|
174
|
+
"sales",
|
|
175
|
+
"crm",
|
|
176
|
+
"lead-gen",
|
|
177
|
+
"projects",
|
|
178
|
+
"clients",
|
|
179
|
+
"operations",
|
|
180
|
+
"monitoring",
|
|
181
|
+
"knowledge",
|
|
182
|
+
"settings",
|
|
183
|
+
"admin",
|
|
184
|
+
"archive",
|
|
185
|
+
"business",
|
|
186
|
+
"finance",
|
|
187
|
+
"platform",
|
|
188
|
+
"seo",
|
|
189
|
+
// Knowledge kinds
|
|
190
|
+
"playbook",
|
|
191
|
+
"strategy",
|
|
192
|
+
"reference",
|
|
193
|
+
// Resource kinds
|
|
194
|
+
"agent",
|
|
195
|
+
"workflow",
|
|
196
|
+
"integration",
|
|
197
|
+
"database",
|
|
198
|
+
"user",
|
|
199
|
+
"team",
|
|
200
|
+
// Integration specifics
|
|
201
|
+
"gmail",
|
|
202
|
+
"google-sheets",
|
|
203
|
+
"attio",
|
|
204
|
+
// Surface / UI views
|
|
205
|
+
"overview",
|
|
206
|
+
"command-view",
|
|
207
|
+
"command-queue",
|
|
208
|
+
"pipeline",
|
|
209
|
+
"lists",
|
|
210
|
+
"resources",
|
|
211
|
+
// Actions
|
|
212
|
+
"approve",
|
|
213
|
+
"reject",
|
|
214
|
+
"retry",
|
|
215
|
+
"edit",
|
|
216
|
+
"view",
|
|
217
|
+
"launch",
|
|
218
|
+
"message",
|
|
219
|
+
"message-plus",
|
|
220
|
+
"escalate",
|
|
221
|
+
"promote",
|
|
222
|
+
"submit",
|
|
223
|
+
"email",
|
|
224
|
+
// Status
|
|
225
|
+
"success",
|
|
226
|
+
"error",
|
|
227
|
+
"warning",
|
|
228
|
+
"info",
|
|
229
|
+
"pending",
|
|
230
|
+
// OM / UI group icons
|
|
231
|
+
"bolt",
|
|
232
|
+
"building",
|
|
233
|
+
"briefcase",
|
|
234
|
+
"apps",
|
|
235
|
+
"graph",
|
|
236
|
+
"shield",
|
|
237
|
+
"users",
|
|
238
|
+
"chart-bar",
|
|
239
|
+
"search"
|
|
240
|
+
];
|
|
241
|
+
var CustomIconTokenSchema = z.string().trim().max(80).regex(
|
|
242
|
+
/^custom\.[a-z0-9]+(?:[-._][a-z0-9]+)*$/,
|
|
243
|
+
'Custom icon tokens must start with "custom." followed by lowercase alphanumeric segments'
|
|
244
|
+
);
|
|
245
|
+
var OrganizationModelBuiltinIconTokenSchema = z.enum(ORGANIZATION_MODEL_ICON_TOKENS);
|
|
246
|
+
var OrganizationModelIconTokenSchema = z.union([
|
|
247
|
+
OrganizationModelBuiltinIconTokenSchema,
|
|
248
|
+
CustomIconTokenSchema
|
|
249
|
+
]);
|
|
250
|
+
|
|
251
|
+
// ../core/src/organization-model/domains/shared.ts
|
|
252
|
+
var ModelIdSchema = z.string().trim().min(1).max(100).regex(/^[a-z0-9]+(?:[-._][a-z0-9]+)*$/, "IDs must be lowercase and use -, _, or . separators");
|
|
253
|
+
var LabelSchema = z.string().trim().min(1).max(120);
|
|
254
|
+
var DescriptionSchema = z.string().trim().min(1).max(2e3);
|
|
255
|
+
var ColorTokenSchema = z.string().trim().min(1).max(50);
|
|
256
|
+
var IconNameSchema = OrganizationModelIconTokenSchema;
|
|
257
|
+
var PathSchema = z.string().trim().startsWith("/").max(300);
|
|
258
|
+
var ReferenceIdsSchema = z.array(ModelIdSchema).default([]);
|
|
259
|
+
var DisplayMetadataSchema = z.object({
|
|
260
|
+
label: LabelSchema,
|
|
261
|
+
description: DescriptionSchema.optional(),
|
|
262
|
+
color: ColorTokenSchema.optional(),
|
|
263
|
+
icon: IconNameSchema.optional()
|
|
264
|
+
});
|
|
265
|
+
var TechStackEntrySchema = z.object({
|
|
266
|
+
/** Name of the external platform (e.g. "HubSpot", "Stripe", "Notion"). */
|
|
267
|
+
platform: z.string().trim().min(1).max(200),
|
|
268
|
+
/** Free-form description of what this integration is used for. */
|
|
269
|
+
purpose: z.string().trim().min(1).max(500),
|
|
270
|
+
/**
|
|
271
|
+
* Health of the credential backing this integration.
|
|
272
|
+
* - configured: credential present and valid
|
|
273
|
+
* - pending: not yet set up
|
|
274
|
+
* - expired: credential existed but has lapsed
|
|
275
|
+
* - missing: expected but not present
|
|
276
|
+
*/
|
|
277
|
+
credentialStatus: z.enum(["configured", "pending", "expired", "missing"]),
|
|
278
|
+
/**
|
|
279
|
+
* Whether this integration is the primary system of record for its domain
|
|
280
|
+
* (e.g. HubSpot is SoR for contacts). Defaults to false.
|
|
281
|
+
*/
|
|
282
|
+
isSystemOfRecord: z.boolean().default(false)
|
|
283
|
+
});
|
|
284
|
+
DisplayMetadataSchema.extend({
|
|
285
|
+
id: ModelIdSchema,
|
|
286
|
+
resourceId: z.string().trim().min(1).max(255),
|
|
287
|
+
resourceType: z.enum(["workflow", "agent", "trigger", "integration", "external", "human_checkpoint"]),
|
|
288
|
+
systemIds: ReferenceIdsSchema,
|
|
289
|
+
entityIds: ReferenceIdsSchema,
|
|
290
|
+
surfaceIds: ReferenceIdsSchema,
|
|
291
|
+
actionIds: ReferenceIdsSchema,
|
|
292
|
+
/** Optional tech-stack metadata for external-SaaS integrations. */
|
|
293
|
+
techStack: TechStackEntrySchema.optional()
|
|
294
|
+
});
|
|
170
295
|
|
|
171
296
|
// ../core/src/organization-model/helpers.ts
|
|
172
297
|
function defineDomainRecord(schema, entries) {
|
|
@@ -291,6 +416,96 @@ function getResourcesForSystem(model, systemPath, options = {}) {
|
|
|
291
416
|
(r) => r.systemPath === systemPath || includeDescendants && r.systemPath.startsWith(prefix)
|
|
292
417
|
);
|
|
293
418
|
}
|
|
419
|
+
|
|
420
|
+
// ../core/src/organization-model/domains/entities.ts
|
|
421
|
+
var EntityIdSchema = ModelIdSchema;
|
|
422
|
+
var EntityLinkKindSchema = z.enum(["belongs-to", "has-many", "has-one", "many-to-many"]).meta({ label: "Link kind" });
|
|
423
|
+
var EntityLinkSchema = z.object({
|
|
424
|
+
toEntity: EntityIdSchema.meta({ ref: "entity" }),
|
|
425
|
+
kind: EntityLinkKindSchema,
|
|
426
|
+
via: z.string().trim().min(1).max(255).optional(),
|
|
427
|
+
label: LabelSchema.optional()
|
|
428
|
+
});
|
|
429
|
+
var EntitySchema = z.object({
|
|
430
|
+
id: EntityIdSchema,
|
|
431
|
+
/** Domain-map iteration order. Convention: multiples of 10 (10, 20, 30, ...) to allow easy insertion. */
|
|
432
|
+
order: z.number(),
|
|
433
|
+
label: LabelSchema,
|
|
434
|
+
description: DescriptionSchema.optional(),
|
|
435
|
+
ownedBySystemId: ModelIdSchema.meta({ ref: "system" }),
|
|
436
|
+
table: z.string().trim().min(1).max(255).optional(),
|
|
437
|
+
rowSchema: ModelIdSchema.optional(),
|
|
438
|
+
stateCatalogId: ModelIdSchema.optional(),
|
|
439
|
+
links: z.array(EntityLinkSchema).optional()
|
|
440
|
+
});
|
|
441
|
+
var EntitiesDomainSchema = z.record(z.string(), EntitySchema).refine((record) => Object.entries(record).every(([key, entry]) => entry.id === key), {
|
|
442
|
+
message: "Each entity entry id must match its map key"
|
|
443
|
+
}).default({});
|
|
444
|
+
function defineEntities(entries) {
|
|
445
|
+
return defineDomainRecord(EntitySchema, entries);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// ../core/src/organization-model/domains/actions.ts
|
|
449
|
+
var ActionResourceIdSchema = z.string().trim().min(1).max(255).regex(/^[A-Za-z0-9]+(?:[-._][A-Za-z0-9]+)*$/, "Resource IDs must use letters, numbers, -, _, or . separators");
|
|
450
|
+
z.enum(["slash-command", "mcp-tool", "api-endpoint", "script-execution"]).meta({ label: "Invocation kind" });
|
|
451
|
+
var ActionIdSchema = ModelIdSchema;
|
|
452
|
+
var ActionScopeSchema = z.union([
|
|
453
|
+
z.literal("global"),
|
|
454
|
+
z.object({
|
|
455
|
+
domain: ModelIdSchema
|
|
456
|
+
})
|
|
457
|
+
]);
|
|
458
|
+
var ActionRefSchema = z.object({
|
|
459
|
+
actionId: ActionIdSchema.meta({ ref: "action" }),
|
|
460
|
+
intent: z.enum(["exposes", "consumes"]).meta({ label: "Intent" })
|
|
461
|
+
});
|
|
462
|
+
var SlashCommandInvocationSchema = z.object({
|
|
463
|
+
kind: z.literal("slash-command"),
|
|
464
|
+
command: z.string().trim().min(1).max(200).regex(/^\/[^\s].*$/, "Slash commands must start with /"),
|
|
465
|
+
toolFactory: ModelIdSchema.optional()
|
|
466
|
+
});
|
|
467
|
+
var McpToolInvocationSchema = z.object({
|
|
468
|
+
kind: z.literal("mcp-tool"),
|
|
469
|
+
server: ModelIdSchema,
|
|
470
|
+
name: ModelIdSchema
|
|
471
|
+
});
|
|
472
|
+
var ApiEndpointInvocationSchema = z.object({
|
|
473
|
+
kind: z.literal("api-endpoint"),
|
|
474
|
+
method: z.enum(["GET", "POST", "PATCH", "DELETE"]).meta({ label: "HTTP method" }),
|
|
475
|
+
path: z.string().trim().startsWith("/").max(500),
|
|
476
|
+
requestSchema: ModelIdSchema.optional(),
|
|
477
|
+
responseSchema: ModelIdSchema.optional()
|
|
478
|
+
});
|
|
479
|
+
var ScriptExecutionInvocationSchema = z.object({
|
|
480
|
+
kind: z.literal("script-execution"),
|
|
481
|
+
resourceId: ActionResourceIdSchema
|
|
482
|
+
});
|
|
483
|
+
var ActionInvocationSchema = z.discriminatedUnion("kind", [
|
|
484
|
+
SlashCommandInvocationSchema,
|
|
485
|
+
McpToolInvocationSchema,
|
|
486
|
+
ApiEndpointInvocationSchema,
|
|
487
|
+
ScriptExecutionInvocationSchema
|
|
488
|
+
]);
|
|
489
|
+
var ActionSchema = z.object({
|
|
490
|
+
id: ActionIdSchema,
|
|
491
|
+
/** Domain-map iteration order. Convention: multiples of 10 (10, 20, 30, ...) to allow easy insertion. */
|
|
492
|
+
order: z.number(),
|
|
493
|
+
label: LabelSchema,
|
|
494
|
+
description: DescriptionSchema.optional(),
|
|
495
|
+
scope: ActionScopeSchema.default("global"),
|
|
496
|
+
resourceId: ActionResourceIdSchema.optional(),
|
|
497
|
+
affects: z.array(EntityIdSchema.meta({ ref: "entity" })).optional(),
|
|
498
|
+
invocations: z.array(ActionInvocationSchema).default([]),
|
|
499
|
+
knowledge: z.array(ModelIdSchema.meta({ ref: "knowledge" })).default([]).optional(),
|
|
500
|
+
lifecycle: z.enum(["draft", "beta", "active", "deprecated", "archived"]).meta({ label: "Lifecycle", color: "teal" }).default("active")
|
|
501
|
+
});
|
|
502
|
+
var ActionsDomainSchema = z.record(z.string(), ActionSchema).refine((record) => Object.entries(record).every(([key, entry]) => entry.id === key), {
|
|
503
|
+
message: "Each action entry id must match its map key"
|
|
504
|
+
}).default({});
|
|
505
|
+
var DEFAULT_ORGANIZATION_MODEL_ACTIONS = {};
|
|
506
|
+
function defineActions(entries) {
|
|
507
|
+
return defineDomainRecord(ActionSchema, entries);
|
|
508
|
+
}
|
|
294
509
|
var OntologyKindSchema = z.enum([
|
|
295
510
|
"object",
|
|
296
511
|
"link",
|
|
@@ -647,6 +862,155 @@ function compileOrganizationOntology(model) {
|
|
|
647
862
|
return { ontology: sortResolvedOntologyIndex(ontology), diagnostics };
|
|
648
863
|
}
|
|
649
864
|
|
|
865
|
+
// ../core/src/organization-model/domains/systems.ts
|
|
866
|
+
var SystemKindSchema = z.enum(["product", "operational", "platform", "diagnostic"]).meta({ label: "System kind", color: "blue" });
|
|
867
|
+
var SystemLifecycleSchema = z.enum(["draft", "beta", "active", "deprecated", "archived"]).meta({ label: "Lifecycle", color: "teal" });
|
|
868
|
+
var SystemStatusSchema = z.enum(["active", "deprecated", "archived"]).meta({ label: "Status", color: "teal" });
|
|
869
|
+
var SystemIdSchema = ModelIdSchema;
|
|
870
|
+
var SystemPathSchema = z.string().trim().min(1).regex(
|
|
871
|
+
/^[a-z0-9][a-z0-9-]*(?:\.[a-z0-9][a-z0-9-]*)*$/,
|
|
872
|
+
'must be a dotted lowercase path (e.g. "sales.lead-gen" or "sales.crm")'
|
|
873
|
+
);
|
|
874
|
+
var UiPositionSchema = z.enum(["sidebar-primary", "sidebar-bottom"]).meta({ label: "UI position" });
|
|
875
|
+
var NodeIdStringSchema = z.string().trim().min(1).max(200).regex(
|
|
876
|
+
/^[a-z][a-z-]*:([a-z0-9-]+)(\.[a-z0-9-]+)*(:[a-z0-9.-]+)*$/,
|
|
877
|
+
"Node references must use kind:dotted-path (e.g. system:sales.crm or resource:lead-gen.company.qualify)"
|
|
878
|
+
);
|
|
879
|
+
var SystemUiSchema = z.object({
|
|
880
|
+
path: PathSchema,
|
|
881
|
+
surfaces: ReferenceIdsSchema,
|
|
882
|
+
icon: IconNameSchema.optional(),
|
|
883
|
+
order: z.number().int().optional()
|
|
884
|
+
});
|
|
885
|
+
var SystemInterfaceKeySchema = ModelIdSchema;
|
|
886
|
+
var SystemInterfaceLifecycleSchema = z.enum(["draft", "active", "disabled", "deprecated", "archived"]).meta({ label: "System interface lifecycle", color: "teal" });
|
|
887
|
+
var SYSTEM_INTERFACE_PROFILES = [
|
|
888
|
+
{
|
|
889
|
+
systemPath: "sales.lead-gen",
|
|
890
|
+
interfaceKey: "api",
|
|
891
|
+
readinessProfile: "sales.lead-gen.api"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
systemPath: "sales.crm",
|
|
895
|
+
interfaceKey: "api",
|
|
896
|
+
readinessProfile: "sales.crm.api"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
systemPath: "sales.lead-gen",
|
|
900
|
+
interfaceKey: "crm-handoff",
|
|
901
|
+
readinessProfile: "sales.lead-gen.crm-handoff"
|
|
902
|
+
}
|
|
903
|
+
];
|
|
904
|
+
var SYSTEM_INTERFACE_READINESS_PROFILES = SYSTEM_INTERFACE_PROFILES.map(
|
|
905
|
+
(profile) => profile.readinessProfile
|
|
906
|
+
);
|
|
907
|
+
var SystemInterfaceReadinessProfileSchema = z.enum(SYSTEM_INTERFACE_READINESS_PROFILES);
|
|
908
|
+
var SystemInterfaceResourceScopeSchema = z.array(ModelIdSchema).default([]);
|
|
909
|
+
var SystemApiInterfaceSchema = z.object({
|
|
910
|
+
lifecycle: SystemInterfaceLifecycleSchema.default("active"),
|
|
911
|
+
readinessProfile: SystemInterfaceReadinessProfileSchema.optional(),
|
|
912
|
+
/**
|
|
913
|
+
* Resource ids that participate in this API interface. This scopes readiness
|
|
914
|
+
* derivation without duplicating authored required/provided contract refs.
|
|
915
|
+
*/
|
|
916
|
+
resourceIds: SystemInterfaceResourceScopeSchema.optional()
|
|
917
|
+
}).strict();
|
|
918
|
+
var SystemInterfaceRefSchema = z.object({
|
|
919
|
+
systemPath: SystemPathSchema,
|
|
920
|
+
interfaceKey: SystemInterfaceKeySchema
|
|
921
|
+
}).strict();
|
|
922
|
+
var JsonValueSchema = z.lazy(
|
|
923
|
+
() => z.union([
|
|
924
|
+
z.string(),
|
|
925
|
+
z.number(),
|
|
926
|
+
z.boolean(),
|
|
927
|
+
z.null(),
|
|
928
|
+
z.array(JsonValueSchema),
|
|
929
|
+
z.record(z.string(), JsonValueSchema)
|
|
930
|
+
])
|
|
931
|
+
);
|
|
932
|
+
var SystemConfigSchema = z.record(z.string().trim().min(1).max(200), JsonValueSchema).default({}).optional();
|
|
933
|
+
var SystemEntrySchema = z.object({
|
|
934
|
+
/** Stable tenant-defined system id (e.g. "sys.lead-gen" or "sales.crm"). */
|
|
935
|
+
id: SystemIdSchema,
|
|
936
|
+
/** Human-readable system label shown in UI, governance, and operations surfaces. */
|
|
937
|
+
label: LabelSchema.optional(),
|
|
938
|
+
/** @deprecated Use label. Accepted for pre-consolidation System declarations. */
|
|
939
|
+
title: LabelSchema.optional(),
|
|
940
|
+
/** One-paragraph purpose statement for the bounded context. */
|
|
941
|
+
description: DescriptionSchema.optional(),
|
|
942
|
+
/** Closed system shape enum; catalog values remain tenant-defined. */
|
|
943
|
+
kind: SystemKindSchema.optional(),
|
|
944
|
+
/** Optional self-reference for System hierarchy. */
|
|
945
|
+
parentSystemId: SystemIdSchema.optional(),
|
|
946
|
+
/** Optional UI presence. Systems without UI omit this. */
|
|
947
|
+
ui: SystemUiSchema.optional(),
|
|
948
|
+
/** Canonical lifecycle state. Replaces Feature.enabled/devOnly and System.status. */
|
|
949
|
+
lifecycle: SystemLifecycleSchema.optional(),
|
|
950
|
+
/** Optional role responsible for this system. */
|
|
951
|
+
responsibleRoleId: ModelIdSchema.meta({ ref: "role" }).optional(),
|
|
952
|
+
/** Optional knowledge nodes that govern this system. */
|
|
953
|
+
governedByKnowledge: z.array(ModelIdSchema.meta({ ref: "knowledge" })).default([]).optional(),
|
|
954
|
+
/** Optional actions this system exposes or consumes. */
|
|
955
|
+
actions: z.array(ActionRefSchema).optional(),
|
|
956
|
+
/** Optional operational policies that apply to this system. */
|
|
957
|
+
policies: z.array(ModelIdSchema.meta({ ref: "policy" })).default([]).optional(),
|
|
958
|
+
/** Optional goals this system contributes to. */
|
|
959
|
+
drivesGoals: z.array(ModelIdSchema.meta({ ref: "goal" })).default([]).optional(),
|
|
960
|
+
/** Thin API runtime-boundary marker. Readiness is derived from scoped resources and topology. */
|
|
961
|
+
apiInterface: SystemApiInterfaceSchema.optional(),
|
|
962
|
+
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
963
|
+
status: SystemStatusSchema.optional(),
|
|
964
|
+
/** @deprecated Use ui.path. Kept for one-cycle Feature compatibility. */
|
|
965
|
+
path: PathSchema.optional(),
|
|
966
|
+
/** @deprecated Use ui.icon. Kept for one-cycle Feature compatibility. */
|
|
967
|
+
icon: IconNameSchema.optional(),
|
|
968
|
+
/** @deprecated Feature color token, retained for one-cycle compatibility. */
|
|
969
|
+
color: ColorTokenSchema.optional(),
|
|
970
|
+
/** @deprecated UI placement hint, retained for one-cycle compatibility. */
|
|
971
|
+
uiPosition: UiPositionSchema.optional(),
|
|
972
|
+
/** @deprecated Use lifecycle. */
|
|
973
|
+
enabled: z.boolean().optional(),
|
|
974
|
+
/** @deprecated Use lifecycle: "beta". */
|
|
975
|
+
devOnly: z.boolean().optional(),
|
|
976
|
+
requiresAdmin: z.boolean().optional(),
|
|
977
|
+
/** Domain-map iteration order. Convention: multiples of 10 (10, 20, 30, ...) to allow easy insertion. */
|
|
978
|
+
order: z.number(),
|
|
979
|
+
/**
|
|
980
|
+
* System-local JSON settings and defaults. Strongly typed OM fields,
|
|
981
|
+
* secrets, credentials, and runtime state stay outside this bucket.
|
|
982
|
+
*/
|
|
983
|
+
config: SystemConfigSchema,
|
|
984
|
+
/**
|
|
985
|
+
* System-owned ontology declarations. `systems` is now the canonical child
|
|
986
|
+
* key; this scope holds the object, action, catalog, link, event, and
|
|
987
|
+
* shared contract records owned by this system.
|
|
988
|
+
*/
|
|
989
|
+
ontology: OntologyScopeSchema.optional(),
|
|
990
|
+
/**
|
|
991
|
+
* Recursive child systems, authored via nesting (per L11).
|
|
992
|
+
* The key is the local system id; the full path is computed by joining
|
|
993
|
+
* ancestor keys with `.` (e.g. parent key `'sales'` + child key `'crm'` → `'sales.crm'`).
|
|
994
|
+
* Per Phase 4: `id` and `parentSystemId` fields will be removed in favour of
|
|
995
|
+
* position-derived paths. Both still exist on this schema for backward compat.
|
|
996
|
+
*/
|
|
997
|
+
systems: z.lazy(() => z.record(z.string().trim().min(1).max(100), SystemEntrySchema)).optional(),
|
|
998
|
+
/** @deprecated Use systems. Accepted as a compatibility alias during the ontology bridge. */
|
|
999
|
+
subsystems: z.lazy(() => z.record(z.string().trim().min(1).max(100), SystemEntrySchema)).optional()
|
|
1000
|
+
}).strict().refine((system) => system.label !== void 0 || system.title !== void 0, {
|
|
1001
|
+
path: ["label"],
|
|
1002
|
+
message: "System must provide label or title"
|
|
1003
|
+
}).transform((system) => {
|
|
1004
|
+
const normalizedSystem = system.systems !== void 0 && system.subsystems === void 0 ? { ...system, subsystems: system.systems } : system;
|
|
1005
|
+
if (normalizedSystem.status === void 0) return normalizedSystem;
|
|
1006
|
+
console.warn("[organization-model] System.status is deprecated; use System.lifecycle instead.");
|
|
1007
|
+
return normalizedSystem.lifecycle === void 0 ? { ...normalizedSystem, lifecycle: normalizedSystem.status } : normalizedSystem;
|
|
1008
|
+
});
|
|
1009
|
+
var SystemsDomainSchema = z.record(z.string(), SystemEntrySchema).refine((record) => Object.entries(record).every(([key, entry]) => entry.id === key), {
|
|
1010
|
+
message: "Each system entry id must match its map key"
|
|
1011
|
+
}).default({});
|
|
1012
|
+
var DEFAULT_ORGANIZATION_MODEL_SYSTEMS = {};
|
|
1013
|
+
|
|
650
1014
|
// ../core/src/organization-model/migration-helpers.ts
|
|
651
1015
|
function catalogRecords(model) {
|
|
652
1016
|
return Object.values(compileOrganizationOntology(model).ontology.catalogTypes);
|
|
@@ -790,23 +1154,12 @@ function getAllProjectStatuses(model, appliesTo) {
|
|
|
790
1154
|
}
|
|
791
1155
|
|
|
792
1156
|
// ../core/src/business/acquisition/ontology-validation.ts
|
|
793
|
-
var LEAD_GEN_API_INTERFACE =
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
readinessProfile: "sales.lead-gen.api"
|
|
797
|
-
};
|
|
798
|
-
var CRM_API_INTERFACE = {
|
|
799
|
-
systemPath: "sales.crm",
|
|
800
|
-
interfaceKey: "api",
|
|
801
|
-
readinessProfile: "sales.crm.api"
|
|
802
|
-
};
|
|
803
|
-
var LEAD_GEN_CRM_HANDOFF_INTERFACE = {
|
|
804
|
-
systemPath: "sales.lead-gen",
|
|
805
|
-
interfaceKey: "crm-handoff",
|
|
806
|
-
readinessProfile: "sales.lead-gen.crm-handoff"
|
|
807
|
-
};
|
|
1157
|
+
var LEAD_GEN_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[0];
|
|
1158
|
+
var CRM_API_INTERFACE = SYSTEM_INTERFACE_PROFILES[1];
|
|
1159
|
+
var LEAD_GEN_CRM_HANDOFF_INTERFACE = SYSTEM_INTERFACE_PROFILES[2];
|
|
808
1160
|
LEAD_GEN_API_INTERFACE.readinessProfile;
|
|
809
1161
|
CRM_API_INTERFACE.readinessProfile;
|
|
1162
|
+
LEAD_GEN_CRM_HANDOFF_INTERFACE.readinessProfile;
|
|
810
1163
|
var LEAD_GEN_LIST_OBJECT_ONTOLOGY_ID = formatOntologyId({
|
|
811
1164
|
scope: "sales.lead-gen",
|
|
812
1165
|
kind: "object",
|
|
@@ -884,6 +1237,9 @@ function profileForInterface(systemPath, interfaceKey, readinessProfile) {
|
|
|
884
1237
|
function readinessMarkerPath(context) {
|
|
885
1238
|
return context.interfaceKey === "api" ? `systems.${context.systemPath}.apiInterface` : `systems.${context.systemPath}.derivedCrmHandoffReadiness`;
|
|
886
1239
|
}
|
|
1240
|
+
function formatSupportedReadinessProfiles() {
|
|
1241
|
+
return SYSTEM_INTERFACE_READINESS_PROFILES.map((profile) => `"${profile}"`).join(", ");
|
|
1242
|
+
}
|
|
887
1243
|
function getActiveScopedResources(model, resourceIds, issues, context) {
|
|
888
1244
|
const resources = [];
|
|
889
1245
|
for (const [index, resourceId] of resourceIds.entries()) {
|
|
@@ -1142,7 +1498,13 @@ function computeInterfaceReadiness(model, request) {
|
|
|
1142
1498
|
`System "${request.systemPath}" is missing.`,
|
|
1143
1499
|
{ ref: request.systemPath }
|
|
1144
1500
|
);
|
|
1145
|
-
return {
|
|
1501
|
+
return {
|
|
1502
|
+
ready: false,
|
|
1503
|
+
systemPath: request.systemPath,
|
|
1504
|
+
interfaceKey: request.interfaceKey,
|
|
1505
|
+
scopedResourceIds,
|
|
1506
|
+
issues
|
|
1507
|
+
};
|
|
1146
1508
|
}
|
|
1147
1509
|
if (systemInterface === void 0) {
|
|
1148
1510
|
addReadinessIssue(
|
|
@@ -1152,7 +1514,13 @@ function computeInterfaceReadiness(model, request) {
|
|
|
1152
1514
|
`System "${request.systemPath}" does not declare interface "${request.interfaceKey}".`,
|
|
1153
1515
|
{ path: readinessMarkerPath(request) }
|
|
1154
1516
|
);
|
|
1155
|
-
return {
|
|
1517
|
+
return {
|
|
1518
|
+
ready: false,
|
|
1519
|
+
systemPath: request.systemPath,
|
|
1520
|
+
interfaceKey: request.interfaceKey,
|
|
1521
|
+
scopedResourceIds,
|
|
1522
|
+
issues
|
|
1523
|
+
};
|
|
1156
1524
|
}
|
|
1157
1525
|
if (systemInterface.lifecycle !== "active") {
|
|
1158
1526
|
addReadinessIssue(
|
|
@@ -1163,18 +1531,13 @@ function computeInterfaceReadiness(model, request) {
|
|
|
1163
1531
|
{ path: `${readinessMarkerPath(request)}.lifecycle` }
|
|
1164
1532
|
);
|
|
1165
1533
|
}
|
|
1166
|
-
const
|
|
1167
|
-
LEAD_GEN_API_INTERFACE.readinessProfile,
|
|
1168
|
-
CRM_API_INTERFACE.readinessProfile,
|
|
1169
|
-
LEAD_GEN_CRM_HANDOFF_INTERFACE.readinessProfile
|
|
1170
|
-
];
|
|
1171
|
-
const supportedProfile = readinessProfile !== void 0 && supportedProfiles.some((profile) => profile === readinessProfile);
|
|
1534
|
+
const supportedProfile = readinessProfile !== void 0 && SYSTEM_INTERFACE_PROFILES.some((profile) => profile.readinessProfile === readinessProfile);
|
|
1172
1535
|
if (!supportedProfile) {
|
|
1173
1536
|
addReadinessIssue(
|
|
1174
1537
|
issues,
|
|
1175
1538
|
"SYSTEM_INTERFACE_INVALID",
|
|
1176
1539
|
"unknown-readiness-profile",
|
|
1177
|
-
`System Interface "${formatInterfaceIdentity(request.systemPath, request.interfaceKey)}" references unknown readiness profile "${readinessProfile}".`,
|
|
1540
|
+
`System Interface "${formatInterfaceIdentity(request.systemPath, request.interfaceKey)}" references unknown readiness profile "${readinessProfile}". Supported profiles: ${formatSupportedReadinessProfiles()}. Custom Systems should not declare apiInterface; route custom behavior through workflows/operations plus ontology, resources, and topology.`,
|
|
1178
1541
|
{ path: `${readinessMarkerPath(request)}.readinessProfile`, ref: readinessProfile }
|
|
1179
1542
|
);
|
|
1180
1543
|
return {
|
|
@@ -1427,4 +1790,4 @@ function setupBrowserMocks() {
|
|
|
1427
1790
|
setupResizeObserver();
|
|
1428
1791
|
}
|
|
1429
1792
|
|
|
1430
|
-
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DEFAULT_ONTOLOGY_SCOPE, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LEAD_GEN_API_INTERFACE, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, OntologyIdSchema, OntologyScopeSchema, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, ancestorsOf, childrenOf, compileOrganizationOntology, computeInterfaceReadiness, debounce, defaultPathFor,
|
|
1793
|
+
export { APIClientError, API_URL, ActionInvocationSchema, ActionSchema, ActionsDomainSchema, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DescriptionSchema, EntitiesDomainSchema, EntitySchema, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, IconNameSchema, JsonValueSchema, LEAD_GEN_API_INTERFACE, LIMIT_ACTIVITY_FEED, LabelSchema, ModelIdSchema, NodeIdStringSchema, OAUTH_FLOW_TIMEOUT, OntologyIdSchema, OntologyScopeSchema, PAGE_SIZE_DEFAULT, PathSchema, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, SystemEntrySchema, SystemIdSchema, SystemInterfaceRefSchema, SystemLifecycleSchema, SystemPathSchema, SystemsDomainSchema, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, ancestorsOf, childrenOf, compileOrganizationOntology, computeInterfaceReadiness, debounce, defaultPathFor, defineActions, defineEntities, devOnlyFor, findById, findByPath, formatBucketTime, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getAllBuildTemplates, getAllPipelines, getAllProjectStatuses, getAllProspectingStages, getErrorInfo, getErrorTitle, getLeadGenStageCatalog, getResourceColor, getResourceIcon, getResourcesForSystem, getSystem, getSystemAncestors, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, parentOf, parseOntologyId, requiresAdminFor, resolveSystemConfig, restoreConsole, setupBrowserMocks, suppressKnownWarnings, topLevel, validateEmail };
|
|
@@ -1698,6 +1698,7 @@ type Database = {
|
|
|
1698
1698
|
organization_id: string;
|
|
1699
1699
|
primary_company_id: string | null;
|
|
1700
1700
|
primary_contact_id: string | null;
|
|
1701
|
+
source: string;
|
|
1701
1702
|
source_deal_id: string | null;
|
|
1702
1703
|
status: string;
|
|
1703
1704
|
updated_at: string;
|
|
@@ -1711,6 +1712,7 @@ type Database = {
|
|
|
1711
1712
|
organization_id: string;
|
|
1712
1713
|
primary_company_id?: string | null;
|
|
1713
1714
|
primary_contact_id?: string | null;
|
|
1715
|
+
source?: string;
|
|
1714
1716
|
source_deal_id?: string | null;
|
|
1715
1717
|
status?: string;
|
|
1716
1718
|
updated_at?: string;
|
|
@@ -1724,6 +1726,7 @@ type Database = {
|
|
|
1724
1726
|
organization_id?: string;
|
|
1725
1727
|
primary_company_id?: string | null;
|
|
1726
1728
|
primary_contact_id?: string | null;
|
|
1729
|
+
source?: string;
|
|
1727
1730
|
source_deal_id?: string | null;
|
|
1728
1731
|
status?: string;
|
|
1729
1732
|
updated_at?: string;
|
|
@@ -4153,7 +4156,11 @@ declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
|
4153
4156
|
archived: "archived";
|
|
4154
4157
|
disabled: "disabled";
|
|
4155
4158
|
}>>;
|
|
4156
|
-
readinessProfile: z.ZodOptional<z.
|
|
4159
|
+
readinessProfile: z.ZodOptional<z.ZodEnum<{
|
|
4160
|
+
"sales.lead-gen.api": "sales.lead-gen.api";
|
|
4161
|
+
"sales.crm.api": "sales.crm.api";
|
|
4162
|
+
"sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
|
|
4163
|
+
}>>;
|
|
4157
4164
|
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4158
4165
|
}, z.core.$strict>;
|
|
4159
4166
|
type JsonPrimitive = string | number | boolean | null;
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useNewKnowledgeMapLayout, useRecentCrmActivity } from '../chunk-
|
|
1
|
+
export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useNewKnowledgeMapLayout, useRecentCrmActivity } from '../chunk-FUKNHVUV.js';
|
|
2
2
|
import '../chunk-NZ2F5RQ4.js';
|
|
3
3
|
import '../chunk-OJJK27GC.js';
|
|
4
4
|
import '../chunk-AUDNF2Q7.js';
|
|
@@ -9,7 +9,7 @@ import '../chunk-SJHM4WDG.js';
|
|
|
9
9
|
import '../chunk-ZTWA5H77.js';
|
|
10
10
|
export { CardHeader } from '../chunk-S3XR4II4.js';
|
|
11
11
|
import '../chunk-6DO4PE3O.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-NVVAQNKE.js';
|
|
13
13
|
import '../chunk-DD3CCMCZ.js';
|
|
14
14
|
export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, seoManifest } from '../chunk-GMXGDO3I.js';
|
|
15
15
|
import '../chunk-2IFYDILW.js';
|
|
@@ -18,7 +18,7 @@ export { Graph_module_css_default as graphStyles } from '../chunk-HENXLGVD.js';
|
|
|
18
18
|
export { CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS } from '../chunk-7FPLLSHN.js';
|
|
19
19
|
import '../chunk-RNP5R5I3.js';
|
|
20
20
|
import '../chunk-W2SFTXMT.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-XDEUR36B.js';
|
|
22
22
|
import '../chunk-KRWALB24.js';
|
|
23
23
|
import '../chunk-2FTX4WO2.js';
|
|
24
24
|
import '../chunk-MQZE7SUI.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useBreadcrumbs } from '../../chunk-
|
|
1
|
+
export { useBreadcrumbs } from '../../chunk-FUKNHVUV.js';
|
|
2
2
|
import '../../chunk-NZ2F5RQ4.js';
|
|
3
3
|
import '../../chunk-OJJK27GC.js';
|
|
4
4
|
import '../../chunk-AUDNF2Q7.js';
|
|
@@ -9,7 +9,7 @@ import '../../chunk-SJHM4WDG.js';
|
|
|
9
9
|
import '../../chunk-ZTWA5H77.js';
|
|
10
10
|
import '../../chunk-S3XR4II4.js';
|
|
11
11
|
import '../../chunk-6DO4PE3O.js';
|
|
12
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-NVVAQNKE.js';
|
|
13
13
|
import '../../chunk-DD3CCMCZ.js';
|
|
14
14
|
import '../../chunk-GMXGDO3I.js';
|
|
15
15
|
import '../../chunk-2IFYDILW.js';
|
|
@@ -18,7 +18,7 @@ import '../../chunk-HENXLGVD.js';
|
|
|
18
18
|
import '../../chunk-7FPLLSHN.js';
|
|
19
19
|
import '../../chunk-RNP5R5I3.js';
|
|
20
20
|
import '../../chunk-W2SFTXMT.js';
|
|
21
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-XDEUR36B.js';
|
|
22
22
|
import '../../chunk-KRWALB24.js';
|
|
23
23
|
import '../../chunk-2FTX4WO2.js';
|
|
24
24
|
import '../../chunk-MQZE7SUI.js';
|
|
@@ -1253,6 +1253,7 @@ type Database = {
|
|
|
1253
1253
|
organization_id: string;
|
|
1254
1254
|
primary_company_id: string | null;
|
|
1255
1255
|
primary_contact_id: string | null;
|
|
1256
|
+
source: string;
|
|
1256
1257
|
source_deal_id: string | null;
|
|
1257
1258
|
status: string;
|
|
1258
1259
|
updated_at: string;
|
|
@@ -1266,6 +1267,7 @@ type Database = {
|
|
|
1266
1267
|
organization_id: string;
|
|
1267
1268
|
primary_company_id?: string | null;
|
|
1268
1269
|
primary_contact_id?: string | null;
|
|
1270
|
+
source?: string;
|
|
1269
1271
|
source_deal_id?: string | null;
|
|
1270
1272
|
status?: string;
|
|
1271
1273
|
updated_at?: string;
|
|
@@ -1279,6 +1281,7 @@ type Database = {
|
|
|
1279
1281
|
organization_id?: string;
|
|
1280
1282
|
primary_company_id?: string | null;
|
|
1281
1283
|
primary_contact_id?: string | null;
|
|
1284
|
+
source?: string;
|
|
1282
1285
|
source_deal_id?: string | null;
|
|
1283
1286
|
status?: string;
|
|
1284
1287
|
updated_at?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtectedRoute, AppearanceContext, AppShellError, useAppearance } from '../../chunk-
|
|
2
|
-
export { AccessGuard } from '../../chunk-
|
|
1
|
+
import { ProtectedRoute, AppearanceContext, AppShellError, useAppearance } from '../../chunk-FUKNHVUV.js';
|
|
2
|
+
export { AccessGuard } from '../../chunk-FUKNHVUV.js';
|
|
3
3
|
import '../../chunk-NZ2F5RQ4.js';
|
|
4
4
|
import '../../chunk-OJJK27GC.js';
|
|
5
5
|
import '../../chunk-AUDNF2Q7.js';
|
|
@@ -10,7 +10,7 @@ import '../../chunk-SJHM4WDG.js';
|
|
|
10
10
|
import '../../chunk-ZTWA5H77.js';
|
|
11
11
|
import '../../chunk-S3XR4II4.js';
|
|
12
12
|
import { useInitialization } from '../../chunk-6DO4PE3O.js';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-NVVAQNKE.js';
|
|
14
14
|
import '../../chunk-DD3CCMCZ.js';
|
|
15
15
|
import '../../chunk-GMXGDO3I.js';
|
|
16
16
|
import '../../chunk-2IFYDILW.js';
|
|
@@ -19,7 +19,7 @@ import '../../chunk-HENXLGVD.js';
|
|
|
19
19
|
import '../../chunk-7FPLLSHN.js';
|
|
20
20
|
import '../../chunk-RNP5R5I3.js';
|
|
21
21
|
export { useUserProfile } from '../../chunk-W2SFTXMT.js';
|
|
22
|
-
import '../../chunk-
|
|
22
|
+
import '../../chunk-XDEUR36B.js';
|
|
23
23
|
import '../../chunk-KRWALB24.js';
|
|
24
24
|
import '../../chunk-2FTX4WO2.js';
|
|
25
25
|
import '../../chunk-MQZE7SUI.js';
|