@rankwrangler/http-client 0.15.0 → 0.16.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.
@@ -214,6 +214,16 @@ declare const keywordFreshness: readonly [
214
214
  "needsSync",
215
215
  "syncing"
216
216
  ];
217
+ export interface ProductVariations {
218
+ parentAsin: string;
219
+ theme: string[];
220
+ defaultChildAsin: string;
221
+ children: Array<{
222
+ asin: string;
223
+ attributes: Record<string, string>;
224
+ }>;
225
+ fetchedAt: string;
226
+ }
217
227
  export type PublicCutoutThumbnail = {
218
228
  status: "available";
219
229
  url: string;
@@ -239,6 +249,7 @@ export interface Product {
239
249
  isMerchListing: boolean;
240
250
  amazonListingStatus: AmazonListingStatus;
241
251
  };
252
+ variations: ProductVariations | null;
242
253
  category: {
243
254
  id: number;
244
255
  name: string | null;
@@ -563,7 +574,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
563
574
  input: {
564
575
  marketplaceId: string;
565
576
  asin: string;
566
- include?: ("shortName" | "marketData" | "cutoutThumbnail")[] | undefined;
577
+ include?: ("shortName" | "marketData" | "cutoutThumbnail" | "variations")[] | undefined;
567
578
  };
568
579
  output: Product;
569
580
  meta: object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rankwrangler/http-client",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Typed tRPC client for RankWrangler",
5
5
  "repository": {
6
6
  "type": "git",