@teez-sdk/teez-b2c-api 1.0.1 → 2.1.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/index.d.mts CHANGED
@@ -18,39 +18,10 @@ declare const LANGUAGES: {
18
18
  */
19
19
  readonly KZ: "kz";
20
20
  };
21
- /**
22
- * Standard sort options for product and collection searches
23
- */
24
- declare const SORT_OPTIONS: {
25
- /**
26
- * Sort by relevance (usually for search results)
27
- */
28
- readonly BY_RELEVANCE: "byRelevance";
29
- /**
30
- * Sort by popularity descending
31
- */
32
- readonly POPULARITY: "popularity";
33
- /**
34
- * Sort by user rating descending
35
- */
36
- readonly HIGHEST_RATED: "highestRated";
37
- /**
38
- * Sort by creation date descending
39
- */
40
- readonly NEW: "new";
41
- /**
42
- * Sort by price ascending
43
- */
44
- readonly PRICE: "price";
45
- /**
46
- * Sort by price descending
47
- */
48
- readonly PRICE_DESC: "priceDesc";
49
- };
50
21
  /**
51
22
  * Default application version code.
52
23
  */
53
- declare const DEFAULT_APP_VERSION = "193";
24
+ declare const DEFAULT_APP_VERSION = "200";
54
25
  //#endregion
55
26
  //#region src/common/types.d.ts
56
27
  /**
@@ -61,10 +32,6 @@ type Language = (typeof LANGUAGES)[keyof typeof LANGUAGES] | (string & {});
61
32
  * Base parameters for API requests.
62
33
  */
63
34
  type BaseParams = Record<string, unknown>;
64
- /**
65
- * Available sorting options for API listings.
66
- */
67
- type SortOption = (typeof SORT_OPTIONS)[keyof typeof SORT_OPTIONS] | (string & {});
68
35
  //#endregion
69
36
  //#region src/config.d.ts
70
37
  /**
@@ -76,6 +43,10 @@ interface TeezClientConfig {
76
43
  * @default "https://b2c-api.teez.kz"
77
44
  */
78
45
  baseUrl?: string;
46
+ /**
47
+ * JWT bearer token for authenticated requests.
48
+ */
49
+ token?: string;
79
50
  /**
80
51
  * Application version string.
81
52
  * @default "193"
@@ -104,6 +75,10 @@ interface ResolvedTeezClientConfig {
104
75
  * Base URL for the API.
105
76
  */
106
77
  readonly baseUrl: string;
78
+ /**
79
+ * JWT bearer token for authenticated requests.
80
+ */
81
+ readonly token?: string;
107
82
  /**
108
83
  * Application version string.
109
84
  */
@@ -173,6 +148,53 @@ interface HttpGetOptions<T extends z.ZodMiniType> extends Omit<HttpRequestOption
173
148
  */
174
149
  schema: T;
175
150
  }
151
+ /**
152
+ * Options for making a POST request.
153
+ */
154
+ interface HttpPostOptions extends Omit<HttpRequestOptions, "url" | "method" | "body"> {
155
+ /**
156
+ * Relative path to the resource.
157
+ */
158
+ path: string;
159
+ /**
160
+ * Request body to send (will be JSON-serialized).
161
+ */
162
+ body?: unknown;
163
+ /**
164
+ * Query parameters to append to the URL.
165
+ */
166
+ params?: QueryParams;
167
+ }
168
+ /**
169
+ * Options for making a PATCH request.
170
+ */
171
+ interface HttpPatchOptions extends Omit<HttpRequestOptions, "url" | "method" | "body"> {
172
+ /**
173
+ * Relative path to the resource.
174
+ */
175
+ path: string;
176
+ /**
177
+ * Request body to send (will be JSON-serialized).
178
+ */
179
+ body?: unknown;
180
+ /**
181
+ * Query parameters to append to the URL.
182
+ */
183
+ params?: QueryParams;
184
+ }
185
+ /**
186
+ * Options for making a DELETE request.
187
+ */
188
+ interface HttpDeleteOptions extends Omit<HttpRequestOptions, "url" | "method" | "body"> {
189
+ /**
190
+ * Relative path to the resource.
191
+ */
192
+ path: string;
193
+ /**
194
+ * Query parameters to append to the URL.
195
+ */
196
+ params?: QueryParams;
197
+ }
176
198
  //#endregion
177
199
  //#region src/http/client.d.ts
178
200
  /**
@@ -180,17 +202,13 @@ interface HttpGetOptions<T extends z.ZodMiniType> extends Omit<HttpRequestOption
180
202
  */
181
203
  declare class HttpClient {
182
204
  /**
183
- * Base URL for all requests.
205
+ * Client configuration.
184
206
  */
185
- private readonly baseUrl;
207
+ private readonly config;
186
208
  /**
187
209
  * Headers to include in all requests.
188
210
  */
189
211
  private readonly headers;
190
- /**
191
- * Request timeout in milliseconds.
192
- */
193
- private readonly timeout;
194
212
  /**
195
213
  * Initializes a new instance of the HttpClient.
196
214
  *
@@ -207,6 +225,171 @@ declare class HttpClient {
207
225
  * Performs a GET request and validates the response.
208
226
  */
209
227
  get<T extends z.ZodMiniType>(options: HttpGetOptions<T>): Promise<z.output<T>>;
228
+ /**
229
+ * Performs a POST request.
230
+ */
231
+ post(options: HttpPostOptions): Promise<unknown>;
232
+ /**
233
+ * Performs a PATCH request.
234
+ */
235
+ patch(options: HttpPatchOptions): Promise<unknown>;
236
+ /**
237
+ * Performs a DELETE request.
238
+ */
239
+ delete(options: HttpDeleteOptions): Promise<unknown>;
240
+ }
241
+ //#endregion
242
+ //#region src/api/auth/schema-types.d.ts
243
+ /**
244
+ * ⚠️ This file is auto-generated. Do not edit manually.
245
+ * Run `npm run generate:schema-types` to regenerate.
246
+ * Generated from: schemas.ts
247
+ */
248
+ /**
249
+ * Response schema for login.
250
+ */
251
+ type AuthApiLoginResponse = void | undefined;
252
+ /**
253
+ * Response schema for OTP verification.
254
+ */
255
+ interface AuthApiVerifyResponse {
256
+ /**
257
+ * Unique user identifier
258
+ */
259
+ userId: string;
260
+ /**
261
+ * JWT access token for authenticated requests
262
+ */
263
+ accessToken: string;
264
+ /**
265
+ * Refresh token for obtaining new access tokens
266
+ */
267
+ refreshToken: string;
268
+ /**
269
+ * User's phone number
270
+ */
271
+ phone: string;
272
+ /**
273
+ * User's default pickup point
274
+ */
275
+ pickupPoint?: (unknown | null) | undefined;
276
+ /**
277
+ * User's default delivery address
278
+ */
279
+ address?: (unknown | null) | undefined;
280
+ /**
281
+ * User's default recipient information
282
+ */
283
+ recipient?: (unknown | null) | undefined;
284
+ /**
285
+ * User's default payment method ID
286
+ */
287
+ paymentId?: (number | null) | undefined;
288
+ }
289
+ /**
290
+ * Response schema for token validation.
291
+ */
292
+ interface AuthApiCheckTokenResponse {
293
+ /**
294
+ * Unique user identifier
295
+ */
296
+ userId: string;
297
+ /**
298
+ * User's phone number
299
+ */
300
+ phoneNumber: string;
301
+ /**
302
+ * User's full name
303
+ */
304
+ fullName: string;
305
+ /**
306
+ * User's email address
307
+ */
308
+ email: string;
309
+ /**
310
+ * Token expiration date (ISO 8601 format)
311
+ */
312
+ expiredTokenDate: string;
313
+ /**
314
+ * User's language preference (ru or kk)
315
+ */
316
+ language: "ru" | "kk";
317
+ /**
318
+ * Whether user has any orders in the system
319
+ */
320
+ hasOrders: boolean;
321
+ /**
322
+ * Whether user has any orders (alternative field)
323
+ */
324
+ hasAnyOrders: boolean;
325
+ }
326
+ //#endregion
327
+ //#region src/api/auth/types.d.ts
328
+ /**
329
+ * Parameters for initiating phone login (sends OTP).
330
+ */
331
+ interface AuthApiLoginParams extends BaseParams {
332
+ /**
333
+ * Phone number with country code (e.g., "+77071234567")
334
+ */
335
+ phone: string;
336
+ }
337
+ /**
338
+ * Parameters for verifying OTP code and obtaining JWT token.
339
+ */
340
+ interface AuthApiVerifyParams extends BaseParams {
341
+ /**
342
+ * Phone number with country code (e.g., "+77071234567")
343
+ */
344
+ phone: string;
345
+ /**
346
+ * OTP code received via SMS
347
+ */
348
+ otpCode: string;
349
+ }
350
+ /**
351
+ * Parameters for checking token validity.
352
+ */
353
+ type AuthApiCheckTokenParams = BaseParams;
354
+ //#endregion
355
+ //#region src/api/auth/api.d.ts
356
+ /**
357
+ * API for authentication operations.
358
+ */
359
+ declare class AuthApi {
360
+ private http;
361
+ /**
362
+ * Initializes a new instance of the AuthApi.
363
+ *
364
+ * @param http HTTP client instance.
365
+ */
366
+ constructor(http: HttpClient);
367
+ /**
368
+ * Initiates phone login by sending an OTP code to the specified phone number.
369
+ *
370
+ * @example
371
+ * await client.auth.login({
372
+ * phone: "+77071234567"
373
+ * });
374
+ */
375
+ login(params: AuthApiLoginParams): Promise<AuthApiLoginResponse>;
376
+ /**
377
+ * Verifies OTP code and obtains JWT access and refresh tokens.
378
+ *
379
+ * @example
380
+ * const response = await client.auth.verify({
381
+ * phone: "+77071234567",
382
+ * otpCode: "2610"
383
+ * });
384
+ */
385
+ verify(params: AuthApiVerifyParams): Promise<AuthApiVerifyResponse>;
386
+ /**
387
+ * Validates the current JWT token and retrieves user information.
388
+ *
389
+ * @example
390
+ * const response = await client.auth.checkToken();
391
+ */
392
+ checkToken(params?: AuthApiCheckTokenParams): Promise<AuthApiCheckTokenResponse>;
210
393
  }
211
394
  //#endregion
212
395
  //#region src/api/banners/schema-types.d.ts
@@ -682,142 +865,6 @@ interface CollectionsApiGetResponse {
682
865
  priority: number;
683
866
  }
684
867
  //#endregion
685
- //#region src/api/collections/types.d.ts
686
- /**
687
- * Parameters for fetching SKUs from a collection.
688
- */
689
- interface CollectionsApiGetSkusParams extends BaseParams {
690
- /**
691
- * Number of the page to retrieve
692
- */
693
- pageNumber?: number;
694
- /**
695
- * Number of items per page
696
- */
697
- pageSize?: number;
698
- /**
699
- * Unique identifier of the collection
700
- */
701
- collectionId: number;
702
- /**
703
- * Sorting option for the results
704
- */
705
- sortBy?: SortOption;
706
- }
707
- /**
708
- * Parameters for fetching the list of collections.
709
- */
710
- interface CollectionsApiListParams extends BaseParams {
711
- /**
712
- * Type of collections to filter by
713
- */
714
- type?: string;
715
- /**
716
- * Filter collections by shop ID
717
- */
718
- shopId?: number;
719
- }
720
- /**
721
- * Parameters for fetching a specific collection.
722
- */
723
- interface CollectionsApiGetParams extends BaseParams {
724
- /**
725
- * Unique identifier of the collection
726
- */
727
- collectionId: number;
728
- }
729
- //#endregion
730
- //#region src/api/collections/api.d.ts
731
- /**
732
- * API for retrieving curated collections of products.
733
- */
734
- declare class CollectionsApi {
735
- private http;
736
- /**
737
- * Initializes a new instance of the CollectionsApi.
738
- *
739
- * @param http HTTP client instance.
740
- */
741
- constructor(http: HttpClient);
742
- /**
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
- * });
750
- */
751
- getSkus(params: CollectionsApiGetSkusParams): Promise<CollectionsApiGetSkusResponse>;
752
- /**
753
- * Retrieves a list of all collections.
754
- *
755
- * @example
756
- * const collections = await client.collections.list();
757
- */
758
- list(params?: CollectionsApiListParams): Promise<CollectionsApiListResponse>;
759
- /**
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
- * });
766
- */
767
- get(params: CollectionsApiGetParams): Promise<CollectionsApiGetResponse>;
768
- }
769
- //#endregion
770
- //#region src/api/feature-flags/schema-types.d.ts
771
- /**
772
- * ⚠️ This file is auto-generated. Do not edit manually.
773
- * Run `npm run generate:schema-types` to regenerate.
774
- * Generated from: schemas.ts
775
- */
776
- /**
777
- * Schema for a feature flag item.
778
- */
779
- interface FeatureFlagsApiItem {
780
- /**
781
- * Name of the feature flag
782
- */
783
- name: string;
784
- /**
785
- * Indicates if the feature flag is currently active
786
- */
787
- isActive: boolean;
788
- }
789
- /**
790
- * Response schema for the list of feature flags.
791
- */
792
- type FeatureFlagsApiListResponse = FeatureFlagsApiItem[];
793
- //#endregion
794
- //#region src/api/feature-flags/types.d.ts
795
- /**
796
- * Parameters for fetching feature flags.
797
- */
798
- type FeatureFlagsApiListParams = BaseParams;
799
- //#endregion
800
- //#region src/api/feature-flags/api.d.ts
801
- /**
802
- * API for retrieving feature flags configuration.
803
- */
804
- declare class FeatureFlagsApi {
805
- private http;
806
- /**
807
- * Initializes a new instance of the FeatureFlagsApi.
808
- *
809
- * @param http HTTP client instance.
810
- */
811
- constructor(http: HttpClient);
812
- /**
813
- * Retrieves all active feature flags.
814
- *
815
- * @example
816
- * const flags = await client.featureFlags.list();
817
- */
818
- list(params?: FeatureFlagsApiListParams): Promise<FeatureFlagsApiListResponse>;
819
- }
820
- //#endregion
821
868
  //#region src/api/products/schema-types.d.ts
822
869
  /**
823
870
  * ⚠️ This file is auto-generated. Do not edit manually.
@@ -827,7 +874,7 @@ declare class FeatureFlagsApi {
827
874
  /**
828
875
  * Type union for product sort keys
829
876
  */
830
- type ProductSortKey = "popularity" | "highestRated" | "new" | "price" | "priceDesc";
877
+ type ProductSortKey = "byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc";
831
878
  /**
832
879
  * Schema for a sort option.
833
880
  */
@@ -1072,6 +1119,142 @@ interface ProductsApiListResponse {
1072
1119
  hasNextPage: boolean;
1073
1120
  }
1074
1121
  //#endregion
1122
+ //#region src/api/collections/types.d.ts
1123
+ /**
1124
+ * Parameters for fetching SKUs from a collection.
1125
+ */
1126
+ interface CollectionsApiGetSkusParams extends BaseParams {
1127
+ /**
1128
+ * Number of the page to retrieve
1129
+ */
1130
+ pageNumber?: number;
1131
+ /**
1132
+ * Number of items per page
1133
+ */
1134
+ pageSize?: number;
1135
+ /**
1136
+ * Unique identifier of the collection
1137
+ */
1138
+ collectionId: number;
1139
+ /**
1140
+ * Sorting option for the results
1141
+ */
1142
+ sortBy?: ProductSortKey;
1143
+ }
1144
+ /**
1145
+ * Parameters for fetching the list of collections.
1146
+ */
1147
+ interface CollectionsApiListParams extends BaseParams {
1148
+ /**
1149
+ * Type of collections to filter by
1150
+ */
1151
+ type?: string;
1152
+ /**
1153
+ * Filter collections by shop ID
1154
+ */
1155
+ shopId?: number;
1156
+ }
1157
+ /**
1158
+ * Parameters for fetching a specific collection.
1159
+ */
1160
+ interface CollectionsApiGetParams extends BaseParams {
1161
+ /**
1162
+ * Unique identifier of the collection
1163
+ */
1164
+ collectionId: number;
1165
+ }
1166
+ //#endregion
1167
+ //#region src/api/collections/api.d.ts
1168
+ /**
1169
+ * API for retrieving curated collections of products.
1170
+ */
1171
+ declare class CollectionsApi {
1172
+ private http;
1173
+ /**
1174
+ * Initializes a new instance of the CollectionsApi.
1175
+ *
1176
+ * @param http HTTP client instance.
1177
+ */
1178
+ constructor(http: HttpClient);
1179
+ /**
1180
+ * Retrieves a list of SKUs belonging to a specific collection with pagination and sorting.
1181
+ *
1182
+ * @example
1183
+ * const skus = await client.collections.getSkus({
1184
+ * collectionId: 123,
1185
+ * pageSize: 10
1186
+ * });
1187
+ */
1188
+ getSkus(params: CollectionsApiGetSkusParams): Promise<CollectionsApiGetSkusResponse>;
1189
+ /**
1190
+ * Retrieves a list of all collections.
1191
+ *
1192
+ * @example
1193
+ * const collections = await client.collections.list();
1194
+ */
1195
+ list(params?: CollectionsApiListParams): Promise<CollectionsApiListResponse>;
1196
+ /**
1197
+ * Retrieves detailed information about a specific collection by its ID.
1198
+ *
1199
+ * @example
1200
+ * const collection = await client.collections.get({
1201
+ * collectionId: 123
1202
+ * });
1203
+ */
1204
+ get(params: CollectionsApiGetParams): Promise<CollectionsApiGetResponse>;
1205
+ }
1206
+ //#endregion
1207
+ //#region src/api/feature-flags/schema-types.d.ts
1208
+ /**
1209
+ * ⚠️ This file is auto-generated. Do not edit manually.
1210
+ * Run `npm run generate:schema-types` to regenerate.
1211
+ * Generated from: schemas.ts
1212
+ */
1213
+ /**
1214
+ * Schema for a feature flag item.
1215
+ */
1216
+ interface FeatureFlagsApiItem {
1217
+ /**
1218
+ * Name of the feature flag
1219
+ */
1220
+ name: string;
1221
+ /**
1222
+ * Indicates if the feature flag is currently active
1223
+ */
1224
+ isActive: boolean;
1225
+ }
1226
+ /**
1227
+ * Response schema for the list of feature flags.
1228
+ */
1229
+ type FeatureFlagsApiListResponse = FeatureFlagsApiItem[];
1230
+ //#endregion
1231
+ //#region src/api/feature-flags/types.d.ts
1232
+ /**
1233
+ * Parameters for fetching feature flags.
1234
+ */
1235
+ type FeatureFlagsApiListParams = BaseParams;
1236
+ //#endregion
1237
+ //#region src/api/feature-flags/api.d.ts
1238
+ /**
1239
+ * API for retrieving feature flags configuration.
1240
+ */
1241
+ declare class FeatureFlagsApi {
1242
+ private http;
1243
+ /**
1244
+ * Initializes a new instance of the FeatureFlagsApi.
1245
+ *
1246
+ * @param http HTTP client instance.
1247
+ */
1248
+ constructor(http: HttpClient);
1249
+ /**
1250
+ * Retrieves all active feature flags.
1251
+ *
1252
+ * @example
1253
+ * const flags = await client.featureFlags.list();
1254
+ */
1255
+ list(params?: FeatureFlagsApiListParams): Promise<FeatureFlagsApiListResponse>;
1256
+ }
1257
+ //#endregion
1075
1258
  //#region src/api/products/types.d.ts
1076
1259
  /**
1077
1260
  * Parameters for fetching product sort options.
@@ -1126,7 +1309,7 @@ interface ProductsApiListParams extends BaseParams {
1126
1309
  /**
1127
1310
  * Criteria to sort products by
1128
1311
  */
1129
- sortBy?: SortOption;
1312
+ sortBy?: ProductSortKey;
1130
1313
  /**
1131
1314
  * Filter products by brand ID
1132
1315
  */
@@ -1585,7 +1768,7 @@ interface ShopsApiGetProductsParams extends BaseParams {
1585
1768
  /**
1586
1769
  * Sorting option for the results
1587
1770
  */
1588
- sortBy?: SortOption;
1771
+ sortBy?: ProductSortKey;
1589
1772
  /**
1590
1773
  * Filter by category ID
1591
1774
  */
@@ -2196,6 +2379,10 @@ declare class TeezClient {
2196
2379
  * HTTP client for making requests.
2197
2380
  */
2198
2381
  private readonly http;
2382
+ /**
2383
+ * API for authentication operations (login, verify OTP, check token).
2384
+ */
2385
+ readonly auth: AuthApi;
2199
2386
  /**
2200
2387
  * API for retrieving banners.
2201
2388
  */
@@ -2422,6 +2609,89 @@ declare class TeezValidationError extends TeezError {
2422
2609
  }: TeezValidationErrorOptions);
2423
2610
  }
2424
2611
  //#endregion
2612
+ //#region src/api/auth/schemas.d.ts
2613
+ /**
2614
+ * Response schema for login.
2615
+ */
2616
+ declare const AuthApiLoginResponseSchema: z.ZodMiniVoid;
2617
+ /**
2618
+ * Response schema for OTP verification.
2619
+ */
2620
+ declare const AuthApiVerifyResponseSchema: z.ZodMiniObject<{
2621
+ /**
2622
+ * Unique user identifier
2623
+ */
2624
+ userId: z.ZodMiniString<string>;
2625
+ /**
2626
+ * JWT access token for authenticated requests
2627
+ */
2628
+ accessToken: z.ZodMiniString<string>;
2629
+ /**
2630
+ * Refresh token for obtaining new access tokens
2631
+ */
2632
+ refreshToken: z.ZodMiniString<string>;
2633
+ /**
2634
+ * User's phone number
2635
+ */
2636
+ phone: z.ZodMiniString<string>;
2637
+ /**
2638
+ * User's default pickup point
2639
+ */
2640
+ pickupPoint: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnknown>>;
2641
+ /**
2642
+ * User's default delivery address
2643
+ */
2644
+ address: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnknown>>;
2645
+ /**
2646
+ * User's default recipient information
2647
+ */
2648
+ recipient: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnknown>>;
2649
+ /**
2650
+ * User's default payment method ID
2651
+ */
2652
+ paymentId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
2653
+ }, z.core.$strip>;
2654
+ /**
2655
+ * Response schema for token validation.
2656
+ */
2657
+ declare const AuthApiCheckTokenResponseSchema: z.ZodMiniObject<{
2658
+ /**
2659
+ * Unique user identifier
2660
+ */
2661
+ userId: z.ZodMiniString<string>;
2662
+ /**
2663
+ * User's phone number
2664
+ */
2665
+ phoneNumber: z.ZodMiniString<string>;
2666
+ /**
2667
+ * User's full name
2668
+ */
2669
+ fullName: z.ZodMiniString<string>;
2670
+ /**
2671
+ * User's email address
2672
+ */
2673
+ email: z.ZodMiniString<string>;
2674
+ /**
2675
+ * Token expiration date (ISO 8601 format)
2676
+ */
2677
+ expiredTokenDate: z.ZodMiniString<string>;
2678
+ /**
2679
+ * User's language preference (ru or kk)
2680
+ */
2681
+ language: z.ZodMiniEnum<{
2682
+ ru: "ru";
2683
+ kk: "kk";
2684
+ }>;
2685
+ /**
2686
+ * Whether user has any orders in the system
2687
+ */
2688
+ hasOrders: z.ZodMiniBoolean<boolean>;
2689
+ /**
2690
+ * Whether user has any orders (alternative field)
2691
+ */
2692
+ hasAnyOrders: z.ZodMiniBoolean<boolean>;
2693
+ }, z.core.$strip>;
2694
+ //#endregion
2425
2695
  //#region src/api/banners/schemas.d.ts
2426
2696
  /**
2427
2697
  * Type literal for banner image resource type
@@ -3002,7 +3272,7 @@ declare const CollectionsApiGetResponseSchema: z.ZodMiniObject<{
3002
3272
  /**
3003
3273
  * Type union for product sort keys
3004
3274
  */
3005
- declare const ProductSortKeySchema: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
3275
+ declare const ProductSortKeySchema: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"byRelevance">, z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
3006
3276
  /**
3007
3277
  * Schema for a sort option.
3008
3278
  */
@@ -3010,7 +3280,7 @@ declare const ProductsApiSortOptionSchema: z.ZodMiniObject<{
3010
3280
  /**
3011
3281
  * Sort key - "popularity", "highestRated", "new", "price", or "priceDesc"
3012
3282
  */
3013
- key: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
3283
+ key: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"byRelevance">, z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
3014
3284
  /**
3015
3285
  * Localized display name of the sort option
3016
3286
  */
@@ -3023,7 +3293,7 @@ declare const ProductsApiGetSortOptionsResponseSchema: z.ZodMiniArray<z.ZodMiniO
3023
3293
  /**
3024
3294
  * Sort key - "popularity", "highestRated", "new", "price", or "priceDesc"
3025
3295
  */
3026
- key: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
3296
+ key: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"byRelevance">, z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
3027
3297
  /**
3028
3298
  * Localized display name of the sort option
3029
3299
  */
@@ -4632,5 +4902,5 @@ declare const FeatureFlagsApiListResponseSchema: z.ZodMiniArray<z.ZodMiniObject<
4632
4902
  isActive: z.ZodMiniBoolean<boolean>;
4633
4903
  }, z.core.$strip>>;
4634
4904
  //#endregion
4635
- export { BASE_URL, BannerActionTypes, BannerActionTypesSchema, BannerImageType, BannerImageTypeSchema, BannersApi, BannersApiAction, BannersApiActionSchema, BannersApiBannerItem, BannersApiBannerItemSchema, BannersApiImage, BannersApiImageSchema, BannersApiListParams, BannersApiListResponse, BannersApiListResponseSchema, BaseParams, CategoriesApi, CategoriesApiGetParams, CategoriesApiGetParentsParams, CategoriesApiGetParentsResponse, CategoriesApiGetParentsResponseItem, CategoriesApiGetParentsResponseItemSchema, CategoriesApiGetParentsResponseSchema, CategoriesApiGetResponse, CategoriesApiGetResponseSchema, CategoriesApiListParams, CategoriesApiListResponse, CategoriesApiListResponseItem, CategoriesApiListResponseItemSchema, CategoriesApiListResponseSchema, CollectionType, CollectionTypeSchema, CollectionsApi, CollectionsApiGetParams, CollectionsApiGetResponse, CollectionsApiGetResponseSchema, CollectionsApiGetSkusParams, CollectionsApiGetSkusResponse, CollectionsApiGetSkusResponseSchema, CollectionsApiListItem, CollectionsApiListItemSchema, CollectionsApiListParams, CollectionsApiListResponse, CollectionsApiListResponseSchema, CollectionsApiSkuItem, CollectionsApiSkuItemSchema, CollectionsApiStockAvailability, CollectionsApiStockAvailabilitySchema, CollectionsStockAvailabilityType, CollectionsStockAvailabilityTypeSchema, DEFAULT_APP_VERSION, DEFAULT_CONFIG, FeatureFlagsApi, FeatureFlagsApiItem, FeatureFlagsApiItemSchema, FeatureFlagsApiListParams, FeatureFlagsApiListResponse, FeatureFlagsApiListResponseSchema, LANGUAGES, Language, ProductSortKey, ProductSortKeySchema, ProductsApi, ProductsApiBadge, ProductsApiBadgeSchema, ProductsApiGetReviewsParams, ProductsApiGetReviewsResponse, ProductsApiGetReviewsResponseSchema, ProductsApiGetSortOptionsParams, ProductsApiGetSortOptionsResponse, ProductsApiGetSortOptionsResponseSchema, ProductsApiListParams, ProductsApiListResponse, ProductsApiListResponseSchema, ProductsApiProductItem, ProductsApiProductItemSchema, ProductsApiReviewItem, ProductsApiReviewItemSchema, ProductsApiSortOption, ProductsApiSortOptionSchema, ProductsApiStockAvailability, ProductsApiStockAvailabilitySchema, ProductsStockAvailabilityType, ProductsStockAvailabilityTypeSchema, PromoApi, PromoApiItem, PromoApiItemSchema, PromoApiListParams, PromoApiListResponse, PromoApiListResponseSchema, ResolvedTeezClientConfig, SORT_OPTIONS, ShopsApi, ShopsApiContactInfo, ShopsApiContactInfoSchema, ShopsApiGetMonobrandParams, ShopsApiGetMonobrandResponse, ShopsApiGetMonobrandResponseSchema, ShopsApiGetParams, ShopsApiGetProductsParams, ShopsApiGetProductsResponse, ShopsApiGetProductsResponseSchema, ShopsApiGetResponse, ShopsApiGetResponseSchema, ShopsApiProductItem, ShopsApiProductItemSchema, ShopsApiShopItem, ShopsApiShopItemSchema, ShopsApiStockAvailability, ShopsApiStockAvailabilitySchema, ShopsApiTag, ShopsApiTagSchema, ShopsStockAvailabilityType, ShopsStockAvailabilityTypeSchema, SkuApi, SkuApiAttribute, SkuApiAttributeProperty, SkuApiAttributePropertySchema, SkuApiAttributePropertyValue, SkuApiAttributePropertyValueSchema, SkuApiAttributeSchema, SkuApiBrand, SkuApiBrandSchema, SkuApiCategory, SkuApiCategorySchema, SkuApiCollectionItem, SkuApiCollectionItemSchema, SkuApiGetCollectionsParams, SkuApiGetCollectionsResponse, SkuApiGetCollectionsResponseSchema, SkuApiGetParams, SkuApiGetResponse, SkuApiGetResponseSchema, SkuApiGetReviewAvailableParams, SkuApiGetReviewAvailableResponse, SkuApiGetReviewAvailableResponseSchema, SkuApiGetSimilarParams, SkuApiGetSimilarResponse, SkuApiGetSimilarResponseSchema, SkuApiInstallment, SkuApiInstallmentSchema, SkuApiShop, SkuApiShopSchema, SkuApiSimilarItem, SkuApiSimilarItemSchema, SkuApiStockAvailability, SkuApiStockAvailabilitySchema, SkuApiTag, SkuApiTagSchema, SkuStockAvailabilityType, SkuStockAvailabilityTypeSchema, SortOption, TeezApiError, TeezApiErrorOptions, TeezClient, TeezClientConfig, TeezError, TeezNetworkError, TeezNetworkErrorOptions, TeezTimeoutError, TeezTimeoutErrorOptions, TeezValidationError, TeezValidationErrorOptions, TeezValidationIssue, buildHeaders, buildUserAgent, resolveConfig };
4905
+ export { AuthApi, AuthApiCheckTokenParams, AuthApiCheckTokenResponse, AuthApiCheckTokenResponseSchema, AuthApiLoginParams, AuthApiLoginResponse, AuthApiLoginResponseSchema, AuthApiVerifyParams, AuthApiVerifyResponse, AuthApiVerifyResponseSchema, BASE_URL, BannerActionTypes, BannerActionTypesSchema, BannerImageType, BannerImageTypeSchema, BannersApi, BannersApiAction, BannersApiActionSchema, BannersApiBannerItem, BannersApiBannerItemSchema, BannersApiImage, BannersApiImageSchema, BannersApiListParams, BannersApiListResponse, BannersApiListResponseSchema, BaseParams, CategoriesApi, CategoriesApiGetParams, CategoriesApiGetParentsParams, CategoriesApiGetParentsResponse, CategoriesApiGetParentsResponseItem, CategoriesApiGetParentsResponseItemSchema, CategoriesApiGetParentsResponseSchema, CategoriesApiGetResponse, CategoriesApiGetResponseSchema, CategoriesApiListParams, CategoriesApiListResponse, CategoriesApiListResponseItem, CategoriesApiListResponseItemSchema, CategoriesApiListResponseSchema, CollectionType, CollectionTypeSchema, CollectionsApi, CollectionsApiGetParams, CollectionsApiGetResponse, CollectionsApiGetResponseSchema, CollectionsApiGetSkusParams, CollectionsApiGetSkusResponse, CollectionsApiGetSkusResponseSchema, CollectionsApiListItem, CollectionsApiListItemSchema, CollectionsApiListParams, CollectionsApiListResponse, CollectionsApiListResponseSchema, CollectionsApiSkuItem, CollectionsApiSkuItemSchema, CollectionsApiStockAvailability, CollectionsApiStockAvailabilitySchema, CollectionsStockAvailabilityType, CollectionsStockAvailabilityTypeSchema, DEFAULT_APP_VERSION, DEFAULT_CONFIG, FeatureFlagsApi, FeatureFlagsApiItem, FeatureFlagsApiItemSchema, FeatureFlagsApiListParams, FeatureFlagsApiListResponse, FeatureFlagsApiListResponseSchema, LANGUAGES, Language, ProductSortKey, ProductSortKeySchema, ProductsApi, ProductsApiBadge, ProductsApiBadgeSchema, ProductsApiGetReviewsParams, ProductsApiGetReviewsResponse, ProductsApiGetReviewsResponseSchema, ProductsApiGetSortOptionsParams, ProductsApiGetSortOptionsResponse, ProductsApiGetSortOptionsResponseSchema, ProductsApiListParams, ProductsApiListResponse, ProductsApiListResponseSchema, ProductsApiProductItem, ProductsApiProductItemSchema, ProductsApiReviewItem, ProductsApiReviewItemSchema, ProductsApiSortOption, ProductsApiSortOptionSchema, ProductsApiStockAvailability, ProductsApiStockAvailabilitySchema, ProductsStockAvailabilityType, ProductsStockAvailabilityTypeSchema, PromoApi, PromoApiItem, PromoApiItemSchema, PromoApiListParams, PromoApiListResponse, PromoApiListResponseSchema, ResolvedTeezClientConfig, ShopsApi, ShopsApiContactInfo, ShopsApiContactInfoSchema, ShopsApiGetMonobrandParams, ShopsApiGetMonobrandResponse, ShopsApiGetMonobrandResponseSchema, ShopsApiGetParams, ShopsApiGetProductsParams, ShopsApiGetProductsResponse, ShopsApiGetProductsResponseSchema, ShopsApiGetResponse, ShopsApiGetResponseSchema, ShopsApiProductItem, ShopsApiProductItemSchema, ShopsApiShopItem, ShopsApiShopItemSchema, ShopsApiStockAvailability, ShopsApiStockAvailabilitySchema, ShopsApiTag, ShopsApiTagSchema, ShopsStockAvailabilityType, ShopsStockAvailabilityTypeSchema, SkuApi, SkuApiAttribute, SkuApiAttributeProperty, SkuApiAttributePropertySchema, SkuApiAttributePropertyValue, SkuApiAttributePropertyValueSchema, SkuApiAttributeSchema, SkuApiBrand, SkuApiBrandSchema, SkuApiCategory, SkuApiCategorySchema, SkuApiCollectionItem, SkuApiCollectionItemSchema, SkuApiGetCollectionsParams, SkuApiGetCollectionsResponse, SkuApiGetCollectionsResponseSchema, SkuApiGetParams, SkuApiGetResponse, SkuApiGetResponseSchema, SkuApiGetReviewAvailableParams, SkuApiGetReviewAvailableResponse, SkuApiGetReviewAvailableResponseSchema, SkuApiGetSimilarParams, SkuApiGetSimilarResponse, SkuApiGetSimilarResponseSchema, SkuApiInstallment, SkuApiInstallmentSchema, SkuApiShop, SkuApiShopSchema, SkuApiSimilarItem, SkuApiSimilarItemSchema, SkuApiStockAvailability, SkuApiStockAvailabilitySchema, SkuApiTag, SkuApiTagSchema, SkuStockAvailabilityType, SkuStockAvailabilityTypeSchema, TeezApiError, TeezApiErrorOptions, TeezClient, TeezClientConfig, TeezError, TeezNetworkError, TeezNetworkErrorOptions, TeezTimeoutError, TeezTimeoutErrorOptions, TeezValidationError, TeezValidationErrorOptions, TeezValidationIssue, buildHeaders, buildUserAgent, resolveConfig };
4636
4906
  //# sourceMappingURL=index.d.mts.map