@rankwrangler/http-client 0.9.0 → 0.10.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.
@@ -1,5 +1,6 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
+ export type AmazonListingStatus = "active" | "deleted";
3
4
  declare const rankwranglerServiceAccounts: import("drizzle-orm/pg-core").PgTableWithColumns<{
4
5
  name: "rankwrangler_service_accounts";
5
6
  schema: undefined;
@@ -273,11 +274,19 @@ export interface KeywordHistoryResponse {
273
274
  points: KeywordHistoryPoint[];
274
275
  deltas: SearchTermsTrendDeltas;
275
276
  }
277
+ export type PublicCutoutThumbnail = {
278
+ status: "available";
279
+ url: string;
280
+ } | {
281
+ status: "unavailable";
282
+ };
276
283
  export interface Product {
277
284
  marketplaceId: string;
278
285
  asin: string;
279
286
  listing: {
280
287
  title: string | null;
288
+ shortName: string | null;
289
+ cutoutThumbnail: PublicCutoutThumbnail | null;
281
290
  brand: string | null;
282
291
  firstAvailableAt: string | null;
283
292
  bulletPoints: string[];
@@ -288,7 +297,7 @@ export interface Product {
288
297
  status: "unavailable";
289
298
  };
290
299
  isMerchListing: boolean | null;
291
- isUnavailable: boolean;
300
+ amazonListingStatus: AmazonListingStatus;
292
301
  };
293
302
  category: {
294
303
  id: number;
@@ -327,7 +336,7 @@ export interface ProductSearchProduct {
327
336
  status: "unavailable";
328
337
  };
329
338
  isMerchListing: boolean | null;
330
- isUnavailable: boolean;
339
+ amazonListingStatus: AmazonListingStatus;
331
340
  category: {
332
341
  id: number;
333
342
  name: string | null;
@@ -357,7 +366,7 @@ export interface BasicProduct {
357
366
  } | {
358
367
  status: "unavailable";
359
368
  };
360
- isUnavailable: boolean;
369
+ amazonListingStatus: AmazonListingStatus;
361
370
  }
362
371
  export interface ProductHistorySummary {
363
372
  first: number | null;
@@ -563,6 +572,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
563
572
  input: {
564
573
  marketplaceId: string;
565
574
  asin: string;
575
+ include?: ("shortName" | "marketData" | "cutoutThumbnail")[] | undefined;
566
576
  };
567
577
  output: Product;
568
578
  meta: object;
@@ -585,7 +595,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
585
595
  days?: unknown;
586
596
  endAt?: unknown;
587
597
  limit?: unknown;
588
- metrics?: ("price" | "salesRank")[] | undefined;
598
+ metrics?: ("salesRank" | "price")[] | undefined;
589
599
  startAt?: unknown;
590
600
  };
591
601
  output: PublicProductHistory;
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@rankwrangler/http-client",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Typed tRPC client for RankWrangler",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/merchbaseco/rankwrangler.git",
8
+ "directory": "packages/http-client"
9
+ },
5
10
  "type": "module",
6
11
  "main": "./dist/index.js",
7
12
  "types": "./dist/index.d.ts",