@teez-sdk/teez-b2c-api 2.1.0 → 3.0.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.cjs +427 -216
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1072 -407
- package/dist/index.d.mts +1072 -407
- package/dist/index.mjs +416 -217
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/mini";
|
|
2
|
+
import { ZodMiniType, output } from "zod/mini";
|
|
2
3
|
|
|
3
4
|
//#region src/common/constants.d.ts
|
|
4
5
|
/**
|
|
@@ -33,6 +34,54 @@ type Language = (typeof LANGUAGES)[keyof typeof LANGUAGES] | (string & {});
|
|
|
33
34
|
*/
|
|
34
35
|
type BaseParams = Record<string, unknown>;
|
|
35
36
|
//#endregion
|
|
37
|
+
//#region src/http/types.d.ts
|
|
38
|
+
/**
|
|
39
|
+
* Type representing URL query parameters.
|
|
40
|
+
*/
|
|
41
|
+
type QueryParams = Record<string, unknown>;
|
|
42
|
+
/**
|
|
43
|
+
* Type representing HTTP headers initialization.
|
|
44
|
+
*/
|
|
45
|
+
type HeadersInit = NonNullable<ConstructorParameters<typeof Headers>[0]>;
|
|
46
|
+
/**
|
|
47
|
+
* Options for making a generic HTTP request.
|
|
48
|
+
*/
|
|
49
|
+
interface HttpRequestOptions extends Omit<RequestInit, "headers" | "signal" | "body"> {
|
|
50
|
+
/**
|
|
51
|
+
* Relative path to the resource.
|
|
52
|
+
*/
|
|
53
|
+
path: string;
|
|
54
|
+
/**
|
|
55
|
+
* Query parameters to append to the URL.
|
|
56
|
+
*/
|
|
57
|
+
params?: QueryParams;
|
|
58
|
+
/**
|
|
59
|
+
* Additional headers for this specific request.
|
|
60
|
+
*/
|
|
61
|
+
headers?: HeadersInit;
|
|
62
|
+
/**
|
|
63
|
+
* Request body to send.
|
|
64
|
+
* It will be strictly serialized to JSON.
|
|
65
|
+
*/
|
|
66
|
+
body?: unknown;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Options for making a GET request.
|
|
70
|
+
*/
|
|
71
|
+
type HttpGetOptions = Omit<HttpRequestOptions, "method" | "body">;
|
|
72
|
+
/**
|
|
73
|
+
* Options for making a POST request.
|
|
74
|
+
*/
|
|
75
|
+
type HttpPostOptions = Omit<HttpRequestOptions, "method">;
|
|
76
|
+
/**
|
|
77
|
+
* Options for making a PATCH request.
|
|
78
|
+
*/
|
|
79
|
+
type HttpPatchOptions = Omit<HttpRequestOptions, "method">;
|
|
80
|
+
/**
|
|
81
|
+
* Options for making a DELETE request.
|
|
82
|
+
*/
|
|
83
|
+
type HttpDeleteOptions = Omit<HttpRequestOptions, "method">;
|
|
84
|
+
//#endregion
|
|
36
85
|
//#region src/config.d.ts
|
|
37
86
|
/**
|
|
38
87
|
* Configuration options for the Teez client.
|
|
@@ -65,7 +114,7 @@ interface TeezClientConfig {
|
|
|
65
114
|
/**
|
|
66
115
|
* Custom headers to include in all requests.
|
|
67
116
|
*/
|
|
68
|
-
headers?:
|
|
117
|
+
headers?: HeadersInit;
|
|
69
118
|
}
|
|
70
119
|
/**
|
|
71
120
|
* Fully resolved configuration with defaults applied.
|
|
@@ -92,9 +141,9 @@ interface ResolvedTeezClientConfig {
|
|
|
92
141
|
*/
|
|
93
142
|
readonly timeout: number;
|
|
94
143
|
/**
|
|
95
|
-
*
|
|
144
|
+
* Resolved headers as Headers object for efficient manipulation.
|
|
96
145
|
*/
|
|
97
|
-
readonly headers:
|
|
146
|
+
readonly headers: Headers;
|
|
98
147
|
}
|
|
99
148
|
/**
|
|
100
149
|
* Default configuration values.
|
|
@@ -111,90 +160,7 @@ declare function buildUserAgent(appVersion: string): string;
|
|
|
111
160
|
/**
|
|
112
161
|
* Builds the headers object for API requests based on configuration.
|
|
113
162
|
*/
|
|
114
|
-
declare function buildHeaders(config: ResolvedTeezClientConfig):
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/http/types.d.ts
|
|
117
|
-
/**
|
|
118
|
-
* Type representing URL query parameters.
|
|
119
|
-
*/
|
|
120
|
-
type QueryParams = Record<string, unknown>;
|
|
121
|
-
/**
|
|
122
|
-
* Options for making a generic HTTP request.
|
|
123
|
-
*/
|
|
124
|
-
interface HttpRequestOptions extends Omit<RequestInit, "headers" | "signal"> {
|
|
125
|
-
/**
|
|
126
|
-
* Full URL for the request.
|
|
127
|
-
*/
|
|
128
|
-
url: string;
|
|
129
|
-
/**
|
|
130
|
-
* Additional headers for this specific request.
|
|
131
|
-
*/
|
|
132
|
-
headers?: Record<string, string>;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Options for making a GET request.
|
|
136
|
-
*/
|
|
137
|
-
interface HttpGetOptions<T extends z.ZodMiniType> extends Omit<HttpRequestOptions, "url" | "method" | "body"> {
|
|
138
|
-
/**
|
|
139
|
-
* Relative path to the resource.
|
|
140
|
-
*/
|
|
141
|
-
path: string;
|
|
142
|
-
/**
|
|
143
|
-
* Query parameters to append to the URL.
|
|
144
|
-
*/
|
|
145
|
-
params?: QueryParams;
|
|
146
|
-
/**
|
|
147
|
-
* Zod schema to validate the response.
|
|
148
|
-
*/
|
|
149
|
-
schema: T;
|
|
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
|
-
}
|
|
163
|
+
declare function buildHeaders(config: ResolvedTeezClientConfig): Headers;
|
|
198
164
|
//#endregion
|
|
199
165
|
//#region src/http/client.d.ts
|
|
200
166
|
/**
|
|
@@ -211,32 +177,47 @@ declare class HttpClient {
|
|
|
211
177
|
private readonly headers;
|
|
212
178
|
/**
|
|
213
179
|
* Initializes a new instance of the HttpClient.
|
|
214
|
-
*
|
|
215
|
-
* @param config Resolved client configuration.
|
|
216
180
|
*/
|
|
217
181
|
constructor(config: ResolvedTeezClientConfig);
|
|
218
182
|
/**
|
|
219
183
|
* Performs a low-level HTTP request.
|
|
220
|
-
*
|
|
221
|
-
* @param options Request options.
|
|
222
184
|
*/
|
|
223
185
|
request(options: HttpRequestOptions): Promise<unknown>;
|
|
224
186
|
/**
|
|
225
|
-
* Performs a
|
|
187
|
+
* Performs a low-level HTTP request with schema validation.
|
|
226
188
|
*/
|
|
227
|
-
|
|
189
|
+
request<T extends ZodMiniType>(options: HttpRequestOptions, schema: T): Promise<output<T>>;
|
|
190
|
+
/**
|
|
191
|
+
* Performs a GET request.
|
|
192
|
+
*/
|
|
193
|
+
get(options: HttpGetOptions): Promise<unknown>;
|
|
194
|
+
/**
|
|
195
|
+
* Performs a GET request with schema validation.
|
|
196
|
+
*/
|
|
197
|
+
get<T extends ZodMiniType>(options: HttpGetOptions, schema: T): Promise<output<T>>;
|
|
228
198
|
/**
|
|
229
199
|
* Performs a POST request.
|
|
230
200
|
*/
|
|
231
|
-
|
|
201
|
+
/**
|
|
202
|
+
* Performs a POST request with schema validation.
|
|
203
|
+
*/
|
|
204
|
+
post<T extends ZodMiniType>(options: HttpPostOptions, schema: T): Promise<output<T>>;
|
|
232
205
|
/**
|
|
233
206
|
* Performs a PATCH request.
|
|
234
207
|
*/
|
|
235
208
|
patch(options: HttpPatchOptions): Promise<unknown>;
|
|
209
|
+
/**
|
|
210
|
+
* Performs a PATCH request with schema validation.
|
|
211
|
+
*/
|
|
212
|
+
patch<T extends ZodMiniType>(options: HttpPatchOptions, schema: T): Promise<output<T>>;
|
|
236
213
|
/**
|
|
237
214
|
* Performs a DELETE request.
|
|
238
215
|
*/
|
|
239
216
|
delete(options: HttpDeleteOptions): Promise<unknown>;
|
|
217
|
+
/**
|
|
218
|
+
* Performs a DELETE request with schema validation.
|
|
219
|
+
*/
|
|
220
|
+
delete<T extends ZodMiniType>(options: HttpDeleteOptions, schema: T): Promise<output<T>>;
|
|
240
221
|
}
|
|
241
222
|
//#endregion
|
|
242
223
|
//#region src/api/auth/schema-types.d.ts
|
|
@@ -246,7 +227,7 @@ declare class HttpClient {
|
|
|
246
227
|
* Generated from: schemas.ts
|
|
247
228
|
*/
|
|
248
229
|
/**
|
|
249
|
-
* Response schema for login.
|
|
230
|
+
* Response schema for initiating phone login.
|
|
250
231
|
*/
|
|
251
232
|
type AuthApiLoginResponse = void | undefined;
|
|
252
233
|
/**
|
|
@@ -258,17 +239,21 @@ interface AuthApiVerifyResponse {
|
|
|
258
239
|
*/
|
|
259
240
|
userId: string;
|
|
260
241
|
/**
|
|
261
|
-
*
|
|
242
|
+
* User's phone number in E.164 format
|
|
243
|
+
*/
|
|
244
|
+
phone: string;
|
|
245
|
+
/**
|
|
246
|
+
* JWT access token for API authentication (HS512 algorithm, ~24 hour expiration)
|
|
262
247
|
*/
|
|
263
248
|
accessToken: string;
|
|
264
249
|
/**
|
|
265
|
-
*
|
|
250
|
+
* Base64-encoded refresh token for obtaining new access tokens
|
|
266
251
|
*/
|
|
267
252
|
refreshToken: string;
|
|
268
253
|
/**
|
|
269
|
-
* User's
|
|
254
|
+
* User's preferred payment method ID
|
|
270
255
|
*/
|
|
271
|
-
|
|
256
|
+
paymentId?: (number | null) | undefined;
|
|
272
257
|
/**
|
|
273
258
|
* User's default pickup point
|
|
274
259
|
*/
|
|
@@ -278,13 +263,9 @@ interface AuthApiVerifyResponse {
|
|
|
278
263
|
*/
|
|
279
264
|
address?: (unknown | null) | undefined;
|
|
280
265
|
/**
|
|
281
|
-
* User's default recipient information
|
|
266
|
+
* User's default order recipient information
|
|
282
267
|
*/
|
|
283
268
|
recipient?: (unknown | null) | undefined;
|
|
284
|
-
/**
|
|
285
|
-
* User's default payment method ID
|
|
286
|
-
*/
|
|
287
|
-
paymentId?: (number | null) | undefined;
|
|
288
269
|
}
|
|
289
270
|
/**
|
|
290
271
|
* Response schema for token validation.
|
|
@@ -295,7 +276,7 @@ interface AuthApiCheckTokenResponse {
|
|
|
295
276
|
*/
|
|
296
277
|
userId: string;
|
|
297
278
|
/**
|
|
298
|
-
* User's phone number
|
|
279
|
+
* User's phone number in E.164 format
|
|
299
280
|
*/
|
|
300
281
|
phoneNumber: string;
|
|
301
282
|
/**
|
|
@@ -307,19 +288,19 @@ interface AuthApiCheckTokenResponse {
|
|
|
307
288
|
*/
|
|
308
289
|
email: string;
|
|
309
290
|
/**
|
|
310
|
-
* Token expiration
|
|
291
|
+
* Token expiration datetime in ISO 8601 format (e.g., "2025-12-30T13:08:44+00:00")
|
|
311
292
|
*/
|
|
312
293
|
expiredTokenDate: string;
|
|
313
294
|
/**
|
|
314
|
-
* User's language
|
|
295
|
+
* User's preferred language: "ru" (Russian) or "kk" (Kazakh)
|
|
315
296
|
*/
|
|
316
297
|
language: "ru" | "kk";
|
|
317
298
|
/**
|
|
318
|
-
* Whether user has
|
|
299
|
+
* Whether user has active orders in progress
|
|
319
300
|
*/
|
|
320
301
|
hasOrders: boolean;
|
|
321
302
|
/**
|
|
322
|
-
* Whether user has any
|
|
303
|
+
* Whether user has any order history (including completed orders)
|
|
323
304
|
*/
|
|
324
305
|
hasAnyOrders: boolean;
|
|
325
306
|
}
|
|
@@ -330,7 +311,7 @@ interface AuthApiCheckTokenResponse {
|
|
|
330
311
|
*/
|
|
331
312
|
interface AuthApiLoginParams extends BaseParams {
|
|
332
313
|
/**
|
|
333
|
-
* Phone number with country code (e.g., "+77071234567")
|
|
314
|
+
* Phone number with country code in E.164 format (e.g., "+77071234567")
|
|
334
315
|
*/
|
|
335
316
|
phone: string;
|
|
336
317
|
}
|
|
@@ -339,11 +320,11 @@ interface AuthApiLoginParams extends BaseParams {
|
|
|
339
320
|
*/
|
|
340
321
|
interface AuthApiVerifyParams extends BaseParams {
|
|
341
322
|
/**
|
|
342
|
-
* Phone number with country code (e.g., "+77071234567")
|
|
323
|
+
* Phone number with country code in E.164 format (e.g., "+77071234567")
|
|
343
324
|
*/
|
|
344
325
|
phone: string;
|
|
345
326
|
/**
|
|
346
|
-
* OTP code received via SMS
|
|
327
|
+
* 4-digit OTP code received via SMS
|
|
347
328
|
*/
|
|
348
329
|
otpCode: string;
|
|
349
330
|
}
|
|
@@ -950,10 +931,6 @@ interface ProductsApiGetReviewsResponse {
|
|
|
950
931
|
* Schema for a product badge.
|
|
951
932
|
*/
|
|
952
933
|
interface ProductsApiBadge {
|
|
953
|
-
/**
|
|
954
|
-
* Background color code
|
|
955
|
-
*/
|
|
956
|
-
backgroundColor: number;
|
|
957
934
|
/**
|
|
958
935
|
* Text label of the badge
|
|
959
936
|
*/
|
|
@@ -962,6 +939,10 @@ interface ProductsApiBadge {
|
|
|
962
939
|
* Text color code
|
|
963
940
|
*/
|
|
964
941
|
textColor: number;
|
|
942
|
+
/**
|
|
943
|
+
* Background color code
|
|
944
|
+
*/
|
|
945
|
+
backgroundColor?: (number | null) | undefined;
|
|
965
946
|
}
|
|
966
947
|
/**
|
|
967
948
|
* Type literal for products stock availability type
|
|
@@ -1043,7 +1024,7 @@ interface ProductsApiProductItem {
|
|
|
1043
1024
|
/**
|
|
1044
1025
|
* Name of the promotion
|
|
1045
1026
|
*/
|
|
1046
|
-
promoName
|
|
1027
|
+
promoName?: (string | null) | undefined;
|
|
1047
1028
|
/**
|
|
1048
1029
|
* List of applicable promocodes
|
|
1049
1030
|
*/
|
|
@@ -1063,7 +1044,7 @@ interface ProductsApiProductItem {
|
|
|
1063
1044
|
/**
|
|
1064
1045
|
* Badge information for the product
|
|
1065
1046
|
*/
|
|
1066
|
-
badge
|
|
1047
|
+
badge?: (ProductsApiBadge | null) | undefined;
|
|
1067
1048
|
/**
|
|
1068
1049
|
* Moderation status code
|
|
1069
1050
|
*/
|
|
@@ -1204,138 +1185,376 @@ declare class CollectionsApi {
|
|
|
1204
1185
|
get(params: CollectionsApiGetParams): Promise<CollectionsApiGetResponse>;
|
|
1205
1186
|
}
|
|
1206
1187
|
//#endregion
|
|
1207
|
-
//#region src/api/
|
|
1188
|
+
//#region src/api/favorites/schema-types.d.ts
|
|
1208
1189
|
/**
|
|
1209
1190
|
* ⚠️ This file is auto-generated. Do not edit manually.
|
|
1210
1191
|
* Run `npm run generate:schema-types` to regenerate.
|
|
1211
1192
|
* Generated from: schemas.ts
|
|
1212
1193
|
*/
|
|
1213
1194
|
/**
|
|
1214
|
-
* Schema for a
|
|
1195
|
+
* Schema for a product badge.
|
|
1215
1196
|
*/
|
|
1216
|
-
interface
|
|
1197
|
+
interface FavoritesApiBadge {
|
|
1217
1198
|
/**
|
|
1218
|
-
*
|
|
1199
|
+
* Text label of the badge
|
|
1219
1200
|
*/
|
|
1220
|
-
|
|
1201
|
+
label: string;
|
|
1221
1202
|
/**
|
|
1222
|
-
*
|
|
1203
|
+
* Background color code
|
|
1223
1204
|
*/
|
|
1224
|
-
|
|
1205
|
+
backgroundColor?: (number | null) | undefined;
|
|
1206
|
+
/**
|
|
1207
|
+
* Text color code
|
|
1208
|
+
*/
|
|
1209
|
+
textColor: number;
|
|
1225
1210
|
}
|
|
1226
1211
|
/**
|
|
1227
|
-
*
|
|
1228
|
-
*/
|
|
1229
|
-
type FeatureFlagsApiListResponse = FeatureFlagsApiItem[];
|
|
1230
|
-
//#endregion
|
|
1231
|
-
//#region src/api/feature-flags/types.d.ts
|
|
1232
|
-
/**
|
|
1233
|
-
* Parameters for fetching feature flags.
|
|
1212
|
+
* Type literal for stock availability type
|
|
1234
1213
|
*/
|
|
1235
|
-
type
|
|
1236
|
-
//#endregion
|
|
1237
|
-
//#region src/api/feature-flags/api.d.ts
|
|
1214
|
+
type FavoritesStockAvailabilityType = "stock";
|
|
1238
1215
|
/**
|
|
1239
|
-
*
|
|
1216
|
+
* Schema for stock availability information.
|
|
1240
1217
|
*/
|
|
1241
|
-
|
|
1242
|
-
private http;
|
|
1218
|
+
interface FavoritesApiStockAvailability {
|
|
1243
1219
|
/**
|
|
1244
|
-
*
|
|
1245
|
-
*
|
|
1246
|
-
* @param http HTTP client instance.
|
|
1220
|
+
* Type of stock status (known value: "stock")
|
|
1247
1221
|
*/
|
|
1248
|
-
|
|
1222
|
+
type: FavoritesStockAvailabilityType;
|
|
1249
1223
|
/**
|
|
1250
|
-
*
|
|
1251
|
-
*
|
|
1252
|
-
* @example
|
|
1253
|
-
* const flags = await client.featureFlags.list();
|
|
1224
|
+
* SVG icon representing stock status
|
|
1254
1225
|
*/
|
|
1255
|
-
|
|
1256
|
-
}
|
|
1257
|
-
//#endregion
|
|
1258
|
-
//#region src/api/products/types.d.ts
|
|
1259
|
-
/**
|
|
1260
|
-
* Parameters for fetching product sort options.
|
|
1261
|
-
*/
|
|
1262
|
-
interface ProductsApiGetSortOptionsParams extends BaseParams {
|
|
1226
|
+
svg?: (string | null) | undefined;
|
|
1263
1227
|
/**
|
|
1264
|
-
*
|
|
1228
|
+
* Localized text describing stock status
|
|
1265
1229
|
*/
|
|
1266
|
-
|
|
1230
|
+
text: string;
|
|
1267
1231
|
/**
|
|
1268
|
-
*
|
|
1232
|
+
* Maximum quantity available
|
|
1269
1233
|
*/
|
|
1270
|
-
|
|
1234
|
+
maxQty: number;
|
|
1235
|
+
/**
|
|
1236
|
+
* Localized reason text for quantity limit
|
|
1237
|
+
*/
|
|
1238
|
+
maxQtyReason: string;
|
|
1271
1239
|
}
|
|
1272
1240
|
/**
|
|
1273
|
-
*
|
|
1241
|
+
* Schema for a favorited item (SKU).
|
|
1274
1242
|
*/
|
|
1275
|
-
interface
|
|
1243
|
+
interface FavoritesApiItem {
|
|
1276
1244
|
/**
|
|
1277
|
-
* Unique identifier
|
|
1245
|
+
* Unique product identifier
|
|
1278
1246
|
*/
|
|
1279
1247
|
productId: number;
|
|
1280
1248
|
/**
|
|
1281
|
-
*
|
|
1249
|
+
* Unique stock keeping unit identifier
|
|
1282
1250
|
*/
|
|
1283
|
-
|
|
1251
|
+
skuId: number;
|
|
1284
1252
|
/**
|
|
1285
|
-
*
|
|
1253
|
+
* URL for the full-size image
|
|
1286
1254
|
*/
|
|
1287
|
-
|
|
1288
|
-
}
|
|
1289
|
-
/**
|
|
1290
|
-
* Parameters for fetching a filtered list of products.
|
|
1291
|
-
*/
|
|
1292
|
-
interface ProductsApiListParams extends BaseParams {
|
|
1255
|
+
imageUrl: string;
|
|
1293
1256
|
/**
|
|
1294
|
-
*
|
|
1257
|
+
* Full display name of the product
|
|
1295
1258
|
*/
|
|
1296
|
-
|
|
1259
|
+
name: string;
|
|
1297
1260
|
/**
|
|
1298
|
-
*
|
|
1261
|
+
* Brief description of the product
|
|
1299
1262
|
*/
|
|
1300
|
-
|
|
1263
|
+
shortDescription: string;
|
|
1301
1264
|
/**
|
|
1302
|
-
*
|
|
1265
|
+
* URL for the small preview image
|
|
1303
1266
|
*/
|
|
1304
|
-
|
|
1267
|
+
thumbnailUrl: string;
|
|
1305
1268
|
/**
|
|
1306
|
-
*
|
|
1269
|
+
* Original price before discounts
|
|
1307
1270
|
*/
|
|
1308
|
-
|
|
1271
|
+
originalPrice: number;
|
|
1309
1272
|
/**
|
|
1310
|
-
*
|
|
1273
|
+
* Current selling price
|
|
1311
1274
|
*/
|
|
1312
|
-
|
|
1275
|
+
price: number;
|
|
1313
1276
|
/**
|
|
1314
|
-
*
|
|
1277
|
+
* Quantity available in stock
|
|
1315
1278
|
*/
|
|
1316
|
-
|
|
1279
|
+
qty: number;
|
|
1317
1280
|
/**
|
|
1318
|
-
*
|
|
1281
|
+
* Stock availability details
|
|
1319
1282
|
*/
|
|
1320
|
-
|
|
1283
|
+
stockAvailability?: (FavoritesApiStockAvailability | null) | undefined;
|
|
1321
1284
|
/**
|
|
1322
|
-
*
|
|
1285
|
+
* Indicates if the product is on promotion
|
|
1323
1286
|
*/
|
|
1324
|
-
|
|
1325
|
-
}
|
|
1326
|
-
//#endregion
|
|
1327
|
-
//#region src/api/products/api.d.ts
|
|
1328
|
-
/**
|
|
1329
|
-
* API for retrieving product listings, details, and reviews.
|
|
1330
|
-
*/
|
|
1331
|
-
declare class ProductsApi {
|
|
1332
|
-
private http;
|
|
1287
|
+
isPromo: boolean;
|
|
1333
1288
|
/**
|
|
1334
|
-
*
|
|
1335
|
-
*
|
|
1336
|
-
* @param http HTTP client instance.
|
|
1289
|
+
* Name of the promotion
|
|
1337
1290
|
*/
|
|
1338
|
-
|
|
1291
|
+
promoName?: (string | null) | undefined;
|
|
1292
|
+
/**
|
|
1293
|
+
* List of applicable promocodes
|
|
1294
|
+
*/
|
|
1295
|
+
promocodes: string[];
|
|
1296
|
+
/**
|
|
1297
|
+
* Popularity text indicating purchase frequency
|
|
1298
|
+
*/
|
|
1299
|
+
qtyPurchasedInfo?: (string | null) | undefined;
|
|
1300
|
+
/**
|
|
1301
|
+
* Average rating score
|
|
1302
|
+
*/
|
|
1303
|
+
rating?: (number | null) | undefined;
|
|
1304
|
+
/**
|
|
1305
|
+
* Total number of ratings
|
|
1306
|
+
*/
|
|
1307
|
+
scoreQuantity?: (number | null) | undefined;
|
|
1308
|
+
/**
|
|
1309
|
+
* Badge information for the product
|
|
1310
|
+
*/
|
|
1311
|
+
badge?: (FavoritesApiBadge | null) | undefined;
|
|
1312
|
+
/**
|
|
1313
|
+
* Moderation status code
|
|
1314
|
+
*/
|
|
1315
|
+
moderationStatus: number;
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Response schema for the favorites list.
|
|
1319
|
+
*/
|
|
1320
|
+
interface FavoritesApiListResponse {
|
|
1321
|
+
/**
|
|
1322
|
+
* List of favorited items
|
|
1323
|
+
*/
|
|
1324
|
+
items: FavoritesApiItem[];
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Response schema for retrieving favorite SKU IDs.
|
|
1328
|
+
*/
|
|
1329
|
+
interface FavoritesApiGetIdsResponse {
|
|
1330
|
+
/**
|
|
1331
|
+
* List of favorited SKU IDs
|
|
1332
|
+
*/
|
|
1333
|
+
skuIds: number[];
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Response schema for adding a SKU to favorites.
|
|
1337
|
+
*/
|
|
1338
|
+
type FavoritesApiAddResponse = (null | null) | undefined;
|
|
1339
|
+
/**
|
|
1340
|
+
* Response schema for removing a SKU from favorites.
|
|
1341
|
+
*/
|
|
1342
|
+
type FavoritesApiRemoveResponse = (null | null) | undefined;
|
|
1343
|
+
//#endregion
|
|
1344
|
+
//#region src/api/favorites/types.d.ts
|
|
1345
|
+
/**
|
|
1346
|
+
* Parameters for retrieving the favorites list.
|
|
1347
|
+
*/
|
|
1348
|
+
interface FavoritesApiListParams extends BaseParams {
|
|
1349
|
+
/**
|
|
1350
|
+
* Page number for pagination.
|
|
1351
|
+
*/
|
|
1352
|
+
pageNumber?: number;
|
|
1353
|
+
/**
|
|
1354
|
+
* Number of items per page.
|
|
1355
|
+
*/
|
|
1356
|
+
pageSize?: number;
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Parameters for retrieving favorite SKU IDs.
|
|
1360
|
+
*/
|
|
1361
|
+
type FavoritesApiGetIdsParams = BaseParams;
|
|
1362
|
+
/**
|
|
1363
|
+
* Parameters for adding items to favorites.
|
|
1364
|
+
*/
|
|
1365
|
+
interface FavoritesApiAddParams extends BaseParams {
|
|
1366
|
+
/**
|
|
1367
|
+
* Unique identifiers of the SKUs to add.
|
|
1368
|
+
*/
|
|
1369
|
+
skuIds: number[];
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Parameters for removing items from favorites.
|
|
1373
|
+
*/
|
|
1374
|
+
interface FavoritesApiRemoveParams extends BaseParams {
|
|
1375
|
+
/**
|
|
1376
|
+
* Unique identifiers of the SKUs to remove.
|
|
1377
|
+
*/
|
|
1378
|
+
skuIds: number[];
|
|
1379
|
+
}
|
|
1380
|
+
//#endregion
|
|
1381
|
+
//#region src/api/favorites/api.d.ts
|
|
1382
|
+
/**
|
|
1383
|
+
* API for managing user favorites.
|
|
1384
|
+
*/
|
|
1385
|
+
declare class FavoritesApi {
|
|
1386
|
+
private http;
|
|
1387
|
+
/**
|
|
1388
|
+
* Initializes a new instance of the FavoritesApi.
|
|
1389
|
+
*
|
|
1390
|
+
* @param http HTTP client instance.
|
|
1391
|
+
*/
|
|
1392
|
+
constructor(http: HttpClient);
|
|
1393
|
+
/**
|
|
1394
|
+
* Retrieves a paginated list of favorited items.
|
|
1395
|
+
*
|
|
1396
|
+
* @example
|
|
1397
|
+
* const favorites = await client.favorites.list({
|
|
1398
|
+
* pageNumber: 1,
|
|
1399
|
+
* pageSize: 20
|
|
1400
|
+
* });
|
|
1401
|
+
*/
|
|
1402
|
+
list(params?: FavoritesApiListParams): Promise<FavoritesApiListResponse>;
|
|
1403
|
+
/**
|
|
1404
|
+
* Retrieves the list of IDs of favorited SKUs.
|
|
1405
|
+
*
|
|
1406
|
+
* @example
|
|
1407
|
+
* const { skuIds } = await client.favorites.getIds();
|
|
1408
|
+
*/
|
|
1409
|
+
getIds(params?: FavoritesApiGetIdsParams): Promise<FavoritesApiGetIdsResponse>;
|
|
1410
|
+
/**
|
|
1411
|
+
* Adds SKUs to favorites.
|
|
1412
|
+
*
|
|
1413
|
+
* @example
|
|
1414
|
+
* await client.favorites.add({ skuIds: [12345, 67890] });
|
|
1415
|
+
*/
|
|
1416
|
+
add(params: FavoritesApiAddParams): Promise<FavoritesApiAddResponse>;
|
|
1417
|
+
/**
|
|
1418
|
+
* Removes SKUs from favorites.
|
|
1419
|
+
*
|
|
1420
|
+
* @example
|
|
1421
|
+
* await client.favorites.remove({ skuIds: [12345, 67890] });
|
|
1422
|
+
*/
|
|
1423
|
+
remove(params: FavoritesApiRemoveParams): Promise<FavoritesApiRemoveResponse>;
|
|
1424
|
+
}
|
|
1425
|
+
//#endregion
|
|
1426
|
+
//#region src/api/feature-flags/schema-types.d.ts
|
|
1427
|
+
/**
|
|
1428
|
+
* ⚠️ This file is auto-generated. Do not edit manually.
|
|
1429
|
+
* Run `npm run generate:schema-types` to regenerate.
|
|
1430
|
+
* Generated from: schemas.ts
|
|
1431
|
+
*/
|
|
1432
|
+
/**
|
|
1433
|
+
* Schema for a feature flag item.
|
|
1434
|
+
*/
|
|
1435
|
+
interface FeatureFlagsApiItem {
|
|
1436
|
+
/**
|
|
1437
|
+
* Name of the feature flag
|
|
1438
|
+
*/
|
|
1439
|
+
name: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* Indicates if the feature flag is currently active
|
|
1442
|
+
*/
|
|
1443
|
+
isActive: boolean;
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* Response schema for the list of feature flags.
|
|
1447
|
+
*/
|
|
1448
|
+
type FeatureFlagsApiListResponse = FeatureFlagsApiItem[];
|
|
1449
|
+
//#endregion
|
|
1450
|
+
//#region src/api/feature-flags/types.d.ts
|
|
1451
|
+
/**
|
|
1452
|
+
* Parameters for fetching feature flags.
|
|
1453
|
+
*/
|
|
1454
|
+
type FeatureFlagsApiListParams = BaseParams;
|
|
1455
|
+
//#endregion
|
|
1456
|
+
//#region src/api/feature-flags/api.d.ts
|
|
1457
|
+
/**
|
|
1458
|
+
* API for retrieving feature flags configuration.
|
|
1459
|
+
*/
|
|
1460
|
+
declare class FeatureFlagsApi {
|
|
1461
|
+
private http;
|
|
1462
|
+
/**
|
|
1463
|
+
* Initializes a new instance of the FeatureFlagsApi.
|
|
1464
|
+
*
|
|
1465
|
+
* @param http HTTP client instance.
|
|
1466
|
+
*/
|
|
1467
|
+
constructor(http: HttpClient);
|
|
1468
|
+
/**
|
|
1469
|
+
* Retrieves all active feature flags.
|
|
1470
|
+
*
|
|
1471
|
+
* @example
|
|
1472
|
+
* const flags = await client.featureFlags.list();
|
|
1473
|
+
*/
|
|
1474
|
+
list(params?: FeatureFlagsApiListParams): Promise<FeatureFlagsApiListResponse>;
|
|
1475
|
+
}
|
|
1476
|
+
//#endregion
|
|
1477
|
+
//#region src/api/products/types.d.ts
|
|
1478
|
+
/**
|
|
1479
|
+
* Parameters for fetching product sort options.
|
|
1480
|
+
*/
|
|
1481
|
+
interface ProductsApiGetSortOptionsParams extends BaseParams {
|
|
1482
|
+
/**
|
|
1483
|
+
* Indicates if the context is a search result
|
|
1484
|
+
*/
|
|
1485
|
+
IsSearch?: boolean;
|
|
1486
|
+
/**
|
|
1487
|
+
* Indicates if the context is a promotional listing
|
|
1488
|
+
*/
|
|
1489
|
+
IsPromo?: boolean;
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Parameters for fetching product reviews.
|
|
1493
|
+
*/
|
|
1494
|
+
interface ProductsApiGetReviewsParams extends BaseParams {
|
|
1495
|
+
/**
|
|
1496
|
+
* Unique identifier of the product
|
|
1497
|
+
*/
|
|
1498
|
+
productId: number;
|
|
1499
|
+
/**
|
|
1500
|
+
* Number of the page to retrieve
|
|
1501
|
+
*/
|
|
1502
|
+
pageNumber?: number;
|
|
1503
|
+
/**
|
|
1504
|
+
* Number of reviews per page
|
|
1505
|
+
*/
|
|
1506
|
+
pageSize?: number;
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* Parameters for fetching a filtered list of products.
|
|
1510
|
+
*/
|
|
1511
|
+
interface ProductsApiListParams extends BaseParams {
|
|
1512
|
+
/**
|
|
1513
|
+
* Random seed for consistent pagination
|
|
1514
|
+
*/
|
|
1515
|
+
seed?: number;
|
|
1516
|
+
/**
|
|
1517
|
+
* Number of the page to retrieve
|
|
1518
|
+
*/
|
|
1519
|
+
pageNumber?: number;
|
|
1520
|
+
/**
|
|
1521
|
+
* Number of products per page
|
|
1522
|
+
*/
|
|
1523
|
+
pageSize?: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* Filter products by category ID
|
|
1526
|
+
*/
|
|
1527
|
+
categoryId?: number;
|
|
1528
|
+
/**
|
|
1529
|
+
* Criteria to sort products by
|
|
1530
|
+
*/
|
|
1531
|
+
sortBy?: ProductSortKey;
|
|
1532
|
+
/**
|
|
1533
|
+
* Filter products by brand ID
|
|
1534
|
+
*/
|
|
1535
|
+
brandIds?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
* Minimum price filter
|
|
1538
|
+
*/
|
|
1539
|
+
minPrice?: number;
|
|
1540
|
+
/**
|
|
1541
|
+
* Maximum price filter
|
|
1542
|
+
*/
|
|
1543
|
+
maxPrice?: number;
|
|
1544
|
+
}
|
|
1545
|
+
//#endregion
|
|
1546
|
+
//#region src/api/products/api.d.ts
|
|
1547
|
+
/**
|
|
1548
|
+
* API for retrieving product listings, details, and reviews.
|
|
1549
|
+
*/
|
|
1550
|
+
declare class ProductsApi {
|
|
1551
|
+
private http;
|
|
1552
|
+
/**
|
|
1553
|
+
* Initializes a new instance of the ProductsApi.
|
|
1554
|
+
*
|
|
1555
|
+
* @param http HTTP client instance.
|
|
1556
|
+
*/
|
|
1557
|
+
constructor(http: HttpClient);
|
|
1339
1558
|
/**
|
|
1340
1559
|
* Retrieves available sorting options for product lists.
|
|
1341
1560
|
*
|
|
@@ -2360,41 +2579,158 @@ declare class SkuApi {
|
|
|
2360
2579
|
getReviewAvailable(params: SkuApiGetReviewAvailableParams): Promise<SkuApiGetReviewAvailableResponse>;
|
|
2361
2580
|
}
|
|
2362
2581
|
//#endregion
|
|
2363
|
-
//#region src/
|
|
2582
|
+
//#region src/api/users/schema-types.d.ts
|
|
2364
2583
|
/**
|
|
2365
|
-
*
|
|
2366
|
-
*
|
|
2367
|
-
*
|
|
2368
|
-
* const client = new TeezClient({
|
|
2369
|
-
* language: "ru",
|
|
2370
|
-
* timeout: 10000
|
|
2371
|
-
* });
|
|
2584
|
+
* ⚠️ This file is auto-generated. Do not edit manually.
|
|
2585
|
+
* Run `npm run generate:schema-types` to regenerate.
|
|
2586
|
+
* Generated from: schemas.ts
|
|
2372
2587
|
*/
|
|
2373
|
-
|
|
2588
|
+
/**
|
|
2589
|
+
* Supported language enum for user preference
|
|
2590
|
+
*/
|
|
2591
|
+
type UsersApiLanguageEnum = "ru" | "kk";
|
|
2592
|
+
/**
|
|
2593
|
+
* Response schema for language update
|
|
2594
|
+
*/
|
|
2595
|
+
interface UsersApiUpdateLanguageResponse {
|
|
2374
2596
|
/**
|
|
2375
|
-
*
|
|
2597
|
+
* Updated language code
|
|
2376
2598
|
*/
|
|
2377
|
-
|
|
2599
|
+
language: UsersApiLanguageEnum;
|
|
2378
2600
|
/**
|
|
2379
|
-
*
|
|
2601
|
+
* Response title
|
|
2380
2602
|
*/
|
|
2381
|
-
|
|
2603
|
+
title: string;
|
|
2382
2604
|
/**
|
|
2383
|
-
*
|
|
2605
|
+
* Response message
|
|
2384
2606
|
*/
|
|
2385
|
-
|
|
2607
|
+
message: string;
|
|
2608
|
+
}
|
|
2609
|
+
/**
|
|
2610
|
+
* Response schema for device registration
|
|
2611
|
+
*/
|
|
2612
|
+
type UsersApiRegisterDeviceResponse = (null | null) | undefined;
|
|
2613
|
+
//#endregion
|
|
2614
|
+
//#region src/api/users/types.d.ts
|
|
2615
|
+
/**
|
|
2616
|
+
* Parameters for updating user's preferred language
|
|
2617
|
+
*/
|
|
2618
|
+
interface UsersApiUpdateLanguageParams extends BaseParams {
|
|
2386
2619
|
/**
|
|
2387
|
-
*
|
|
2620
|
+
* Language code: "ru" (Russian) or "kk" (Kazakh)
|
|
2388
2621
|
*/
|
|
2389
|
-
|
|
2622
|
+
language: "ru" | "kk";
|
|
2623
|
+
}
|
|
2624
|
+
/**
|
|
2625
|
+
* SDK information for a specific tracking service
|
|
2626
|
+
*/
|
|
2627
|
+
interface UsersApiDeviceSdkInformation {
|
|
2390
2628
|
/**
|
|
2391
|
-
*
|
|
2629
|
+
* Type of tracking SDK (e.g., "Appsflyer", "Firebase")
|
|
2392
2630
|
*/
|
|
2393
|
-
|
|
2631
|
+
type: string;
|
|
2632
|
+
/**
|
|
2633
|
+
* Unique device identifier for the tracking service
|
|
2634
|
+
*/
|
|
2635
|
+
deviceId: string;
|
|
2636
|
+
}
|
|
2637
|
+
/**
|
|
2638
|
+
* Device identity containing tracking SDK information
|
|
2639
|
+
*/
|
|
2640
|
+
interface UsersApiDeviceIdentity {
|
|
2641
|
+
/**
|
|
2642
|
+
* Array of tracking SDK information
|
|
2643
|
+
*/
|
|
2644
|
+
sdkInformation: UsersApiDeviceSdkInformation[];
|
|
2645
|
+
}
|
|
2646
|
+
/**
|
|
2647
|
+
* Parameters for registering device identity
|
|
2648
|
+
*/
|
|
2649
|
+
interface UsersApiRegisterDeviceParams extends BaseParams {
|
|
2650
|
+
/**
|
|
2651
|
+
* Device identity information for analytics tracking
|
|
2652
|
+
*/
|
|
2653
|
+
deviceIdentity: UsersApiDeviceIdentity;
|
|
2654
|
+
}
|
|
2655
|
+
//#endregion
|
|
2656
|
+
//#region src/api/users/api.d.ts
|
|
2657
|
+
/**
|
|
2658
|
+
* API for user management operations.
|
|
2659
|
+
*/
|
|
2660
|
+
declare class UsersApi {
|
|
2661
|
+
private http;
|
|
2662
|
+
/**
|
|
2663
|
+
* Initializes a new instance of the UsersApi.
|
|
2664
|
+
*
|
|
2665
|
+
* @param http HTTP client instance.
|
|
2666
|
+
*/
|
|
2667
|
+
constructor(http: HttpClient);
|
|
2668
|
+
/**
|
|
2669
|
+
* Updates the user's preferred language.
|
|
2670
|
+
*
|
|
2671
|
+
* @example
|
|
2672
|
+
* await client.users.updateLanguage({
|
|
2673
|
+
* language: "ru"
|
|
2674
|
+
* });
|
|
2675
|
+
*/
|
|
2676
|
+
updateLanguage(params: UsersApiUpdateLanguageParams): Promise<UsersApiUpdateLanguageResponse>;
|
|
2677
|
+
/**
|
|
2678
|
+
* Registers device identity for analytics tracking.
|
|
2679
|
+
*
|
|
2680
|
+
* @example
|
|
2681
|
+
* await client.users.registerDevice({
|
|
2682
|
+
* deviceIdentity: {
|
|
2683
|
+
* sdkInformation: [
|
|
2684
|
+
* {
|
|
2685
|
+
* type: "Appsflyer",
|
|
2686
|
+
* deviceId: "1765694307025-6267413661002574019"
|
|
2687
|
+
* }
|
|
2688
|
+
* ]
|
|
2689
|
+
* }
|
|
2690
|
+
* });
|
|
2691
|
+
*/
|
|
2692
|
+
registerDevice(params: UsersApiRegisterDeviceParams): Promise<UsersApiRegisterDeviceResponse>;
|
|
2693
|
+
}
|
|
2694
|
+
//#endregion
|
|
2695
|
+
//#region src/client.d.ts
|
|
2696
|
+
/**
|
|
2697
|
+
* Main client for interacting with the Teez B2C API.
|
|
2698
|
+
*
|
|
2699
|
+
* @example
|
|
2700
|
+
* const client = new TeezClient({
|
|
2701
|
+
* language: "ru",
|
|
2702
|
+
* timeout: 10000
|
|
2703
|
+
* });
|
|
2704
|
+
*/
|
|
2705
|
+
declare class TeezClient {
|
|
2706
|
+
/**
|
|
2707
|
+
* Configuration used by the client.
|
|
2708
|
+
*/
|
|
2709
|
+
private readonly config;
|
|
2710
|
+
/**
|
|
2711
|
+
* HTTP client for making requests.
|
|
2712
|
+
*/
|
|
2713
|
+
private readonly http;
|
|
2714
|
+
/**
|
|
2715
|
+
* API for authentication operations.
|
|
2716
|
+
*/
|
|
2717
|
+
readonly auth: AuthApi;
|
|
2718
|
+
/**
|
|
2719
|
+
* API for retrieving banners.
|
|
2720
|
+
*/
|
|
2721
|
+
readonly banners: BannersApi;
|
|
2722
|
+
/**
|
|
2723
|
+
* API for retrieving categories.
|
|
2724
|
+
*/
|
|
2725
|
+
readonly categories: CategoriesApi;
|
|
2394
2726
|
/**
|
|
2395
2727
|
* API for retrieving collections.
|
|
2396
2728
|
*/
|
|
2397
2729
|
readonly collections: CollectionsApi;
|
|
2730
|
+
/**
|
|
2731
|
+
* API for managing user favorites.
|
|
2732
|
+
*/
|
|
2733
|
+
readonly favorites: FavoritesApi;
|
|
2398
2734
|
/**
|
|
2399
2735
|
* API for retrieving feature flags.
|
|
2400
2736
|
*/
|
|
@@ -2415,6 +2751,10 @@ declare class TeezClient {
|
|
|
2415
2751
|
* API for retrieving SKU details.
|
|
2416
2752
|
*/
|
|
2417
2753
|
readonly sku: SkuApi;
|
|
2754
|
+
/**
|
|
2755
|
+
* API for user management operations.
|
|
2756
|
+
*/
|
|
2757
|
+
readonly users: UsersApi;
|
|
2418
2758
|
/**
|
|
2419
2759
|
* Initializes a new instance of the TeezClient.
|
|
2420
2760
|
*
|
|
@@ -2443,7 +2783,7 @@ interface TeezApiErrorOptions extends ErrorOptions {
|
|
|
2443
2783
|
/**
|
|
2444
2784
|
* URL of the request that failed.
|
|
2445
2785
|
*/
|
|
2446
|
-
url:
|
|
2786
|
+
url: URL;
|
|
2447
2787
|
/**
|
|
2448
2788
|
* HTTP status code.
|
|
2449
2789
|
*/
|
|
@@ -2462,6 +2802,10 @@ interface TeezApiErrorOptions extends ErrorOptions {
|
|
|
2462
2802
|
*/
|
|
2463
2803
|
declare class TeezApiError extends TeezError {
|
|
2464
2804
|
name: string;
|
|
2805
|
+
/**
|
|
2806
|
+
* URL of the request that failed.
|
|
2807
|
+
*/
|
|
2808
|
+
readonly url: URL;
|
|
2465
2809
|
/**
|
|
2466
2810
|
* HTTP status code.
|
|
2467
2811
|
*/
|
|
@@ -2470,10 +2814,6 @@ declare class TeezApiError extends TeezError {
|
|
|
2470
2814
|
* HTTP status text.
|
|
2471
2815
|
*/
|
|
2472
2816
|
readonly statusText: string;
|
|
2473
|
-
/**
|
|
2474
|
-
* URL of the request that failed.
|
|
2475
|
-
*/
|
|
2476
|
-
readonly url: string;
|
|
2477
2817
|
/**
|
|
2478
2818
|
* Response body, if available.
|
|
2479
2819
|
*/
|
|
@@ -2507,7 +2847,7 @@ interface TeezNetworkErrorOptions extends ErrorOptions {
|
|
|
2507
2847
|
/**
|
|
2508
2848
|
* URL of the request that failed.
|
|
2509
2849
|
*/
|
|
2510
|
-
url:
|
|
2850
|
+
url: URL;
|
|
2511
2851
|
}
|
|
2512
2852
|
/**
|
|
2513
2853
|
* Error thrown when a network request fails (e.g., DNS resolution, connection refused).
|
|
@@ -2517,7 +2857,7 @@ declare class TeezNetworkError extends TeezError {
|
|
|
2517
2857
|
/**
|
|
2518
2858
|
* URL of the request that failed.
|
|
2519
2859
|
*/
|
|
2520
|
-
readonly url:
|
|
2860
|
+
readonly url: URL;
|
|
2521
2861
|
constructor(message: string, {
|
|
2522
2862
|
url,
|
|
2523
2863
|
...errorOptions
|
|
@@ -2532,7 +2872,7 @@ interface TeezTimeoutErrorOptions extends ErrorOptions {
|
|
|
2532
2872
|
/**
|
|
2533
2873
|
* URL of the request that timed out.
|
|
2534
2874
|
*/
|
|
2535
|
-
url:
|
|
2875
|
+
url: URL;
|
|
2536
2876
|
/**
|
|
2537
2877
|
* Timeout duration in milliseconds.
|
|
2538
2878
|
*/
|
|
@@ -2546,7 +2886,7 @@ declare class TeezTimeoutError extends TeezError {
|
|
|
2546
2886
|
/**
|
|
2547
2887
|
* URL of the request that timed out.
|
|
2548
2888
|
*/
|
|
2549
|
-
readonly url:
|
|
2889
|
+
readonly url: URL;
|
|
2550
2890
|
/**
|
|
2551
2891
|
* Timeout duration in milliseconds.
|
|
2552
2892
|
*/
|
|
@@ -2611,7 +2951,7 @@ declare class TeezValidationError extends TeezError {
|
|
|
2611
2951
|
//#endregion
|
|
2612
2952
|
//#region src/api/auth/schemas.d.ts
|
|
2613
2953
|
/**
|
|
2614
|
-
* Response schema for login.
|
|
2954
|
+
* Response schema for initiating phone login.
|
|
2615
2955
|
*/
|
|
2616
2956
|
declare const AuthApiLoginResponseSchema: z.ZodMiniVoid;
|
|
2617
2957
|
/**
|
|
@@ -2623,17 +2963,21 @@ declare const AuthApiVerifyResponseSchema: z.ZodMiniObject<{
|
|
|
2623
2963
|
*/
|
|
2624
2964
|
userId: z.ZodMiniString<string>;
|
|
2625
2965
|
/**
|
|
2626
|
-
*
|
|
2966
|
+
* User's phone number in E.164 format
|
|
2967
|
+
*/
|
|
2968
|
+
phone: z.ZodMiniString<string>;
|
|
2969
|
+
/**
|
|
2970
|
+
* JWT access token for API authentication (HS512 algorithm, ~24 hour expiration)
|
|
2627
2971
|
*/
|
|
2628
2972
|
accessToken: z.ZodMiniString<string>;
|
|
2629
2973
|
/**
|
|
2630
|
-
*
|
|
2974
|
+
* Base64-encoded refresh token for obtaining new access tokens
|
|
2631
2975
|
*/
|
|
2632
2976
|
refreshToken: z.ZodMiniString<string>;
|
|
2633
2977
|
/**
|
|
2634
|
-
* User's
|
|
2978
|
+
* User's preferred payment method ID
|
|
2635
2979
|
*/
|
|
2636
|
-
|
|
2980
|
+
paymentId: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
2637
2981
|
/**
|
|
2638
2982
|
* User's default pickup point
|
|
2639
2983
|
*/
|
|
@@ -2643,13 +2987,9 @@ declare const AuthApiVerifyResponseSchema: z.ZodMiniObject<{
|
|
|
2643
2987
|
*/
|
|
2644
2988
|
address: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniUnknown>>;
|
|
2645
2989
|
/**
|
|
2646
|
-
* User's default recipient information
|
|
2990
|
+
* User's default order recipient information
|
|
2647
2991
|
*/
|
|
2648
2992
|
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
2993
|
}, z.core.$strip>;
|
|
2654
2994
|
/**
|
|
2655
2995
|
* Response schema for token validation.
|
|
@@ -2660,7 +3000,7 @@ declare const AuthApiCheckTokenResponseSchema: z.ZodMiniObject<{
|
|
|
2660
3000
|
*/
|
|
2661
3001
|
userId: z.ZodMiniString<string>;
|
|
2662
3002
|
/**
|
|
2663
|
-
* User's phone number
|
|
3003
|
+
* User's phone number in E.164 format
|
|
2664
3004
|
*/
|
|
2665
3005
|
phoneNumber: z.ZodMiniString<string>;
|
|
2666
3006
|
/**
|
|
@@ -2672,22 +3012,22 @@ declare const AuthApiCheckTokenResponseSchema: z.ZodMiniObject<{
|
|
|
2672
3012
|
*/
|
|
2673
3013
|
email: z.ZodMiniString<string>;
|
|
2674
3014
|
/**
|
|
2675
|
-
* Token expiration
|
|
3015
|
+
* Token expiration datetime in ISO 8601 format (e.g., "2025-12-30T13:08:44+00:00")
|
|
2676
3016
|
*/
|
|
2677
3017
|
expiredTokenDate: z.ZodMiniString<string>;
|
|
2678
3018
|
/**
|
|
2679
|
-
* User's language
|
|
3019
|
+
* User's preferred language: "ru" (Russian) or "kk" (Kazakh)
|
|
2680
3020
|
*/
|
|
2681
3021
|
language: z.ZodMiniEnum<{
|
|
2682
3022
|
ru: "ru";
|
|
2683
3023
|
kk: "kk";
|
|
2684
3024
|
}>;
|
|
2685
3025
|
/**
|
|
2686
|
-
* Whether user has
|
|
3026
|
+
* Whether user has active orders in progress
|
|
2687
3027
|
*/
|
|
2688
3028
|
hasOrders: z.ZodMiniBoolean<boolean>;
|
|
2689
3029
|
/**
|
|
2690
|
-
* Whether user has any
|
|
3030
|
+
* Whether user has any order history (including completed orders)
|
|
2691
3031
|
*/
|
|
2692
3032
|
hasAnyOrders: z.ZodMiniBoolean<boolean>;
|
|
2693
3033
|
}, z.core.$strip>;
|
|
@@ -2932,28 +3272,368 @@ declare const CategoriesApiGetParentsResponseSchema: z.ZodMiniArray<z.ZodMiniObj
|
|
|
2932
3272
|
*/
|
|
2933
3273
|
name: z.ZodMiniString<string>;
|
|
2934
3274
|
/**
|
|
2935
|
-
* Depth level in the category tree
|
|
3275
|
+
* Depth level in the category tree
|
|
3276
|
+
*/
|
|
3277
|
+
level: z.ZodMiniNumber<number>;
|
|
3278
|
+
/**
|
|
3279
|
+
* Indicates if there are nested subcategories
|
|
3280
|
+
*/
|
|
3281
|
+
hasSubcategories: z.ZodMiniBoolean<boolean>;
|
|
3282
|
+
/**
|
|
3283
|
+
* List of nested subcategories.
|
|
3284
|
+
*/
|
|
3285
|
+
readonly subcategories: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniArray<z.ZodMiniObject< /*elided*/any, z.core.$strip>>>>;
|
|
3286
|
+
}, z.core.$strip>>;
|
|
3287
|
+
//#endregion
|
|
3288
|
+
//#region src/api/collections/schemas.d.ts
|
|
3289
|
+
/**
|
|
3290
|
+
* Type literal for collections stock availability type
|
|
3291
|
+
*/
|
|
3292
|
+
declare const CollectionsStockAvailabilityTypeSchema: z.ZodMiniLiteral<"stock">;
|
|
3293
|
+
/**
|
|
3294
|
+
* Schema for stock availability information.
|
|
3295
|
+
*/
|
|
3296
|
+
declare const CollectionsApiStockAvailabilitySchema: z.ZodMiniObject<{
|
|
3297
|
+
/**
|
|
3298
|
+
* Type of stock status (known value: "stock")
|
|
3299
|
+
*/
|
|
3300
|
+
type: z.ZodMiniLiteral<"stock">;
|
|
3301
|
+
/**
|
|
3302
|
+
* SVG icon representing stock status
|
|
3303
|
+
*/
|
|
3304
|
+
svg: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3305
|
+
/**
|
|
3306
|
+
* Localized text describing stock status (e.g., "В наличии - осталось всего 16 штук")
|
|
3307
|
+
*/
|
|
3308
|
+
text: z.ZodMiniString<string>;
|
|
3309
|
+
/**
|
|
3310
|
+
* Maximum quantity available for purchase
|
|
3311
|
+
*/
|
|
3312
|
+
maxQty: z.ZodMiniNumber<number>;
|
|
3313
|
+
/**
|
|
3314
|
+
* Localized reason text for quantity limit (e.g., "В наличии только 16 штук")
|
|
3315
|
+
*/
|
|
3316
|
+
maxQtyReason: z.ZodMiniString<string>;
|
|
3317
|
+
}, z.core.$strip>;
|
|
3318
|
+
/**
|
|
3319
|
+
* Schema for a SKU item within a collection.
|
|
3320
|
+
*/
|
|
3321
|
+
declare const CollectionsApiSkuItemSchema: z.ZodMiniObject<{
|
|
3322
|
+
/**
|
|
3323
|
+
* Unique product identifier
|
|
3324
|
+
*/
|
|
3325
|
+
productId: z.ZodMiniNumber<number>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Unique stock keeping unit identifier
|
|
3328
|
+
*/
|
|
3329
|
+
skuId: z.ZodMiniNumber<number>;
|
|
3330
|
+
/**
|
|
3331
|
+
* URL for the full-size image
|
|
3332
|
+
*/
|
|
3333
|
+
imageUrl: z.ZodMiniString<string>;
|
|
3334
|
+
/**
|
|
3335
|
+
* Display name of the product
|
|
3336
|
+
*/
|
|
3337
|
+
name: z.ZodMiniString<string>;
|
|
3338
|
+
/**
|
|
3339
|
+
* Brief description of the product
|
|
3340
|
+
*/
|
|
3341
|
+
shortDescription: z.ZodMiniString<string>;
|
|
3342
|
+
/**
|
|
3343
|
+
* URL for the small preview image
|
|
3344
|
+
*/
|
|
3345
|
+
thumbnailUrl: z.ZodMiniString<string>;
|
|
3346
|
+
/**
|
|
3347
|
+
* Original price before discounts
|
|
3348
|
+
*/
|
|
3349
|
+
originalPrice: z.ZodMiniNumber<number>;
|
|
3350
|
+
/**
|
|
3351
|
+
* Current selling price
|
|
3352
|
+
*/
|
|
3353
|
+
price: z.ZodMiniNumber<number>;
|
|
3354
|
+
/**
|
|
3355
|
+
* Quantity available in stock
|
|
3356
|
+
*/
|
|
3357
|
+
qty: z.ZodMiniNumber<number>;
|
|
3358
|
+
/**
|
|
3359
|
+
* Stock availability details
|
|
3360
|
+
*/
|
|
3361
|
+
stockAvailability: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
3362
|
+
/**
|
|
3363
|
+
* Type of stock status (known value: "stock")
|
|
3364
|
+
*/
|
|
3365
|
+
type: z.ZodMiniLiteral<"stock">;
|
|
3366
|
+
/**
|
|
3367
|
+
* SVG icon representing stock status
|
|
3368
|
+
*/
|
|
3369
|
+
svg: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3370
|
+
/**
|
|
3371
|
+
* Localized text describing stock status (e.g., "В наличии - осталось всего 16 штук")
|
|
3372
|
+
*/
|
|
3373
|
+
text: z.ZodMiniString<string>;
|
|
3374
|
+
/**
|
|
3375
|
+
* Maximum quantity available for purchase
|
|
3376
|
+
*/
|
|
3377
|
+
maxQty: z.ZodMiniNumber<number>;
|
|
3378
|
+
/**
|
|
3379
|
+
* Localized reason text for quantity limit (e.g., "В наличии только 16 штук")
|
|
3380
|
+
*/
|
|
3381
|
+
maxQtyReason: z.ZodMiniString<string>;
|
|
3382
|
+
}, z.core.$strip>>>;
|
|
3383
|
+
/**
|
|
3384
|
+
* Indicates if the item is on promotion
|
|
3385
|
+
*/
|
|
3386
|
+
isPromo: z.ZodMiniBoolean<boolean>;
|
|
3387
|
+
/**
|
|
3388
|
+
* Name of the promotion
|
|
3389
|
+
*/
|
|
3390
|
+
promoName: z.ZodMiniString<string>;
|
|
3391
|
+
/**
|
|
3392
|
+
* Popularity text indicating purchase frequency (e.g., "Часто покупают")
|
|
3393
|
+
*/
|
|
3394
|
+
qtyPurchasedInfo: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3395
|
+
/**
|
|
3396
|
+
* Average rating score
|
|
3397
|
+
*/
|
|
3398
|
+
rating: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
3399
|
+
/**
|
|
3400
|
+
* Total number of ratings
|
|
3401
|
+
*/
|
|
3402
|
+
scoreQuantity: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
3403
|
+
}, z.core.$strip>;
|
|
3404
|
+
/**
|
|
3405
|
+
* Response schema for getting SKUs from a collection.
|
|
3406
|
+
*/
|
|
3407
|
+
declare const CollectionsApiGetSkusResponseSchema: z.ZodMiniObject<{
|
|
3408
|
+
/**
|
|
3409
|
+
* List of applicable filters for the collection
|
|
3410
|
+
*/
|
|
3411
|
+
filters: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
3412
|
+
type: z.ZodMiniLiteral<"range">;
|
|
3413
|
+
name: z.ZodMiniString<string>;
|
|
3414
|
+
code: z.ZodMiniString<string>;
|
|
3415
|
+
options: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3416
|
+
min: z.ZodMiniNumber<number>;
|
|
3417
|
+
max: z.ZodMiniNumber<number>;
|
|
3418
|
+
}, z.core.$strip>>;
|
|
3419
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
3420
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"category">, z.ZodMiniLiteral<"alphabetic_search_list">]>;
|
|
3421
|
+
name: z.ZodMiniString<string>;
|
|
3422
|
+
code: z.ZodMiniString<string>;
|
|
3423
|
+
options: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3424
|
+
label: z.ZodMiniString<string>;
|
|
3425
|
+
value: z.ZodMiniNumber<number>;
|
|
3426
|
+
}, z.core.$strip>>;
|
|
3427
|
+
}, z.core.$strip>], "type">>;
|
|
3428
|
+
/**
|
|
3429
|
+
* List of SKU items in the collection
|
|
3430
|
+
*/
|
|
3431
|
+
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3432
|
+
/**
|
|
3433
|
+
* Unique product identifier
|
|
3434
|
+
*/
|
|
3435
|
+
productId: z.ZodMiniNumber<number>;
|
|
3436
|
+
/**
|
|
3437
|
+
* Unique stock keeping unit identifier
|
|
3438
|
+
*/
|
|
3439
|
+
skuId: z.ZodMiniNumber<number>;
|
|
3440
|
+
/**
|
|
3441
|
+
* URL for the full-size image
|
|
3442
|
+
*/
|
|
3443
|
+
imageUrl: z.ZodMiniString<string>;
|
|
3444
|
+
/**
|
|
3445
|
+
* Display name of the product
|
|
3446
|
+
*/
|
|
3447
|
+
name: z.ZodMiniString<string>;
|
|
3448
|
+
/**
|
|
3449
|
+
* Brief description of the product
|
|
3450
|
+
*/
|
|
3451
|
+
shortDescription: z.ZodMiniString<string>;
|
|
3452
|
+
/**
|
|
3453
|
+
* URL for the small preview image
|
|
3454
|
+
*/
|
|
3455
|
+
thumbnailUrl: z.ZodMiniString<string>;
|
|
3456
|
+
/**
|
|
3457
|
+
* Original price before discounts
|
|
3458
|
+
*/
|
|
3459
|
+
originalPrice: z.ZodMiniNumber<number>;
|
|
3460
|
+
/**
|
|
3461
|
+
* Current selling price
|
|
3462
|
+
*/
|
|
3463
|
+
price: z.ZodMiniNumber<number>;
|
|
3464
|
+
/**
|
|
3465
|
+
* Quantity available in stock
|
|
3466
|
+
*/
|
|
3467
|
+
qty: z.ZodMiniNumber<number>;
|
|
3468
|
+
/**
|
|
3469
|
+
* Stock availability details
|
|
3470
|
+
*/
|
|
3471
|
+
stockAvailability: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
3472
|
+
/**
|
|
3473
|
+
* Type of stock status (known value: "stock")
|
|
3474
|
+
*/
|
|
3475
|
+
type: z.ZodMiniLiteral<"stock">;
|
|
3476
|
+
/**
|
|
3477
|
+
* SVG icon representing stock status
|
|
3478
|
+
*/
|
|
3479
|
+
svg: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3480
|
+
/**
|
|
3481
|
+
* Localized text describing stock status (e.g., "В наличии - осталось всего 16 штук")
|
|
3482
|
+
*/
|
|
3483
|
+
text: z.ZodMiniString<string>;
|
|
3484
|
+
/**
|
|
3485
|
+
* Maximum quantity available for purchase
|
|
3486
|
+
*/
|
|
3487
|
+
maxQty: z.ZodMiniNumber<number>;
|
|
3488
|
+
/**
|
|
3489
|
+
* Localized reason text for quantity limit (e.g., "В наличии только 16 штук")
|
|
3490
|
+
*/
|
|
3491
|
+
maxQtyReason: z.ZodMiniString<string>;
|
|
3492
|
+
}, z.core.$strip>>>;
|
|
3493
|
+
/**
|
|
3494
|
+
* Indicates if the item is on promotion
|
|
3495
|
+
*/
|
|
3496
|
+
isPromo: z.ZodMiniBoolean<boolean>;
|
|
3497
|
+
/**
|
|
3498
|
+
* Name of the promotion
|
|
3499
|
+
*/
|
|
3500
|
+
promoName: z.ZodMiniString<string>;
|
|
3501
|
+
/**
|
|
3502
|
+
* Popularity text indicating purchase frequency (e.g., "Часто покупают")
|
|
3503
|
+
*/
|
|
3504
|
+
qtyPurchasedInfo: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3505
|
+
/**
|
|
3506
|
+
* Average rating score
|
|
3507
|
+
*/
|
|
3508
|
+
rating: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
3509
|
+
/**
|
|
3510
|
+
* Total number of ratings
|
|
3511
|
+
*/
|
|
3512
|
+
scoreQuantity: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
3513
|
+
}, z.core.$strip>>;
|
|
3514
|
+
/**
|
|
3515
|
+
* Current page number
|
|
3516
|
+
*/
|
|
3517
|
+
pageNumber: z.ZodMiniNumber<number>;
|
|
3518
|
+
/**
|
|
3519
|
+
* Total number of pages available
|
|
3520
|
+
*/
|
|
3521
|
+
totalPages: z.ZodMiniNumber<number>;
|
|
3522
|
+
/**
|
|
3523
|
+
* Total number of items in the collection
|
|
3524
|
+
*/
|
|
3525
|
+
totalCount: z.ZodMiniNumber<number>;
|
|
3526
|
+
/**
|
|
3527
|
+
* Indicates if there is a previous page
|
|
3528
|
+
*/
|
|
3529
|
+
hasPreviousPage: z.ZodMiniBoolean<boolean>;
|
|
3530
|
+
/**
|
|
3531
|
+
* Indicates if there is a next page
|
|
3532
|
+
*/
|
|
3533
|
+
hasNextPage: z.ZodMiniBoolean<boolean>;
|
|
3534
|
+
}, z.core.$strip>;
|
|
3535
|
+
/**
|
|
3536
|
+
* Schema for a collection list item.
|
|
3537
|
+
*/
|
|
3538
|
+
declare const CollectionsApiListItemSchema: z.ZodMiniObject<{
|
|
3539
|
+
/**
|
|
3540
|
+
* Unique identifier of the collection
|
|
3541
|
+
*/
|
|
3542
|
+
id: z.ZodMiniNumber<number>;
|
|
3543
|
+
/**
|
|
3544
|
+
* URL or path to the collection's icon
|
|
3545
|
+
*/
|
|
3546
|
+
icon: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3547
|
+
/**
|
|
3548
|
+
* Name of the collection
|
|
3549
|
+
*/
|
|
3550
|
+
name: z.ZodMiniString<string>;
|
|
3551
|
+
/**
|
|
3552
|
+
* Priority for sorting or display order
|
|
3553
|
+
*/
|
|
3554
|
+
priority: z.ZodMiniNumber<number>;
|
|
3555
|
+
}, z.core.$strip>;
|
|
3556
|
+
/**
|
|
3557
|
+
* Response schema for the list of collections.
|
|
3558
|
+
*/
|
|
3559
|
+
declare const CollectionsApiListResponseSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3560
|
+
/**
|
|
3561
|
+
* Unique identifier of the collection
|
|
3562
|
+
*/
|
|
3563
|
+
id: z.ZodMiniNumber<number>;
|
|
3564
|
+
/**
|
|
3565
|
+
* URL or path to the collection's icon
|
|
3566
|
+
*/
|
|
3567
|
+
icon: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3568
|
+
/**
|
|
3569
|
+
* Name of the collection
|
|
3570
|
+
*/
|
|
3571
|
+
name: z.ZodMiniString<string>;
|
|
3572
|
+
/**
|
|
3573
|
+
* Priority for sorting or display order
|
|
3574
|
+
*/
|
|
3575
|
+
priority: z.ZodMiniNumber<number>;
|
|
3576
|
+
}, z.core.$strip>>;
|
|
3577
|
+
/**
|
|
3578
|
+
* Type literal for collection type identifier
|
|
3579
|
+
*/
|
|
3580
|
+
declare const CollectionTypeSchema: z.ZodMiniLiteral<"Collection">;
|
|
3581
|
+
/**
|
|
3582
|
+
* Response schema for getting a specific collection by ID.
|
|
3583
|
+
*/
|
|
3584
|
+
declare const CollectionsApiGetResponseSchema: z.ZodMiniObject<{
|
|
3585
|
+
/**
|
|
3586
|
+
* Type of the collection (known value: "Collection")
|
|
3587
|
+
*/
|
|
3588
|
+
type: z.ZodMiniLiteral<"Collection">;
|
|
3589
|
+
/**
|
|
3590
|
+
* Unique identifier of the collection
|
|
3591
|
+
*/
|
|
3592
|
+
id: z.ZodMiniNumber<number>;
|
|
3593
|
+
/**
|
|
3594
|
+
* URL for the cover image
|
|
3595
|
+
*/
|
|
3596
|
+
cover: z.ZodMiniString<string>;
|
|
3597
|
+
/**
|
|
3598
|
+
* Description of the collection
|
|
3599
|
+
*/
|
|
3600
|
+
description: z.ZodMiniString<string>;
|
|
3601
|
+
/**
|
|
3602
|
+
* Name of the collection
|
|
3603
|
+
*/
|
|
3604
|
+
name: z.ZodMiniString<string>;
|
|
3605
|
+
/**
|
|
3606
|
+
* Priority for sorting or display order
|
|
3607
|
+
*/
|
|
3608
|
+
priority: z.ZodMiniNumber<number>;
|
|
3609
|
+
}, z.core.$strip>;
|
|
3610
|
+
//#endregion
|
|
3611
|
+
//#region src/api/favorites/schemas.d.ts
|
|
3612
|
+
/**
|
|
3613
|
+
* Schema for a product badge.
|
|
3614
|
+
*/
|
|
3615
|
+
declare const FavoritesApiBadgeSchema: z.ZodMiniObject<{
|
|
3616
|
+
/**
|
|
3617
|
+
* Text label of the badge
|
|
2936
3618
|
*/
|
|
2937
|
-
|
|
3619
|
+
label: z.ZodMiniString<string>;
|
|
2938
3620
|
/**
|
|
2939
|
-
*
|
|
3621
|
+
* Background color code
|
|
2940
3622
|
*/
|
|
2941
|
-
|
|
3623
|
+
backgroundColor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
2942
3624
|
/**
|
|
2943
|
-
*
|
|
3625
|
+
* Text color code
|
|
2944
3626
|
*/
|
|
2945
|
-
|
|
2946
|
-
}, z.core.$strip
|
|
2947
|
-
//#endregion
|
|
2948
|
-
//#region src/api/collections/schemas.d.ts
|
|
3627
|
+
textColor: z.ZodMiniNumber<number>;
|
|
3628
|
+
}, z.core.$strip>;
|
|
2949
3629
|
/**
|
|
2950
|
-
* Type literal for
|
|
3630
|
+
* Type literal for stock availability type
|
|
2951
3631
|
*/
|
|
2952
|
-
declare const
|
|
3632
|
+
declare const FavoritesStockAvailabilityTypeSchema: z.ZodMiniLiteral<"stock">;
|
|
2953
3633
|
/**
|
|
2954
3634
|
* Schema for stock availability information.
|
|
2955
3635
|
*/
|
|
2956
|
-
declare const
|
|
3636
|
+
declare const FavoritesApiStockAvailabilitySchema: z.ZodMiniObject<{
|
|
2957
3637
|
/**
|
|
2958
3638
|
* Type of stock status (known value: "stock")
|
|
2959
3639
|
*/
|
|
@@ -2963,22 +3643,22 @@ declare const CollectionsApiStockAvailabilitySchema: z.ZodMiniObject<{
|
|
|
2963
3643
|
*/
|
|
2964
3644
|
svg: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
2965
3645
|
/**
|
|
2966
|
-
* Localized text describing stock status
|
|
3646
|
+
* Localized text describing stock status
|
|
2967
3647
|
*/
|
|
2968
3648
|
text: z.ZodMiniString<string>;
|
|
2969
3649
|
/**
|
|
2970
|
-
* Maximum quantity available
|
|
3650
|
+
* Maximum quantity available
|
|
2971
3651
|
*/
|
|
2972
3652
|
maxQty: z.ZodMiniNumber<number>;
|
|
2973
3653
|
/**
|
|
2974
|
-
* Localized reason text for quantity limit
|
|
3654
|
+
* Localized reason text for quantity limit
|
|
2975
3655
|
*/
|
|
2976
3656
|
maxQtyReason: z.ZodMiniString<string>;
|
|
2977
3657
|
}, z.core.$strip>;
|
|
2978
3658
|
/**
|
|
2979
|
-
* Schema for a
|
|
3659
|
+
* Schema for a favorited item (SKU).
|
|
2980
3660
|
*/
|
|
2981
|
-
declare const
|
|
3661
|
+
declare const FavoritesApiItemSchema: z.ZodMiniObject<{
|
|
2982
3662
|
/**
|
|
2983
3663
|
* Unique product identifier
|
|
2984
3664
|
*/
|
|
@@ -2992,7 +3672,7 @@ declare const CollectionsApiSkuItemSchema: z.ZodMiniObject<{
|
|
|
2992
3672
|
*/
|
|
2993
3673
|
imageUrl: z.ZodMiniString<string>;
|
|
2994
3674
|
/**
|
|
2995
|
-
*
|
|
3675
|
+
* Full display name of the product
|
|
2996
3676
|
*/
|
|
2997
3677
|
name: z.ZodMiniString<string>;
|
|
2998
3678
|
/**
|
|
@@ -3028,28 +3708,32 @@ declare const CollectionsApiSkuItemSchema: z.ZodMiniObject<{
|
|
|
3028
3708
|
*/
|
|
3029
3709
|
svg: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3030
3710
|
/**
|
|
3031
|
-
* Localized text describing stock status
|
|
3711
|
+
* Localized text describing stock status
|
|
3032
3712
|
*/
|
|
3033
3713
|
text: z.ZodMiniString<string>;
|
|
3034
3714
|
/**
|
|
3035
|
-
* Maximum quantity available
|
|
3715
|
+
* Maximum quantity available
|
|
3036
3716
|
*/
|
|
3037
3717
|
maxQty: z.ZodMiniNumber<number>;
|
|
3038
3718
|
/**
|
|
3039
|
-
* Localized reason text for quantity limit
|
|
3719
|
+
* Localized reason text for quantity limit
|
|
3040
3720
|
*/
|
|
3041
3721
|
maxQtyReason: z.ZodMiniString<string>;
|
|
3042
3722
|
}, z.core.$strip>>>;
|
|
3043
3723
|
/**
|
|
3044
|
-
* Indicates if the
|
|
3724
|
+
* Indicates if the product is on promotion
|
|
3045
3725
|
*/
|
|
3046
3726
|
isPromo: z.ZodMiniBoolean<boolean>;
|
|
3047
3727
|
/**
|
|
3048
3728
|
* Name of the promotion
|
|
3049
3729
|
*/
|
|
3050
|
-
promoName: z.ZodMiniString<string
|
|
3730
|
+
promoName: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3051
3731
|
/**
|
|
3052
|
-
*
|
|
3732
|
+
* List of applicable promocodes
|
|
3733
|
+
*/
|
|
3734
|
+
promocodes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
3735
|
+
/**
|
|
3736
|
+
* Popularity text indicating purchase frequency
|
|
3053
3737
|
*/
|
|
3054
3738
|
qtyPurchasedInfo: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3055
3739
|
/**
|
|
@@ -3060,33 +3744,34 @@ declare const CollectionsApiSkuItemSchema: z.ZodMiniObject<{
|
|
|
3060
3744
|
* Total number of ratings
|
|
3061
3745
|
*/
|
|
3062
3746
|
scoreQuantity: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
3747
|
+
/**
|
|
3748
|
+
* Badge information for the product
|
|
3749
|
+
*/
|
|
3750
|
+
badge: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
3751
|
+
/**
|
|
3752
|
+
* Text label of the badge
|
|
3753
|
+
*/
|
|
3754
|
+
label: z.ZodMiniString<string>;
|
|
3755
|
+
/**
|
|
3756
|
+
* Background color code
|
|
3757
|
+
*/
|
|
3758
|
+
backgroundColor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
3759
|
+
/**
|
|
3760
|
+
* Text color code
|
|
3761
|
+
*/
|
|
3762
|
+
textColor: z.ZodMiniNumber<number>;
|
|
3763
|
+
}, z.core.$strip>>>;
|
|
3764
|
+
/**
|
|
3765
|
+
* Moderation status code
|
|
3766
|
+
*/
|
|
3767
|
+
moderationStatus: z.ZodMiniNumber<number>;
|
|
3063
3768
|
}, z.core.$strip>;
|
|
3064
3769
|
/**
|
|
3065
|
-
* Response schema for
|
|
3770
|
+
* Response schema for the favorites list.
|
|
3066
3771
|
*/
|
|
3067
|
-
declare const
|
|
3068
|
-
/**
|
|
3069
|
-
* List of applicable filters for the collection
|
|
3070
|
-
*/
|
|
3071
|
-
filters: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
3072
|
-
type: z.ZodMiniLiteral<"range">;
|
|
3073
|
-
name: z.ZodMiniString<string>;
|
|
3074
|
-
code: z.ZodMiniString<string>;
|
|
3075
|
-
options: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3076
|
-
min: z.ZodMiniNumber<number>;
|
|
3077
|
-
max: z.ZodMiniNumber<number>;
|
|
3078
|
-
}, z.core.$strip>>;
|
|
3079
|
-
}, z.core.$strip>, z.ZodMiniObject<{
|
|
3080
|
-
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"category">, z.ZodMiniLiteral<"alphabetic_search_list">]>;
|
|
3081
|
-
name: z.ZodMiniString<string>;
|
|
3082
|
-
code: z.ZodMiniString<string>;
|
|
3083
|
-
options: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3084
|
-
label: z.ZodMiniString<string>;
|
|
3085
|
-
value: z.ZodMiniNumber<number>;
|
|
3086
|
-
}, z.core.$strip>>;
|
|
3087
|
-
}, z.core.$strip>], "type">>;
|
|
3772
|
+
declare const FavoritesApiListResponseSchema: z.ZodMiniObject<{
|
|
3088
3773
|
/**
|
|
3089
|
-
* List of
|
|
3774
|
+
* List of favorited items
|
|
3090
3775
|
*/
|
|
3091
3776
|
items: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3092
3777
|
/**
|
|
@@ -3102,7 +3787,7 @@ declare const CollectionsApiGetSkusResponseSchema: z.ZodMiniObject<{
|
|
|
3102
3787
|
*/
|
|
3103
3788
|
imageUrl: z.ZodMiniString<string>;
|
|
3104
3789
|
/**
|
|
3105
|
-
*
|
|
3790
|
+
* Full display name of the product
|
|
3106
3791
|
*/
|
|
3107
3792
|
name: z.ZodMiniString<string>;
|
|
3108
3793
|
/**
|
|
@@ -3138,28 +3823,32 @@ declare const CollectionsApiGetSkusResponseSchema: z.ZodMiniObject<{
|
|
|
3138
3823
|
*/
|
|
3139
3824
|
svg: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3140
3825
|
/**
|
|
3141
|
-
* Localized text describing stock status
|
|
3826
|
+
* Localized text describing stock status
|
|
3142
3827
|
*/
|
|
3143
3828
|
text: z.ZodMiniString<string>;
|
|
3144
3829
|
/**
|
|
3145
|
-
* Maximum quantity available
|
|
3830
|
+
* Maximum quantity available
|
|
3146
3831
|
*/
|
|
3147
3832
|
maxQty: z.ZodMiniNumber<number>;
|
|
3148
3833
|
/**
|
|
3149
|
-
* Localized reason text for quantity limit
|
|
3834
|
+
* Localized reason text for quantity limit
|
|
3150
3835
|
*/
|
|
3151
3836
|
maxQtyReason: z.ZodMiniString<string>;
|
|
3152
3837
|
}, z.core.$strip>>>;
|
|
3153
3838
|
/**
|
|
3154
|
-
* Indicates if the
|
|
3839
|
+
* Indicates if the product is on promotion
|
|
3155
3840
|
*/
|
|
3156
3841
|
isPromo: z.ZodMiniBoolean<boolean>;
|
|
3157
3842
|
/**
|
|
3158
3843
|
* Name of the promotion
|
|
3159
3844
|
*/
|
|
3160
|
-
promoName: z.ZodMiniString<string
|
|
3845
|
+
promoName: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3161
3846
|
/**
|
|
3162
|
-
*
|
|
3847
|
+
* List of applicable promocodes
|
|
3848
|
+
*/
|
|
3849
|
+
promocodes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
3850
|
+
/**
|
|
3851
|
+
* Popularity text indicating purchase frequency
|
|
3163
3852
|
*/
|
|
3164
3853
|
qtyPurchasedInfo: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3165
3854
|
/**
|
|
@@ -3170,103 +3859,74 @@ declare const CollectionsApiGetSkusResponseSchema: z.ZodMiniObject<{
|
|
|
3170
3859
|
* Total number of ratings
|
|
3171
3860
|
*/
|
|
3172
3861
|
scoreQuantity: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
3862
|
+
/**
|
|
3863
|
+
* Badge information for the product
|
|
3864
|
+
*/
|
|
3865
|
+
badge: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
3866
|
+
/**
|
|
3867
|
+
* Text label of the badge
|
|
3868
|
+
*/
|
|
3869
|
+
label: z.ZodMiniString<string>;
|
|
3870
|
+
/**
|
|
3871
|
+
* Background color code
|
|
3872
|
+
*/
|
|
3873
|
+
backgroundColor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
3874
|
+
/**
|
|
3875
|
+
* Text color code
|
|
3876
|
+
*/
|
|
3877
|
+
textColor: z.ZodMiniNumber<number>;
|
|
3878
|
+
}, z.core.$strip>>>;
|
|
3879
|
+
/**
|
|
3880
|
+
* Moderation status code
|
|
3881
|
+
*/
|
|
3882
|
+
moderationStatus: z.ZodMiniNumber<number>;
|
|
3173
3883
|
}, z.core.$strip>>;
|
|
3174
|
-
/**
|
|
3175
|
-
* Current page number
|
|
3176
|
-
*/
|
|
3177
|
-
pageNumber: z.ZodMiniNumber<number>;
|
|
3178
|
-
/**
|
|
3179
|
-
* Total number of pages available
|
|
3180
|
-
*/
|
|
3181
|
-
totalPages: z.ZodMiniNumber<number>;
|
|
3182
|
-
/**
|
|
3183
|
-
* Total number of items in the collection
|
|
3184
|
-
*/
|
|
3185
|
-
totalCount: z.ZodMiniNumber<number>;
|
|
3186
|
-
/**
|
|
3187
|
-
* Indicates if there is a previous page
|
|
3188
|
-
*/
|
|
3189
|
-
hasPreviousPage: z.ZodMiniBoolean<boolean>;
|
|
3190
|
-
/**
|
|
3191
|
-
* Indicates if there is a next page
|
|
3192
|
-
*/
|
|
3193
|
-
hasNextPage: z.ZodMiniBoolean<boolean>;
|
|
3194
3884
|
}, z.core.$strip>;
|
|
3195
3885
|
/**
|
|
3196
|
-
*
|
|
3886
|
+
* Response schema for retrieving favorite SKU IDs.
|
|
3197
3887
|
*/
|
|
3198
|
-
declare const
|
|
3199
|
-
/**
|
|
3200
|
-
* Unique identifier of the collection
|
|
3201
|
-
*/
|
|
3202
|
-
id: z.ZodMiniNumber<number>;
|
|
3203
|
-
/**
|
|
3204
|
-
* URL or path to the collection's icon
|
|
3205
|
-
*/
|
|
3206
|
-
icon: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3207
|
-
/**
|
|
3208
|
-
* Name of the collection
|
|
3209
|
-
*/
|
|
3210
|
-
name: z.ZodMiniString<string>;
|
|
3888
|
+
declare const FavoritesApiGetIdsResponseSchema: z.ZodMiniObject<{
|
|
3211
3889
|
/**
|
|
3212
|
-
*
|
|
3890
|
+
* List of favorited SKU IDs
|
|
3213
3891
|
*/
|
|
3214
|
-
|
|
3892
|
+
skuIds: z.ZodMiniArray<z.ZodMiniNumber<number>>;
|
|
3215
3893
|
}, z.core.$strip>;
|
|
3216
3894
|
/**
|
|
3217
|
-
* Response schema for
|
|
3895
|
+
* Response schema for adding a SKU to favorites.
|
|
3218
3896
|
*/
|
|
3219
|
-
declare const
|
|
3220
|
-
/**
|
|
3221
|
-
* Unique identifier of the collection
|
|
3222
|
-
*/
|
|
3223
|
-
id: z.ZodMiniNumber<number>;
|
|
3224
|
-
/**
|
|
3225
|
-
* URL or path to the collection's icon
|
|
3226
|
-
*/
|
|
3227
|
-
icon: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3228
|
-
/**
|
|
3229
|
-
* Name of the collection
|
|
3230
|
-
*/
|
|
3231
|
-
name: z.ZodMiniString<string>;
|
|
3232
|
-
/**
|
|
3233
|
-
* Priority for sorting or display order
|
|
3234
|
-
*/
|
|
3235
|
-
priority: z.ZodMiniNumber<number>;
|
|
3236
|
-
}, z.core.$strip>>;
|
|
3897
|
+
declare const FavoritesApiAddResponseSchema: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNull>>;
|
|
3237
3898
|
/**
|
|
3238
|
-
*
|
|
3899
|
+
* Response schema for removing a SKU from favorites.
|
|
3239
3900
|
*/
|
|
3240
|
-
declare const
|
|
3901
|
+
declare const FavoritesApiRemoveResponseSchema: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNull>>;
|
|
3902
|
+
//#endregion
|
|
3903
|
+
//#region src/api/feature-flags/schemas.d.ts
|
|
3241
3904
|
/**
|
|
3242
|
-
*
|
|
3905
|
+
* Schema for a feature flag item.
|
|
3243
3906
|
*/
|
|
3244
|
-
declare const
|
|
3245
|
-
/**
|
|
3246
|
-
* Type of the collection (known value: "Collection")
|
|
3247
|
-
*/
|
|
3248
|
-
type: z.ZodMiniLiteral<"Collection">;
|
|
3249
|
-
/**
|
|
3250
|
-
* Unique identifier of the collection
|
|
3251
|
-
*/
|
|
3252
|
-
id: z.ZodMiniNumber<number>;
|
|
3907
|
+
declare const FeatureFlagsApiItemSchema: z.ZodMiniObject<{
|
|
3253
3908
|
/**
|
|
3254
|
-
*
|
|
3909
|
+
* Name of the feature flag
|
|
3255
3910
|
*/
|
|
3256
|
-
|
|
3911
|
+
name: z.ZodMiniString<string>;
|
|
3257
3912
|
/**
|
|
3258
|
-
*
|
|
3913
|
+
* Indicates if the feature flag is currently active
|
|
3259
3914
|
*/
|
|
3260
|
-
|
|
3915
|
+
isActive: z.ZodMiniBoolean<boolean>;
|
|
3916
|
+
}, z.core.$strip>;
|
|
3917
|
+
/**
|
|
3918
|
+
* Response schema for the list of feature flags.
|
|
3919
|
+
*/
|
|
3920
|
+
declare const FeatureFlagsApiListResponseSchema: z.ZodMiniArray<z.ZodMiniObject<{
|
|
3261
3921
|
/**
|
|
3262
|
-
* Name of the
|
|
3922
|
+
* Name of the feature flag
|
|
3263
3923
|
*/
|
|
3264
3924
|
name: z.ZodMiniString<string>;
|
|
3265
3925
|
/**
|
|
3266
|
-
*
|
|
3926
|
+
* Indicates if the feature flag is currently active
|
|
3267
3927
|
*/
|
|
3268
|
-
|
|
3269
|
-
}, z.core.$strip
|
|
3928
|
+
isActive: z.ZodMiniBoolean<boolean>;
|
|
3929
|
+
}, z.core.$strip>>;
|
|
3270
3930
|
//#endregion
|
|
3271
3931
|
//#region src/api/products/schemas.d.ts
|
|
3272
3932
|
/**
|
|
@@ -3378,10 +4038,6 @@ declare const ProductsApiGetReviewsResponseSchema: z.ZodMiniObject<{
|
|
|
3378
4038
|
* Schema for a product badge.
|
|
3379
4039
|
*/
|
|
3380
4040
|
declare const ProductsApiBadgeSchema: z.ZodMiniObject<{
|
|
3381
|
-
/**
|
|
3382
|
-
* Background color code
|
|
3383
|
-
*/
|
|
3384
|
-
backgroundColor: z.ZodMiniNumber<number>;
|
|
3385
4041
|
/**
|
|
3386
4042
|
* Text label of the badge
|
|
3387
4043
|
*/
|
|
@@ -3390,6 +4046,10 @@ declare const ProductsApiBadgeSchema: z.ZodMiniObject<{
|
|
|
3390
4046
|
* Text color code
|
|
3391
4047
|
*/
|
|
3392
4048
|
textColor: z.ZodMiniNumber<number>;
|
|
4049
|
+
/**
|
|
4050
|
+
* Background color code
|
|
4051
|
+
*/
|
|
4052
|
+
backgroundColor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
3393
4053
|
}, z.core.$strip>;
|
|
3394
4054
|
/**
|
|
3395
4055
|
* Type literal for products stock availability type
|
|
@@ -3492,7 +4152,7 @@ declare const ProductsApiProductItemSchema: z.ZodMiniObject<{
|
|
|
3492
4152
|
/**
|
|
3493
4153
|
* Name of the promotion
|
|
3494
4154
|
*/
|
|
3495
|
-
promoName: z.ZodMiniString<string
|
|
4155
|
+
promoName: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3496
4156
|
/**
|
|
3497
4157
|
* List of applicable promocodes
|
|
3498
4158
|
*/
|
|
@@ -3512,11 +4172,7 @@ declare const ProductsApiProductItemSchema: z.ZodMiniObject<{
|
|
|
3512
4172
|
/**
|
|
3513
4173
|
* Badge information for the product
|
|
3514
4174
|
*/
|
|
3515
|
-
badge: z.ZodMiniObject<{
|
|
3516
|
-
/**
|
|
3517
|
-
* Background color code
|
|
3518
|
-
*/
|
|
3519
|
-
backgroundColor: z.ZodMiniNumber<number>;
|
|
4175
|
+
badge: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
3520
4176
|
/**
|
|
3521
4177
|
* Text label of the badge
|
|
3522
4178
|
*/
|
|
@@ -3525,7 +4181,11 @@ declare const ProductsApiProductItemSchema: z.ZodMiniObject<{
|
|
|
3525
4181
|
* Text color code
|
|
3526
4182
|
*/
|
|
3527
4183
|
textColor: z.ZodMiniNumber<number>;
|
|
3528
|
-
|
|
4184
|
+
/**
|
|
4185
|
+
* Background color code
|
|
4186
|
+
*/
|
|
4187
|
+
backgroundColor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
4188
|
+
}, z.core.$strip>>>;
|
|
3529
4189
|
/**
|
|
3530
4190
|
* Moderation status code
|
|
3531
4191
|
*/
|
|
@@ -3627,7 +4287,7 @@ declare const ProductsApiListResponseSchema: z.ZodMiniObject<{
|
|
|
3627
4287
|
/**
|
|
3628
4288
|
* Name of the promotion
|
|
3629
4289
|
*/
|
|
3630
|
-
promoName: z.ZodMiniString<string
|
|
4290
|
+
promoName: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
3631
4291
|
/**
|
|
3632
4292
|
* List of applicable promocodes
|
|
3633
4293
|
*/
|
|
@@ -3647,11 +4307,7 @@ declare const ProductsApiListResponseSchema: z.ZodMiniObject<{
|
|
|
3647
4307
|
/**
|
|
3648
4308
|
* Badge information for the product
|
|
3649
4309
|
*/
|
|
3650
|
-
badge: z.ZodMiniObject<{
|
|
3651
|
-
/**
|
|
3652
|
-
* Background color code
|
|
3653
|
-
*/
|
|
3654
|
-
backgroundColor: z.ZodMiniNumber<number>;
|
|
4310
|
+
badge: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
3655
4311
|
/**
|
|
3656
4312
|
* Text label of the badge
|
|
3657
4313
|
*/
|
|
@@ -3660,7 +4316,11 @@ declare const ProductsApiListResponseSchema: z.ZodMiniObject<{
|
|
|
3660
4316
|
* Text color code
|
|
3661
4317
|
*/
|
|
3662
4318
|
textColor: z.ZodMiniNumber<number>;
|
|
3663
|
-
|
|
4319
|
+
/**
|
|
4320
|
+
* Background color code
|
|
4321
|
+
*/
|
|
4322
|
+
backgroundColor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
|
|
4323
|
+
}, z.core.$strip>>>;
|
|
3664
4324
|
/**
|
|
3665
4325
|
* Moderation status code
|
|
3666
4326
|
*/
|
|
@@ -4874,33 +5534,38 @@ declare const SkuApiGetReviewAvailableResponseSchema: z.ZodMiniObject<{
|
|
|
4874
5534
|
message: z.ZodMiniString<string>;
|
|
4875
5535
|
}, z.core.$strip>;
|
|
4876
5536
|
//#endregion
|
|
4877
|
-
//#region src/api/
|
|
5537
|
+
//#region src/api/users/schemas.d.ts
|
|
4878
5538
|
/**
|
|
4879
|
-
*
|
|
5539
|
+
* Supported language enum for user preference
|
|
4880
5540
|
*/
|
|
4881
|
-
declare const
|
|
5541
|
+
declare const UsersApiLanguageEnumSchema: z.ZodMiniEnum<{
|
|
5542
|
+
ru: "ru";
|
|
5543
|
+
kk: "kk";
|
|
5544
|
+
}>;
|
|
5545
|
+
/**
|
|
5546
|
+
* Response schema for language update
|
|
5547
|
+
*/
|
|
5548
|
+
declare const UsersApiUpdateLanguageResponseSchema: z.ZodMiniObject<{
|
|
4882
5549
|
/**
|
|
4883
|
-
*
|
|
5550
|
+
* Updated language code
|
|
4884
5551
|
*/
|
|
4885
|
-
|
|
5552
|
+
language: z.ZodMiniEnum<{
|
|
5553
|
+
ru: "ru";
|
|
5554
|
+
kk: "kk";
|
|
5555
|
+
}>;
|
|
4886
5556
|
/**
|
|
4887
|
-
*
|
|
5557
|
+
* Response title
|
|
4888
5558
|
*/
|
|
4889
|
-
|
|
5559
|
+
title: z.ZodMiniString<string>;
|
|
5560
|
+
/**
|
|
5561
|
+
* Response message
|
|
5562
|
+
*/
|
|
5563
|
+
message: z.ZodMiniString<string>;
|
|
4890
5564
|
}, z.core.$strip>;
|
|
4891
5565
|
/**
|
|
4892
|
-
* Response schema for
|
|
5566
|
+
* Response schema for device registration
|
|
4893
5567
|
*/
|
|
4894
|
-
declare const
|
|
4895
|
-
/**
|
|
4896
|
-
* Name of the feature flag
|
|
4897
|
-
*/
|
|
4898
|
-
name: z.ZodMiniString<string>;
|
|
4899
|
-
/**
|
|
4900
|
-
* Indicates if the feature flag is currently active
|
|
4901
|
-
*/
|
|
4902
|
-
isActive: z.ZodMiniBoolean<boolean>;
|
|
4903
|
-
}, z.core.$strip>>;
|
|
5568
|
+
declare const UsersApiRegisterDeviceResponseSchema: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNull>>;
|
|
4904
5569
|
//#endregion
|
|
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 };
|
|
5570
|
+
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, FavoritesApi, FavoritesApiAddParams, FavoritesApiAddResponse, FavoritesApiAddResponseSchema, FavoritesApiBadge, FavoritesApiBadgeSchema, FavoritesApiGetIdsParams, FavoritesApiGetIdsResponse, FavoritesApiGetIdsResponseSchema, FavoritesApiItem, FavoritesApiItemSchema, FavoritesApiListParams, FavoritesApiListResponse, FavoritesApiListResponseSchema, FavoritesApiRemoveParams, FavoritesApiRemoveResponse, FavoritesApiRemoveResponseSchema, FavoritesApiStockAvailability, FavoritesApiStockAvailabilitySchema, FavoritesStockAvailabilityType, FavoritesStockAvailabilityTypeSchema, 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 };
|
|
4906
5571
|
//# sourceMappingURL=index.d.mts.map
|