@elevasis/ui 2.72.0 → 2.74.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 +172 -20
- package/dist/app/index.js +9 -10
- package/dist/auth/index.js +5 -6
- package/dist/charts/index.js +5 -6
- package/dist/chunk-2GIJBHZT.js +60 -0
- package/dist/{chunk-2454MK7P.js → chunk-2MRRDF32.js} +115 -8
- package/dist/chunk-3LOKYZJC.js +231 -0
- package/dist/chunk-3QHX4ZKV.js +224 -0
- package/dist/chunk-43LC6XAX.js +69 -0
- package/dist/chunk-4M2BSHVT.js +116 -0
- package/dist/{chunk-SV4M2BUI.js → chunk-4MXNHJTA.js} +111 -46
- package/dist/{chunk-LEQGGX2U.js → chunk-5A6KCFS5.js} +36 -43
- package/dist/{chunk-KIDZXZM5.js → chunk-6JN2TLV2.js} +1480 -4200
- package/dist/{chunk-UZ5JO5TK.js → chunk-7ARBBELS.js} +1 -1
- package/dist/{chunk-DJWIIPKW.js → chunk-7RJ7P6S6.js} +6 -3
- package/dist/chunk-ARAFQBNI.js +515 -0
- package/dist/{chunk-DKVGO6RJ.js → chunk-BA3AZJUR.js} +1 -1
- package/dist/chunk-BRTGCFBH.js +305 -0
- package/dist/{chunk-7ESZKTQG.js → chunk-CQPULKKL.js} +5 -3
- package/dist/chunk-CRA7WQZH.js +49 -0
- package/dist/{chunk-XZIOCB5D.js → chunk-DCQKTDIG.js} +2 -52
- package/dist/{chunk-A3JHFZDP.js → chunk-E6YGA5WH.js} +1 -1
- package/dist/chunk-FA7LMNQO.js +439 -0
- package/dist/chunk-FZSG6M6W.js +45 -0
- package/dist/chunk-GDOR57D7.js +165 -0
- package/dist/{chunk-RRS2QR3W.js → chunk-GO4XJ5D4.js} +1 -1
- package/dist/chunk-GPQQGQGT.js +645 -0
- package/dist/chunk-HYQOGRWG.js +54 -0
- package/dist/{chunk-LCHL5SM2.js → chunk-LN4UW6S4.js} +1 -1
- package/dist/chunk-N6K2Q5BM.js +393 -0
- package/dist/{chunk-Z2W5VNN3.js → chunk-O32UQ26A.js} +3 -2
- package/dist/{chunk-M7WWRZ5Z.js → chunk-QFGNRKIE.js} +1 -78
- package/dist/{chunk-Q3O3WY7Q.js → chunk-R5UGIFYU.js} +74 -18
- package/dist/{chunk-753MKWFV.js → chunk-RFNJ2PTO.js} +1 -1
- package/dist/chunk-VM2OWOXL.js +24 -0
- package/dist/{chunk-ZBXCEWKF.js → chunk-W2QRBQQA.js} +5 -3
- package/dist/chunk-WDBNW44Z.js +49 -0
- package/dist/{chunk-IXBRUIYI.js → chunk-WZU3MCKI.js} +1 -1
- package/dist/chunk-YQQ5GRUR.js +21 -0
- package/dist/{chunk-IMZTRDY2.js → chunk-ZFA56VSR.js} +2 -2
- package/dist/{chunk-AFBFSXP3.js → chunk-ZWI62BQ6.js} +7 -4
- package/dist/chunk-ZYNVCWDZ.js +286 -0
- package/dist/components/index.d.ts +490 -22
- package/dist/components/index.js +335 -35
- package/dist/components/navigation/index.js +6 -7
- package/dist/features/auth/index.d.ts +154 -2
- package/dist/features/auth/index.js +18 -9
- package/dist/features/clients/index.js +7 -7
- package/dist/features/content/index.d.ts +718 -34
- package/dist/features/content/index.js +1345 -51
- package/dist/features/crm/index.d.ts +172 -20
- package/dist/features/crm/index.js +10 -8
- package/dist/features/dashboard/index.d.ts +19 -10
- package/dist/features/dashboard/index.js +9 -8
- package/dist/features/delivery/index.d.ts +134 -0
- package/dist/features/delivery/index.js +23 -7
- package/dist/features/knowledge/index.js +5 -6
- package/dist/features/lead-gen/index.d.ts +47 -35
- package/dist/features/lead-gen/index.js +12 -8
- package/dist/features/monitoring/index.js +11 -9
- package/dist/features/monitoring/requests/index.js +8 -7
- package/dist/features/operations/index.d.ts +38 -20
- package/dist/features/operations/index.js +15 -11
- package/dist/features/public-agent-chat/index.js +3 -1
- package/dist/features/settings/index.d.ts +134 -0
- package/dist/features/settings/index.js +9 -8
- package/dist/hooks/access/index.js +5 -6
- package/dist/hooks/delivery/index.d.ts +134 -0
- package/dist/hooks/delivery/index.js +3 -2
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +20 -11
- package/dist/hooks/published.d.ts +1421 -29
- package/dist/hooks/published.js +22 -6
- package/dist/initialization/index.d.ts +134 -0
- package/dist/knowledge/index.d.ts +38 -20
- package/dist/knowledge/index.js +167 -11
- package/dist/{knowledge-search-index-RZLIVWPJ.js → knowledge-search-index-6GQK55IQ.js} +1 -1
- package/dist/layout/index.js +8 -9
- package/dist/profile/index.d.ts +134 -0
- package/dist/provider/index.d.ts +191 -21
- package/dist/provider/index.js +5 -6
- package/dist/provider/published.d.ts +219 -21
- package/dist/provider/published.js +5 -6
- package/dist/test-utils/index.d.ts +16 -5
- package/dist/test-utils/index.js +17 -18
- package/dist/types/index.d.ts +184 -14
- package/dist/utils/index.d.ts +102 -13
- package/dist/utils/index.js +1 -1
- package/package.json +7 -6
- package/dist/chunk-6M6OLGQY.js +0 -36
- package/dist/chunk-MKH2KOAO.js +0 -39
- package/dist/hooks/index.css +0 -659
- package/dist/hooks/index.d.ts +0 -12853
- package/dist/hooks/index.js +0 -27
- package/dist/supabase/index.d.ts +0 -6969
- package/dist/supabase/index.js +0 -3
- package/dist/typeform/index.d.ts +0 -462
- package/dist/typeform/index.js +0 -2051
- package/dist/typeform/schemas.d.ts +0 -67
- package/dist/typeform/schemas.js +0 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -541,8 +541,13 @@ type StrictStatus = 'applied' | 'refused' | 'compileRejected' | 'notAttempted';
|
|
|
541
541
|
|
|
542
542
|
/**
|
|
543
543
|
* Supported Open AI models (direct SDK access)
|
|
544
|
+
*
|
|
545
|
+
* The GPT-5.6 tiers are three separate ids rather than the bare `gpt-5.6` alias. Upstream that
|
|
546
|
+
* alias routes to Sol, so registering it would put two keys with identical pricing in `MODEL_INFO`
|
|
547
|
+
* and hide which tier actually ran in `ai_calls`. Leaving it out means a caller who writes
|
|
548
|
+
* `'gpt-5.6'` is rejected by the dispatcher rather than silently billed at Sol rates.
|
|
544
549
|
*/
|
|
545
|
-
type OpenAIModel = 'gpt-5' | 'gpt-5.4-mini' | 'gpt-5.4-nano';
|
|
550
|
+
type OpenAIModel = 'gpt-5' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna';
|
|
546
551
|
/**
|
|
547
552
|
* Supported OpenRouter models (explicit union for type safety)
|
|
548
553
|
*/
|
|
@@ -558,15 +563,36 @@ type LLMModel = OpenAIModel | OpenRouterModel | AnthropicModel | 'mock';
|
|
|
558
563
|
*/
|
|
559
564
|
declare const GPT5OptionsSchema: z.ZodObject<{
|
|
560
565
|
reasoning_effort: z.ZodOptional<z.ZodEnum<{
|
|
566
|
+
low: "low";
|
|
567
|
+
high: "high";
|
|
561
568
|
minimal: "minimal";
|
|
569
|
+
medium: "medium";
|
|
570
|
+
}>>;
|
|
571
|
+
verbosity: z.ZodOptional<z.ZodEnum<{
|
|
562
572
|
low: "low";
|
|
573
|
+
high: "high";
|
|
563
574
|
medium: "medium";
|
|
575
|
+
}>>;
|
|
576
|
+
}, z.core.$strip>;
|
|
577
|
+
/**
|
|
578
|
+
* GPT-5.6 model options schema
|
|
579
|
+
*
|
|
580
|
+
* NOT the GPT-5 enum. 5.6 removed `minimal` and added `none`, `xhigh`, and `max`, so reusing
|
|
581
|
+
* `GPT5OptionsSchema` would accept one value 5.6 rejects and reject three it accepts.
|
|
582
|
+
*/
|
|
583
|
+
declare const GPT56OptionsSchema: z.ZodObject<{
|
|
584
|
+
reasoning_effort: z.ZodOptional<z.ZodEnum<{
|
|
585
|
+
none: "none";
|
|
586
|
+
low: "low";
|
|
564
587
|
high: "high";
|
|
588
|
+
medium: "medium";
|
|
589
|
+
xhigh: "xhigh";
|
|
590
|
+
max: "max";
|
|
565
591
|
}>>;
|
|
566
592
|
verbosity: z.ZodOptional<z.ZodEnum<{
|
|
567
593
|
low: "low";
|
|
568
|
-
medium: "medium";
|
|
569
594
|
high: "high";
|
|
595
|
+
medium: "medium";
|
|
570
596
|
}>>;
|
|
571
597
|
}, z.core.$strip>;
|
|
572
598
|
/**
|
|
@@ -588,10 +614,11 @@ declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
|
588
614
|
* Infer TypeScript types from schemas
|
|
589
615
|
*/
|
|
590
616
|
type GPT5Options = z.infer<typeof GPT5OptionsSchema>;
|
|
617
|
+
type GPT56Options = z.infer<typeof GPT56OptionsSchema>;
|
|
591
618
|
type MockOptions = Record<string, never>;
|
|
592
619
|
type OpenRouterOptions = z.infer<typeof OpenRouterOptionsSchema>;
|
|
593
620
|
type AnthropicOptions = z.infer<typeof AnthropicOptionsSchema>;
|
|
594
|
-
type ModelSpecificOptions = GPT5Options | MockOptions | OpenRouterOptions | AnthropicOptions;
|
|
621
|
+
type ModelSpecificOptions = GPT5Options | GPT56Options | MockOptions | OpenRouterOptions | AnthropicOptions;
|
|
595
622
|
/**
|
|
596
623
|
* Model configuration for LLM execution
|
|
597
624
|
* Belongs in resource definition (AgentDefinition, WorkflowDefinition, etc.)
|
|
@@ -2198,6 +2225,64 @@ type Database = {
|
|
|
2198
2225
|
}
|
|
2199
2226
|
];
|
|
2200
2227
|
};
|
|
2228
|
+
content_distribution_metrics: {
|
|
2229
|
+
Row: {
|
|
2230
|
+
captured_at: string;
|
|
2231
|
+
created_at: string;
|
|
2232
|
+
distribution_id: string;
|
|
2233
|
+
id: string;
|
|
2234
|
+
metrics: Json;
|
|
2235
|
+
organization_id: string;
|
|
2236
|
+
raw: Json;
|
|
2237
|
+
source: string;
|
|
2238
|
+
source_execution_id: string | null;
|
|
2239
|
+
};
|
|
2240
|
+
Insert: {
|
|
2241
|
+
captured_at?: string;
|
|
2242
|
+
created_at?: string;
|
|
2243
|
+
distribution_id: string;
|
|
2244
|
+
id?: string;
|
|
2245
|
+
metrics?: Json;
|
|
2246
|
+
organization_id: string;
|
|
2247
|
+
raw?: Json;
|
|
2248
|
+
source: string;
|
|
2249
|
+
source_execution_id?: string | null;
|
|
2250
|
+
};
|
|
2251
|
+
Update: {
|
|
2252
|
+
captured_at?: string;
|
|
2253
|
+
created_at?: string;
|
|
2254
|
+
distribution_id?: string;
|
|
2255
|
+
id?: string;
|
|
2256
|
+
metrics?: Json;
|
|
2257
|
+
organization_id?: string;
|
|
2258
|
+
raw?: Json;
|
|
2259
|
+
source?: string;
|
|
2260
|
+
source_execution_id?: string | null;
|
|
2261
|
+
};
|
|
2262
|
+
Relationships: [
|
|
2263
|
+
{
|
|
2264
|
+
foreignKeyName: "content_distribution_metrics_distribution_fkey";
|
|
2265
|
+
columns: ["distribution_id", "organization_id"];
|
|
2266
|
+
isOneToOne: false;
|
|
2267
|
+
referencedRelation: "content_distributions";
|
|
2268
|
+
referencedColumns: ["id", "organization_id"];
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
foreignKeyName: "content_distribution_metrics_organization_id_fkey";
|
|
2272
|
+
columns: ["organization_id"];
|
|
2273
|
+
isOneToOne: false;
|
|
2274
|
+
referencedRelation: "organizations";
|
|
2275
|
+
referencedColumns: ["id"];
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
foreignKeyName: "content_distribution_metrics_source_execution_id_fkey";
|
|
2279
|
+
columns: ["source_execution_id"];
|
|
2280
|
+
isOneToOne: false;
|
|
2281
|
+
referencedRelation: "execution_logs";
|
|
2282
|
+
referencedColumns: ["execution_id"];
|
|
2283
|
+
}
|
|
2284
|
+
];
|
|
2285
|
+
};
|
|
2201
2286
|
content_distributions: {
|
|
2202
2287
|
Row: {
|
|
2203
2288
|
adapted_body: string | null;
|
|
@@ -2347,6 +2432,63 @@ type Database = {
|
|
|
2347
2432
|
}
|
|
2348
2433
|
];
|
|
2349
2434
|
};
|
|
2435
|
+
content_item_source_assets: {
|
|
2436
|
+
Row: {
|
|
2437
|
+
alt_text: string | null;
|
|
2438
|
+
content_item_id: string;
|
|
2439
|
+
created_at: string;
|
|
2440
|
+
crop: Json | null;
|
|
2441
|
+
derivative_crop: Json | null;
|
|
2442
|
+
derivative_path: string | null;
|
|
2443
|
+
derivative_rendered_at: string | null;
|
|
2444
|
+
id: string;
|
|
2445
|
+
organization_id: string;
|
|
2446
|
+
position: number;
|
|
2447
|
+
source_asset_id: string;
|
|
2448
|
+
};
|
|
2449
|
+
Insert: {
|
|
2450
|
+
alt_text?: string | null;
|
|
2451
|
+
content_item_id: string;
|
|
2452
|
+
created_at?: string;
|
|
2453
|
+
crop?: Json | null;
|
|
2454
|
+
derivative_crop?: Json | null;
|
|
2455
|
+
derivative_path?: string | null;
|
|
2456
|
+
derivative_rendered_at?: string | null;
|
|
2457
|
+
id?: string;
|
|
2458
|
+
organization_id: string;
|
|
2459
|
+
position: number;
|
|
2460
|
+
source_asset_id: string;
|
|
2461
|
+
};
|
|
2462
|
+
Update: {
|
|
2463
|
+
alt_text?: string | null;
|
|
2464
|
+
content_item_id?: string;
|
|
2465
|
+
created_at?: string;
|
|
2466
|
+
crop?: Json | null;
|
|
2467
|
+
derivative_crop?: Json | null;
|
|
2468
|
+
derivative_path?: string | null;
|
|
2469
|
+
derivative_rendered_at?: string | null;
|
|
2470
|
+
id?: string;
|
|
2471
|
+
organization_id?: string;
|
|
2472
|
+
position?: number;
|
|
2473
|
+
source_asset_id?: string;
|
|
2474
|
+
};
|
|
2475
|
+
Relationships: [
|
|
2476
|
+
{
|
|
2477
|
+
foreignKeyName: "content_item_source_assets_asset_fkey";
|
|
2478
|
+
columns: ["source_asset_id", "organization_id"];
|
|
2479
|
+
isOneToOne: false;
|
|
2480
|
+
referencedRelation: "content_source_assets";
|
|
2481
|
+
referencedColumns: ["id", "organization_id"];
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
foreignKeyName: "content_item_source_assets_item_fkey";
|
|
2485
|
+
columns: ["content_item_id", "organization_id"];
|
|
2486
|
+
isOneToOne: false;
|
|
2487
|
+
referencedRelation: "content_items";
|
|
2488
|
+
referencedColumns: ["id", "organization_id"];
|
|
2489
|
+
}
|
|
2490
|
+
];
|
|
2491
|
+
};
|
|
2350
2492
|
content_items: {
|
|
2351
2493
|
Row: {
|
|
2352
2494
|
body: string | null;
|
|
@@ -4102,6 +4244,25 @@ type Database = {
|
|
|
4102
4244
|
};
|
|
4103
4245
|
Returns: Json;
|
|
4104
4246
|
};
|
|
4247
|
+
activate_deployment_atomic: {
|
|
4248
|
+
Args: {
|
|
4249
|
+
p_deployment_id: string;
|
|
4250
|
+
p_organization_id: string;
|
|
4251
|
+
};
|
|
4252
|
+
Returns: {
|
|
4253
|
+
created_at: string;
|
|
4254
|
+
deployment_version: string | null;
|
|
4255
|
+
error_message: string | null;
|
|
4256
|
+
id: string;
|
|
4257
|
+
organization_id: string;
|
|
4258
|
+
pid: number | null;
|
|
4259
|
+
port: number | null;
|
|
4260
|
+
sdk_version: string;
|
|
4261
|
+
status: string;
|
|
4262
|
+
tarball_path: string | null;
|
|
4263
|
+
updated_at: string;
|
|
4264
|
+
};
|
|
4265
|
+
};
|
|
4105
4266
|
append_deal_activity: {
|
|
4106
4267
|
Args: {
|
|
4107
4268
|
p_activity: Json;
|
|
@@ -4647,7 +4808,9 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4647
4808
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4648
4809
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4649
4810
|
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4650
|
-
|
|
4811
|
+
rowSchema: z.ZodOptional<z.ZodString>;
|
|
4812
|
+
stateCatalogId: z.ZodOptional<z.ZodString>;
|
|
4813
|
+
}, z.core.$strict>>>>;
|
|
4651
4814
|
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4652
4815
|
id: z.ZodString;
|
|
4653
4816
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -4658,7 +4821,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4658
4821
|
to: z.ZodString;
|
|
4659
4822
|
cardinality: z.ZodOptional<z.ZodString>;
|
|
4660
4823
|
via: z.ZodOptional<z.ZodString>;
|
|
4661
|
-
}, z.core.$
|
|
4824
|
+
}, z.core.$strict>>>>;
|
|
4662
4825
|
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4663
4826
|
id: z.ZodString;
|
|
4664
4827
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -4668,7 +4831,11 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4668
4831
|
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4669
4832
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4670
4833
|
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
4671
|
-
|
|
4834
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
4835
|
+
invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
4836
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
4837
|
+
legacyActionId: z.ZodOptional<z.ZodString>;
|
|
4838
|
+
}, z.core.$strict>>>>;
|
|
4672
4839
|
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4673
4840
|
id: z.ZodString;
|
|
4674
4841
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -4678,7 +4845,10 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4678
4845
|
kind: z.ZodOptional<z.ZodString>;
|
|
4679
4846
|
appliesTo: z.ZodOptional<z.ZodString>;
|
|
4680
4847
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4681
|
-
|
|
4848
|
+
legacyCatalogKey: z.ZodOptional<z.ZodString>;
|
|
4849
|
+
legacyPipelineKey: z.ZodOptional<z.ZodString>;
|
|
4850
|
+
legacyEntityKey: z.ZodOptional<z.ZodString>;
|
|
4851
|
+
}, z.core.$strict>>>>;
|
|
4682
4852
|
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4683
4853
|
id: z.ZodString;
|
|
4684
4854
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -4686,7 +4856,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4686
4856
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4687
4857
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4688
4858
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4689
|
-
}, z.core.$
|
|
4859
|
+
}, z.core.$strict>>>>;
|
|
4690
4860
|
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4691
4861
|
id: z.ZodString;
|
|
4692
4862
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -4694,7 +4864,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4694
4864
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4695
4865
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4696
4866
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4697
|
-
}, z.core.$
|
|
4867
|
+
}, z.core.$strict>>>>;
|
|
4698
4868
|
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4699
4869
|
id: z.ZodString;
|
|
4700
4870
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -4702,7 +4872,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4702
4872
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4703
4873
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4704
4874
|
primitive: z.ZodOptional<z.ZodString>;
|
|
4705
|
-
}, z.core.$
|
|
4875
|
+
}, z.core.$strict>>>>;
|
|
4706
4876
|
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4707
4877
|
id: z.ZodString;
|
|
4708
4878
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -4712,7 +4882,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4712
4882
|
valueType: z.ZodOptional<z.ZodString>;
|
|
4713
4883
|
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
4714
4884
|
pii: z.ZodOptional<z.ZodBoolean>;
|
|
4715
|
-
}, z.core.$
|
|
4885
|
+
}, z.core.$strict>>>>;
|
|
4716
4886
|
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4717
4887
|
id: z.ZodString;
|
|
4718
4888
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -4720,7 +4890,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4720
4890
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4721
4891
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4722
4892
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
4723
|
-
}, z.core.$
|
|
4893
|
+
}, z.core.$strict>>>>;
|
|
4724
4894
|
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4725
4895
|
id: z.ZodString;
|
|
4726
4896
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -4728,7 +4898,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4728
4898
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
4729
4899
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4730
4900
|
route: z.ZodOptional<z.ZodString>;
|
|
4731
|
-
}, z.core.$
|
|
4901
|
+
}, z.core.$strict>>>>;
|
|
4732
4902
|
}, z.core.$strict>>;
|
|
4733
4903
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
4734
4904
|
|
|
@@ -5630,7 +5800,7 @@ type AIResourceDefinition = SerializedWorkflowDefinition | SerializedAgentDefini
|
|
|
5630
5800
|
* Note: Concrete adapter implementations are deferred until needed.
|
|
5631
5801
|
* This type provides compile-time safety and auto-completion for tool definitions.
|
|
5632
5802
|
*/
|
|
5633
|
-
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier';
|
|
5803
|
+
type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier' | 'instagram';
|
|
5634
5804
|
|
|
5635
5805
|
/**
|
|
5636
5806
|
* Resource Registry type definitions
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -95,7 +95,9 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
95
95
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
96
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
97
97
|
storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
98
|
-
|
|
98
|
+
rowSchema: z.ZodOptional<z.ZodString>;
|
|
99
|
+
stateCatalogId: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strict>>>>;
|
|
99
101
|
linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
100
102
|
id: z.ZodString;
|
|
101
103
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -106,7 +108,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
106
108
|
to: z.ZodString;
|
|
107
109
|
cardinality: z.ZodOptional<z.ZodString>;
|
|
108
110
|
via: z.ZodOptional<z.ZodString>;
|
|
109
|
-
}, z.core.$
|
|
111
|
+
}, z.core.$strict>>>>;
|
|
110
112
|
actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
111
113
|
id: z.ZodString;
|
|
112
114
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -116,7 +118,11 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
116
118
|
actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
117
119
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
118
120
|
effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
119
|
-
|
|
121
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
122
|
+
invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
123
|
+
lifecycle: z.ZodOptional<z.ZodString>;
|
|
124
|
+
legacyActionId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, z.core.$strict>>>>;
|
|
120
126
|
catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
121
127
|
id: z.ZodString;
|
|
122
128
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -126,7 +132,10 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
126
132
|
kind: z.ZodOptional<z.ZodString>;
|
|
127
133
|
appliesTo: z.ZodOptional<z.ZodString>;
|
|
128
134
|
entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
129
|
-
|
|
135
|
+
legacyCatalogKey: z.ZodOptional<z.ZodString>;
|
|
136
|
+
legacyPipelineKey: z.ZodOptional<z.ZodString>;
|
|
137
|
+
legacyEntityKey: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, z.core.$strict>>>>;
|
|
130
139
|
eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
131
140
|
id: z.ZodString;
|
|
132
141
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -134,7 +143,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
134
143
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
135
144
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
136
145
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
137
|
-
}, z.core.$
|
|
146
|
+
}, z.core.$strict>>>>;
|
|
138
147
|
interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
139
148
|
id: z.ZodString;
|
|
140
149
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -142,7 +151,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
142
151
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
143
152
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
153
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
145
|
-
}, z.core.$
|
|
154
|
+
}, z.core.$strict>>>>;
|
|
146
155
|
valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
147
156
|
id: z.ZodString;
|
|
148
157
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -150,7 +159,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
150
159
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
151
160
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
152
161
|
primitive: z.ZodOptional<z.ZodString>;
|
|
153
|
-
}, z.core.$
|
|
162
|
+
}, z.core.$strict>>>>;
|
|
154
163
|
sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
164
|
id: z.ZodString;
|
|
156
165
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -160,7 +169,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
160
169
|
valueType: z.ZodOptional<z.ZodString>;
|
|
161
170
|
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
162
171
|
pii: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
-
}, z.core.$
|
|
172
|
+
}, z.core.$strict>>>>;
|
|
164
173
|
groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
165
174
|
id: z.ZodString;
|
|
166
175
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -168,7 +177,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
168
177
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
169
178
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
170
179
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
171
|
-
}, z.core.$
|
|
180
|
+
}, z.core.$strict>>>>;
|
|
172
181
|
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
173
182
|
id: z.ZodString;
|
|
174
183
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -176,7 +185,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
176
185
|
ownerSystemId: z.ZodOptional<z.ZodString>;
|
|
177
186
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
178
187
|
route: z.ZodOptional<z.ZodString>;
|
|
179
|
-
}, z.core.$
|
|
188
|
+
}, z.core.$strict>>>>;
|
|
180
189
|
}, z.core.$strict>>;
|
|
181
190
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
182
191
|
|
|
@@ -257,6 +266,45 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
257
266
|
}, z.core.$strip>;
|
|
258
267
|
type Link = z.infer<typeof LinkSchema>;
|
|
259
268
|
|
|
269
|
+
/**
|
|
270
|
+
* Registration surface for the generic readiness engine (`./engine`).
|
|
271
|
+
*
|
|
272
|
+
* This module owns two independent extension points so `./engine` never has
|
|
273
|
+
* to import anything from `business/**`:
|
|
274
|
+
*
|
|
275
|
+
* - `registerBuiltInReadinessProfile` — a profile id (e.g. `sales.lead-gen.api`)
|
|
276
|
+
* maps to structural validation logic plus an optional model-preparation
|
|
277
|
+
* hook run before ontology compilation (e.g. injecting a derived catalog).
|
|
278
|
+
* This is the ONE readiness-profile registry (`_builtInProfileValidators`
|
|
279
|
+
* below) — `../domains/systems`'s `isBuiltInReadinessProfile` /
|
|
280
|
+
* `lookupReadinessProfile` read it directly via `getBuiltInReadinessProfile`
|
|
281
|
+
* rather than mirroring registrations into a second map, so a profile id
|
|
282
|
+
* can never read as built-in without an actual registered validator.
|
|
283
|
+
* - `registerReadinessInterfaceMarker` — a `(systemPath, interfaceKey)` pair
|
|
284
|
+
* maps to a synthesized interface marker for interfaces that are not
|
|
285
|
+
* authored on `system.apiInterface` (e.g. the lead-gen/CRM handoff bridge,
|
|
286
|
+
* which is derived from scoped resources rather than declared directly).
|
|
287
|
+
*
|
|
288
|
+
* `business/acquisition/ontology-validation.ts` calls both at module load to
|
|
289
|
+
* register its three built-in profiles. Both registries are module-level
|
|
290
|
+
* mutable maps with no reset function. Reachable by a tenant via the
|
|
291
|
+
* `./organization-model/readiness` subpath (see `./index`).
|
|
292
|
+
*/
|
|
293
|
+
|
|
294
|
+
type SystemInterfaceReadinessIssueFamily = 'SYSTEM_INTERFACE_MISSING' | 'SYSTEM_INTERFACE_DISABLED' | 'SYSTEM_INTERFACE_INVALID' | 'SYSTEM_INTERFACE_NOT_READY' | 'SYSTEM_BRIDGE_NOT_READY'
|
|
295
|
+
/**
|
|
296
|
+
* The deployed OM snapshot hash does not match the canonical source hash.
|
|
297
|
+
* Redeploy with `pnpm operations:deploy` to refresh the snapshot.
|
|
298
|
+
*/
|
|
299
|
+
| 'STALE_OM_SNAPSHOT';
|
|
300
|
+
interface SystemInterfaceReadinessIssue {
|
|
301
|
+
family: SystemInterfaceReadinessIssueFamily;
|
|
302
|
+
code: string;
|
|
303
|
+
path?: string;
|
|
304
|
+
ref?: string;
|
|
305
|
+
message: string;
|
|
306
|
+
}
|
|
307
|
+
|
|
260
308
|
/**
|
|
261
309
|
* Time range selector for dashboard metrics
|
|
262
310
|
*/
|
|
@@ -393,12 +441,53 @@ declare class APIClientError extends Error {
|
|
|
393
441
|
readonly requestId?: string;
|
|
394
442
|
readonly fields?: Record<string, string[]>;
|
|
395
443
|
readonly retryAfter?: number;
|
|
396
|
-
|
|
444
|
+
/**
|
|
445
|
+
* Structured detail payload carried on `APIErrorResponse.details`
|
|
446
|
+
* (`packages/core/src/platform/api/types.ts`). Deliberately typed as a
|
|
447
|
+
* general bag rather than narrowed to any one error family — CONFLICT
|
|
448
|
+
* linked-row counts, SERVICE_UNAVAILABLE readiness payloads, and future
|
|
449
|
+
* error shapes all flow through the same field. Use a shape-specific
|
|
450
|
+
* accessor (e.g. `getSystemReadinessServerErrorDetails`) to narrow it.
|
|
451
|
+
*/
|
|
452
|
+
readonly details?: Record<string, unknown>;
|
|
453
|
+
constructor(message: string, code: APIErrorCode, statusCode: number, requestId?: string, fields?: Record<string, string[]>, retryAfter?: number, details?: Record<string, unknown>);
|
|
397
454
|
}
|
|
398
455
|
/**
|
|
399
456
|
* Type guard to check if an error is an APIClientError
|
|
400
457
|
*/
|
|
401
458
|
declare function isAPIClientError(error: unknown): error is APIClientError;
|
|
459
|
+
/**
|
|
460
|
+
* The structured 503 payload a System Interface readiness failure carries
|
|
461
|
+
* (`APIErrorResponse.details` shape produced by `createInterfaceReadinessApiError`
|
|
462
|
+
* in `apps/api/src/platform/organization-model/interface-readiness.ts`).
|
|
463
|
+
*
|
|
464
|
+
* Field-for-field identical to `SystemReadinessServerErrorDetails` in
|
|
465
|
+
* `packages/ui/src/components/display/SystemReadinessAlert.tsx` — same shape,
|
|
466
|
+
* different name to avoid a barrel export collision (both flow through
|
|
467
|
+
* `src/index.ts`) — so `getSystemReadinessServerErrorDetails`'s return value
|
|
468
|
+
* drops straight into that component's `serverError` prop. Declared
|
|
469
|
+
* independently here (rather than imported) to keep `utils` the dependency
|
|
470
|
+
* the `components` layer imports from, not the other way around.
|
|
471
|
+
*/
|
|
472
|
+
interface SystemReadinessErrorDetails {
|
|
473
|
+
systemPath: string;
|
|
474
|
+
interfaceKey: string;
|
|
475
|
+
readinessProfile?: string;
|
|
476
|
+
readinessCode: SystemInterfaceReadinessIssueFamily;
|
|
477
|
+
issues: SystemInterfaceReadinessIssue[];
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Narrows an unknown caught error to a System Interface readiness 503's
|
|
481
|
+
* structured details, or `undefined` when the error is not an
|
|
482
|
+
* `APIClientError`, carries no `details`, or carries a `details` payload
|
|
483
|
+
* from a different error family (e.g. a CONFLICT's linked-row counts).
|
|
484
|
+
*
|
|
485
|
+
* Intended for a one-line call site:
|
|
486
|
+
* ```ts
|
|
487
|
+
* <SystemReadinessAlert ... serverError={getSystemReadinessServerErrorDetails(error)} />
|
|
488
|
+
* ```
|
|
489
|
+
*/
|
|
490
|
+
declare function getSystemReadinessServerErrorDetails(error: unknown): SystemReadinessErrorDetails | undefined;
|
|
402
491
|
/**
|
|
403
492
|
* Extract error information from any error type
|
|
404
493
|
* Handles both APIClientError and generic Error instances
|
|
@@ -512,5 +601,5 @@ declare function restoreConsole(): void;
|
|
|
512
601
|
|
|
513
602
|
declare function setupBrowserMocks(): void;
|
|
514
603
|
|
|
515
|
-
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, ResourceStatusColors, 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, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail };
|
|
516
|
-
export type { TablerIcon };
|
|
604
|
+
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, ResourceStatusColors, 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, debounce, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getSystemReadinessServerErrorDetails, getTimeRangeDates, getTimeRangeLabel, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail };
|
|
605
|
+
export type { SystemReadinessErrorDetails, TablerIcon };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-
|
|
1
|
+
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, getSystemReadinessServerErrorDetails, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-R5UGIFYU.js';
|
|
2
2
|
export { REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, getTimeRangeDates, getTimeRangeLabel } from '../chunk-Y6I3IC45.js';
|
|
3
3
|
export { ResourceStatusColors } from '../chunk-6SSQGWK7.js';
|
|
4
4
|
import '../chunk-TVTSASST.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.74.0",
|
|
4
4
|
"description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
+
"!dist/metafile-*.json",
|
|
12
13
|
"src/**/README.md"
|
|
13
14
|
],
|
|
14
15
|
"exports": {
|
|
@@ -280,11 +281,11 @@
|
|
|
280
281
|
"typescript": "5.9.2",
|
|
281
282
|
"vite": "^7.0.0",
|
|
282
283
|
"vitest": "^3.2.4",
|
|
284
|
+
"@repo/core": "0.65.0",
|
|
285
|
+
"@elevasis/sdk": "1.49.0",
|
|
283
286
|
"@repo/elevasis-core": "1.0.0",
|
|
284
|
-
"@
|
|
285
|
-
"@repo/eslint-config": "0.0.0"
|
|
286
|
-
"@repo/core": "0.63.0",
|
|
287
|
-
"@repo/typescript-config": "0.0.0"
|
|
287
|
+
"@repo/typescript-config": "0.0.0",
|
|
288
|
+
"@repo/eslint-config": "0.0.0"
|
|
288
289
|
},
|
|
289
290
|
"dependencies": {
|
|
290
291
|
"@dagrejs/dagre": "^1.1.4",
|
|
@@ -361,7 +362,7 @@
|
|
|
361
362
|
"lint": "eslint src --max-warnings 0",
|
|
362
363
|
"check-types": "tsc --noEmit",
|
|
363
364
|
"test": "vitest run --passWithNoTests",
|
|
364
|
-
"test:publish-artifacts": "pnpm build:publish && vitest run src/__tests__/sdk-exports.test.ts src/provider/__tests__/published-surface.test.ts src/__tests__/published-artifact.test.ts src/__tests__/published-peer-dependencies.test.ts",
|
|
365
|
+
"test:publish-artifacts": "pnpm build:publish && vitest run src/__tests__/sdk-exports.test.ts src/provider/__tests__/published-surface.test.ts src/__tests__/published-artifact.test.ts src/__tests__/published-peer-dependencies.test.ts src/__tests__/published-subpath-identity.test.ts",
|
|
365
366
|
"test:watch": "vitest watch"
|
|
366
367
|
}
|
|
367
368
|
}
|
package/dist/chunk-6M6OLGQY.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
// src/components/typeform/schemas.ts
|
|
4
|
-
var answerValueSchema = z.discriminatedUnion("type", [
|
|
5
|
-
z.object({ type: z.literal("preset"), value: z.string() }),
|
|
6
|
-
z.object({ type: z.literal("custom"), value: z.string() })
|
|
7
|
-
]);
|
|
8
|
-
var multiAnswerValueSchema = z.array(answerValueSchema);
|
|
9
|
-
function radioWithOtherSchema(presetValues) {
|
|
10
|
-
return z.discriminatedUnion("type", [
|
|
11
|
-
z.object({
|
|
12
|
-
type: z.literal("preset"),
|
|
13
|
-
value: z.enum(presetValues)
|
|
14
|
-
}),
|
|
15
|
-
z.object({
|
|
16
|
-
type: z.literal("custom"),
|
|
17
|
-
value: z.string().min(1, "Please specify a value")
|
|
18
|
-
})
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
function checkboxWithOtherSchema(presetValues) {
|
|
22
|
-
return z.array(
|
|
23
|
-
z.discriminatedUnion("type", [
|
|
24
|
-
z.object({
|
|
25
|
-
type: z.literal("preset"),
|
|
26
|
-
value: z.enum(presetValues)
|
|
27
|
-
}),
|
|
28
|
-
z.object({
|
|
29
|
-
type: z.literal("custom"),
|
|
30
|
-
value: z.string().min(1, "Please specify a value")
|
|
31
|
-
})
|
|
32
|
-
])
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { answerValueSchema, checkboxWithOtherSchema, multiAnswerValueSchema, radioWithOtherSchema };
|
package/dist/chunk-MKH2KOAO.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
2
|
-
import { createClient } from '@supabase/supabase-js';
|
|
3
|
-
import { useMemo } from 'react';
|
|
4
|
-
|
|
5
|
-
function getSupabaseConfig() {
|
|
6
|
-
const url = import.meta.env?.VITE_SUPABASE_URL;
|
|
7
|
-
const anonKey = import.meta.env?.VITE_SUPABASE_ANON_KEY;
|
|
8
|
-
if (!url || !anonKey) {
|
|
9
|
-
throw new Error("Missing Supabase environment variables (VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY)");
|
|
10
|
-
}
|
|
11
|
-
return { url, anonKey };
|
|
12
|
-
}
|
|
13
|
-
var useSupabase = () => {
|
|
14
|
-
const { getAccessToken } = useAuthContext();
|
|
15
|
-
const { url, anonKey } = getSupabaseConfig();
|
|
16
|
-
return useMemo(
|
|
17
|
-
() => createClient(url, anonKey, {
|
|
18
|
-
global: {
|
|
19
|
-
headers: {
|
|
20
|
-
// Additional headers if needed
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
accessToken: async () => {
|
|
24
|
-
try {
|
|
25
|
-
const token = await getAccessToken();
|
|
26
|
-
if (!token) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
return token;
|
|
30
|
-
} catch {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}),
|
|
35
|
-
[getAccessToken, url, anonKey]
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export { useSupabase };
|