Skip to content

Commit dcaf9a5

Browse files
0xGhostCasperscrapebadger-bot
andauthored
chore: regenerate SDK from OpenAPI spec (#31)
Co-authored-by: scrapebadger-bot <bot@scrapebadger.com>
1 parent 8d77ea0 commit dcaf9a5

3 files changed

Lines changed: 54 additions & 7 deletions

File tree

src/ebay/types.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,7 @@ export type EbaySortBy =
436436
* `graded` / `ungraded` are eBay's trading-card conditions (slabbed vs raw).
437437
*/
438438
export type EbayCondition =
439-
| "new"
440-
| "open_box"
441-
| "refurbished"
442-
| "used"
443-
| "for_parts"
444-
| "graded"
445-
| "ungraded";
439+
"new" | "open_box" | "refurbished" | "used" | "for_parts" | "graded" | "ungraded";
446440

447441
/** Buying-format filter. */
448442
export type EbayBuyingFormat = "auction" | "buy_it_now" | "best_offer";

src/tiktok/client.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,51 @@ export class TikTokClient {
110110
): Promise<Record<string, unknown>> {
111111
return this._gen.request(`/v1/tiktok/ads/${adId}`, { params });
112112
}
113+
114+
/** TikTok Shop root categories. Generated from the OpenAPI spec; returns the raw response object. */
115+
async tiktokShopRootCategories(
116+
params: Record<string, string | number | boolean | undefined> = {}
117+
): Promise<Record<string, unknown>> {
118+
return this._gen.request("/v1/tiktok/shop/categories", { params });
119+
}
120+
121+
/** TikTok Shop category: subcategories + top products. Generated from the OpenAPI spec; returns the raw response object. */
122+
async tiktokShopCategorySubcategoriesTopProducts(
123+
categoryId: string,
124+
params: Record<string, string | number | boolean | undefined> = {}
125+
): Promise<Record<string, unknown>> {
126+
return this._gen.request(`/v1/tiktok/shop/categories/${categoryId}`, { params });
127+
}
128+
129+
/** TikTok Shop product detail. Generated from the OpenAPI spec; returns the raw response object. */
130+
async tiktokShopProductDetail(
131+
productId: string,
132+
params: Record<string, string | number | boolean | undefined> = {}
133+
): Promise<Record<string, unknown>> {
134+
return this._gen.request(`/v1/tiktok/shop/products/${productId}`, { params });
135+
}
136+
137+
/** TikTok Shop product reviews. Generated from the OpenAPI spec; returns the raw response object. */
138+
async tiktokShopProductReviews(
139+
productId: string,
140+
params: Record<string, string | number | boolean | undefined> = {}
141+
): Promise<Record<string, unknown>> {
142+
return this._gen.request(`/v1/tiktok/shop/products/${productId}/reviews`, { params });
143+
}
144+
145+
/** Search TikTok Shop products. Generated from the OpenAPI spec; returns the raw response object. */
146+
async searchTiktokShopProducts(
147+
params: Record<string, string | number | boolean | undefined> = {}
148+
): Promise<Record<string, unknown>> {
149+
return this._gen.request("/v1/tiktok/shop/search", { params });
150+
}
151+
152+
/** TikTok Shop store + products. Generated from the OpenAPI spec; returns the raw response object. */
153+
async tiktokShopStoreProducts(
154+
sellerId: string,
155+
params: Record<string, string | number | boolean | undefined> = {}
156+
): Promise<Record<string, unknown>> {
157+
return this._gen.request(`/v1/tiktok/shop/stores/${sellerId}`, { params });
158+
}
113159
// --- END generated by sdk/codegen/facade ---
114160
}

src/zillow/client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ export class ZillowClient {
7272

7373
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
7474

75+
/** Get multifamily building. Generated from the OpenAPI spec; returns the raw response object. */
76+
async getMultifamilyBuilding(
77+
params: Record<string, string | number | boolean | undefined> = {}
78+
): Promise<Record<string, unknown>> {
79+
return this._gen.request("/v1/zillow/building", { params });
80+
}
81+
7582
/** Get property detail by URL. Generated from the OpenAPI spec; returns the raw response object. */
7683
async getPropertyDetailByUrl(
7784
params: Record<string, string | number | boolean | undefined> = {}

0 commit comments

Comments
 (0)