@rankwrangler/http-client 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/app-router.d.ts +34 -31
- package/package.json +1 -1
package/dist/app-router.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
+
export type ServiceAccessErrorCode = "access_denied" | "access_unavailable" | "insufficient_scope" | "unauthenticated" | "unknown_service";
|
|
3
4
|
export type AmazonListingStatus = "active" | "deleted";
|
|
4
5
|
declare const rankwranglerServiceAccounts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5
6
|
name: "rankwrangler_service_accounts";
|
|
@@ -184,7 +185,8 @@ declare const rankwranglerServiceAccounts: import("drizzle-orm/pg-core").PgTable
|
|
|
184
185
|
};
|
|
185
186
|
dialect: "pg";
|
|
186
187
|
}>;
|
|
187
|
-
|
|
188
|
+
/** The immutable identity of a user's service account; usage is read fresh where it is metered. */
|
|
189
|
+
export type RankWranglerServicePrincipal = Pick<typeof rankwranglerServiceAccounts.$inferSelect, "id" | "service"> & {
|
|
188
190
|
merchbaseUserId: string;
|
|
189
191
|
};
|
|
190
192
|
export interface MerchbaseUser {
|
|
@@ -234,7 +236,7 @@ export interface Product {
|
|
|
234
236
|
} | {
|
|
235
237
|
status: "unavailable";
|
|
236
238
|
};
|
|
237
|
-
isMerchListing: boolean
|
|
239
|
+
isMerchListing: boolean;
|
|
238
240
|
amazonListingStatus: AmazonListingStatus;
|
|
239
241
|
};
|
|
240
242
|
category: {
|
|
@@ -273,7 +275,7 @@ export interface KeywordResultsProduct {
|
|
|
273
275
|
} | {
|
|
274
276
|
status: "unavailable";
|
|
275
277
|
};
|
|
276
|
-
isMerchListing: boolean
|
|
278
|
+
isMerchListing: boolean;
|
|
277
279
|
amazonListingStatus: AmazonListingStatus;
|
|
278
280
|
category: {
|
|
279
281
|
id: number;
|
|
@@ -352,7 +354,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
352
354
|
credentialKind: null;
|
|
353
355
|
authExpiresAtMs: null;
|
|
354
356
|
accessPrincipal: null;
|
|
355
|
-
accessError:
|
|
357
|
+
accessError: ServiceAccessErrorCode | null;
|
|
356
358
|
request: ContextRequest;
|
|
357
359
|
} | {
|
|
358
360
|
user: MerchbaseUser;
|
|
@@ -376,7 +378,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
376
378
|
credentialKind: null;
|
|
377
379
|
authExpiresAtMs: null;
|
|
378
380
|
accessPrincipal: null;
|
|
379
|
-
accessError:
|
|
381
|
+
accessError: ServiceAccessErrorCode | null;
|
|
380
382
|
request: ContextRequest;
|
|
381
383
|
} | {
|
|
382
384
|
user: MerchbaseUser;
|
|
@@ -400,7 +402,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
400
402
|
credentialKind: null;
|
|
401
403
|
authExpiresAtMs: null;
|
|
402
404
|
accessPrincipal: null;
|
|
403
|
-
accessError:
|
|
405
|
+
accessError: ServiceAccessErrorCode | null;
|
|
404
406
|
request: ContextRequest;
|
|
405
407
|
} | {
|
|
406
408
|
user: MerchbaseUser;
|
|
@@ -424,7 +426,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
424
426
|
credentialKind: null;
|
|
425
427
|
authExpiresAtMs: null;
|
|
426
428
|
accessPrincipal: null;
|
|
427
|
-
accessError:
|
|
429
|
+
accessError: ServiceAccessErrorCode | null;
|
|
428
430
|
request: ContextRequest;
|
|
429
431
|
} | {
|
|
430
432
|
user: MerchbaseUser;
|
|
@@ -447,22 +449,22 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
447
449
|
output: {
|
|
448
450
|
keyword: string;
|
|
449
451
|
data: {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
nextCheckAt: string | null;
|
|
452
|
+
freshness: (typeof keywordFreshness)[number] | null;
|
|
453
|
+
products: number;
|
|
453
454
|
id: string;
|
|
455
|
+
createdAt: string;
|
|
456
|
+
searchFrequencyRank: number | null;
|
|
457
|
+
intervalDays: number | null;
|
|
454
458
|
queryId: string;
|
|
455
|
-
|
|
459
|
+
nextCheckAt: string | null;
|
|
456
460
|
stage: (typeof keywordStages)[number];
|
|
457
|
-
freshness: (typeof keywordFreshness)[number] | null;
|
|
458
|
-
retryScheduled: boolean;
|
|
459
461
|
heat: string;
|
|
460
462
|
score: number | null;
|
|
461
|
-
searchFrequencyRank: number | null;
|
|
462
|
-
sources: string[];
|
|
463
|
-
products: number;
|
|
464
463
|
merch: number;
|
|
465
|
-
|
|
464
|
+
term: string;
|
|
465
|
+
retryScheduled: boolean;
|
|
466
|
+
sources: string[];
|
|
467
|
+
lastCheckedAt: string | null;
|
|
466
468
|
};
|
|
467
469
|
};
|
|
468
470
|
meta: object;
|
|
@@ -479,8 +481,8 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
479
481
|
input: {
|
|
480
482
|
text: string;
|
|
481
483
|
freshness?: "live" | "needsSync" | "syncing" | "all" | undefined;
|
|
482
|
-
sort?: "work" | "newest" | undefined;
|
|
483
484
|
limit?: number | undefined;
|
|
485
|
+
sort?: "work" | "newest" | undefined;
|
|
484
486
|
stage?: "trial" | "dropped" | "graduated" | "untracked" | "all" | undefined;
|
|
485
487
|
heat?: "unrated" | "hot" | "warm" | "cold" | "all" | undefined;
|
|
486
488
|
cursor?: {
|
|
@@ -499,22 +501,22 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
499
501
|
};
|
|
500
502
|
output: {
|
|
501
503
|
items: {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
nextCheckAt: string | null;
|
|
504
|
+
freshness: (typeof keywordFreshness)[number] | null;
|
|
505
|
+
products: number;
|
|
505
506
|
id: string;
|
|
507
|
+
createdAt: string;
|
|
508
|
+
searchFrequencyRank: number | null;
|
|
509
|
+
intervalDays: number | null;
|
|
506
510
|
queryId: string;
|
|
507
|
-
|
|
511
|
+
nextCheckAt: string | null;
|
|
508
512
|
stage: (typeof keywordStages)[number];
|
|
509
|
-
freshness: (typeof keywordFreshness)[number] | null;
|
|
510
|
-
retryScheduled: boolean;
|
|
511
513
|
heat: string;
|
|
512
514
|
score: number | null;
|
|
513
|
-
searchFrequencyRank: number | null;
|
|
514
|
-
sources: string[];
|
|
515
|
-
products: number;
|
|
516
515
|
merch: number;
|
|
517
|
-
|
|
516
|
+
term: string;
|
|
517
|
+
retryScheduled: boolean;
|
|
518
|
+
sources: string[];
|
|
519
|
+
lastCheckedAt: string | null;
|
|
518
520
|
}[];
|
|
519
521
|
nextCursor: {
|
|
520
522
|
sort: "fresh" | "work" | "newest" | "score" | "medianBsr" | "merch";
|
|
@@ -541,7 +543,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
541
543
|
credentialKind: null;
|
|
542
544
|
authExpiresAtMs: null;
|
|
543
545
|
accessPrincipal: null;
|
|
544
|
-
accessError:
|
|
546
|
+
accessError: ServiceAccessErrorCode | null;
|
|
545
547
|
request: ContextRequest;
|
|
546
548
|
} | {
|
|
547
549
|
user: MerchbaseUser;
|
|
@@ -596,7 +598,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
596
598
|
textFields?: "title" | "all" | undefined;
|
|
597
599
|
excludeWords?: string[] | undefined;
|
|
598
600
|
marketplaceIds?: string[] | undefined;
|
|
599
|
-
isMerchListing?: boolean | "
|
|
601
|
+
isMerchListing?: boolean | "all" | undefined;
|
|
600
602
|
amazonListingStatus?: "active" | "deleted" | "all" | undefined;
|
|
601
603
|
brands?: string[] | undefined;
|
|
602
604
|
excludeBrands?: string[] | undefined;
|
|
@@ -646,6 +648,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
646
648
|
} | null;
|
|
647
649
|
} | null;
|
|
648
650
|
items: {
|
|
651
|
+
extra?: undefined;
|
|
649
652
|
marketplaceId: string;
|
|
650
653
|
asin: string;
|
|
651
654
|
title: string | null;
|
|
@@ -659,7 +662,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
659
662
|
status: "unavailable";
|
|
660
663
|
url?: undefined;
|
|
661
664
|
};
|
|
662
|
-
isMerchListing: boolean
|
|
665
|
+
isMerchListing: boolean;
|
|
663
666
|
amazonListingStatus: AmazonListingStatus;
|
|
664
667
|
categoryId: number | null;
|
|
665
668
|
salesRank: number | null;
|