vercel 51.5.0 → 51.6.1
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/chunks/{add-RNQLGEYS.js → add-JALB3DKU.js} +6 -6
- package/dist/chunks/{chunk-DKFFXOHJ.js → chunk-34IM6J7A.js} +5 -2
- package/dist/chunks/{chunk-D2D4FJ6S.js → chunk-3N3AYMMW.js} +33 -18
- package/dist/chunks/{chunk-SG4QOQTF.js → chunk-4X7GBE5B.js} +101 -53
- package/dist/chunks/{chunk-5VKKTHMP.js → chunk-553A6UFX.js} +10 -6
- package/dist/chunks/{chunk-6C33Y3DC.js → chunk-5KFTN63Q.js} +8 -8
- package/dist/chunks/{chunk-TAOVG4PS.js → chunk-7L4XVUFK.js} +2 -2
- package/dist/chunks/{chunk-4DR2FV6O.js → chunk-BBW6EGBQ.js} +1 -1
- package/dist/chunks/{chunk-LDXYSGPZ.js → chunk-C7UTFMYF.js} +2 -2
- package/dist/chunks/chunk-CHUU7VXC.js +2314 -0
- package/dist/chunks/{chunk-BHDZCUTT.js → chunk-DAOAZ2VQ.js} +1 -1
- package/dist/chunks/{chunk-CRZM5WM2.js → chunk-DED5G3HZ.js} +1 -1
- package/dist/chunks/{chunk-G6RXZLQ2.js → chunk-DF4AVQY3.js} +2 -2
- package/dist/chunks/{chunk-HNU5CXW4.js → chunk-FH2OHGXG.js} +2 -2
- package/dist/chunks/{chunk-7MF47FW3.js → chunk-FY3TMBQS.js} +1 -1
- package/dist/chunks/{chunk-5NTBJ33M.js → chunk-HUPHOH2F.js} +1 -1
- package/dist/chunks/{chunk-DVQ4SIWF.js → chunk-LUCCJW67.js} +1 -1
- package/dist/chunks/{chunk-NKJC5SI4.js → chunk-LUJPLXGG.js} +2 -2
- package/dist/chunks/{chunk-VGWGLBUC.js → chunk-MCTAPJSL.js} +1 -1
- package/dist/chunks/{chunk-L2JUC7NX.js → chunk-MGJMZIIT.js} +1 -1
- package/dist/chunks/{chunk-FBY3IEDZ.js → chunk-MUJZV257.js} +8 -8
- package/dist/chunks/{chunk-BJQTGP42.js → chunk-PVZBM6NU.js} +1 -1
- package/dist/chunks/{chunk-BRQBLRFB.js → chunk-QFP6FEBN.js} +1 -1
- package/dist/chunks/{chunk-7ZDERWUW.js → chunk-QHXUBID6.js} +2 -2
- package/dist/chunks/{chunk-HQXVCOH6.js → chunk-RW7LIX2Y.js} +1 -1
- package/dist/chunks/{chunk-AUSDBXUD.js → chunk-U73MZTAR.js} +2 -2
- package/dist/chunks/{chunk-537JTK2U.js → chunk-UG4457SI.js} +260 -102
- package/dist/chunks/{chunk-RFMC2QXQ.js → chunk-VDM5O3P6.js} +3 -3
- package/dist/chunks/{chunk-GE6G37P4.js → chunk-WCTFUOSJ.js} +1 -1
- package/dist/chunks/chunk-WYRFA4PX.js +692 -0
- package/dist/chunks/{chunk-UWKTUK3W.js → chunk-XLKXWNRG.js} +1 -1
- package/dist/chunks/{chunk-P56KWLXY.js → chunk-Z66S4G43.js} +1 -1
- package/dist/chunks/{compile-vercel-config-ZVY7LBE3.js → compile-vercel-config-V2SHBZFW.js} +2 -2
- package/dist/chunks/{delete-SKTJMJNP.js → delete-5RI2PRIT.js} +4 -4
- package/dist/chunks/{disable-AG7I6DPV.js → disable-JPKO7VCV.js} +4 -4
- package/dist/chunks/{discard-LUK6LBLT.js → discard-KXGXXDNX.js} +4 -4
- package/dist/chunks/{edit-3BR5HP3U.js → edit-VFUE5PVU.js} +5 -5
- package/dist/chunks/{enable-4JNLOKSM.js → enable-V2AX2FXX.js} +4 -4
- package/dist/chunks/{export-YLZ6QSHG.js → export-BG3TOT6G.js} +4 -4
- package/dist/chunks/{inspect-HUJLUQAV.js → inspect-3QVCZVKV.js} +6 -6
- package/dist/chunks/{list-RMA56KYZ.js → list-CWTYXKB5.js} +7 -7
- package/dist/chunks/{list-EPU4SB3E.js → list-Y2YMJWEY.js} +4 -4
- package/dist/chunks/{ls-7HHDYE6F.js → ls-SY2CP56I.js} +6 -6
- package/dist/chunks/{publish-6YE4OUDI.js → publish-75IJ4PZS.js} +4 -4
- package/dist/chunks/{query-X6Q4ZSZO.js → query-MLMGNGL2.js} +5 -5
- package/dist/chunks/{reorder-VFM23ESC.js → reorder-757V4BF5.js} +4 -4
- package/dist/chunks/{restore-VX34SXVF.js → restore-KV44XHFS.js} +4 -4
- package/dist/chunks/{rm-5KXF2PY3.js → rm-3EGKFLKW.js} +6 -6
- package/dist/chunks/{rule-inspect-JG7AE5TI.js → rule-inspect-AYUGCLVJ.js} +6 -6
- package/dist/chunks/{rules-XRJBT22L.js → rules-FUFDJOIP.js} +6 -6
- package/dist/chunks/{schema-IMD4VV73.js → schema-CI2XUYTW.js} +6 -6
- package/dist/chunks/{types-QNN5CDCB.js → types-M7LVCA3E.js} +3 -3
- package/dist/chunks/{update-4FMWTIJK.js → update-6EM4XIDW.js} +6 -6
- package/dist/commands/build/index.js +57 -34
- package/dist/commands/deploy/index.js +23 -24
- package/dist/commands/dev/index.js +56 -31
- package/dist/commands/env/index.js +36 -22
- package/dist/commands/link/index.js +21 -21
- package/dist/commands/list/index.js +7 -7
- package/dist/commands-bulk.js +1671 -2533
- package/dist/index.js +41 -21
- package/dist/version.mjs +1 -1
- package/package.json +19 -19
- package/dist/chunks/chunk-6CWW4JIG.js +0 -310
- package/dist/chunks/chunk-O7SQKNIT.js +0 -247
- package/dist/chunks/chunk-RJD5NYGF.js +0 -149
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
require_string_width,
|
|
30
30
|
require_strip_ansi,
|
|
31
31
|
yesOption
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VDM5O3P6.js";
|
|
33
33
|
import {
|
|
34
34
|
APIError,
|
|
35
35
|
CantParseJSONFile,
|
|
@@ -23576,6 +23576,12 @@ var require_resolve2 = __commonJS({
|
|
|
23576
23576
|
};
|
|
23577
23577
|
}
|
|
23578
23578
|
const serviceType = config.type || "web";
|
|
23579
|
+
const isJobService = serviceType === "job" || serviceType === "cron";
|
|
23580
|
+
const isScheduleJobService = serviceType === "cron" || serviceType === "job" && config.trigger === "schedule";
|
|
23581
|
+
const isQueueJobService = serviceType === "job" && config.trigger === "queue";
|
|
23582
|
+
const isWorkflowService = serviceType === "job" && config.trigger === "workflow";
|
|
23583
|
+
const isNonWebService = serviceType === "worker" || isJobService;
|
|
23584
|
+
const serviceTypeLabel = isJobService ? "Job" : serviceType === "worker" ? "Worker" : "Web";
|
|
23579
23585
|
const routingResult = resolveServiceRoutingConfig(name, config);
|
|
23580
23586
|
if (routingResult.error) {
|
|
23581
23587
|
return routingResult.error;
|
|
@@ -23605,24 +23611,52 @@ var require_resolve2 = __commonJS({
|
|
|
23605
23611
|
serviceName: name
|
|
23606
23612
|
};
|
|
23607
23613
|
}
|
|
23608
|
-
if (
|
|
23614
|
+
if (isNonWebService && configuredRoutePrefix) {
|
|
23609
23615
|
return {
|
|
23610
23616
|
code: "INVALID_ROUTE_PREFIX",
|
|
23611
|
-
message: `${
|
|
23617
|
+
message: `${serviceTypeLabel} service "${name}" cannot have "routePrefix" or "mount". Only web services should specify path-based routing.`,
|
|
23612
23618
|
serviceName: name
|
|
23613
23619
|
};
|
|
23614
23620
|
}
|
|
23615
|
-
if (
|
|
23621
|
+
if (isNonWebService && hasSubdomain) {
|
|
23616
23622
|
return {
|
|
23617
23623
|
code: "INVALID_HOST_ROUTING_CONFIG",
|
|
23618
|
-
message: `${
|
|
23624
|
+
message: `${serviceTypeLabel} service "${name}" cannot have "subdomain" or "mount.subdomain". Only web services should specify subdomain routing.`,
|
|
23619
23625
|
serviceName: name
|
|
23620
23626
|
};
|
|
23621
23627
|
}
|
|
23622
|
-
if (serviceType === "
|
|
23628
|
+
if (serviceType === "job" && config.trigger === void 0) {
|
|
23623
23629
|
return {
|
|
23624
|
-
code: "
|
|
23625
|
-
message: `
|
|
23630
|
+
code: "MISSING_JOB_TRIGGER",
|
|
23631
|
+
message: `Job service "${name}" is missing required "trigger" field.`,
|
|
23632
|
+
serviceName: name
|
|
23633
|
+
};
|
|
23634
|
+
}
|
|
23635
|
+
if (serviceType === "job" && config.trigger && !import_build_utils5.JOB_TRIGGERS.includes(config.trigger)) {
|
|
23636
|
+
return {
|
|
23637
|
+
code: "INVALID_JOB_TRIGGER",
|
|
23638
|
+
message: `Job service "${name}" has invalid trigger "${config.trigger}". Expected ${import_build_utils5.JOB_TRIGGERS.map((t) => `"${t}"`).join(", ")}.`,
|
|
23639
|
+
serviceName: name
|
|
23640
|
+
};
|
|
23641
|
+
}
|
|
23642
|
+
if (isScheduleJobService && !config.schedule) {
|
|
23643
|
+
return {
|
|
23644
|
+
code: serviceType === "cron" ? "MISSING_CRON_SCHEDULE" : "MISSING_JOB_SCHEDULE",
|
|
23645
|
+
message: `${serviceTypeLabel} service "${name}" is missing required "schedule" field.`,
|
|
23646
|
+
serviceName: name
|
|
23647
|
+
};
|
|
23648
|
+
}
|
|
23649
|
+
if (isQueueJobService && (!Array.isArray(config.topics) || config.topics.length === 0)) {
|
|
23650
|
+
return {
|
|
23651
|
+
code: "MISSING_QUEUE_TOPICS",
|
|
23652
|
+
message: `${serviceTypeLabel} service "${name}" is missing required "topics" field.`,
|
|
23653
|
+
serviceName: name
|
|
23654
|
+
};
|
|
23655
|
+
}
|
|
23656
|
+
if (isWorkflowService && typeof config.entrypoint !== "string") {
|
|
23657
|
+
return {
|
|
23658
|
+
code: "MISSING_ENTRYPOINT",
|
|
23659
|
+
message: `Job service "${name}" with "workflow" trigger must specify "entrypoint".`,
|
|
23626
23660
|
serviceName: name
|
|
23627
23661
|
};
|
|
23628
23662
|
}
|
|
@@ -23723,6 +23757,7 @@ var require_resolve2 = __commonJS({
|
|
|
23723
23757
|
routePrefixSource = "configured"
|
|
23724
23758
|
} = options;
|
|
23725
23759
|
const type = config.type || "web";
|
|
23760
|
+
const trigger = type === "cron" ? "schedule" : type === "job" ? config.trigger : void 0;
|
|
23726
23761
|
const rawEntrypoint = config.entrypoint;
|
|
23727
23762
|
const moduleAttrParsed = typeof rawEntrypoint === "string" ? parsePyModuleAttrEntrypoint(rawEntrypoint) : null;
|
|
23728
23763
|
const routingResult = resolveServiceRoutingConfig(name, config);
|
|
@@ -23779,7 +23814,7 @@ var require_resolve2 = __commonJS({
|
|
|
23779
23814
|
workspace = workspace === "." ? normalizedRoot : import_path12.posix.join(normalizedRoot, workspace);
|
|
23780
23815
|
}
|
|
23781
23816
|
}
|
|
23782
|
-
const topics = type === "worker" ? (0, import_build_utils5.
|
|
23817
|
+
const topics = type === "worker" ? (0, import_build_utils5.getServiceQueueTopics)({ type, topics: config.topics }) : trigger === "queue" ? config.topics : void 0;
|
|
23783
23818
|
const consumer = type === "worker" ? config.consumer || "default" : config.consumer;
|
|
23784
23819
|
let builderUse;
|
|
23785
23820
|
let builderSrc;
|
|
@@ -23845,6 +23880,7 @@ var require_resolve2 = __commonJS({
|
|
|
23845
23880
|
return {
|
|
23846
23881
|
name,
|
|
23847
23882
|
type,
|
|
23883
|
+
trigger,
|
|
23848
23884
|
group,
|
|
23849
23885
|
workspace,
|
|
23850
23886
|
entrypoint: resolvedEntrypointFile,
|
|
@@ -24324,7 +24360,8 @@ var require_detect_railway = __commonJS({
|
|
|
24324
24360
|
const schedule = cf.config.deploy.cronSchedule;
|
|
24325
24361
|
const runtime = frameworks.length === 1 ? (0, import_utils4.inferRuntimeFromFramework)(frameworks[0].slug) : void 0;
|
|
24326
24362
|
const hint = {
|
|
24327
|
-
type: "
|
|
24363
|
+
type: "job",
|
|
24364
|
+
trigger: "schedule",
|
|
24328
24365
|
schedule,
|
|
24329
24366
|
entrypoint: "<path-to-handler>"
|
|
24330
24367
|
};
|
|
@@ -24333,7 +24370,7 @@ var require_detect_railway = __commonJS({
|
|
|
24333
24370
|
}
|
|
24334
24371
|
warnings.push({
|
|
24335
24372
|
code: "RAILWAY_CRON_HINT",
|
|
24336
|
-
message: `Found Railway cron in ${dirLabel}/ (schedule: "${schedule}"). Vercel crons work with a file entrypoint. You can add the following to define this
|
|
24373
|
+
message: `Found Railway cron in ${dirLabel}/ (schedule: "${schedule}"). Vercel crons work with a file entrypoint. You can add the following to define this scheduled job service:
|
|
24337
24374
|
"${deriveServiceName(cf.dirPath)}": ${JSON.stringify(hint, null, 2)}`
|
|
24338
24375
|
});
|
|
24339
24376
|
continue;
|
|
@@ -24538,6 +24575,7 @@ var require_detect_services = __commonJS({
|
|
|
24538
24575
|
generateServicesRoutes: () => generateServicesRoutes2
|
|
24539
24576
|
});
|
|
24540
24577
|
module.exports = __toCommonJS2(detect_services_exports);
|
|
24578
|
+
var import_build_utils5 = __require("@vercel/build-utils");
|
|
24541
24579
|
var import_routing_utils2 = require_dist5();
|
|
24542
24580
|
var import_utils4 = require_utils3();
|
|
24543
24581
|
var import_resolve = require_resolve2();
|
|
@@ -24771,7 +24809,7 @@ var require_detect_services = __commonJS({
|
|
|
24771
24809
|
}
|
|
24772
24810
|
}
|
|
24773
24811
|
}
|
|
24774
|
-
const workerServices = services.filter(
|
|
24812
|
+
const workerServices = services.filter(import_build_utils5.isQueueTriggeredService);
|
|
24775
24813
|
for (const service of workerServices) {
|
|
24776
24814
|
const workerEntrypoint = service.entrypoint || service.builder.src || "index";
|
|
24777
24815
|
const workerPath = (0, import_utils4.getInternalServiceWorkerPath)(
|
|
@@ -24785,7 +24823,7 @@ var require_detect_services = __commonJS({
|
|
|
24785
24823
|
check: true
|
|
24786
24824
|
});
|
|
24787
24825
|
}
|
|
24788
|
-
const cronServices = services.filter(
|
|
24826
|
+
const cronServices = services.filter(import_build_utils5.isScheduleTriggeredService);
|
|
24789
24827
|
for (const service of cronServices) {
|
|
24790
24828
|
const cronPrefix = (0, import_utils4.getInternalServiceCronPathPrefix)(service.name);
|
|
24791
24829
|
const functionPath = (0, import_utils4.getInternalServiceFunctionPath)(service.name);
|
|
@@ -39115,7 +39153,7 @@ var require_package = __commonJS({
|
|
|
39115
39153
|
"../client/package.json"(exports, module) {
|
|
39116
39154
|
module.exports = {
|
|
39117
39155
|
name: "@vercel/client",
|
|
39118
|
-
version: "17.3.
|
|
39156
|
+
version: "17.3.7",
|
|
39119
39157
|
main: "dist/index.js",
|
|
39120
39158
|
typings: "dist/index.d.ts",
|
|
39121
39159
|
homepage: "https://vercel.com",
|
|
@@ -56135,110 +56173,230 @@ var serviceMountSchema = {
|
|
|
56135
56173
|
}
|
|
56136
56174
|
]
|
|
56137
56175
|
};
|
|
56138
|
-
var
|
|
56176
|
+
var serviceScheduleSchema = {
|
|
56177
|
+
type: "string",
|
|
56178
|
+
minLength: 9,
|
|
56179
|
+
maxLength: 256
|
|
56180
|
+
};
|
|
56181
|
+
var serviceQueueTopicSchema = {
|
|
56139
56182
|
type: "object",
|
|
56140
56183
|
additionalProperties: false,
|
|
56184
|
+
required: ["topic"],
|
|
56141
56185
|
properties: {
|
|
56142
|
-
|
|
56143
|
-
enum: ["web", "cron", "worker"]
|
|
56144
|
-
},
|
|
56145
|
-
root: {
|
|
56146
|
-
type: "string",
|
|
56147
|
-
minLength: 1,
|
|
56148
|
-
maxLength: 512
|
|
56149
|
-
},
|
|
56150
|
-
entrypoint: {
|
|
56151
|
-
type: "string",
|
|
56152
|
-
minLength: 1,
|
|
56153
|
-
maxLength: 512
|
|
56154
|
-
},
|
|
56155
|
-
mount: serviceMountSchema,
|
|
56156
|
-
routePrefix: {
|
|
56157
|
-
type: "string",
|
|
56158
|
-
minLength: 1,
|
|
56159
|
-
maxLength: 512
|
|
56160
|
-
},
|
|
56161
|
-
subdomain: {
|
|
56162
|
-
type: "string",
|
|
56163
|
-
minLength: 1,
|
|
56164
|
-
maxLength: 63
|
|
56165
|
-
},
|
|
56166
|
-
framework: {
|
|
56167
|
-
type: "string",
|
|
56168
|
-
minLength: 1,
|
|
56169
|
-
maxLength: 256
|
|
56170
|
-
},
|
|
56171
|
-
builder: {
|
|
56186
|
+
topic: {
|
|
56172
56187
|
type: "string",
|
|
56173
56188
|
minLength: 1,
|
|
56174
56189
|
maxLength: 256
|
|
56175
56190
|
},
|
|
56176
|
-
|
|
56177
|
-
type: "
|
|
56178
|
-
|
|
56179
|
-
|
|
56191
|
+
retryAfterSeconds: {
|
|
56192
|
+
type: "integer",
|
|
56193
|
+
minimum: 1,
|
|
56194
|
+
maximum: 86400
|
|
56180
56195
|
},
|
|
56181
|
-
|
|
56182
|
-
type: "
|
|
56183
|
-
|
|
56184
|
-
|
|
56196
|
+
initialDelaySeconds: {
|
|
56197
|
+
type: "integer",
|
|
56198
|
+
minimum: 0,
|
|
56199
|
+
maximum: 86400
|
|
56200
|
+
}
|
|
56201
|
+
}
|
|
56202
|
+
};
|
|
56203
|
+
var serviceTopicsSchema = {
|
|
56204
|
+
oneOf: [
|
|
56205
|
+
{
|
|
56206
|
+
type: "array",
|
|
56207
|
+
minItems: 1,
|
|
56208
|
+
items: {
|
|
56209
|
+
type: "string",
|
|
56210
|
+
minLength: 1,
|
|
56211
|
+
maxLength: 256
|
|
56212
|
+
}
|
|
56185
56213
|
},
|
|
56186
|
-
|
|
56187
|
-
type: "
|
|
56188
|
-
|
|
56189
|
-
|
|
56214
|
+
{
|
|
56215
|
+
type: "array",
|
|
56216
|
+
minItems: 1,
|
|
56217
|
+
items: serviceQueueTopicSchema
|
|
56218
|
+
}
|
|
56219
|
+
]
|
|
56220
|
+
};
|
|
56221
|
+
var serviceCommonProperties = {
|
|
56222
|
+
root: {
|
|
56223
|
+
type: "string",
|
|
56224
|
+
minLength: 1,
|
|
56225
|
+
maxLength: 512
|
|
56226
|
+
},
|
|
56227
|
+
entrypoint: {
|
|
56228
|
+
type: "string",
|
|
56229
|
+
minLength: 1,
|
|
56230
|
+
maxLength: 512
|
|
56231
|
+
},
|
|
56232
|
+
framework: {
|
|
56233
|
+
type: "string",
|
|
56234
|
+
minLength: 1,
|
|
56235
|
+
maxLength: 256
|
|
56236
|
+
},
|
|
56237
|
+
builder: {
|
|
56238
|
+
type: "string",
|
|
56239
|
+
minLength: 1,
|
|
56240
|
+
maxLength: 256
|
|
56241
|
+
},
|
|
56242
|
+
runtime: {
|
|
56243
|
+
type: "string",
|
|
56244
|
+
minLength: 1,
|
|
56245
|
+
maxLength: 256
|
|
56246
|
+
},
|
|
56247
|
+
buildCommand: {
|
|
56248
|
+
type: "string",
|
|
56249
|
+
minLength: 1,
|
|
56250
|
+
maxLength: 2048
|
|
56251
|
+
},
|
|
56252
|
+
installCommand: {
|
|
56253
|
+
type: "string",
|
|
56254
|
+
minLength: 1,
|
|
56255
|
+
maxLength: 2048
|
|
56256
|
+
},
|
|
56257
|
+
memory: {
|
|
56258
|
+
type: "integer",
|
|
56259
|
+
minimum: 128,
|
|
56260
|
+
maximum: 10240
|
|
56261
|
+
},
|
|
56262
|
+
maxDuration: {
|
|
56263
|
+
oneOf: [
|
|
56264
|
+
{ type: "integer", minimum: 1, maximum: 900 },
|
|
56265
|
+
{ type: "string", enum: ["max"] }
|
|
56266
|
+
]
|
|
56267
|
+
},
|
|
56268
|
+
includeFiles: {
|
|
56269
|
+
oneOf: [
|
|
56270
|
+
{ type: "string", minLength: 1 },
|
|
56271
|
+
{
|
|
56272
|
+
type: "array",
|
|
56273
|
+
items: { type: "string", minLength: 1 }
|
|
56274
|
+
}
|
|
56275
|
+
]
|
|
56276
|
+
},
|
|
56277
|
+
excludeFiles: {
|
|
56278
|
+
oneOf: [
|
|
56279
|
+
{ type: "string", minLength: 1 },
|
|
56280
|
+
{
|
|
56281
|
+
type: "array",
|
|
56282
|
+
items: { type: "string", minLength: 1 }
|
|
56283
|
+
}
|
|
56284
|
+
]
|
|
56285
|
+
}
|
|
56286
|
+
};
|
|
56287
|
+
var serviceRoutableProperties = {
|
|
56288
|
+
mount: serviceMountSchema,
|
|
56289
|
+
routePrefix: {
|
|
56290
|
+
type: "string",
|
|
56291
|
+
minLength: 1,
|
|
56292
|
+
maxLength: 512
|
|
56293
|
+
},
|
|
56294
|
+
subdomain: {
|
|
56295
|
+
type: "string",
|
|
56296
|
+
minLength: 1,
|
|
56297
|
+
maxLength: 63
|
|
56298
|
+
}
|
|
56299
|
+
};
|
|
56300
|
+
var serviceConfigSchema = {
|
|
56301
|
+
oneOf: [
|
|
56302
|
+
{
|
|
56303
|
+
type: "object",
|
|
56304
|
+
additionalProperties: false,
|
|
56305
|
+
properties: {
|
|
56306
|
+
...serviceCommonProperties,
|
|
56307
|
+
...serviceRoutableProperties,
|
|
56308
|
+
type: {
|
|
56309
|
+
enum: ["web"]
|
|
56310
|
+
}
|
|
56311
|
+
}
|
|
56190
56312
|
},
|
|
56191
|
-
|
|
56192
|
-
type: "
|
|
56193
|
-
|
|
56194
|
-
|
|
56313
|
+
{
|
|
56314
|
+
type: "object",
|
|
56315
|
+
additionalProperties: false,
|
|
56316
|
+
required: ["type", "trigger", "schedule"],
|
|
56317
|
+
properties: {
|
|
56318
|
+
...serviceCommonProperties,
|
|
56319
|
+
type: {
|
|
56320
|
+
const: "job"
|
|
56321
|
+
},
|
|
56322
|
+
trigger: {
|
|
56323
|
+
const: "schedule"
|
|
56324
|
+
},
|
|
56325
|
+
schedule: serviceScheduleSchema
|
|
56326
|
+
}
|
|
56195
56327
|
},
|
|
56196
|
-
|
|
56197
|
-
|
|
56198
|
-
|
|
56199
|
-
|
|
56200
|
-
|
|
56328
|
+
{
|
|
56329
|
+
type: "object",
|
|
56330
|
+
additionalProperties: false,
|
|
56331
|
+
required: ["type", "trigger", "topics"],
|
|
56332
|
+
properties: {
|
|
56333
|
+
...serviceCommonProperties,
|
|
56334
|
+
type: {
|
|
56335
|
+
const: "job"
|
|
56336
|
+
},
|
|
56337
|
+
trigger: {
|
|
56338
|
+
const: "queue"
|
|
56339
|
+
},
|
|
56340
|
+
topics: serviceTopicsSchema,
|
|
56341
|
+
consumer: {
|
|
56342
|
+
type: "string",
|
|
56343
|
+
minLength: 1,
|
|
56344
|
+
maxLength: 256
|
|
56345
|
+
}
|
|
56346
|
+
}
|
|
56201
56347
|
},
|
|
56202
|
-
|
|
56203
|
-
|
|
56204
|
-
|
|
56205
|
-
|
|
56206
|
-
|
|
56207
|
-
|
|
56348
|
+
{
|
|
56349
|
+
type: "object",
|
|
56350
|
+
additionalProperties: false,
|
|
56351
|
+
required: ["type", "trigger", "entrypoint"],
|
|
56352
|
+
properties: {
|
|
56353
|
+
...serviceCommonProperties,
|
|
56354
|
+
type: {
|
|
56355
|
+
const: "job"
|
|
56356
|
+
},
|
|
56357
|
+
trigger: {
|
|
56358
|
+
const: "workflow"
|
|
56208
56359
|
}
|
|
56209
|
-
|
|
56360
|
+
}
|
|
56210
56361
|
},
|
|
56211
|
-
|
|
56212
|
-
|
|
56213
|
-
|
|
56214
|
-
|
|
56362
|
+
{
|
|
56363
|
+
type: "object",
|
|
56364
|
+
additionalProperties: false,
|
|
56365
|
+
required: ["type"],
|
|
56366
|
+
properties: {
|
|
56367
|
+
...serviceCommonProperties,
|
|
56368
|
+
type: {
|
|
56369
|
+
const: "worker"
|
|
56370
|
+
},
|
|
56371
|
+
topics: {
|
|
56215
56372
|
type: "array",
|
|
56216
|
-
items: {
|
|
56373
|
+
items: {
|
|
56374
|
+
type: "string",
|
|
56375
|
+
minLength: 1,
|
|
56376
|
+
maxLength: 256
|
|
56377
|
+
},
|
|
56378
|
+
minItems: 1
|
|
56379
|
+
},
|
|
56380
|
+
consumer: {
|
|
56381
|
+
type: "string",
|
|
56382
|
+
minLength: 1,
|
|
56383
|
+
maxLength: 256
|
|
56217
56384
|
}
|
|
56218
|
-
|
|
56219
|
-
},
|
|
56220
|
-
// Cron-specific
|
|
56221
|
-
schedule: {
|
|
56222
|
-
type: "string",
|
|
56223
|
-
minLength: 9,
|
|
56224
|
-
maxLength: 256
|
|
56225
|
-
},
|
|
56226
|
-
// Worker-specific
|
|
56227
|
-
topics: {
|
|
56228
|
-
type: "array",
|
|
56229
|
-
items: {
|
|
56230
|
-
type: "string",
|
|
56231
|
-
minLength: 1,
|
|
56232
|
-
maxLength: 256
|
|
56233
|
-
},
|
|
56234
|
-
minItems: 1
|
|
56385
|
+
}
|
|
56235
56386
|
},
|
|
56236
|
-
|
|
56237
|
-
type: "
|
|
56238
|
-
|
|
56239
|
-
|
|
56387
|
+
{
|
|
56388
|
+
type: "object",
|
|
56389
|
+
additionalProperties: false,
|
|
56390
|
+
required: ["type", "schedule"],
|
|
56391
|
+
properties: {
|
|
56392
|
+
...serviceCommonProperties,
|
|
56393
|
+
type: {
|
|
56394
|
+
const: "cron"
|
|
56395
|
+
},
|
|
56396
|
+
schedule: serviceScheduleSchema
|
|
56397
|
+
}
|
|
56240
56398
|
}
|
|
56241
|
-
|
|
56399
|
+
]
|
|
56242
56400
|
};
|
|
56243
56401
|
var experimentalServicesSchema = {
|
|
56244
56402
|
type: "object",
|
|
@@ -57165,6 +57323,8 @@ export {
|
|
|
57165
57323
|
updateSubcommand,
|
|
57166
57324
|
envCommand,
|
|
57167
57325
|
param,
|
|
57326
|
+
isDirectory,
|
|
57327
|
+
global_path_default,
|
|
57168
57328
|
getUser,
|
|
57169
57329
|
getTeams,
|
|
57170
57330
|
isBackspaceKey,
|
|
@@ -57183,8 +57343,6 @@ export {
|
|
|
57183
57343
|
esm_default2,
|
|
57184
57344
|
esm_default3,
|
|
57185
57345
|
require_lib10 as require_lib3,
|
|
57186
|
-
isDirectory,
|
|
57187
|
-
global_path_default,
|
|
57188
57346
|
require_inherits,
|
|
57189
57347
|
require_once,
|
|
57190
57348
|
require_end_of_stream,
|
|
@@ -594,9 +594,9 @@ export {
|
|
|
594
594
|
getCommandNameWithGlobalFlags,
|
|
595
595
|
getArgs,
|
|
596
596
|
parseArguments,
|
|
597
|
-
require_strip_ansi,
|
|
598
|
-
require_string_width,
|
|
599
597
|
responseError,
|
|
600
598
|
toEnumerableError,
|
|
601
|
-
printError
|
|
599
|
+
printError,
|
|
600
|
+
require_strip_ansi,
|
|
601
|
+
require_string_width
|
|
602
602
|
};
|