@rankwrangler/http-client 0.8.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.
- package/dist/app-router.d.ts +16 -10
- package/package.json +6 -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 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
|
-
|
|
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
|
-
|
|
339
|
+
amazonListingStatus: AmazonListingStatus;
|
|
331
340
|
category: {
|
|
332
341
|
id: number;
|
|
333
342
|
name: string | null;
|
|
@@ -347,10 +356,9 @@ export interface ProductSearch {
|
|
|
347
356
|
product: ProductSearchProduct;
|
|
348
357
|
}>;
|
|
349
358
|
}
|
|
350
|
-
export
|
|
359
|
+
export interface BasicProduct {
|
|
351
360
|
marketplaceId: string;
|
|
352
361
|
asin: string;
|
|
353
|
-
status: "available";
|
|
354
362
|
title: string | null;
|
|
355
363
|
thumbnail: {
|
|
356
364
|
status: "available";
|
|
@@ -358,11 +366,8 @@ export type BasicProduct = {
|
|
|
358
366
|
} | {
|
|
359
367
|
status: "unavailable";
|
|
360
368
|
};
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
asin: string;
|
|
364
|
-
status: "unavailable";
|
|
365
|
-
};
|
|
369
|
+
amazonListingStatus: AmazonListingStatus;
|
|
370
|
+
}
|
|
366
371
|
export interface ProductHistorySummary {
|
|
367
372
|
first: number | null;
|
|
368
373
|
latest: number | null;
|
|
@@ -567,6 +572,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
567
572
|
input: {
|
|
568
573
|
marketplaceId: string;
|
|
569
574
|
asin: string;
|
|
575
|
+
include?: ("shortName" | "marketData" | "cutoutThumbnail")[] | undefined;
|
|
570
576
|
};
|
|
571
577
|
output: Product;
|
|
572
578
|
meta: object;
|
|
@@ -589,7 +595,7 @@ export declare const publicAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
589
595
|
days?: unknown;
|
|
590
596
|
endAt?: unknown;
|
|
591
597
|
limit?: unknown;
|
|
592
|
-
metrics?: ("
|
|
598
|
+
metrics?: ("salesRank" | "price")[] | undefined;
|
|
593
599
|
startAt?: unknown;
|
|
594
600
|
};
|
|
595
601
|
output: PublicProductHistory;
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rankwrangler/http-client",
|
|
3
|
-
"version": "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",
|