@fairmint/captable-ai 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +31 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16037,6 +16037,15 @@ var securityholderFileResultSchema = external_exports.object({
|
|
|
16037
16037
|
|
|
16038
16038
|
// ../captable-ai-core/dist/snapshot.js
|
|
16039
16039
|
var statusErrorSchema = external_exports.object({ message: external_exports.string() });
|
|
16040
|
+
var statusWarningSchema = external_exports.object({
|
|
16041
|
+
message: external_exports.string(),
|
|
16042
|
+
code: external_exports.string().optional(),
|
|
16043
|
+
severity: external_exports.string().optional(),
|
|
16044
|
+
stockClassId: external_exports.string().optional(),
|
|
16045
|
+
stockClassIds: external_exports.array(external_exports.string()).optional(),
|
|
16046
|
+
overage: external_exports.number().optional(),
|
|
16047
|
+
issuerHasHeadroom: external_exports.boolean().optional()
|
|
16048
|
+
}).passthrough();
|
|
16040
16049
|
var snapshotStatusSchema = external_exports.object({
|
|
16041
16050
|
valid: external_exports.boolean(),
|
|
16042
16051
|
isCapTableEmpty: external_exports.boolean(),
|
|
@@ -16044,7 +16053,11 @@ var snapshotStatusSchema = external_exports.object({
|
|
|
16044
16053
|
draftCount: external_exports.number().int(),
|
|
16045
16054
|
hasSynced: external_exports.boolean(),
|
|
16046
16055
|
errors: external_exports.array(statusErrorSchema).optional(),
|
|
16047
|
-
warnings: external_exports.array(
|
|
16056
|
+
warnings: external_exports.array(statusWarningSchema).optional(),
|
|
16057
|
+
// INFO-severity diagnostics kept separate from warnings so the UI can surface
|
|
16058
|
+
// them as non-alarming context (e.g. unallocated issuer authorization headroom)
|
|
16059
|
+
// without triggering the warning banner.
|
|
16060
|
+
info: external_exports.array(statusWarningSchema).optional()
|
|
16048
16061
|
});
|
|
16049
16062
|
var snapshotLocaleSchema = external_exports.object({
|
|
16050
16063
|
currency: external_exports.string(),
|
|
@@ -16140,7 +16153,11 @@ var statusSchema = external_exports.object({
|
|
|
16140
16153
|
updatesAvailable: external_exports.boolean(),
|
|
16141
16154
|
draftCount: external_exports.number().int(),
|
|
16142
16155
|
errors: external_exports.array(statusErrorSchema2).optional(),
|
|
16143
|
-
warnings: external_exports.array(statusErrorSchema2).optional()
|
|
16156
|
+
warnings: external_exports.array(statusErrorSchema2).optional(),
|
|
16157
|
+
// INFO-severity diagnostics kept separate from warnings so consumers can render
|
|
16158
|
+
// them as non-alarming context. Similar to the snapshot route, but this
|
|
16159
|
+
// lightweight endpoint only carries { message } (no structured diagnostic fields).
|
|
16160
|
+
info: external_exports.array(statusErrorSchema2).optional()
|
|
16144
16161
|
});
|
|
16145
16162
|
var summarySchema = external_exports.object({
|
|
16146
16163
|
issuer: issuerSchema,
|
|
@@ -20255,6 +20272,12 @@ Convertibles: ${formatCurrency(safeNumber(convTotals?.outstandingAmount), d.loca
|
|
|
20255
20272
|
printLine(` - ${w.message}`);
|
|
20256
20273
|
}
|
|
20257
20274
|
}
|
|
20275
|
+
if (d.status.info && d.status.info.length > 0) {
|
|
20276
|
+
printLine("\nInfo:");
|
|
20277
|
+
for (const i of d.status.info) {
|
|
20278
|
+
printLine(` - ${i.message}`);
|
|
20279
|
+
}
|
|
20280
|
+
}
|
|
20258
20281
|
printLine();
|
|
20259
20282
|
}
|
|
20260
20283
|
async function runOverview(portalId) {
|
|
@@ -20306,6 +20329,12 @@ async function runOverview(portalId) {
|
|
|
20306
20329
|
printLine(` - ${w.message}`);
|
|
20307
20330
|
}
|
|
20308
20331
|
}
|
|
20332
|
+
if (d.status.info && d.status.info.length > 0) {
|
|
20333
|
+
printLine("\nInfo:");
|
|
20334
|
+
for (const i of d.status.info) {
|
|
20335
|
+
printLine(` - ${i.message}`);
|
|
20336
|
+
}
|
|
20337
|
+
}
|
|
20309
20338
|
printLine();
|
|
20310
20339
|
}
|
|
20311
20340
|
function safeNumber(value) {
|
package/package.json
CHANGED