busroot-sdk 0.0.8-dev.2727678619 → 0.0.8-dev.2729374553
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/build/index.js +4 -3
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2348,15 +2348,16 @@ var require_note = __commonJS({
|
|
|
2348
2348
|
"../../packages/common/build/schemas/note.js"(exports2) {
|
|
2349
2349
|
"use strict";
|
|
2350
2350
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
2351
|
-
exports2.NoteQueryResult = exports2.NoteSchema = exports2.NOTE_MODEL = void 0;
|
|
2351
|
+
exports2.NoteQueryResult = exports2.NoteSchema = exports2.NOTE_CONTENT_MAX_LENGTH = exports2.NOTE_MODEL = void 0;
|
|
2352
2352
|
var zod_1 = require("zod");
|
|
2353
2353
|
exports2.NOTE_MODEL = "note";
|
|
2354
|
+
exports2.NOTE_CONTENT_MAX_LENGTH = 250;
|
|
2354
2355
|
exports2.NoteSchema = zod_1.z.object({
|
|
2355
2356
|
id: zod_1.z.number().describe("Unique note identifier"),
|
|
2356
2357
|
accountId: zod_1.z.string().describe("Account ID the note belongs to"),
|
|
2357
2358
|
stationCode: zod_1.z.string().nullish().describe("Station code to attach the note to"),
|
|
2358
2359
|
severity: zod_1.z.string().nullish().describe("Severity level of the note"),
|
|
2359
|
-
content: zod_1.z.string().max(
|
|
2360
|
+
content: zod_1.z.string().max(exports2.NOTE_CONTENT_MAX_LENGTH).describe(`Note text content (max ${exports2.NOTE_CONTENT_MAX_LENGTH} characters)`),
|
|
2360
2361
|
expiresAt: zod_1.z.string().nullish().describe("Expiry time (ISO 8601). Defaults to 1 year from creation if not provided"),
|
|
2361
2362
|
hide: zod_1.z.boolean().nullish().describe("If true, the note is hidden from the default view"),
|
|
2362
2363
|
operatorInitials: zod_1.z.string().nullish().describe("Initials of the operator who created the note"),
|
|
@@ -6317,7 +6318,7 @@ var require_issue = __commonJS({
|
|
|
6317
6318
|
var enums_1 = require_enums();
|
|
6318
6319
|
var schemas_1 = require_schemas();
|
|
6319
6320
|
var IssueIdSchema = zod_1.z.coerce.number().int().gte(0);
|
|
6320
|
-
exports2.DOWNTIME_NOTE_MAX_LENGTH =
|
|
6321
|
+
exports2.DOWNTIME_NOTE_MAX_LENGTH = schemas_1.NOTE_CONTENT_MAX_LENGTH;
|
|
6321
6322
|
var DowntimeNoteSchema = zod_1.z.string().trim().max(exports2.DOWNTIME_NOTE_MAX_LENGTH).optional().describe(`Free-text note describing the downtime. Mandatory when the assigned reason has 'requireNotes' enabled, otherwise optional. Maximum ${exports2.DOWNTIME_NOTE_MAX_LENGTH} characters.`);
|
|
6322
6323
|
exports2.IssueIdGetRequest = zod_1.z.object({
|
|
6323
6324
|
id: IssueIdSchema
|
package/package.json
CHANGED