busroot-sdk 0.0.8-dev.2699169955 → 0.0.8-dev.2702581438
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.d.ts +25 -0
- package/build/index.js +5 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -169,12 +169,15 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
169
169
|
}>, z.ZodObject<{
|
|
170
170
|
type: z.ZodLiteral<"cron">;
|
|
171
171
|
pattern: z.ZodString;
|
|
172
|
+
availableBeforeDeadlineMinutes: z.ZodOptional<z.ZodNumber>;
|
|
172
173
|
}, "strict", z.ZodTypeAny, {
|
|
173
174
|
type: "cron";
|
|
174
175
|
pattern: string;
|
|
176
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
175
177
|
}, {
|
|
176
178
|
type: "cron";
|
|
177
179
|
pattern: string;
|
|
180
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
178
181
|
}>]>>;
|
|
179
182
|
}, "strict", z.ZodTypeAny, {
|
|
180
183
|
code: string;
|
|
@@ -185,6 +188,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
185
188
|
} | {
|
|
186
189
|
type: "cron";
|
|
187
190
|
pattern: string;
|
|
191
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
188
192
|
};
|
|
189
193
|
}, {
|
|
190
194
|
code: string;
|
|
@@ -195,6 +199,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
195
199
|
} | {
|
|
196
200
|
type: "cron";
|
|
197
201
|
pattern: string;
|
|
202
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
198
203
|
} | undefined;
|
|
199
204
|
}>, "many">>;
|
|
200
205
|
skus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -771,6 +776,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
771
776
|
} | {
|
|
772
777
|
type: "cron";
|
|
773
778
|
pattern: string;
|
|
779
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
774
780
|
};
|
|
775
781
|
}[] | undefined;
|
|
776
782
|
skus?: {
|
|
@@ -908,6 +914,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
908
914
|
} | {
|
|
909
915
|
type: "cron";
|
|
910
916
|
pattern: string;
|
|
917
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
911
918
|
} | undefined;
|
|
912
919
|
}[] | undefined;
|
|
913
920
|
skus?: {
|
|
@@ -1048,6 +1055,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1048
1055
|
} | {
|
|
1049
1056
|
type: "cron";
|
|
1050
1057
|
pattern: string;
|
|
1058
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1051
1059
|
};
|
|
1052
1060
|
}[] | undefined;
|
|
1053
1061
|
skus?: {
|
|
@@ -1188,6 +1196,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1188
1196
|
} | {
|
|
1189
1197
|
type: "cron";
|
|
1190
1198
|
pattern: string;
|
|
1199
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1191
1200
|
} | undefined;
|
|
1192
1201
|
}[] | undefined;
|
|
1193
1202
|
skus?: {
|
|
@@ -1328,6 +1337,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1328
1337
|
} | {
|
|
1329
1338
|
type: "cron";
|
|
1330
1339
|
pattern: string;
|
|
1340
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1331
1341
|
};
|
|
1332
1342
|
}[] | undefined;
|
|
1333
1343
|
skus?: {
|
|
@@ -1468,6 +1478,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1468
1478
|
} | {
|
|
1469
1479
|
type: "cron";
|
|
1470
1480
|
pattern: string;
|
|
1481
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1471
1482
|
} | undefined;
|
|
1472
1483
|
}[] | undefined;
|
|
1473
1484
|
skus?: {
|
|
@@ -1612,6 +1623,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1612
1623
|
} | {
|
|
1613
1624
|
type: "cron";
|
|
1614
1625
|
pattern: string;
|
|
1626
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1615
1627
|
};
|
|
1616
1628
|
}[] | undefined;
|
|
1617
1629
|
skus?: {
|
|
@@ -1778,6 +1790,7 @@ declare const PublicAccountViewModel: z.ZodObject<Omit<{
|
|
|
1778
1790
|
} | {
|
|
1779
1791
|
type: "cron";
|
|
1780
1792
|
pattern: string;
|
|
1793
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
1781
1794
|
} | undefined;
|
|
1782
1795
|
}[] | undefined;
|
|
1783
1796
|
skus?: {
|
|
@@ -2100,6 +2113,7 @@ declare class BusrootClient {
|
|
|
2100
2113
|
} | {
|
|
2101
2114
|
type: "cron";
|
|
2102
2115
|
pattern: string;
|
|
2116
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
2103
2117
|
} | undefined;
|
|
2104
2118
|
}[] | undefined;
|
|
2105
2119
|
skus?: {
|
|
@@ -2272,6 +2286,7 @@ declare class BusrootClient {
|
|
|
2272
2286
|
} | {
|
|
2273
2287
|
type: "cron";
|
|
2274
2288
|
pattern: string;
|
|
2289
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
2275
2290
|
} | undefined;
|
|
2276
2291
|
}[] | undefined;
|
|
2277
2292
|
skus?: {
|
|
@@ -2697,6 +2712,7 @@ declare class BusrootClient {
|
|
|
2697
2712
|
} | {
|
|
2698
2713
|
type: "cron";
|
|
2699
2714
|
pattern: string;
|
|
2715
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
2700
2716
|
} | undefined;
|
|
2701
2717
|
completedAt?: string | null | undefined;
|
|
2702
2718
|
completedOperatorInitials?: string | null | undefined;
|
|
@@ -3236,6 +3252,7 @@ declare class BusrootClient {
|
|
|
3236
3252
|
} | {
|
|
3237
3253
|
type: "cron";
|
|
3238
3254
|
pattern: string;
|
|
3255
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
3239
3256
|
};
|
|
3240
3257
|
}, ...args: unknown[]) => Promise<{
|
|
3241
3258
|
code: string;
|
|
@@ -3246,6 +3263,7 @@ declare class BusrootClient {
|
|
|
3246
3263
|
} | {
|
|
3247
3264
|
type: "cron";
|
|
3248
3265
|
pattern: string;
|
|
3266
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
3249
3267
|
} | undefined;
|
|
3250
3268
|
}>;
|
|
3251
3269
|
"shiftPattern.createUpdate": (args_0: {
|
|
@@ -5162,12 +5180,15 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5162
5180
|
}>, z.ZodObject<{
|
|
5163
5181
|
type: z.ZodLiteral<"cron">;
|
|
5164
5182
|
pattern: z.ZodString;
|
|
5183
|
+
availableBeforeDeadlineMinutes: z.ZodOptional<z.ZodNumber>;
|
|
5165
5184
|
}, "strict", z.ZodTypeAny, {
|
|
5166
5185
|
type: "cron";
|
|
5167
5186
|
pattern: string;
|
|
5187
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5168
5188
|
}, {
|
|
5169
5189
|
type: "cron";
|
|
5170
5190
|
pattern: string;
|
|
5191
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5171
5192
|
}>]>>;
|
|
5172
5193
|
} & {
|
|
5173
5194
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5183,6 +5204,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5183
5204
|
} | {
|
|
5184
5205
|
type: "cron";
|
|
5185
5206
|
pattern: string;
|
|
5207
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5186
5208
|
};
|
|
5187
5209
|
completedAt?: string | null | undefined;
|
|
5188
5210
|
completedOperatorInitials?: string | null | undefined;
|
|
@@ -5197,6 +5219,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5197
5219
|
} | {
|
|
5198
5220
|
type: "cron";
|
|
5199
5221
|
pattern: string;
|
|
5222
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5200
5223
|
} | undefined;
|
|
5201
5224
|
completedAt?: string | null | undefined;
|
|
5202
5225
|
completedOperatorInitials?: string | null | undefined;
|
|
@@ -5361,6 +5384,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5361
5384
|
} | {
|
|
5362
5385
|
type: "cron";
|
|
5363
5386
|
pattern: string;
|
|
5387
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5364
5388
|
};
|
|
5365
5389
|
completedAt?: string | null | undefined;
|
|
5366
5390
|
completedOperatorInitials?: string | null | undefined;
|
|
@@ -5525,6 +5549,7 @@ declare const StationViewModel: z.ZodObject<{
|
|
|
5525
5549
|
} | {
|
|
5526
5550
|
type: "cron";
|
|
5527
5551
|
pattern: string;
|
|
5552
|
+
availableBeforeDeadlineMinutes?: number | undefined;
|
|
5528
5553
|
} | undefined;
|
|
5529
5554
|
completedAt?: string | null | undefined;
|
|
5530
5555
|
completedOperatorInitials?: string | null | undefined;
|
package/build/index.js
CHANGED
|
@@ -163,7 +163,11 @@ var require_task = __commonJS({
|
|
|
163
163
|
}).strict(),
|
|
164
164
|
zod_1.z.object({
|
|
165
165
|
type: zod_1.z.literal(exports2.TASK_FREQUENCY_TYPE_CRON),
|
|
166
|
-
pattern: zod_1.z.string().min(1).describe("Standard 5-field cron pattern (minute hour day-of-month month day-of-week), evaluated in the station's plant timezone")
|
|
166
|
+
pattern: zod_1.z.string().min(1).describe("Standard 5-field cron pattern (minute hour day-of-month month day-of-week), evaluated in the station's plant timezone"),
|
|
167
|
+
// Optional at the schema level so pre-existing cron Tasks (written before this
|
|
168
|
+
// field existed) still parse — the admin form/API require it for new/edited
|
|
169
|
+
// cron Tasks, and the tablet falls back to whole-period availability when absent.
|
|
170
|
+
availableBeforeDeadlineMinutes: zod_1.z.number().int().positive().optional().describe("How many minutes before the deadline (the cron fire) this Task becomes available to complete on the tablet. Required for cron Tasks; must be shorter than the smallest gap between consecutive cron fires.")
|
|
167
171
|
}).strict()
|
|
168
172
|
]).describe("How often this Task must be completed. 'schedule' = once per production schedule; 'cron' = every cron interval.");
|
|
169
173
|
exports2.TaskSchema = zod_1.z.object({
|
package/package.json
CHANGED