@pmate/cli 0.17.0 → 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 +81 -4
  2. package/dist/index.js +5094 -4436
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -27,7 +27,9 @@ declare enum Command {
27
27
  Account = "account",
28
28
  Store = "store",
29
29
  App = "app",
30
- Vercel = "vercel"
30
+ Service = "service",
31
+ Vercel = "vercel",
32
+ Quiz = "quiz"
31
33
  }
32
34
  type NoneCommandArgs = {
33
35
  type: Command.None;
@@ -63,12 +65,15 @@ type DeployCommandArgs = {
63
65
  deployApp: string;
64
66
  deployAction: "deploy" | "logs";
65
67
  deployCwd: string;
68
+ deployNamespace?: string;
69
+ deployBaseUrl?: string;
66
70
  };
67
71
  type LogCommandArgs = {
68
72
  type: Command.Log;
69
73
  logApp: string;
70
74
  logCwd: string;
71
75
  logNamespace?: string;
76
+ logBaseUrl?: string;
72
77
  logPage: number;
73
78
  logHistory: boolean;
74
79
  logSearch?: string;
@@ -77,6 +82,8 @@ type InitCommandArgs = {
77
82
  type: Command.Init;
78
83
  initApp: string;
79
84
  initCwd: string;
85
+ initNamespace?: string;
86
+ initBaseUrl?: string;
80
87
  };
81
88
  type DeleteCommandArgs = {
82
89
  type: Command.Delete;
@@ -112,6 +119,21 @@ type SummaryCommandArgs = {
112
119
  prRef: string;
113
120
  cwd: string;
114
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
+ };
115
137
  type LinearPrCommandArgs = {
116
138
  type: Command.Linear;
117
139
  action: "pr";
@@ -326,7 +348,7 @@ type AgentCommandArgs = {
326
348
  json: boolean;
327
349
  } | {
328
350
  type: Command.Agent;
329
- action: "get";
351
+ action: "get" | "view";
330
352
  namespace: string;
331
353
  name: string;
332
354
  baseUrl?: string;
@@ -428,11 +450,12 @@ type StoreCommandArgs = ({
428
450
  type AppCommandArgs = {
429
451
  type: Command.App;
430
452
  action: "list";
453
+ namespace?: string;
431
454
  baseUrl?: string;
432
455
  json: boolean;
433
456
  } | {
434
457
  type: Command.App;
435
- action: "get";
458
+ action: "get" | "view";
436
459
  id: string;
437
460
  baseUrl?: string;
438
461
  json: boolean;
@@ -456,6 +479,60 @@ type AppCommandArgs = {
456
479
  baseUrl?: string;
457
480
  json: boolean;
458
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
+ };
459
536
  type VercelProjectsCommandArgs = {
460
537
  type: Command.Vercel;
461
538
  action: "projects";
@@ -469,7 +546,7 @@ type VercelDeploysCommandArgs = {
469
546
  lastWeek: boolean;
470
547
  };
471
548
  type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
472
- type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | 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;
473
550
 
474
551
  interface ParsedArgs {
475
552
  help: boolean;