@hyperline/cli 0.1.0-build.1.64a032e → 0.1.0-build.1.8592615
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/bin/hyperline-main.js +0 -24
- package/package.json +1 -1
|
@@ -28346,30 +28346,6 @@ Examples:
|
|
|
28346
28346
|
queryParamKeys: []
|
|
28347
28347
|
});
|
|
28348
28348
|
});
|
|
28349
|
-
resource.command("preview").description(`Preview which customers match the given segment rules without saving the segment.`).option("--take <number>", `take`).option("--skip <number>", `skip`).requiredOption("--rules <value>", `rules`).addHelpText("after", `
|
|
28350
|
-
Examples:
|
|
28351
|
-
hyperline customers-segments preview --rules <rules>
|
|
28352
|
-
hyperline customers-segments preview --rules <rules> --take <take>
|
|
28353
|
-
hyperline customers-segments preview --rules <rules> --output json`).action(async (opts) => {
|
|
28354
|
-
const ctx = resource.parent?.opts()._ctx;
|
|
28355
|
-
if (!ctx) {
|
|
28356
|
-
process.stderr.write("Error: Not authenticated\n");
|
|
28357
|
-
process.exit(1);
|
|
28358
|
-
}
|
|
28359
|
-
const args = {};
|
|
28360
|
-
if (opts.rules !== void 0)
|
|
28361
|
-
args.rules = opts.rules;
|
|
28362
|
-
if (opts.take !== void 0)
|
|
28363
|
-
args.take = Number(opts.take);
|
|
28364
|
-
if (opts.skip !== void 0)
|
|
28365
|
-
args.skip = Number(opts.skip);
|
|
28366
|
-
await ctx.execute({
|
|
28367
|
-
method: "POST",
|
|
28368
|
-
path: "/v1/customers/segments/preview",
|
|
28369
|
-
args,
|
|
28370
|
-
queryParamKeys: ["take", "skip"]
|
|
28371
|
-
});
|
|
28372
|
-
});
|
|
28373
28349
|
resource.command("update").description(`Update an existing customer segment.`).requiredOption("--id <value>", `id parameter`).option("--name <value>", `name`).option("--description <value>", `description`).option("--rules <value>", `rules`).addHelpText("after", `
|
|
28374
28350
|
Examples:
|
|
28375
28351
|
hyperline customers-segments update --id <id>
|