@wave-ai-os/wave-cli 0.1.77 → 0.1.78

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/index.cjs CHANGED
@@ -4421,10 +4421,17 @@ var nameSchema = import_zod10.z.string().min(1);
4421
4421
  var issueTypeSchema = import_zod10.z.string().min(1).refine((value) => value === "short_term" || value === "long_term", {
4422
4422
  message: "Invalid issue type. Use one of: short_term, long_term."
4423
4423
  });
4424
+ var issueStatusSchema = import_zod10.z.string().min(1).refine((value) => value === "open" || value === "completed", {
4425
+ message: "Invalid issue status. Use one of: open, completed."
4426
+ });
4424
4427
  var updateHelp4 = buildDataJsonHelp("issue", "update") ?? 'JSON object for issue or {"issue": {...}}';
4428
+ function parseIssueIndexEnum(value, schema) {
4429
+ if (value === void 0) return void 0;
4430
+ return schema.parse(String(value)).toUpperCase();
4431
+ }
4425
4432
  function registerIssueCommands(program) {
4426
4433
  const issues = program.command("issues").description("Issue operations");
4427
- issues.command("list").option("--page <page>").option("--per <per>").option("--issue-group-id <issueGroupId>").option("--start-date <startDate>").option("--issue-type <issueType>").option("--team-id <teamId>").option("--member-id <memberId>").option("--meeting-id <meetingId>").action(async (opts, cmd) => {
4434
+ issues.command("list").option("--page <page>").option("--per <per>").option("--issue-group-id <issueGroupId>").option("--start-date <startDate>").option("--issue-type <issueType>").option("--status <status>", "Issue status: open | completed").option("--team-id <teamId>").option("--member-id <memberId>").option("--meeting-id <meetingId>").action(async (opts, cmd) => {
4428
4435
  const context = await resolveCommandContext(cmd.optsWithGlobals());
4429
4436
  const organizationId = resolveOrganizationId(context.organizationId);
4430
4437
  await runGraphqlQueryCommand({
@@ -4437,11 +4444,24 @@ function registerIssueCommands(program) {
4437
4444
  per: opts.per,
4438
4445
  issue_group_id: opts.issueGroupId,
4439
4446
  start_date: opts.startDate,
4440
- issue_type: opts.issueType,
4447
+ issue_type: parseIssueIndexEnum(opts.issueType, issueTypeSchema),
4448
+ status: parseIssueIndexEnum(opts.status, issueStatusSchema),
4441
4449
  team_id: opts.teamId,
4442
4450
  member_id: opts.memberId,
4443
4451
  meeting_id: opts.meetingId
4444
4452
  }),
4453
+ variableTypes: {
4454
+ organization_id: "ID!",
4455
+ page: "Int",
4456
+ per: "Int",
4457
+ issue_group_id: "ID",
4458
+ start_date: "String",
4459
+ issue_type: "IssueType",
4460
+ status: "IssueStatus",
4461
+ team_id: "ID",
4462
+ member_id: "ID",
4463
+ meeting_id: "ID"
4464
+ },
4445
4465
  isList: true
4446
4466
  });
4447
4467
  });
@@ -14812,6 +14832,11 @@ var AUTOMATION_SELECTION = `{
14812
14832
  organizationId
14813
14833
  memberId
14814
14834
  agentId
14835
+ agentTriggerId
14836
+ scheduleStatus
14837
+ triggerEnabled
14838
+ cronExpression
14839
+ timezone
14815
14840
  createdAt
14816
14841
  updatedAt
14817
14842
  updateVersion
package/dist/index.js CHANGED
@@ -4420,10 +4420,17 @@ var nameSchema = z10.string().min(1);
4420
4420
  var issueTypeSchema = z10.string().min(1).refine((value) => value === "short_term" || value === "long_term", {
4421
4421
  message: "Invalid issue type. Use one of: short_term, long_term."
4422
4422
  });
4423
+ var issueStatusSchema = z10.string().min(1).refine((value) => value === "open" || value === "completed", {
4424
+ message: "Invalid issue status. Use one of: open, completed."
4425
+ });
4423
4426
  var updateHelp4 = buildDataJsonHelp("issue", "update") ?? 'JSON object for issue or {"issue": {...}}';
4427
+ function parseIssueIndexEnum(value, schema) {
4428
+ if (value === void 0) return void 0;
4429
+ return schema.parse(String(value)).toUpperCase();
4430
+ }
4424
4431
  function registerIssueCommands(program) {
4425
4432
  const issues = program.command("issues").description("Issue operations");
4426
- issues.command("list").option("--page <page>").option("--per <per>").option("--issue-group-id <issueGroupId>").option("--start-date <startDate>").option("--issue-type <issueType>").option("--team-id <teamId>").option("--member-id <memberId>").option("--meeting-id <meetingId>").action(async (opts, cmd) => {
4433
+ issues.command("list").option("--page <page>").option("--per <per>").option("--issue-group-id <issueGroupId>").option("--start-date <startDate>").option("--issue-type <issueType>").option("--status <status>", "Issue status: open | completed").option("--team-id <teamId>").option("--member-id <memberId>").option("--meeting-id <meetingId>").action(async (opts, cmd) => {
4427
4434
  const context = await resolveCommandContext(cmd.optsWithGlobals());
4428
4435
  const organizationId = resolveOrganizationId(context.organizationId);
4429
4436
  await runGraphqlQueryCommand({
@@ -4436,11 +4443,24 @@ function registerIssueCommands(program) {
4436
4443
  per: opts.per,
4437
4444
  issue_group_id: opts.issueGroupId,
4438
4445
  start_date: opts.startDate,
4439
- issue_type: opts.issueType,
4446
+ issue_type: parseIssueIndexEnum(opts.issueType, issueTypeSchema),
4447
+ status: parseIssueIndexEnum(opts.status, issueStatusSchema),
4440
4448
  team_id: opts.teamId,
4441
4449
  member_id: opts.memberId,
4442
4450
  meeting_id: opts.meetingId
4443
4451
  }),
4452
+ variableTypes: {
4453
+ organization_id: "ID!",
4454
+ page: "Int",
4455
+ per: "Int",
4456
+ issue_group_id: "ID",
4457
+ start_date: "String",
4458
+ issue_type: "IssueType",
4459
+ status: "IssueStatus",
4460
+ team_id: "ID",
4461
+ member_id: "ID",
4462
+ meeting_id: "ID"
4463
+ },
4444
4464
  isList: true
4445
4465
  });
4446
4466
  });
@@ -14811,6 +14831,11 @@ var AUTOMATION_SELECTION = `{
14811
14831
  organizationId
14812
14832
  memberId
14813
14833
  agentId
14834
+ agentTriggerId
14835
+ scheduleStatus
14836
+ triggerEnabled
14837
+ cronExpression
14838
+ timezone
14814
14839
  createdAt
14815
14840
  updatedAt
14816
14841
  updateVersion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wave-ai-os/wave-cli",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "wave": "dist/index.js"