@unisonlabs/sixminute-admin 0.1.1144-next → 0.1.1145-next
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/sixminute-admin.mjs +22 -6
- package/package.json +1 -1
package/dist/sixminute-admin.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import { homedir } from "node:os";
|
|
|
21
21
|
import { fileURLToPath } from "node:url";
|
|
22
22
|
|
|
23
23
|
// tools/admin/src/build-info.ts
|
|
24
|
-
var BUILT = { version: "0.1.
|
|
24
|
+
var BUILT = { version: "0.1.1145-next", commit: "b155ebc295291194b2091be2b28e563dc7a43eaa", surface: "05ec6b71af5f095b" };
|
|
25
25
|
|
|
26
26
|
// tools/admin/src/run.ts
|
|
27
27
|
import { rmSync as rmSync3 } from "node:fs";
|
|
@@ -5096,9 +5096,25 @@ var EntrySplitResponseSchema = exports_external.object({ first: EntrySchema, sec
|
|
|
5096
5096
|
});
|
|
5097
5097
|
var EntryMergeRequestSchema = exports_external.object({
|
|
5098
5098
|
matter_id: MatterIdSchema.nullable().optional(),
|
|
5099
|
-
with: EntryIdSchema,
|
|
5099
|
+
with: EntryIdSchema.optional(),
|
|
5100
|
+
with_all: exports_external.array(EntryIdSchema).min(1).max(49).optional(),
|
|
5100
5101
|
narrative: ConfirmedNarrativeSchema,
|
|
5101
5102
|
attributes: EntryAttributesSchema
|
|
5103
|
+
}).superRefine((body, ctx) => {
|
|
5104
|
+
if (body.with === undefined === (body.with_all === undefined)) {
|
|
5105
|
+
ctx.addIssue({
|
|
5106
|
+
code: exports_external.ZodIssueCode.custom,
|
|
5107
|
+
path: ["with_all"],
|
|
5108
|
+
message: "a merge names the rows that follow in `with` or in `with_all`, and in exactly " + "one of them: `with` is one row, `with_all` is the list"
|
|
5109
|
+
});
|
|
5110
|
+
}
|
|
5111
|
+
if (body.with_all !== undefined && new Set(body.with_all).size !== body.with_all.length) {
|
|
5112
|
+
ctx.addIssue({
|
|
5113
|
+
code: exports_external.ZodIssueCode.custom,
|
|
5114
|
+
path: ["with_all"],
|
|
5115
|
+
message: "a merge names each row once: an id is in `with_all` twice"
|
|
5116
|
+
});
|
|
5117
|
+
}
|
|
5102
5118
|
});
|
|
5103
5119
|
var EntryBatchItemSchema = exports_external.object({
|
|
5104
5120
|
entry: JudgedEntrySchema,
|
|
@@ -5974,13 +5990,13 @@ var LocalAcceptedSchema = exports_external.object({ accepted: exports_external.l
|
|
|
5974
5990
|
var LocalProposeKeptReasonSchema = exports_external.enum(["no_cells", "not_signed_in", "refused", "offline"]);
|
|
5975
5991
|
var LocalProposeRequestSchema = exports_external.discriminatedUnion("kind", [
|
|
5976
5992
|
exports_external.object({ kind: exports_external.literal("split"), id: EntryIdSchema, at: TimestampSchema }),
|
|
5977
|
-
exports_external.object({ kind: exports_external.literal("merge"),
|
|
5993
|
+
exports_external.object({ kind: exports_external.literal("merge"), entries: exports_external.array(EntryIdSchema).min(2).max(50) })
|
|
5978
5994
|
]).superRefine((ask, ctx) => {
|
|
5979
|
-
if (ask.kind === "merge" && ask.
|
|
5995
|
+
if (ask.kind === "merge" && new Set(ask.entries).size !== ask.entries.length) {
|
|
5980
5996
|
ctx.addIssue({
|
|
5981
5997
|
code: exports_external.ZodIssueCode.custom,
|
|
5982
|
-
path: ["
|
|
5983
|
-
message: "a merge joins
|
|
5998
|
+
path: ["entries"],
|
|
5999
|
+
message: "a merge joins different rows: an id is in `entries` twice"
|
|
5984
6000
|
});
|
|
5985
6001
|
}
|
|
5986
6002
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unisonlabs/sixminute-admin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1145-next",
|
|
4
4
|
"description": "Sixminute operator tool: the admin commands of the Sixminute API, run with your own operator sign-in.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|