@teez-sdk/teez-b2c-api 1.0.0 → 1.0.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.
- package/README.md +0 -2
- package/dist/index.cjs +180 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +142 -0
- package/dist/index.d.mts +142 -0
- package/dist/index.mjs +180 -38
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -191,9 +191,16 @@ declare class HttpClient {
|
|
|
191
191
|
* Request timeout in milliseconds.
|
|
192
192
|
*/
|
|
193
193
|
private readonly timeout;
|
|
194
|
+
/**
|
|
195
|
+
* Initializes a new instance of the HttpClient.
|
|
196
|
+
*
|
|
197
|
+
* @param config Resolved client configuration.
|
|
198
|
+
*/
|
|
194
199
|
constructor(config: ResolvedTeezClientConfig);
|
|
195
200
|
/**
|
|
196
201
|
* Performs a low-level HTTP request.
|
|
202
|
+
*
|
|
203
|
+
* @param options Request options.
|
|
197
204
|
*/
|
|
198
205
|
request(options: HttpRequestOptions): Promise<unknown>;
|
|
199
206
|
/**
|
|
@@ -281,9 +288,17 @@ interface BannersApiListParams extends BaseParams {
|
|
|
281
288
|
*/
|
|
282
289
|
declare class BannersApi {
|
|
283
290
|
private http;
|
|
291
|
+
/**
|
|
292
|
+
* Initializes a new instance of the BannersApi.
|
|
293
|
+
*
|
|
294
|
+
* @param http HTTP client instance.
|
|
295
|
+
*/
|
|
284
296
|
constructor(http: HttpClient);
|
|
285
297
|
/**
|
|
286
298
|
* Retrieves a list of active banners.
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* const banners = await client.banners.list();
|
|
287
302
|
*/
|
|
288
303
|
list(params?: BannersApiListParams): Promise<BannersApiListResponse>;
|
|
289
304
|
}
|
|
@@ -426,17 +441,35 @@ interface CategoriesApiGetParentsParams extends BaseParams {
|
|
|
426
441
|
*/
|
|
427
442
|
declare class CategoriesApi {
|
|
428
443
|
private http;
|
|
444
|
+
/**
|
|
445
|
+
* Initializes a new instance of the CategoriesApi.
|
|
446
|
+
*
|
|
447
|
+
* @param http HTTP client instance.
|
|
448
|
+
*/
|
|
429
449
|
constructor(http: HttpClient);
|
|
430
450
|
/**
|
|
431
451
|
* Retrieves a list of all categories.
|
|
452
|
+
*
|
|
453
|
+
* @example
|
|
454
|
+
* const categories = await client.categories.list();
|
|
432
455
|
*/
|
|
433
456
|
list(params?: CategoriesApiListParams): Promise<CategoriesApiListResponse>;
|
|
434
457
|
/**
|
|
435
458
|
* Retrieves detailed information about a specific category by its ID.
|
|
459
|
+
*
|
|
460
|
+
* @example
|
|
461
|
+
* const category = await client.categories.get({
|
|
462
|
+
* categoryId: 1234
|
|
463
|
+
* });
|
|
436
464
|
*/
|
|
437
465
|
get(params: CategoriesApiGetParams): Promise<CategoriesApiGetResponse>;
|
|
438
466
|
/**
|
|
439
467
|
* Retrieves parent categories for specific category IDs.
|
|
468
|
+
*
|
|
469
|
+
* @example
|
|
470
|
+
* const parents = await client.categories.getParents({
|
|
471
|
+
* categoryId: [123, 456]
|
|
472
|
+
* });
|
|
440
473
|
*/
|
|
441
474
|
getParents(params: CategoriesApiGetParentsParams): Promise<CategoriesApiGetParentsResponse>;
|
|
442
475
|
}
|
|
@@ -700,17 +733,36 @@ interface CollectionsApiGetParams extends BaseParams {
|
|
|
700
733
|
*/
|
|
701
734
|
declare class CollectionsApi {
|
|
702
735
|
private http;
|
|
736
|
+
/**
|
|
737
|
+
* Initializes a new instance of the CollectionsApi.
|
|
738
|
+
*
|
|
739
|
+
* @param http HTTP client instance.
|
|
740
|
+
*/
|
|
703
741
|
constructor(http: HttpClient);
|
|
704
742
|
/**
|
|
705
743
|
* Retrieves a list of SKUs belonging to a specific collection with pagination and sorting.
|
|
744
|
+
*
|
|
745
|
+
* @example
|
|
746
|
+
* const skus = await client.collections.getSkus({
|
|
747
|
+
* collectionId: 123,
|
|
748
|
+
* pageSize: 10
|
|
749
|
+
* });
|
|
706
750
|
*/
|
|
707
751
|
getSkus(params: CollectionsApiGetSkusParams): Promise<CollectionsApiGetSkusResponse>;
|
|
708
752
|
/**
|
|
709
753
|
* Retrieves a list of all collections.
|
|
754
|
+
*
|
|
755
|
+
* @example
|
|
756
|
+
* const collections = await client.collections.list();
|
|
710
757
|
*/
|
|
711
758
|
list(params?: CollectionsApiListParams): Promise<CollectionsApiListResponse>;
|
|
712
759
|
/**
|
|
713
760
|
* Retrieves detailed information about a specific collection by its ID.
|
|
761
|
+
*
|
|
762
|
+
* @example
|
|
763
|
+
* const collection = await client.collections.get({
|
|
764
|
+
* collectionId: 123
|
|
765
|
+
* });
|
|
714
766
|
*/
|
|
715
767
|
get(params: CollectionsApiGetParams): Promise<CollectionsApiGetResponse>;
|
|
716
768
|
}
|
|
@@ -751,9 +803,17 @@ type FeatureFlagsApiListParams = BaseParams;
|
|
|
751
803
|
*/
|
|
752
804
|
declare class FeatureFlagsApi {
|
|
753
805
|
private http;
|
|
806
|
+
/**
|
|
807
|
+
* Initializes a new instance of the FeatureFlagsApi.
|
|
808
|
+
*
|
|
809
|
+
* @param http HTTP client instance.
|
|
810
|
+
*/
|
|
754
811
|
constructor(http: HttpClient);
|
|
755
812
|
/**
|
|
756
813
|
* Retrieves all active feature flags.
|
|
814
|
+
*
|
|
815
|
+
* @example
|
|
816
|
+
* const flags = await client.featureFlags.list();
|
|
757
817
|
*/
|
|
758
818
|
list(params?: FeatureFlagsApiListParams): Promise<FeatureFlagsApiListResponse>;
|
|
759
819
|
}
|
|
@@ -1087,17 +1147,36 @@ interface ProductsApiListParams extends BaseParams {
|
|
|
1087
1147
|
*/
|
|
1088
1148
|
declare class ProductsApi {
|
|
1089
1149
|
private http;
|
|
1150
|
+
/**
|
|
1151
|
+
* Initializes a new instance of the ProductsApi.
|
|
1152
|
+
*
|
|
1153
|
+
* @param http HTTP client instance.
|
|
1154
|
+
*/
|
|
1090
1155
|
constructor(http: HttpClient);
|
|
1091
1156
|
/**
|
|
1092
1157
|
* Retrieves available sorting options for product lists.
|
|
1158
|
+
*
|
|
1159
|
+
* @example
|
|
1160
|
+
* const sortOptions = await client.products.getSortOptions();
|
|
1093
1161
|
*/
|
|
1094
1162
|
getSortOptions(params?: ProductsApiGetSortOptionsParams): Promise<ProductsApiGetSortOptionsResponse>;
|
|
1095
1163
|
/**
|
|
1096
1164
|
* Retrieves a list of products with optional filtering and pagination.
|
|
1165
|
+
*
|
|
1166
|
+
* @example
|
|
1167
|
+
* const products = await client.products.list({
|
|
1168
|
+
* pageSize: 20,
|
|
1169
|
+
* pageNumber: 1
|
|
1170
|
+
* });
|
|
1097
1171
|
*/
|
|
1098
1172
|
list(params?: ProductsApiListParams): Promise<ProductsApiListResponse>;
|
|
1099
1173
|
/**
|
|
1100
1174
|
* Retrieves reviews for a specific product.
|
|
1175
|
+
*
|
|
1176
|
+
* @example
|
|
1177
|
+
* const reviews = await client.products.getReviews({
|
|
1178
|
+
* productId: 12345
|
|
1179
|
+
* });
|
|
1101
1180
|
*/
|
|
1102
1181
|
getReviews(params: ProductsApiGetReviewsParams): Promise<ProductsApiGetReviewsResponse>;
|
|
1103
1182
|
}
|
|
@@ -1154,9 +1233,17 @@ type PromoApiListParams = BaseParams;
|
|
|
1154
1233
|
*/
|
|
1155
1234
|
declare class PromoApi {
|
|
1156
1235
|
private http;
|
|
1236
|
+
/**
|
|
1237
|
+
* Initializes a new instance of the PromoApi.
|
|
1238
|
+
*
|
|
1239
|
+
* @param http HTTP client instance.
|
|
1240
|
+
*/
|
|
1157
1241
|
constructor(http: HttpClient);
|
|
1158
1242
|
/**
|
|
1159
1243
|
* Retrieves a list of all active promotions.
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* const promos = await client.promo.list();
|
|
1160
1247
|
*/
|
|
1161
1248
|
list(params?: PromoApiListParams): Promise<PromoApiListResponse>;
|
|
1162
1249
|
}
|
|
@@ -1523,17 +1610,36 @@ interface ShopsApiGetProductsParams extends BaseParams {
|
|
|
1523
1610
|
*/
|
|
1524
1611
|
declare class ShopsApi {
|
|
1525
1612
|
private http;
|
|
1613
|
+
/**
|
|
1614
|
+
* Initializes a new instance of the ShopsApi.
|
|
1615
|
+
*
|
|
1616
|
+
* @param http HTTP client instance.
|
|
1617
|
+
*/
|
|
1526
1618
|
constructor(http: HttpClient);
|
|
1527
1619
|
/**
|
|
1528
1620
|
* Retrieves details of a specific shop.
|
|
1621
|
+
*
|
|
1622
|
+
* @example
|
|
1623
|
+
* const shop = await client.shops.get({
|
|
1624
|
+
* shopId: 123
|
|
1625
|
+
* });
|
|
1529
1626
|
*/
|
|
1530
1627
|
get(params: ShopsApiGetParams): Promise<ShopsApiGetResponse>;
|
|
1531
1628
|
/**
|
|
1532
1629
|
* Retrieves monobrand shop details.
|
|
1630
|
+
*
|
|
1631
|
+
* @example
|
|
1632
|
+
* const monobrand = await client.shops.getMonobrand();
|
|
1533
1633
|
*/
|
|
1534
1634
|
getMonobrand(params?: ShopsApiGetMonobrandParams): Promise<ShopsApiGetMonobrandResponse>;
|
|
1535
1635
|
/**
|
|
1536
1636
|
* Retrieves products for a specific shop.
|
|
1637
|
+
*
|
|
1638
|
+
* @example
|
|
1639
|
+
* const shopProducts = await client.shops.getProducts({
|
|
1640
|
+
* shopId: 123,
|
|
1641
|
+
* pageSize: 10
|
|
1642
|
+
* });
|
|
1537
1643
|
*/
|
|
1538
1644
|
getProducts(params: ShopsApiGetProductsParams): Promise<ShopsApiGetProductsResponse>;
|
|
1539
1645
|
}
|
|
@@ -2027,21 +2133,46 @@ interface SkuApiGetReviewAvailableParams extends BaseParams {
|
|
|
2027
2133
|
*/
|
|
2028
2134
|
declare class SkuApi {
|
|
2029
2135
|
private http;
|
|
2136
|
+
/**
|
|
2137
|
+
* Initializes a new instance of the SkuApi.
|
|
2138
|
+
*
|
|
2139
|
+
* @param http HTTP client instance.
|
|
2140
|
+
*/
|
|
2030
2141
|
constructor(http: HttpClient);
|
|
2031
2142
|
/**
|
|
2032
2143
|
* Retrieves details of a specific SKU.
|
|
2144
|
+
*
|
|
2145
|
+
* @example
|
|
2146
|
+
* const sku = await client.sku.get({
|
|
2147
|
+
* skuId: 123
|
|
2148
|
+
* });
|
|
2033
2149
|
*/
|
|
2034
2150
|
get(params: SkuApiGetParams): Promise<SkuApiGetResponse>;
|
|
2035
2151
|
/**
|
|
2036
2152
|
* Retrieves similar SKUs.
|
|
2153
|
+
*
|
|
2154
|
+
* @example
|
|
2155
|
+
* const similar = await client.sku.getSimilar({
|
|
2156
|
+
* skuId: 123
|
|
2157
|
+
* });
|
|
2037
2158
|
*/
|
|
2038
2159
|
getSimilar(params: SkuApiGetSimilarParams): Promise<SkuApiGetSimilarResponse>;
|
|
2039
2160
|
/**
|
|
2040
2161
|
* Retrieves collections associated with a SKU.
|
|
2162
|
+
*
|
|
2163
|
+
* @example
|
|
2164
|
+
* const collections = await client.sku.getCollections({
|
|
2165
|
+
* skuId: 123
|
|
2166
|
+
* });
|
|
2041
2167
|
*/
|
|
2042
2168
|
getCollections(params: SkuApiGetCollectionsParams): Promise<SkuApiGetCollectionsResponse>;
|
|
2043
2169
|
/**
|
|
2044
2170
|
* Checks if a review is available for a SKU.
|
|
2171
|
+
*
|
|
2172
|
+
* @example
|
|
2173
|
+
* const isAvailable = await client.sku.getReviewAvailable({
|
|
2174
|
+
* skuId: 123
|
|
2175
|
+
* });
|
|
2045
2176
|
*/
|
|
2046
2177
|
getReviewAvailable(params: SkuApiGetReviewAvailableParams): Promise<SkuApiGetReviewAvailableResponse>;
|
|
2047
2178
|
}
|
|
@@ -2049,6 +2180,12 @@ declare class SkuApi {
|
|
|
2049
2180
|
//#region src/client.d.ts
|
|
2050
2181
|
/**
|
|
2051
2182
|
* Main client for interacting with the Teez B2C API.
|
|
2183
|
+
*
|
|
2184
|
+
* @example
|
|
2185
|
+
* const client = new TeezClient({
|
|
2186
|
+
* language: "ru",
|
|
2187
|
+
* timeout: 10000
|
|
2188
|
+
* });
|
|
2052
2189
|
*/
|
|
2053
2190
|
declare class TeezClient {
|
|
2054
2191
|
/**
|
|
@@ -2091,6 +2228,11 @@ declare class TeezClient {
|
|
|
2091
2228
|
* API for retrieving SKU details.
|
|
2092
2229
|
*/
|
|
2093
2230
|
readonly sku: SkuApi;
|
|
2231
|
+
/**
|
|
2232
|
+
* Initializes a new instance of the TeezClient.
|
|
2233
|
+
*
|
|
2234
|
+
* @param config Optional client configuration.
|
|
2235
|
+
*/
|
|
2094
2236
|
constructor(config?: TeezClientConfig);
|
|
2095
2237
|
/**
|
|
2096
2238
|
* Returns the current client configuration.
|
package/dist/index.d.mts
CHANGED
|
@@ -191,9 +191,16 @@ declare class HttpClient {
|
|
|
191
191
|
* Request timeout in milliseconds.
|
|
192
192
|
*/
|
|
193
193
|
private readonly timeout;
|
|
194
|
+
/**
|
|
195
|
+
* Initializes a new instance of the HttpClient.
|
|
196
|
+
*
|
|
197
|
+
* @param config Resolved client configuration.
|
|
198
|
+
*/
|
|
194
199
|
constructor(config: ResolvedTeezClientConfig);
|
|
195
200
|
/**
|
|
196
201
|
* Performs a low-level HTTP request.
|
|
202
|
+
*
|
|
203
|
+
* @param options Request options.
|
|
197
204
|
*/
|
|
198
205
|
request(options: HttpRequestOptions): Promise<unknown>;
|
|
199
206
|
/**
|
|
@@ -281,9 +288,17 @@ interface BannersApiListParams extends BaseParams {
|
|
|
281
288
|
*/
|
|
282
289
|
declare class BannersApi {
|
|
283
290
|
private http;
|
|
291
|
+
/**
|
|
292
|
+
* Initializes a new instance of the BannersApi.
|
|
293
|
+
*
|
|
294
|
+
* @param http HTTP client instance.
|
|
295
|
+
*/
|
|
284
296
|
constructor(http: HttpClient);
|
|
285
297
|
/**
|
|
286
298
|
* Retrieves a list of active banners.
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* const banners = await client.banners.list();
|
|
287
302
|
*/
|
|
288
303
|
list(params?: BannersApiListParams): Promise<BannersApiListResponse>;
|
|
289
304
|
}
|
|
@@ -426,17 +441,35 @@ interface CategoriesApiGetParentsParams extends BaseParams {
|
|
|
426
441
|
*/
|
|
427
442
|
declare class CategoriesApi {
|
|
428
443
|
private http;
|
|
444
|
+
/**
|
|
445
|
+
* Initializes a new instance of the CategoriesApi.
|
|
446
|
+
*
|
|
447
|
+
* @param http HTTP client instance.
|
|
448
|
+
*/
|
|
429
449
|
constructor(http: HttpClient);
|
|
430
450
|
/**
|
|
431
451
|
* Retrieves a list of all categories.
|
|
452
|
+
*
|
|
453
|
+
* @example
|
|
454
|
+
* const categories = await client.categories.list();
|
|
432
455
|
*/
|
|
433
456
|
list(params?: CategoriesApiListParams): Promise<CategoriesApiListResponse>;
|
|
434
457
|
/**
|
|
435
458
|
* Retrieves detailed information about a specific category by its ID.
|
|
459
|
+
*
|
|
460
|
+
* @example
|
|
461
|
+
* const category = await client.categories.get({
|
|
462
|
+
* categoryId: 1234
|
|
463
|
+
* });
|
|
436
464
|
*/
|
|
437
465
|
get(params: CategoriesApiGetParams): Promise<CategoriesApiGetResponse>;
|
|
438
466
|
/**
|
|
439
467
|
* Retrieves parent categories for specific category IDs.
|
|
468
|
+
*
|
|
469
|
+
* @example
|
|
470
|
+
* const parents = await client.categories.getParents({
|
|
471
|
+
* categoryId: [123, 456]
|
|
472
|
+
* });
|
|
440
473
|
*/
|
|
441
474
|
getParents(params: CategoriesApiGetParentsParams): Promise<CategoriesApiGetParentsResponse>;
|
|
442
475
|
}
|
|
@@ -700,17 +733,36 @@ interface CollectionsApiGetParams extends BaseParams {
|
|
|
700
733
|
*/
|
|
701
734
|
declare class CollectionsApi {
|
|
702
735
|
private http;
|
|
736
|
+
/**
|
|
737
|
+
* Initializes a new instance of the CollectionsApi.
|
|
738
|
+
*
|
|
739
|
+
* @param http HTTP client instance.
|
|
740
|
+
*/
|
|
703
741
|
constructor(http: HttpClient);
|
|
704
742
|
/**
|
|
705
743
|
* Retrieves a list of SKUs belonging to a specific collection with pagination and sorting.
|
|
744
|
+
*
|
|
745
|
+
* @example
|
|
746
|
+
* const skus = await client.collections.getSkus({
|
|
747
|
+
* collectionId: 123,
|
|
748
|
+
* pageSize: 10
|
|
749
|
+
* });
|
|
706
750
|
*/
|
|
707
751
|
getSkus(params: CollectionsApiGetSkusParams): Promise<CollectionsApiGetSkusResponse>;
|
|
708
752
|
/**
|
|
709
753
|
* Retrieves a list of all collections.
|
|
754
|
+
*
|
|
755
|
+
* @example
|
|
756
|
+
* const collections = await client.collections.list();
|
|
710
757
|
*/
|
|
711
758
|
list(params?: CollectionsApiListParams): Promise<CollectionsApiListResponse>;
|
|
712
759
|
/**
|
|
713
760
|
* Retrieves detailed information about a specific collection by its ID.
|
|
761
|
+
*
|
|
762
|
+
* @example
|
|
763
|
+
* const collection = await client.collections.get({
|
|
764
|
+
* collectionId: 123
|
|
765
|
+
* });
|
|
714
766
|
*/
|
|
715
767
|
get(params: CollectionsApiGetParams): Promise<CollectionsApiGetResponse>;
|
|
716
768
|
}
|
|
@@ -751,9 +803,17 @@ type FeatureFlagsApiListParams = BaseParams;
|
|
|
751
803
|
*/
|
|
752
804
|
declare class FeatureFlagsApi {
|
|
753
805
|
private http;
|
|
806
|
+
/**
|
|
807
|
+
* Initializes a new instance of the FeatureFlagsApi.
|
|
808
|
+
*
|
|
809
|
+
* @param http HTTP client instance.
|
|
810
|
+
*/
|
|
754
811
|
constructor(http: HttpClient);
|
|
755
812
|
/**
|
|
756
813
|
* Retrieves all active feature flags.
|
|
814
|
+
*
|
|
815
|
+
* @example
|
|
816
|
+
* const flags = await client.featureFlags.list();
|
|
757
817
|
*/
|
|
758
818
|
list(params?: FeatureFlagsApiListParams): Promise<FeatureFlagsApiListResponse>;
|
|
759
819
|
}
|
|
@@ -1087,17 +1147,36 @@ interface ProductsApiListParams extends BaseParams {
|
|
|
1087
1147
|
*/
|
|
1088
1148
|
declare class ProductsApi {
|
|
1089
1149
|
private http;
|
|
1150
|
+
/**
|
|
1151
|
+
* Initializes a new instance of the ProductsApi.
|
|
1152
|
+
*
|
|
1153
|
+
* @param http HTTP client instance.
|
|
1154
|
+
*/
|
|
1090
1155
|
constructor(http: HttpClient);
|
|
1091
1156
|
/**
|
|
1092
1157
|
* Retrieves available sorting options for product lists.
|
|
1158
|
+
*
|
|
1159
|
+
* @example
|
|
1160
|
+
* const sortOptions = await client.products.getSortOptions();
|
|
1093
1161
|
*/
|
|
1094
1162
|
getSortOptions(params?: ProductsApiGetSortOptionsParams): Promise<ProductsApiGetSortOptionsResponse>;
|
|
1095
1163
|
/**
|
|
1096
1164
|
* Retrieves a list of products with optional filtering and pagination.
|
|
1165
|
+
*
|
|
1166
|
+
* @example
|
|
1167
|
+
* const products = await client.products.list({
|
|
1168
|
+
* pageSize: 20,
|
|
1169
|
+
* pageNumber: 1
|
|
1170
|
+
* });
|
|
1097
1171
|
*/
|
|
1098
1172
|
list(params?: ProductsApiListParams): Promise<ProductsApiListResponse>;
|
|
1099
1173
|
/**
|
|
1100
1174
|
* Retrieves reviews for a specific product.
|
|
1175
|
+
*
|
|
1176
|
+
* @example
|
|
1177
|
+
* const reviews = await client.products.getReviews({
|
|
1178
|
+
* productId: 12345
|
|
1179
|
+
* });
|
|
1101
1180
|
*/
|
|
1102
1181
|
getReviews(params: ProductsApiGetReviewsParams): Promise<ProductsApiGetReviewsResponse>;
|
|
1103
1182
|
}
|
|
@@ -1154,9 +1233,17 @@ type PromoApiListParams = BaseParams;
|
|
|
1154
1233
|
*/
|
|
1155
1234
|
declare class PromoApi {
|
|
1156
1235
|
private http;
|
|
1236
|
+
/**
|
|
1237
|
+
* Initializes a new instance of the PromoApi.
|
|
1238
|
+
*
|
|
1239
|
+
* @param http HTTP client instance.
|
|
1240
|
+
*/
|
|
1157
1241
|
constructor(http: HttpClient);
|
|
1158
1242
|
/**
|
|
1159
1243
|
* Retrieves a list of all active promotions.
|
|
1244
|
+
*
|
|
1245
|
+
* @example
|
|
1246
|
+
* const promos = await client.promo.list();
|
|
1160
1247
|
*/
|
|
1161
1248
|
list(params?: PromoApiListParams): Promise<PromoApiListResponse>;
|
|
1162
1249
|
}
|
|
@@ -1523,17 +1610,36 @@ interface ShopsApiGetProductsParams extends BaseParams {
|
|
|
1523
1610
|
*/
|
|
1524
1611
|
declare class ShopsApi {
|
|
1525
1612
|
private http;
|
|
1613
|
+
/**
|
|
1614
|
+
* Initializes a new instance of the ShopsApi.
|
|
1615
|
+
*
|
|
1616
|
+
* @param http HTTP client instance.
|
|
1617
|
+
*/
|
|
1526
1618
|
constructor(http: HttpClient);
|
|
1527
1619
|
/**
|
|
1528
1620
|
* Retrieves details of a specific shop.
|
|
1621
|
+
*
|
|
1622
|
+
* @example
|
|
1623
|
+
* const shop = await client.shops.get({
|
|
1624
|
+
* shopId: 123
|
|
1625
|
+
* });
|
|
1529
1626
|
*/
|
|
1530
1627
|
get(params: ShopsApiGetParams): Promise<ShopsApiGetResponse>;
|
|
1531
1628
|
/**
|
|
1532
1629
|
* Retrieves monobrand shop details.
|
|
1630
|
+
*
|
|
1631
|
+
* @example
|
|
1632
|
+
* const monobrand = await client.shops.getMonobrand();
|
|
1533
1633
|
*/
|
|
1534
1634
|
getMonobrand(params?: ShopsApiGetMonobrandParams): Promise<ShopsApiGetMonobrandResponse>;
|
|
1535
1635
|
/**
|
|
1536
1636
|
* Retrieves products for a specific shop.
|
|
1637
|
+
*
|
|
1638
|
+
* @example
|
|
1639
|
+
* const shopProducts = await client.shops.getProducts({
|
|
1640
|
+
* shopId: 123,
|
|
1641
|
+
* pageSize: 10
|
|
1642
|
+
* });
|
|
1537
1643
|
*/
|
|
1538
1644
|
getProducts(params: ShopsApiGetProductsParams): Promise<ShopsApiGetProductsResponse>;
|
|
1539
1645
|
}
|
|
@@ -2027,21 +2133,46 @@ interface SkuApiGetReviewAvailableParams extends BaseParams {
|
|
|
2027
2133
|
*/
|
|
2028
2134
|
declare class SkuApi {
|
|
2029
2135
|
private http;
|
|
2136
|
+
/**
|
|
2137
|
+
* Initializes a new instance of the SkuApi.
|
|
2138
|
+
*
|
|
2139
|
+
* @param http HTTP client instance.
|
|
2140
|
+
*/
|
|
2030
2141
|
constructor(http: HttpClient);
|
|
2031
2142
|
/**
|
|
2032
2143
|
* Retrieves details of a specific SKU.
|
|
2144
|
+
*
|
|
2145
|
+
* @example
|
|
2146
|
+
* const sku = await client.sku.get({
|
|
2147
|
+
* skuId: 123
|
|
2148
|
+
* });
|
|
2033
2149
|
*/
|
|
2034
2150
|
get(params: SkuApiGetParams): Promise<SkuApiGetResponse>;
|
|
2035
2151
|
/**
|
|
2036
2152
|
* Retrieves similar SKUs.
|
|
2153
|
+
*
|
|
2154
|
+
* @example
|
|
2155
|
+
* const similar = await client.sku.getSimilar({
|
|
2156
|
+
* skuId: 123
|
|
2157
|
+
* });
|
|
2037
2158
|
*/
|
|
2038
2159
|
getSimilar(params: SkuApiGetSimilarParams): Promise<SkuApiGetSimilarResponse>;
|
|
2039
2160
|
/**
|
|
2040
2161
|
* Retrieves collections associated with a SKU.
|
|
2162
|
+
*
|
|
2163
|
+
* @example
|
|
2164
|
+
* const collections = await client.sku.getCollections({
|
|
2165
|
+
* skuId: 123
|
|
2166
|
+
* });
|
|
2041
2167
|
*/
|
|
2042
2168
|
getCollections(params: SkuApiGetCollectionsParams): Promise<SkuApiGetCollectionsResponse>;
|
|
2043
2169
|
/**
|
|
2044
2170
|
* Checks if a review is available for a SKU.
|
|
2171
|
+
*
|
|
2172
|
+
* @example
|
|
2173
|
+
* const isAvailable = await client.sku.getReviewAvailable({
|
|
2174
|
+
* skuId: 123
|
|
2175
|
+
* });
|
|
2045
2176
|
*/
|
|
2046
2177
|
getReviewAvailable(params: SkuApiGetReviewAvailableParams): Promise<SkuApiGetReviewAvailableResponse>;
|
|
2047
2178
|
}
|
|
@@ -2049,6 +2180,12 @@ declare class SkuApi {
|
|
|
2049
2180
|
//#region src/client.d.ts
|
|
2050
2181
|
/**
|
|
2051
2182
|
* Main client for interacting with the Teez B2C API.
|
|
2183
|
+
*
|
|
2184
|
+
* @example
|
|
2185
|
+
* const client = new TeezClient({
|
|
2186
|
+
* language: "ru",
|
|
2187
|
+
* timeout: 10000
|
|
2188
|
+
* });
|
|
2052
2189
|
*/
|
|
2053
2190
|
declare class TeezClient {
|
|
2054
2191
|
/**
|
|
@@ -2091,6 +2228,11 @@ declare class TeezClient {
|
|
|
2091
2228
|
* API for retrieving SKU details.
|
|
2092
2229
|
*/
|
|
2093
2230
|
readonly sku: SkuApi;
|
|
2231
|
+
/**
|
|
2232
|
+
* Initializes a new instance of the TeezClient.
|
|
2233
|
+
*
|
|
2234
|
+
* @param config Optional client configuration.
|
|
2235
|
+
*/
|
|
2094
2236
|
constructor(config?: TeezClientConfig);
|
|
2095
2237
|
/**
|
|
2096
2238
|
* Returns the current client configuration.
|