@rankwrangler/http-client 0.1.3 → 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.
@@ -115,6 +115,36 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
115
115
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
116
116
  transformer: false;
117
117
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
118
+ getProductHistory: import("@trpc/server").TRPCMutationProcedure<{
119
+ input: {
120
+ marketplaceId: string;
121
+ asin: string;
122
+ startAt?: unknown;
123
+ endAt?: unknown;
124
+ limit?: unknown;
125
+ days?: unknown;
126
+ };
127
+ output: {
128
+ collecting: boolean;
129
+ syncTriggered: boolean;
130
+ marketplaceId: string;
131
+ asin: string;
132
+ metric: "bsrMain" | "bsrCategory" | "priceAmazon" | "priceNew" | "priceNewFba";
133
+ latestImportAt: string | null;
134
+ categoryNames: {
135
+ [x: string]: string;
136
+ };
137
+ points: {
138
+ categoryId: number;
139
+ categoryName: string;
140
+ observedAt: string;
141
+ keepaMinutes: number;
142
+ value: number | null;
143
+ isMissing: boolean;
144
+ }[];
145
+ };
146
+ meta: object;
147
+ }>;
118
148
  getProductInfoBatch: import("@trpc/server").TRPCMutationProcedure<{
119
149
  input: {
120
150
  marketplaceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rankwrangler/http-client",
3
- "version": "0.1.3",
3
+ "version": "0.2.1",
4
4
  "description": "Typed tRPC client for RankWrangler",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",