@hyperline/cli 0.1.0-build.1.1be7ebe → 0.1.0-build.1.21883ef
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.
|
@@ -23710,10 +23710,10 @@ var require_shared = __commonJS({
|
|
|
23710
23710
|
ZodId: () => ZodId,
|
|
23711
23711
|
ZodTranslationsSchemaFn: () => ZodTranslationsSchemaFn
|
|
23712
23712
|
});
|
|
23713
|
-
var
|
|
23713
|
+
var import_zod17 = require_lib();
|
|
23714
23714
|
var countryIds2 = ["all", ...countries.map(({ id }) => id)];
|
|
23715
|
-
var ZodId =
|
|
23716
|
-
var ZodTranslationsSchemaFn = (schema) =>
|
|
23715
|
+
var ZodId = import_zod17.z.enum(countryIds2);
|
|
23716
|
+
var ZodTranslationsSchemaFn = (schema) => import_zod17.z.record(import_zod17.z.string(), schema.optional());
|
|
23717
23717
|
var UsStates = [
|
|
23718
23718
|
{ id: "AA", name: "Armed Forces Americas" },
|
|
23719
23719
|
{ id: "AE", name: "Armed Forces Europe" },
|
|
@@ -28419,9 +28419,10 @@ Examples:
|
|
|
28419
28419
|
queryParamKeys: []
|
|
28420
28420
|
});
|
|
28421
28421
|
});
|
|
28422
|
-
resource.command("download").description(`Download the file for a completed export. Supports CSV, JSON, and XLSX formats depending on the export type.`).requiredOption("--export-id <value>", `exportId parameter`).addHelpText("after", `
|
|
28422
|
+
resource.command("download").description(`Download the file for a completed export. Supports CSV, JSON, and XLSX formats depending on the export type.`).requiredOption("--export-id <value>", `exportId parameter`).option("--as-redirect <value>", `as_redirect`).addHelpText("after", `
|
|
28423
28423
|
Examples:
|
|
28424
|
-
hyperline exports download --export-id <exportId
|
|
28424
|
+
hyperline exports download --export-id <exportId>
|
|
28425
|
+
hyperline exports download --export-id <exportId> --as-redirect <as_redirect>`).action(async (opts) => {
|
|
28425
28426
|
const ctx = resource.parent?.opts()._ctx;
|
|
28426
28427
|
if (!ctx) {
|
|
28427
28428
|
process.stderr.write("Error: Not authenticated\n");
|
|
@@ -28430,11 +28431,13 @@ Examples:
|
|
|
28430
28431
|
const args = {};
|
|
28431
28432
|
if (opts.exportId !== void 0)
|
|
28432
28433
|
args.exportId = opts.exportId;
|
|
28434
|
+
if (opts.asRedirect !== void 0)
|
|
28435
|
+
args.as_redirect = opts.asRedirect;
|
|
28433
28436
|
await ctx.execute({
|
|
28434
28437
|
method: "GET",
|
|
28435
28438
|
path: "/v1/exports/{exportId}/download",
|
|
28436
28439
|
args,
|
|
28437
|
-
queryParamKeys: []
|
|
28440
|
+
queryParamKeys: ["as_redirect"]
|
|
28438
28441
|
});
|
|
28439
28442
|
});
|
|
28440
28443
|
}
|