@teez-sdk/teez-b2c-api 2.0.0 → 2.2.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/README.md +1 -1
- package/dist/index.cjs +300 -81
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +483 -30
- package/dist/index.d.mts +483 -30
- package/dist/index.mjs +293 -82
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ declare const LANGUAGES: {
|
|
|
21
21
|
/**
|
|
22
22
|
* Default application version code.
|
|
23
23
|
*/
|
|
24
|
-
declare const DEFAULT_APP_VERSION = "
|
|
24
|
+
declare const DEFAULT_APP_VERSION = "200";
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/common/types.d.ts
|
|
27
27
|
/**
|
|
@@ -43,6 +43,10 @@ interface TeezClientConfig {
|
|
|
43
43
|
* @default "https://b2c-api.teez.kz"
|
|
44
44
|
*/
|
|
45
45
|
baseUrl?: string;
|
|
46
|
+
/**
|
|
47
|
+
* JWT bearer token for authenticated requests.
|
|
48
|
+
*/
|
|
49
|
+
token?: string;
|
|
46
50
|
/**
|
|
47
51
|
* Application version string.
|
|
48
52
|
* @default "193"
|
|
@@ -71,6 +75,10 @@ interface ResolvedTeezClientConfig {
|
|
|
71
75
|
* Base URL for the API.
|
|
72
76
|
*/
|
|
73
77
|
readonly baseUrl: string;
|
|
78
|
+
/**
|
|
79
|
+
* JWT bearer token for authenticated requests.
|
|
80
|
+
*/
|
|
81
|
+
readonly token?: string;
|
|
74
82
|
/**
|
|
75
83
|
* Application version string.
|
|
76
84
|
*/
|
|
@@ -140,6 +148,53 @@ interface HttpGetOptions<T extends z.ZodMiniType> extends Omit<HttpRequestOption
|
|
|
140
148
|
*/
|
|
141
149
|
schema: T;
|
|
142
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
|
+
}
|
|
143
198
|
//#endregion
|
|
144
199
|
//#region src/http/client.d.ts
|
|
145
200
|
/**
|
|
@@ -147,17 +202,13 @@ interface HttpGetOptions<T extends z.ZodMiniType> extends Omit<HttpRequestOption
|
|
|
147
202
|
*/
|
|
148
203
|
declare class HttpClient {
|
|
149
204
|
/**
|
|
150
|
-
*
|
|
205
|
+
* Client configuration.
|
|
151
206
|
*/
|
|
152
|
-
private readonly
|
|
207
|
+
private readonly config;
|
|
153
208
|
/**
|
|
154
209
|
* Headers to include in all requests.
|
|
155
210
|
*/
|
|
156
211
|
private readonly headers;
|
|
157
|
-
/**
|
|
158
|
-
* Request timeout in milliseconds.
|
|
159
|
-
*/
|
|
160
|
-
private readonly timeout;
|
|
161
212
|
/**
|
|
162
213
|
* Initializes a new instance of the HttpClient.
|
|
163
214
|
*
|
|
@@ -174,6 +225,171 @@ declare class HttpClient {
|
|
|
174
225
|
* Performs a GET request and validates the response.
|
|
175
226
|
*/
|
|
176
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 initiating phone 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
|
+
* User's phone number in E.164 format
|
|
262
|
+
*/
|
|
263
|
+
phone: string;
|
|
264
|
+
/**
|
|
265
|
+
* JWT access token for API authentication (HS512 algorithm, ~24 hour expiration)
|
|
266
|
+
*/
|
|
267
|
+
accessToken: string;
|
|
268
|
+
/**
|
|
269
|
+
* Base64-encoded refresh token for obtaining new access tokens
|
|
270
|
+
*/
|
|
271
|
+
refreshToken: string;
|
|
272
|
+
/**
|
|
273
|
+
* User's preferred payment method ID
|
|
274
|
+
*/
|
|
275
|
+
paymentId?: (number | null) | undefined;
|
|
276
|
+
/**
|
|
277
|
+
* User's default pickup point
|
|
278
|
+
*/
|
|
279
|
+
pickupPoint?: (unknown | null) | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* User's default delivery address
|
|
282
|
+
*/
|
|
283
|
+
address?: (unknown | null) | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* User's default order recipient information
|
|
286
|
+
*/
|
|
287
|
+
recipient?: (unknown | 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 in E.164 format
|
|
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 datetime in ISO 8601 format (e.g., "2025-12-30T13:08:44+00:00")
|
|
311
|
+
*/
|
|
312
|
+
expiredTokenDate: string;
|
|
313
|
+
/**
|
|
314
|
+
* User's preferred language: "ru" (Russian) or "kk" (Kazakh)
|
|
315
|
+
*/
|
|
316
|
+
language: "ru" | "kk";
|
|
317
|
+
/**
|
|
318
|
+
* Whether user has active orders in progress
|
|
319
|
+
*/
|
|
320
|
+
hasOrders: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Whether user has any order history (including completed orders)
|
|
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 in E.164 format (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 in E.164 format (e.g., "+77071234567")
|
|
343
|
+
*/
|
|
344
|
+
phone: string;
|
|
345
|
+
/**
|
|
346
|
+
* 4-digit 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>;
|
|
177
393
|
}
|
|
178
394
|
//#endregion
|
|
179
395
|
//#region src/api/banners/schema-types.d.ts
|
|
@@ -658,7 +874,7 @@ interface CollectionsApiGetResponse {
|
|
|
658
874
|
/**
|
|
659
875
|
* Type union for product sort keys
|
|
660
876
|
*/
|
|
661
|
-
type ProductSortKey = "popularity" | "highestRated" | "new" | "price" | "priceDesc";
|
|
877
|
+
type ProductSortKey = "byRelevance" | "popularity" | "highestRated" | "new" | "price" | "priceDesc";
|
|
662
878
|
/**
|
|
663
879
|
* Schema for a sort option.
|
|
664
880
|
*/
|
|
@@ -2144,6 +2360,119 @@ declare class SkuApi {
|
|
|
2144
2360
|
getReviewAvailable(params: SkuApiGetReviewAvailableParams): Promise<SkuApiGetReviewAvailableResponse>;
|
|
2145
2361
|
}
|
|
2146
2362
|
//#endregion
|
|
2363
|
+
//#region src/api/users/schema-types.d.ts
|
|
2364
|
+
/**
|
|
2365
|
+
* ⚠️ This file is auto-generated. Do not edit manually.
|
|
2366
|
+
* Run `npm run generate:schema-types` to regenerate.
|
|
2367
|
+
* Generated from: schemas.ts
|
|
2368
|
+
*/
|
|
2369
|
+
/**
|
|
2370
|
+
* Supported language enum for user preference
|
|
2371
|
+
*/
|
|
2372
|
+
type UsersApiLanguageEnum = "ru" | "kk";
|
|
2373
|
+
/**
|
|
2374
|
+
* Response schema for language update
|
|
2375
|
+
*/
|
|
2376
|
+
interface UsersApiUpdateLanguageResponse {
|
|
2377
|
+
/**
|
|
2378
|
+
* Updated language code
|
|
2379
|
+
*/
|
|
2380
|
+
language: UsersApiLanguageEnum;
|
|
2381
|
+
/**
|
|
2382
|
+
* Response title
|
|
2383
|
+
*/
|
|
2384
|
+
title: string;
|
|
2385
|
+
/**
|
|
2386
|
+
* Response message
|
|
2387
|
+
*/
|
|
2388
|
+
message: string;
|
|
2389
|
+
}
|
|
2390
|
+
/**
|
|
2391
|
+
* Response schema for device registration
|
|
2392
|
+
*/
|
|
2393
|
+
type UsersApiRegisterDeviceResponse = (null | null) | undefined;
|
|
2394
|
+
//#endregion
|
|
2395
|
+
//#region src/api/users/types.d.ts
|
|
2396
|
+
/**
|
|
2397
|
+
* Parameters for updating user's preferred language
|
|
2398
|
+
*/
|
|
2399
|
+
interface UsersApiUpdateLanguageParams extends BaseParams {
|
|
2400
|
+
/**
|
|
2401
|
+
* Language code: "ru" (Russian) or "kk" (Kazakh)
|
|
2402
|
+
*/
|
|
2403
|
+
language: "ru" | "kk";
|
|
2404
|
+
}
|
|
2405
|
+
/**
|
|
2406
|
+
* SDK information for a specific tracking service
|
|
2407
|
+
*/
|
|
2408
|
+
interface UsersApiDeviceSdkInformation {
|
|
2409
|
+
/**
|
|
2410
|
+
* Type of tracking SDK (e.g., "Appsflyer", "Firebase")
|
|
2411
|
+
*/
|
|
2412
|
+
type: string;
|
|
2413
|
+
/**
|
|
2414
|
+
* Unique device identifier for the tracking service
|
|
2415
|
+
*/
|
|
2416
|
+
deviceId: string;
|
|
2417
|
+
}
|
|
2418
|
+
/**
|
|
2419
|
+
* Device identity containing tracking SDK information
|
|
2420
|
+
*/
|
|
2421
|
+
interface UsersApiDeviceIdentity {
|
|
2422
|
+
/**
|
|
2423
|
+
* Array of tracking SDK information
|
|
2424
|
+
*/
|
|
2425
|
+
sdkInformation: UsersApiDeviceSdkInformation[];
|
|
2426
|
+
}
|
|
2427
|
+
/**
|
|
2428
|
+
* Parameters for registering device identity
|
|
2429
|
+
*/
|
|
2430
|
+
interface UsersApiRegisterDeviceParams extends BaseParams {
|
|
2431
|
+
/**
|
|
2432
|
+
* Device identity information for analytics tracking
|
|
2433
|
+
*/
|
|
2434
|
+
deviceIdentity: UsersApiDeviceIdentity;
|
|
2435
|
+
}
|
|
2436
|
+
//#endregion
|
|
2437
|
+
//#region src/api/users/api.d.ts
|
|
2438
|
+
/**
|
|
2439
|
+
* API for user management operations.
|
|
2440
|
+
*/
|
|
2441
|
+
declare class UsersApi {
|
|
2442
|
+
private http;
|
|
2443
|
+
/**
|
|
2444
|
+
* Initializes a new instance of the UsersApi.
|
|
2445
|
+
*
|
|
2446
|
+
* @param http HTTP client instance.
|
|
2447
|
+
*/
|
|
2448
|
+
constructor(http: HttpClient);
|
|
2449
|
+
/**
|
|
2450
|
+
* Updates the user's preferred language.
|
|
2451
|
+
*
|
|
2452
|
+
* @example
|
|
2453
|
+
* await client.users.updateLanguage({
|
|
2454
|
+
* language: "ru"
|
|
2455
|
+
* });
|
|
2456
|
+
*/
|
|
2457
|
+
updateLanguage(params: UsersApiUpdateLanguageParams): Promise<UsersApiUpdateLanguageResponse>;
|
|
2458
|
+
/**
|
|
2459
|
+
* Registers device identity for analytics tracking.
|
|
2460
|
+
*
|
|
2461
|
+
* @example
|
|
2462
|
+
* await client.users.registerDevice({
|
|
2463
|
+
* deviceIdentity: {
|
|
2464
|
+
* sdkInformation: [
|
|
2465
|
+
* {
|
|
2466
|
+
* type: "Appsflyer",
|
|
2467
|
+
* deviceId: "1765694307025-6267413661002574019"
|
|
2468
|
+
* }
|
|
2469
|
+
* ]
|
|
2470
|
+
* }
|
|
2471
|
+
* });
|
|
2472
|
+
*/
|
|
2473
|
+
registerDevice(params: UsersApiRegisterDeviceParams): Promise<UsersApiRegisterDeviceResponse>;
|
|
2474
|
+
}
|
|
2475
|
+
//#endregion
|
|
2147
2476
|
//#region src/client.d.ts
|
|
2148
2477
|
/**
|
|
2149
2478
|
* Main client for interacting with the Teez B2C API.
|
|
@@ -2163,6 +2492,10 @@ declare class TeezClient {
|
|
|
2163
2492
|
* HTTP client for making requests.
|
|
2164
2493
|
*/
|
|
2165
2494
|
private readonly http;
|
|
2495
|
+
/**
|
|
2496
|
+
* API for authentication operations.
|
|
2497
|
+
*/
|
|
2498
|
+
readonly auth: AuthApi;
|
|
2166
2499
|
/**
|
|
2167
2500
|
* API for retrieving banners.
|
|
2168
2501
|
*/
|
|
@@ -2195,6 +2528,10 @@ declare class TeezClient {
|
|
|
2195
2528
|
* API for retrieving SKU details.
|
|
2196
2529
|
*/
|
|
2197
2530
|
readonly sku: SkuApi;
|
|
2531
|
+
/**
|
|
2532
|
+
* API for user management operations.
|
|
2533
|
+
*/
|
|
2534
|
+
readonly users: UsersApi;
|
|
2198
2535
|
/**
|
|
2199
2536
|
* Initializes a new instance of the TeezClient.
|
|
2200
2537
|
*
|
|
@@ -2389,6 +2726,89 @@ declare class TeezValidationError extends TeezError {
|
|
|
2389
2726
|
}: TeezValidationErrorOptions);
|
|
2390
2727
|
}
|
|
2391
2728
|
//#endregion
|
|
2729
|
+
//#region src/api/auth/schemas.d.ts
|
|
2730
|
+
/**
|
|
2731
|
+
* Response schema for initiating phone login.
|
|
2732
|
+
*/
|
|
2733
|
+
declare const AuthApiLoginResponseSchema: z.ZodMiniVoid;
|
|
2734
|
+
/**
|
|
2735
|
+
* Response schema for OTP verification.
|
|
2736
|
+
*/
|
|
2737
|
+
declare const AuthApiVerifyResponseSchema: z.ZodMiniObject<{
|
|
2738
|
+
/**
|
|
2739
|
+
* Unique user identifier
|
|
2740
|
+
*/
|
|
2741
|
+
userId: z.ZodMiniString<string>;
|
|
2742
|
+
/**
|
|
2743
|
+
* User's phone number in E.164 format
|
|
2744
|
+
*/
|
|
2745
|
+
phone: z.ZodMiniString<string>;
|
|
2746
|
+
/**
|
|
2747
|
+
* JWT access token for API authentication (HS512 algorithm, ~24 hour expiration)
|
|
2748
|
+
*/
|
|
2749
|
+
accessToken: z.ZodMiniString<string>;
|
|
2750
|
+
/**
|
|
2751
|
+
* Base64-encoded refresh token for obtaining new access tokens
|
|
2752
|
+
*/
|
|
2753
|
+
refreshToken: z.ZodMiniString<string>;
|
|
2754
|
+
/**
|
|
2755
|
+
* User's preferred payment method ID
|
|
2756
|
+
*/
|
|
2757
|
+
paymentId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
2758
|
+
/**
|
|
2759
|
+
* User's default pickup point
|
|
2760
|
+
*/
|
|
2761
|
+
pickupPoint: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnknown>>;
|
|
2762
|
+
/**
|
|
2763
|
+
* User's default delivery address
|
|
2764
|
+
*/
|
|
2765
|
+
address: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnknown>>;
|
|
2766
|
+
/**
|
|
2767
|
+
* User's default order recipient information
|
|
2768
|
+
*/
|
|
2769
|
+
recipient: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnknown>>;
|
|
2770
|
+
}, z.core.$strip>;
|
|
2771
|
+
/**
|
|
2772
|
+
* Response schema for token validation.
|
|
2773
|
+
*/
|
|
2774
|
+
declare const AuthApiCheckTokenResponseSchema: z.ZodMiniObject<{
|
|
2775
|
+
/**
|
|
2776
|
+
* Unique user identifier
|
|
2777
|
+
*/
|
|
2778
|
+
userId: z.ZodMiniString<string>;
|
|
2779
|
+
/**
|
|
2780
|
+
* User's phone number in E.164 format
|
|
2781
|
+
*/
|
|
2782
|
+
phoneNumber: z.ZodMiniString<string>;
|
|
2783
|
+
/**
|
|
2784
|
+
* User's full name
|
|
2785
|
+
*/
|
|
2786
|
+
fullName: z.ZodMiniString<string>;
|
|
2787
|
+
/**
|
|
2788
|
+
* User's email address
|
|
2789
|
+
*/
|
|
2790
|
+
email: z.ZodMiniString<string>;
|
|
2791
|
+
/**
|
|
2792
|
+
* Token expiration datetime in ISO 8601 format (e.g., "2025-12-30T13:08:44+00:00")
|
|
2793
|
+
*/
|
|
2794
|
+
expiredTokenDate: z.ZodMiniString<string>;
|
|
2795
|
+
/**
|
|
2796
|
+
* User's preferred language: "ru" (Russian) or "kk" (Kazakh)
|
|
2797
|
+
*/
|
|
2798
|
+
language: z.ZodMiniEnum<{
|
|
2799
|
+
ru: "ru";
|
|
2800
|
+
kk: "kk";
|
|
2801
|
+
}>;
|
|
2802
|
+
/**
|
|
2803
|
+
* Whether user has active orders in progress
|
|
2804
|
+
*/
|
|
2805
|
+
hasOrders: z.ZodMiniBoolean<boolean>;
|
|
2806
|
+
/**
|
|
2807
|
+
* Whether user has any order history (including completed orders)
|
|
2808
|
+
*/
|
|
2809
|
+
hasAnyOrders: z.ZodMiniBoolean<boolean>;
|
|
2810
|
+
}, z.core.$strip>;
|
|
2811
|
+
//#endregion
|
|
2392
2812
|
//#region src/api/banners/schemas.d.ts
|
|
2393
2813
|
/**
|
|
2394
2814
|
* Type literal for banner image resource type
|
|
@@ -2965,11 +3385,39 @@ declare const CollectionsApiGetResponseSchema: z.ZodMiniObject<{
|
|
|
2965
3385
|
priority: z.ZodMiniNumber<number>;
|
|
2966
3386
|
}, z.core.$strip>;
|
|
2967
3387
|
//#endregion
|
|
3388
|
+
//#region src/api/feature-flags/schemas.d.ts
|
|
3389
|
+
/**
|
|
3390
|
+
* Schema for a feature flag item.
|
|
3391
|
+
*/
|
|
3392
|
+
declare const FeatureFlagsApiItemSchema: z.ZodMiniObject<{
|
|
3393
|
+
/**
|
|
3394
|
+
* Name of the feature flag
|
|
3395
|
+
*/
|
|
3396
|
+
name: z.ZodMiniString<string>;
|
|
3397
|
+
/**
|
|
3398
|
+
* Indicates if the feature flag is currently active
|
|
3399
|
+
*/
|
|
3400
|
+
isActive: z.ZodMiniBoolean<boolean>;
|
|
3401
|
+
}, z.core.$strip>;
|
|
3402
|
+
/**
|
|
3403
|
+
* Response schema for the list of feature flags.
|
|
3404
|
+
*/
|
|
3405
|
+
declare const FeatureFlagsApiListResponseSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3406
|
+
/**
|
|
3407
|
+
* Name of the feature flag
|
|
3408
|
+
*/
|
|
3409
|
+
name: z.ZodMiniString<string>;
|
|
3410
|
+
/**
|
|
3411
|
+
* Indicates if the feature flag is currently active
|
|
3412
|
+
*/
|
|
3413
|
+
isActive: z.ZodMiniBoolean<boolean>;
|
|
3414
|
+
}, z.core.$strip>>;
|
|
3415
|
+
//#endregion
|
|
2968
3416
|
//#region src/api/products/schemas.d.ts
|
|
2969
3417
|
/**
|
|
2970
3418
|
* Type union for product sort keys
|
|
2971
3419
|
*/
|
|
2972
|
-
declare const ProductSortKeySchema: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
|
|
3420
|
+
declare const ProductSortKeySchema: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"byRelevance">, z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
|
|
2973
3421
|
/**
|
|
2974
3422
|
* Schema for a sort option.
|
|
2975
3423
|
*/
|
|
@@ -2977,7 +3425,7 @@ declare const ProductsApiSortOptionSchema: z.ZodMiniObject<{
|
|
|
2977
3425
|
/**
|
|
2978
3426
|
* Sort key - "popularity", "highestRated", "new", "price", or "priceDesc"
|
|
2979
3427
|
*/
|
|
2980
|
-
key: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
|
|
3428
|
+
key: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"byRelevance">, z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
|
|
2981
3429
|
/**
|
|
2982
3430
|
* Localized display name of the sort option
|
|
2983
3431
|
*/
|
|
@@ -2990,7 +3438,7 @@ declare const ProductsApiGetSortOptionsResponseSchema: z.ZodMiniArray<z.ZodMiniO
|
|
|
2990
3438
|
/**
|
|
2991
3439
|
* Sort key - "popularity", "highestRated", "new", "price", or "priceDesc"
|
|
2992
3440
|
*/
|
|
2993
|
-
key: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
|
|
3441
|
+
key: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"byRelevance">, z.ZodMiniLiteral<"popularity">, z.ZodMiniLiteral<"highestRated">, z.ZodMiniLiteral<"new">, z.ZodMiniLiteral<"price">, z.ZodMiniLiteral<"priceDesc">]>;
|
|
2994
3442
|
/**
|
|
2995
3443
|
* Localized display name of the sort option
|
|
2996
3444
|
*/
|
|
@@ -4571,33 +5019,38 @@ declare const SkuApiGetReviewAvailableResponseSchema: z.ZodMiniObject<{
|
|
|
4571
5019
|
message: z.ZodMiniString<string>;
|
|
4572
5020
|
}, z.core.$strip>;
|
|
4573
5021
|
//#endregion
|
|
4574
|
-
//#region src/api/
|
|
5022
|
+
//#region src/api/users/schemas.d.ts
|
|
4575
5023
|
/**
|
|
4576
|
-
*
|
|
5024
|
+
* Supported language enum for user preference
|
|
4577
5025
|
*/
|
|
4578
|
-
declare const
|
|
5026
|
+
declare const UsersApiLanguageEnumSchema: z.ZodMiniEnum<{
|
|
5027
|
+
ru: "ru";
|
|
5028
|
+
kk: "kk";
|
|
5029
|
+
}>;
|
|
5030
|
+
/**
|
|
5031
|
+
* Response schema for language update
|
|
5032
|
+
*/
|
|
5033
|
+
declare const UsersApiUpdateLanguageResponseSchema: z.ZodMiniObject<{
|
|
4579
5034
|
/**
|
|
4580
|
-
*
|
|
5035
|
+
* Updated language code
|
|
4581
5036
|
*/
|
|
4582
|
-
|
|
5037
|
+
language: z.ZodMiniEnum<{
|
|
5038
|
+
ru: "ru";
|
|
5039
|
+
kk: "kk";
|
|
5040
|
+
}>;
|
|
4583
5041
|
/**
|
|
4584
|
-
*
|
|
5042
|
+
* Response title
|
|
4585
5043
|
*/
|
|
4586
|
-
|
|
5044
|
+
title: z.ZodMiniString<string>;
|
|
5045
|
+
/**
|
|
5046
|
+
* Response message
|
|
5047
|
+
*/
|
|
5048
|
+
message: z.ZodMiniString<string>;
|
|
4587
5049
|
}, z.core.$strip>;
|
|
4588
5050
|
/**
|
|
4589
|
-
* Response schema for
|
|
5051
|
+
* Response schema for device registration
|
|
4590
5052
|
*/
|
|
4591
|
-
declare const
|
|
4592
|
-
/**
|
|
4593
|
-
* Name of the feature flag
|
|
4594
|
-
*/
|
|
4595
|
-
name: z.ZodMiniString<string>;
|
|
4596
|
-
/**
|
|
4597
|
-
* Indicates if the feature flag is currently active
|
|
4598
|
-
*/
|
|
4599
|
-
isActive: z.ZodMiniBoolean<boolean>;
|
|
4600
|
-
}, z.core.$strip>>;
|
|
5053
|
+
declare const UsersApiRegisterDeviceResponseSchema: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNull>>;
|
|
4601
5054
|
//#endregion
|
|
4602
|
-
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, 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 };
|
|
5055
|
+
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, UsersApi, UsersApiDeviceIdentity, UsersApiDeviceSdkInformation, UsersApiLanguageEnum, UsersApiLanguageEnumSchema, UsersApiRegisterDeviceParams, UsersApiRegisterDeviceResponse, UsersApiRegisterDeviceResponseSchema, UsersApiUpdateLanguageParams, UsersApiUpdateLanguageResponse, UsersApiUpdateLanguageResponseSchema, buildHeaders, buildUserAgent, resolveConfig };
|
|
4603
5056
|
//# sourceMappingURL=index.d.mts.map
|