@pmate/cli 0.14.0 → 0.15.0

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.d.ts CHANGED
@@ -21,6 +21,7 @@ declare enum Command {
21
21
  Random = "random",
22
22
  Collect = "collect",
23
23
  Agent = "agent",
24
+ Store = "store",
24
25
  App = "app",
25
26
  Vercel = "vercel"
26
27
  }
@@ -302,6 +303,56 @@ type AgentCommandArgs = {
302
303
  baseUrl?: string;
303
304
  json: boolean;
304
305
  };
306
+ type StoreSharedArgs = {
307
+ chain: string;
308
+ namespace: string;
309
+ baseUrl?: string;
310
+ indexerBaseUrl?: string;
311
+ json: boolean;
312
+ };
313
+ type StoreCommandArgs = ({
314
+ type: Command.Store;
315
+ scope: "namespace";
316
+ action: "list";
317
+ } & StoreSharedArgs) | ({
318
+ type: Command.Store;
319
+ scope: "table";
320
+ action: "list";
321
+ name: string;
322
+ page: number;
323
+ } & StoreSharedArgs) | ({
324
+ type: Command.Store;
325
+ scope: "table";
326
+ action: "get" | "exists" | "delete";
327
+ name: string;
328
+ id: string;
329
+ } & StoreSharedArgs) | ({
330
+ type: Command.Store;
331
+ scope: "table";
332
+ action: "create" | "update";
333
+ name: string;
334
+ filePath: string;
335
+ } & StoreSharedArgs) | ({
336
+ type: Command.Store;
337
+ scope: "kv";
338
+ action: "list";
339
+ name: string;
340
+ page: number;
341
+ } & StoreSharedArgs) | ({
342
+ type: Command.Store;
343
+ scope: "kv";
344
+ action: "get" | "exists" | "delete";
345
+ name: string;
346
+ key: string;
347
+ } & StoreSharedArgs) | ({
348
+ type: Command.Store;
349
+ scope: "kv";
350
+ action: "set";
351
+ name: string;
352
+ key: string;
353
+ value?: string;
354
+ filePath?: string;
355
+ } & StoreSharedArgs);
305
356
  type AppCommandArgs = {
306
357
  type: Command.App;
307
358
  action: "list";
@@ -346,7 +397,7 @@ type VercelDeploysCommandArgs = {
346
397
  lastWeek: boolean;
347
398
  };
348
399
  type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
349
- type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | AppCommandArgs | VercelCommandArgs;
400
+ type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
350
401
 
351
402
  interface ParsedArgs {
352
403
  help: boolean;