@rankwrangler/http-client 0.2.0 → 0.2.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.
- package/dist/app-router.d.ts +5 -32
- package/package.json +1 -1
package/dist/app-router.d.ts
CHANGED
|
@@ -25,25 +25,6 @@ export type ProductInfo = {
|
|
|
25
25
|
cached: boolean;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export type PointCountSummary = Record<string, number>;
|
|
29
|
-
export type KeepaImportSummary = {
|
|
30
|
-
importId: string;
|
|
31
|
-
marketplaceId: string;
|
|
32
|
-
asin: string;
|
|
33
|
-
days: number;
|
|
34
|
-
pointsStored: number;
|
|
35
|
-
pointCounts: PointCountSummary;
|
|
36
|
-
tokensConsumed: number | null;
|
|
37
|
-
tokensLeft: number | null;
|
|
38
|
-
refillInMs: number | null;
|
|
39
|
-
refillRate: number | null;
|
|
40
|
-
status: "success" | "error";
|
|
41
|
-
cached: boolean;
|
|
42
|
-
importedAt: string;
|
|
43
|
-
errorCode: string | null;
|
|
44
|
-
errorMessage: string | null;
|
|
45
|
-
responsePayload: Record<string, unknown> | null;
|
|
46
|
-
};
|
|
47
28
|
export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
48
29
|
ctx: {
|
|
49
30
|
user: ClerkUser;
|
|
@@ -134,17 +115,18 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
134
115
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
135
116
|
transformer: false;
|
|
136
117
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
137
|
-
getProductHistory: import("@trpc/server").
|
|
118
|
+
getProductHistory: import("@trpc/server").TRPCMutationProcedure<{
|
|
138
119
|
input: {
|
|
139
120
|
marketplaceId: string;
|
|
140
121
|
asin: string;
|
|
141
|
-
metric: "bsrMain" | "bsrCategory" | "priceAmazon" | "priceNew" | "priceNewFba";
|
|
142
|
-
categoryId?: unknown;
|
|
143
122
|
startAt?: unknown;
|
|
144
123
|
endAt?: unknown;
|
|
145
124
|
limit?: unknown;
|
|
125
|
+
days?: unknown;
|
|
146
126
|
};
|
|
147
127
|
output: {
|
|
128
|
+
collecting: boolean;
|
|
129
|
+
syncTriggered: boolean;
|
|
148
130
|
marketplaceId: string;
|
|
149
131
|
asin: string;
|
|
150
132
|
metric: "bsrMain" | "bsrCategory" | "priceAmazon" | "priceNew" | "priceNewFba";
|
|
@@ -196,16 +178,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
196
178
|
output: ProductInfo;
|
|
197
179
|
meta: object;
|
|
198
180
|
}>;
|
|
199
|
-
|
|
200
|
-
input: {
|
|
201
|
-
marketplaceId: string;
|
|
202
|
-
asin: string;
|
|
203
|
-
days?: unknown;
|
|
204
|
-
};
|
|
205
|
-
output: KeepaImportSummary;
|
|
206
|
-
meta: object;
|
|
207
|
-
}>;
|
|
208
|
-
apiKey: import("@trpc/server").TRPCBuiltRouter<{
|
|
181
|
+
license: import("@trpc/server").TRPCBuiltRouter<{
|
|
209
182
|
ctx: {
|
|
210
183
|
user: ClerkUser;
|
|
211
184
|
isAdmin: boolean;
|