@rankwrangler/http-client 0.12.0 → 0.13.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.
@@ -198,6 +198,17 @@ export interface ContextRequest {
198
198
  host?: string;
199
199
  };
200
200
  }
201
+ declare const keywordStages: readonly [
202
+ "graduated",
203
+ "trial",
204
+ "dropped",
205
+ "untracked"
206
+ ];
207
+ declare const keywordFreshness: readonly [
208
+ "live",
209
+ "needsSync",
210
+ "syncing"
211
+ ];
201
212
  export type PublicCutoutThumbnail = {
202
213
  status: "available";
203
214
  url: string;
@@ -437,13 +448,14 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
437
448
  lastCheckedAt: string | null;
438
449
  nextCheckAt: string | null;
439
450
  id: string;
440
- queryId: string | null;
451
+ queryId: string;
441
452
  term: string;
442
- status: "queued" | "scanning" | "upToDate" | "untracked";
443
- untrackedReason: "notRelevant" | "noMerchFound" | "notScheduled" | null;
453
+ stage: (typeof keywordStages)[number];
454
+ freshness: (typeof keywordFreshness)[number] | null;
444
455
  retryScheduled: boolean;
445
456
  heat: string;
446
457
  score: number | null;
458
+ searchFrequencyRank: number | null;
447
459
  sources: string[];
448
460
  products: number;
449
461
  merch: number;
@@ -463,8 +475,9 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
463
475
  search: import("@trpc/server").TRPCQueryProcedure<{
464
476
  input: {
465
477
  text: string;
466
- state?: "all" | "queued" | "scanning" | "upToDate" | "untracked" | undefined;
478
+ freshness?: "live" | "needsSync" | "syncing" | "all" | undefined;
467
479
  sort?: "work" | "newest" | undefined;
480
+ stage?: "trial" | "graduated" | "dropped" | "untracked" | "all" | undefined;
468
481
  limit?: number | undefined;
469
482
  heat?: "unrated" | "hot" | "warm" | "cold" | "all" | undefined;
470
483
  cursor?: {
@@ -478,7 +491,6 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
478
491
  string
479
492
  ];
480
493
  asOf: string;
481
- trialTurn: boolean;
482
494
  sort: "work" | "newest";
483
495
  } | undefined;
484
496
  };
@@ -488,19 +500,22 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
488
500
  lastCheckedAt: string | null;
489
501
  nextCheckAt: string | null;
490
502
  id: string;
491
- queryId: string | null;
503
+ queryId: string;
492
504
  term: string;
493
- status: "queued" | "scanning" | "upToDate" | "untracked";
494
- untrackedReason: "notRelevant" | "noMerchFound" | "notScheduled" | null;
505
+ stage: (typeof keywordStages)[number];
506
+ freshness: (typeof keywordFreshness)[number] | null;
495
507
  retryScheduled: boolean;
496
508
  heat: string;
497
509
  score: number | null;
510
+ searchFrequencyRank: number | null;
498
511
  sources: string[];
499
512
  products: number;
500
513
  merch: number;
501
514
  intervalDays: number | null;
502
515
  }[];
503
516
  nextCursor: {
517
+ sort: "fresh" | "work" | "newest" | "score" | "medianBsr" | "merch";
518
+ asOf: string;
504
519
  key: [
505
520
  number,
506
521
  number,
@@ -510,9 +525,6 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
510
525
  number,
511
526
  string
512
527
  ];
513
- asOf: string;
514
- trialTurn: boolean;
515
- sort: "work" | "newest";
516
528
  } | null;
517
529
  };
518
530
  meta: object;
@@ -565,7 +577,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
565
577
  input: {
566
578
  marketplaceId: string;
567
579
  asin: string;
568
- bucket?: "auto" | "day" | "week" | "month" | undefined;
580
+ bucket?: "week" | "day" | "auto" | "month" | undefined;
569
581
  days?: unknown;
570
582
  endAt?: unknown;
571
583
  limit?: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rankwrangler/http-client",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Typed tRPC client for RankWrangler",
5
5
  "repository": {
6
6
  "type": "git",