@pmate/cli 0.16.4 → 0.17.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +87 -4
  2. package/dist/index.js +5592 -4654
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ declare enum Command {
9
9
  Deploy = "deploy",
10
10
  Log = "log",
11
11
  Init = "init",
12
+ Delete = "delete",
12
13
  Dev = "dev",
13
14
  Env = "env",
14
15
  Pr = "pr",
@@ -26,7 +27,9 @@ declare enum Command {
26
27
  Account = "account",
27
28
  Store = "store",
28
29
  App = "app",
29
- Vercel = "vercel"
30
+ Service = "service",
31
+ Vercel = "vercel",
32
+ Quiz = "quiz"
30
33
  }
31
34
  type NoneCommandArgs = {
32
35
  type: Command.None;
@@ -62,12 +65,15 @@ type DeployCommandArgs = {
62
65
  deployApp: string;
63
66
  deployAction: "deploy" | "logs";
64
67
  deployCwd: string;
68
+ deployNamespace?: string;
69
+ deployBaseUrl?: string;
65
70
  };
66
71
  type LogCommandArgs = {
67
72
  type: Command.Log;
68
73
  logApp: string;
69
74
  logCwd: string;
70
75
  logNamespace?: string;
76
+ logBaseUrl?: string;
71
77
  logPage: number;
72
78
  logHistory: boolean;
73
79
  logSearch?: string;
@@ -76,6 +82,13 @@ type InitCommandArgs = {
76
82
  type: Command.Init;
77
83
  initApp: string;
78
84
  initCwd: string;
85
+ initNamespace?: string;
86
+ initBaseUrl?: string;
87
+ };
88
+ type DeleteCommandArgs = {
89
+ type: Command.Delete;
90
+ deleteApp: string;
91
+ deleteCwd: string;
79
92
  };
80
93
  type DevCommandArgs = {
81
94
  type: Command.Dev;
@@ -106,6 +119,21 @@ type SummaryCommandArgs = {
106
119
  prRef: string;
107
120
  cwd: string;
108
121
  };
122
+ type QuizCommandArgs = {
123
+ type: Command.Quiz;
124
+ action: "publish";
125
+ filePath: string;
126
+ paperId: string;
127
+ apiBaseUrl?: string;
128
+ linkBaseUrl?: string;
129
+ activate: boolean;
130
+ } | {
131
+ type: Command.Quiz;
132
+ action: "activate";
133
+ paperId: string;
134
+ apiBaseUrl?: string;
135
+ linkBaseUrl?: string;
136
+ };
109
137
  type LinearPrCommandArgs = {
110
138
  type: Command.Linear;
111
139
  action: "pr";
@@ -320,7 +348,7 @@ type AgentCommandArgs = {
320
348
  json: boolean;
321
349
  } | {
322
350
  type: Command.Agent;
323
- action: "get";
351
+ action: "get" | "view";
324
352
  namespace: string;
325
353
  name: string;
326
354
  baseUrl?: string;
@@ -422,11 +450,12 @@ type StoreCommandArgs = ({
422
450
  type AppCommandArgs = {
423
451
  type: Command.App;
424
452
  action: "list";
453
+ namespace?: string;
425
454
  baseUrl?: string;
426
455
  json: boolean;
427
456
  } | {
428
457
  type: Command.App;
429
- action: "get";
458
+ action: "get" | "view";
430
459
  id: string;
431
460
  baseUrl?: string;
432
461
  json: boolean;
@@ -450,6 +479,60 @@ type AppCommandArgs = {
450
479
  baseUrl?: string;
451
480
  json: boolean;
452
481
  };
482
+ type ServiceCommandArgs = {
483
+ type: Command.Service;
484
+ action: "list";
485
+ namespace?: string;
486
+ baseUrl?: string;
487
+ json: boolean;
488
+ } | {
489
+ type: Command.Service;
490
+ action: "get" | "view" | "delete";
491
+ namespace: string;
492
+ name: string;
493
+ baseUrl?: string;
494
+ json: boolean;
495
+ } | {
496
+ type: Command.Service;
497
+ action: "create";
498
+ filePath: string;
499
+ baseUrl?: string;
500
+ json: boolean;
501
+ } | {
502
+ type: Command.Service;
503
+ action: "update";
504
+ namespace: string;
505
+ name: string;
506
+ filePath: string;
507
+ baseUrl?: string;
508
+ json: boolean;
509
+ } | {
510
+ type: Command.Service;
511
+ action: "deploy";
512
+ namespace: string;
513
+ name: string;
514
+ cwd?: string;
515
+ baseUrl?: string;
516
+ json: boolean;
517
+ } | {
518
+ type: Command.Service;
519
+ action: "init";
520
+ namespace: string;
521
+ name: string;
522
+ cwd?: string;
523
+ baseUrl?: string;
524
+ json: boolean;
525
+ } | {
526
+ type: Command.Service;
527
+ action: "log";
528
+ namespace: string;
529
+ name: string;
530
+ baseUrl?: string;
531
+ json: boolean;
532
+ page: number;
533
+ history: boolean;
534
+ search?: string;
535
+ };
453
536
  type VercelProjectsCommandArgs = {
454
537
  type: Command.Vercel;
455
538
  action: "projects";
@@ -463,7 +546,7 @@ type VercelDeploysCommandArgs = {
463
546
  lastWeek: boolean;
464
547
  };
465
548
  type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
466
- type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
549
+ type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | QuizCommandArgs | ServiceCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
467
550
 
468
551
  interface ParsedArgs {
469
552
  help: boolean;