@techstuff-dev/foundation-api-utils 2.1.1 → 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/dist/cjs/chunks/{shared-DiVQNZtX.js → shared-DhKGyfxw.js} +3 -3
- package/dist/cjs/chunks/shared-DhKGyfxw.js.map +1 -0
- package/dist/cjs/chunks/{slice-CNrOPYxy.js → slice-CUaXwIIK.js} +703 -321
- package/dist/cjs/chunks/slice-CUaXwIIK.js.map +1 -0
- package/dist/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/store/index.native.js +4 -3
- package/dist/cjs/store/index.native.js.map +1 -1
- package/dist/cjs/store/index.web.js +4 -3
- package/dist/cjs/store/index.web.js.map +1 -1
- package/dist/esm/chunks/{shared-DCYTxNE2.js → shared-UVgGR-tG.js} +3 -3
- package/dist/esm/chunks/shared-UVgGR-tG.js.map +1 -0
- package/dist/esm/chunks/{slice-DpwJIX84.js → slice-B4QZ6txZ.js} +700 -322
- package/dist/esm/chunks/slice-B4QZ6txZ.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/store/index.native.js +4 -3
- package/dist/esm/store/index.native.js.map +1 -1
- package/dist/esm/store/index.web.js +4 -3
- package/dist/esm/store/index.web.js.map +1 -1
- package/dist/types/hooks/index.d.ts +2 -1
- package/dist/types/{index-CjCZfoRJ.d.ts → index-Cc1emcVx.d.ts} +699 -3
- package/dist/types/index.d.ts +2 -2
- package/dist/types/store/index.d.ts +2 -1
- package/package.json +3 -3
- package/dist/cjs/chunks/shared-DiVQNZtX.js.map +0 -1
- package/dist/cjs/chunks/slice-CNrOPYxy.js.map +0 -1
- package/dist/esm/chunks/shared-DCYTxNE2.js.map +0 -1
- package/dist/esm/chunks/slice-DpwJIX84.js.map +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
2
2
|
import { EnhancedStore } from '@reduxjs/toolkit';
|
|
3
3
|
import * as _reduxjs_toolkit_query from '@reduxjs/toolkit/query';
|
|
4
|
+
import { BaseQueryFn } from '@reduxjs/toolkit/query';
|
|
5
|
+
import * as _reduxjs_toolkit_query_react from '@reduxjs/toolkit/query/react';
|
|
4
6
|
|
|
5
7
|
type UsersState = {
|
|
6
8
|
verifying: boolean;
|
|
@@ -1232,6 +1234,655 @@ interface MediaItem {
|
|
|
1232
1234
|
hideThumbnailTitle?: string;
|
|
1233
1235
|
}
|
|
1234
1236
|
|
|
1237
|
+
interface Product {
|
|
1238
|
+
id: string;
|
|
1239
|
+
name: string;
|
|
1240
|
+
description?: string;
|
|
1241
|
+
price: number;
|
|
1242
|
+
currency: string;
|
|
1243
|
+
images: string[];
|
|
1244
|
+
metadata?: {
|
|
1245
|
+
partnerId?: string;
|
|
1246
|
+
category?: string;
|
|
1247
|
+
sizes?: string[];
|
|
1248
|
+
colors?: string[];
|
|
1249
|
+
[key: string]: any;
|
|
1250
|
+
};
|
|
1251
|
+
}
|
|
1252
|
+
interface ProductsResponse {
|
|
1253
|
+
products: Product[];
|
|
1254
|
+
}
|
|
1255
|
+
interface ProductPurchaseRequest {
|
|
1256
|
+
customerId: string;
|
|
1257
|
+
paymentMethod: string;
|
|
1258
|
+
productId: string;
|
|
1259
|
+
quantity: number;
|
|
1260
|
+
selectedVariants?: {
|
|
1261
|
+
size?: string;
|
|
1262
|
+
color?: string;
|
|
1263
|
+
[key: string]: any;
|
|
1264
|
+
};
|
|
1265
|
+
email: string;
|
|
1266
|
+
}
|
|
1267
|
+
interface ProductPurchaseResponse {
|
|
1268
|
+
data: {
|
|
1269
|
+
id: string;
|
|
1270
|
+
status: string;
|
|
1271
|
+
amount: number;
|
|
1272
|
+
currency: string;
|
|
1273
|
+
client_secret?: string;
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
declare const productsApi: _reduxjs_toolkit_query.Api<BaseQueryFn, {
|
|
1277
|
+
/**
|
|
1278
|
+
* Get all products
|
|
1279
|
+
* Optional partnerId parameter for filtering
|
|
1280
|
+
*/
|
|
1281
|
+
getProducts: _reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1282
|
+
partnerId?: string;
|
|
1283
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>;
|
|
1284
|
+
/**
|
|
1285
|
+
* Purchase a product
|
|
1286
|
+
*/
|
|
1287
|
+
purchaseProduct: _reduxjs_toolkit_query.MutationDefinition<ProductPurchaseRequest, BaseQueryFn, "Products" | "Product", ProductPurchaseResponse, "productsApi", unknown>;
|
|
1288
|
+
}, "productsApi", "Products" | "Product", typeof _reduxjs_toolkit_query.coreModuleName | typeof _reduxjs_toolkit_query_react.reactHooksModuleName>;
|
|
1289
|
+
declare const useGetProductsQuery: <R extends Record<string, any> = _reduxjs_toolkit_query.TSHelpersId<(Omit<{
|
|
1290
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
1291
|
+
originalArgs?: undefined | undefined;
|
|
1292
|
+
data?: undefined | undefined;
|
|
1293
|
+
error?: undefined | undefined;
|
|
1294
|
+
requestId?: undefined | undefined;
|
|
1295
|
+
endpointName?: string | undefined;
|
|
1296
|
+
startedTimeStamp?: undefined | undefined;
|
|
1297
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
1298
|
+
} & {
|
|
1299
|
+
currentData?: ProductsResponse | undefined;
|
|
1300
|
+
isUninitialized: false;
|
|
1301
|
+
isLoading: false;
|
|
1302
|
+
isFetching: false;
|
|
1303
|
+
isSuccess: false;
|
|
1304
|
+
isError: false;
|
|
1305
|
+
}, "isUninitialized"> & {
|
|
1306
|
+
isUninitialized: true;
|
|
1307
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1308
|
+
partnerId?: string;
|
|
1309
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1310
|
+
currentData?: ProductsResponse | undefined;
|
|
1311
|
+
isUninitialized: false;
|
|
1312
|
+
isLoading: false;
|
|
1313
|
+
isFetching: false;
|
|
1314
|
+
isSuccess: false;
|
|
1315
|
+
isError: false;
|
|
1316
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
1317
|
+
isLoading: true;
|
|
1318
|
+
isFetching: boolean;
|
|
1319
|
+
data: undefined;
|
|
1320
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1321
|
+
partnerId?: string;
|
|
1322
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1323
|
+
currentData?: ProductsResponse | undefined;
|
|
1324
|
+
isUninitialized: false;
|
|
1325
|
+
isLoading: false;
|
|
1326
|
+
isFetching: false;
|
|
1327
|
+
isSuccess: false;
|
|
1328
|
+
isError: false;
|
|
1329
|
+
}, "error" | "data" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
1330
|
+
isSuccess: true;
|
|
1331
|
+
isFetching: true;
|
|
1332
|
+
error: undefined;
|
|
1333
|
+
} & {
|
|
1334
|
+
data: ProductsResponse;
|
|
1335
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1336
|
+
partnerId?: string;
|
|
1337
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1338
|
+
currentData?: ProductsResponse | undefined;
|
|
1339
|
+
isUninitialized: false;
|
|
1340
|
+
isLoading: false;
|
|
1341
|
+
isFetching: false;
|
|
1342
|
+
isSuccess: false;
|
|
1343
|
+
isError: false;
|
|
1344
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1345
|
+
partnerId?: string;
|
|
1346
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1347
|
+
currentData?: ProductsResponse | undefined;
|
|
1348
|
+
isUninitialized: false;
|
|
1349
|
+
isLoading: false;
|
|
1350
|
+
isFetching: false;
|
|
1351
|
+
isSuccess: false;
|
|
1352
|
+
isError: false;
|
|
1353
|
+
}, "error" | "data" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
1354
|
+
isSuccess: true;
|
|
1355
|
+
isFetching: false;
|
|
1356
|
+
error: undefined;
|
|
1357
|
+
} & {
|
|
1358
|
+
data: ProductsResponse;
|
|
1359
|
+
currentData: ProductsResponse;
|
|
1360
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1361
|
+
partnerId?: string;
|
|
1362
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1363
|
+
currentData?: ProductsResponse | undefined;
|
|
1364
|
+
isUninitialized: false;
|
|
1365
|
+
isLoading: false;
|
|
1366
|
+
isFetching: false;
|
|
1367
|
+
isSuccess: false;
|
|
1368
|
+
isError: false;
|
|
1369
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1370
|
+
partnerId?: string;
|
|
1371
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1372
|
+
currentData?: ProductsResponse | undefined;
|
|
1373
|
+
isUninitialized: false;
|
|
1374
|
+
isLoading: false;
|
|
1375
|
+
isFetching: false;
|
|
1376
|
+
isSuccess: false;
|
|
1377
|
+
isError: false;
|
|
1378
|
+
}, "error" | "isError"> & {
|
|
1379
|
+
isError: true;
|
|
1380
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1381
|
+
partnerId?: string;
|
|
1382
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1383
|
+
currentData?: ProductsResponse | undefined;
|
|
1384
|
+
isUninitialized: false;
|
|
1385
|
+
isLoading: false;
|
|
1386
|
+
isFetching: false;
|
|
1387
|
+
isSuccess: false;
|
|
1388
|
+
isError: false;
|
|
1389
|
+
}, "error">>)> & {
|
|
1390
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
1391
|
+
}>(arg: void | {
|
|
1392
|
+
partnerId?: string;
|
|
1393
|
+
} | typeof _reduxjs_toolkit_query.skipToken, options?: (_reduxjs_toolkit_query.SubscriptionOptions & {
|
|
1394
|
+
skip?: boolean;
|
|
1395
|
+
refetchOnMountOrArgChange?: boolean | number;
|
|
1396
|
+
} & {
|
|
1397
|
+
skip?: boolean;
|
|
1398
|
+
selectFromResult?: ((state: _reduxjs_toolkit_query.TSHelpersId<(Omit<{
|
|
1399
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
1400
|
+
originalArgs?: undefined | undefined;
|
|
1401
|
+
data?: undefined | undefined;
|
|
1402
|
+
error?: undefined | undefined;
|
|
1403
|
+
requestId?: undefined | undefined;
|
|
1404
|
+
endpointName?: string | undefined;
|
|
1405
|
+
startedTimeStamp?: undefined | undefined;
|
|
1406
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
1407
|
+
} & {
|
|
1408
|
+
currentData?: ProductsResponse | undefined;
|
|
1409
|
+
isUninitialized: false;
|
|
1410
|
+
isLoading: false;
|
|
1411
|
+
isFetching: false;
|
|
1412
|
+
isSuccess: false;
|
|
1413
|
+
isError: false;
|
|
1414
|
+
}, "isUninitialized"> & {
|
|
1415
|
+
isUninitialized: true;
|
|
1416
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1417
|
+
partnerId?: string;
|
|
1418
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1419
|
+
currentData?: ProductsResponse | undefined;
|
|
1420
|
+
isUninitialized: false;
|
|
1421
|
+
isLoading: false;
|
|
1422
|
+
isFetching: false;
|
|
1423
|
+
isSuccess: false;
|
|
1424
|
+
isError: false;
|
|
1425
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
1426
|
+
isLoading: true;
|
|
1427
|
+
isFetching: boolean;
|
|
1428
|
+
data: undefined;
|
|
1429
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1430
|
+
partnerId?: string;
|
|
1431
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1432
|
+
currentData?: ProductsResponse | undefined;
|
|
1433
|
+
isUninitialized: false;
|
|
1434
|
+
isLoading: false;
|
|
1435
|
+
isFetching: false;
|
|
1436
|
+
isSuccess: false;
|
|
1437
|
+
isError: false;
|
|
1438
|
+
}, "error" | "data" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
1439
|
+
isSuccess: true;
|
|
1440
|
+
isFetching: true;
|
|
1441
|
+
error: undefined;
|
|
1442
|
+
} & {
|
|
1443
|
+
data: ProductsResponse;
|
|
1444
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1445
|
+
partnerId?: string;
|
|
1446
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1447
|
+
currentData?: ProductsResponse | undefined;
|
|
1448
|
+
isUninitialized: false;
|
|
1449
|
+
isLoading: false;
|
|
1450
|
+
isFetching: false;
|
|
1451
|
+
isSuccess: false;
|
|
1452
|
+
isError: false;
|
|
1453
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1454
|
+
partnerId?: string;
|
|
1455
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1456
|
+
currentData?: ProductsResponse | undefined;
|
|
1457
|
+
isUninitialized: false;
|
|
1458
|
+
isLoading: false;
|
|
1459
|
+
isFetching: false;
|
|
1460
|
+
isSuccess: false;
|
|
1461
|
+
isError: false;
|
|
1462
|
+
}, "error" | "data" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
1463
|
+
isSuccess: true;
|
|
1464
|
+
isFetching: false;
|
|
1465
|
+
error: undefined;
|
|
1466
|
+
} & {
|
|
1467
|
+
data: ProductsResponse;
|
|
1468
|
+
currentData: ProductsResponse;
|
|
1469
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1470
|
+
partnerId?: string;
|
|
1471
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1472
|
+
currentData?: ProductsResponse | undefined;
|
|
1473
|
+
isUninitialized: false;
|
|
1474
|
+
isLoading: false;
|
|
1475
|
+
isFetching: false;
|
|
1476
|
+
isSuccess: false;
|
|
1477
|
+
isError: false;
|
|
1478
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1479
|
+
partnerId?: string;
|
|
1480
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1481
|
+
currentData?: ProductsResponse | undefined;
|
|
1482
|
+
isUninitialized: false;
|
|
1483
|
+
isLoading: false;
|
|
1484
|
+
isFetching: false;
|
|
1485
|
+
isSuccess: false;
|
|
1486
|
+
isError: false;
|
|
1487
|
+
}, "error" | "isError"> & {
|
|
1488
|
+
isError: true;
|
|
1489
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1490
|
+
partnerId?: string;
|
|
1491
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1492
|
+
currentData?: ProductsResponse | undefined;
|
|
1493
|
+
isUninitialized: false;
|
|
1494
|
+
isLoading: false;
|
|
1495
|
+
isFetching: false;
|
|
1496
|
+
isSuccess: false;
|
|
1497
|
+
isError: false;
|
|
1498
|
+
}, "error">>)> & {
|
|
1499
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
1500
|
+
}) => R) | undefined;
|
|
1501
|
+
}) | undefined) => [R][R extends any ? 0 : never] & {
|
|
1502
|
+
refetch: () => _reduxjs_toolkit_query.QueryActionCreatorResult<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1503
|
+
partnerId?: string;
|
|
1504
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>>;
|
|
1505
|
+
};
|
|
1506
|
+
declare const useLazyGetProductsQuery: <R extends Record<string, any> = _reduxjs_toolkit_query.TSHelpersId<(Omit<{
|
|
1507
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
1508
|
+
originalArgs?: undefined | undefined;
|
|
1509
|
+
data?: undefined | undefined;
|
|
1510
|
+
error?: undefined | undefined;
|
|
1511
|
+
requestId?: undefined | undefined;
|
|
1512
|
+
endpointName?: string | undefined;
|
|
1513
|
+
startedTimeStamp?: undefined | undefined;
|
|
1514
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
1515
|
+
} & {
|
|
1516
|
+
currentData?: ProductsResponse | undefined;
|
|
1517
|
+
isUninitialized: false;
|
|
1518
|
+
isLoading: false;
|
|
1519
|
+
isFetching: false;
|
|
1520
|
+
isSuccess: false;
|
|
1521
|
+
isError: false;
|
|
1522
|
+
}, "isUninitialized"> & {
|
|
1523
|
+
isUninitialized: true;
|
|
1524
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1525
|
+
partnerId?: string;
|
|
1526
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1527
|
+
currentData?: ProductsResponse | undefined;
|
|
1528
|
+
isUninitialized: false;
|
|
1529
|
+
isLoading: false;
|
|
1530
|
+
isFetching: false;
|
|
1531
|
+
isSuccess: false;
|
|
1532
|
+
isError: false;
|
|
1533
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
1534
|
+
isLoading: true;
|
|
1535
|
+
isFetching: boolean;
|
|
1536
|
+
data: undefined;
|
|
1537
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1538
|
+
partnerId?: string;
|
|
1539
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1540
|
+
currentData?: ProductsResponse | undefined;
|
|
1541
|
+
isUninitialized: false;
|
|
1542
|
+
isLoading: false;
|
|
1543
|
+
isFetching: false;
|
|
1544
|
+
isSuccess: false;
|
|
1545
|
+
isError: false;
|
|
1546
|
+
}, "error" | "data" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
1547
|
+
isSuccess: true;
|
|
1548
|
+
isFetching: true;
|
|
1549
|
+
error: undefined;
|
|
1550
|
+
} & {
|
|
1551
|
+
data: ProductsResponse;
|
|
1552
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1553
|
+
partnerId?: string;
|
|
1554
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1555
|
+
currentData?: ProductsResponse | undefined;
|
|
1556
|
+
isUninitialized: false;
|
|
1557
|
+
isLoading: false;
|
|
1558
|
+
isFetching: false;
|
|
1559
|
+
isSuccess: false;
|
|
1560
|
+
isError: false;
|
|
1561
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1562
|
+
partnerId?: string;
|
|
1563
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1564
|
+
currentData?: ProductsResponse | undefined;
|
|
1565
|
+
isUninitialized: false;
|
|
1566
|
+
isLoading: false;
|
|
1567
|
+
isFetching: false;
|
|
1568
|
+
isSuccess: false;
|
|
1569
|
+
isError: false;
|
|
1570
|
+
}, "error" | "data" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
1571
|
+
isSuccess: true;
|
|
1572
|
+
isFetching: false;
|
|
1573
|
+
error: undefined;
|
|
1574
|
+
} & {
|
|
1575
|
+
data: ProductsResponse;
|
|
1576
|
+
currentData: ProductsResponse;
|
|
1577
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1578
|
+
partnerId?: string;
|
|
1579
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1580
|
+
currentData?: ProductsResponse | undefined;
|
|
1581
|
+
isUninitialized: false;
|
|
1582
|
+
isLoading: false;
|
|
1583
|
+
isFetching: false;
|
|
1584
|
+
isSuccess: false;
|
|
1585
|
+
isError: false;
|
|
1586
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1587
|
+
partnerId?: string;
|
|
1588
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1589
|
+
currentData?: ProductsResponse | undefined;
|
|
1590
|
+
isUninitialized: false;
|
|
1591
|
+
isLoading: false;
|
|
1592
|
+
isFetching: false;
|
|
1593
|
+
isSuccess: false;
|
|
1594
|
+
isError: false;
|
|
1595
|
+
}, "error" | "isError"> & {
|
|
1596
|
+
isError: true;
|
|
1597
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1598
|
+
partnerId?: string;
|
|
1599
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1600
|
+
currentData?: ProductsResponse | undefined;
|
|
1601
|
+
isUninitialized: false;
|
|
1602
|
+
isLoading: false;
|
|
1603
|
+
isFetching: false;
|
|
1604
|
+
isSuccess: false;
|
|
1605
|
+
isError: false;
|
|
1606
|
+
}, "error">>)> & {
|
|
1607
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
1608
|
+
}>(options?: (_reduxjs_toolkit_query.SubscriptionOptions & Omit<{
|
|
1609
|
+
skip?: boolean;
|
|
1610
|
+
selectFromResult?: ((state: _reduxjs_toolkit_query.TSHelpersId<(Omit<{
|
|
1611
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
1612
|
+
originalArgs?: undefined | undefined;
|
|
1613
|
+
data?: undefined | undefined;
|
|
1614
|
+
error?: undefined | undefined;
|
|
1615
|
+
requestId?: undefined | undefined;
|
|
1616
|
+
endpointName?: string | undefined;
|
|
1617
|
+
startedTimeStamp?: undefined | undefined;
|
|
1618
|
+
fulfilledTimeStamp?: undefined | undefined;
|
|
1619
|
+
} & {
|
|
1620
|
+
currentData?: ProductsResponse | undefined;
|
|
1621
|
+
isUninitialized: false;
|
|
1622
|
+
isLoading: false;
|
|
1623
|
+
isFetching: false;
|
|
1624
|
+
isSuccess: false;
|
|
1625
|
+
isError: false;
|
|
1626
|
+
}, "isUninitialized"> & {
|
|
1627
|
+
isUninitialized: true;
|
|
1628
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1629
|
+
partnerId?: string;
|
|
1630
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1631
|
+
currentData?: ProductsResponse | undefined;
|
|
1632
|
+
isUninitialized: false;
|
|
1633
|
+
isLoading: false;
|
|
1634
|
+
isFetching: false;
|
|
1635
|
+
isSuccess: false;
|
|
1636
|
+
isError: false;
|
|
1637
|
+
}, "data" | "isLoading" | "isFetching"> & {
|
|
1638
|
+
isLoading: true;
|
|
1639
|
+
isFetching: boolean;
|
|
1640
|
+
data: undefined;
|
|
1641
|
+
}) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1642
|
+
partnerId?: string;
|
|
1643
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1644
|
+
currentData?: ProductsResponse | undefined;
|
|
1645
|
+
isUninitialized: false;
|
|
1646
|
+
isLoading: false;
|
|
1647
|
+
isFetching: false;
|
|
1648
|
+
isSuccess: false;
|
|
1649
|
+
isError: false;
|
|
1650
|
+
}, "error" | "data" | "fulfilledTimeStamp" | "isFetching" | "isSuccess"> & {
|
|
1651
|
+
isSuccess: true;
|
|
1652
|
+
isFetching: true;
|
|
1653
|
+
error: undefined;
|
|
1654
|
+
} & {
|
|
1655
|
+
data: ProductsResponse;
|
|
1656
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1657
|
+
partnerId?: string;
|
|
1658
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1659
|
+
currentData?: ProductsResponse | undefined;
|
|
1660
|
+
isUninitialized: false;
|
|
1661
|
+
isLoading: false;
|
|
1662
|
+
isFetching: false;
|
|
1663
|
+
isSuccess: false;
|
|
1664
|
+
isError: false;
|
|
1665
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1666
|
+
partnerId?: string;
|
|
1667
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1668
|
+
currentData?: ProductsResponse | undefined;
|
|
1669
|
+
isUninitialized: false;
|
|
1670
|
+
isLoading: false;
|
|
1671
|
+
isFetching: false;
|
|
1672
|
+
isSuccess: false;
|
|
1673
|
+
isError: false;
|
|
1674
|
+
}, "error" | "data" | "fulfilledTimeStamp" | "currentData" | "isFetching" | "isSuccess"> & {
|
|
1675
|
+
isSuccess: true;
|
|
1676
|
+
isFetching: false;
|
|
1677
|
+
error: undefined;
|
|
1678
|
+
} & {
|
|
1679
|
+
data: ProductsResponse;
|
|
1680
|
+
currentData: ProductsResponse;
|
|
1681
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1682
|
+
partnerId?: string;
|
|
1683
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1684
|
+
currentData?: ProductsResponse | undefined;
|
|
1685
|
+
isUninitialized: false;
|
|
1686
|
+
isLoading: false;
|
|
1687
|
+
isFetching: false;
|
|
1688
|
+
isSuccess: false;
|
|
1689
|
+
isError: false;
|
|
1690
|
+
}, "fulfilledTimeStamp">>) | (Omit<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1691
|
+
partnerId?: string;
|
|
1692
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1693
|
+
currentData?: ProductsResponse | undefined;
|
|
1694
|
+
isUninitialized: false;
|
|
1695
|
+
isLoading: false;
|
|
1696
|
+
isFetching: false;
|
|
1697
|
+
isSuccess: false;
|
|
1698
|
+
isError: false;
|
|
1699
|
+
}, "error" | "isError"> & {
|
|
1700
|
+
isError: true;
|
|
1701
|
+
} & Required<Pick<_reduxjs_toolkit_query.QuerySubState<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1702
|
+
partnerId?: string;
|
|
1703
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>> & {
|
|
1704
|
+
currentData?: ProductsResponse | undefined;
|
|
1705
|
+
isUninitialized: false;
|
|
1706
|
+
isLoading: false;
|
|
1707
|
+
isFetching: false;
|
|
1708
|
+
isSuccess: false;
|
|
1709
|
+
isError: false;
|
|
1710
|
+
}, "error">>)> & {
|
|
1711
|
+
status: _reduxjs_toolkit_query.QueryStatus;
|
|
1712
|
+
}) => R) | undefined;
|
|
1713
|
+
}, "skip">) | undefined) => [(arg: void | {
|
|
1714
|
+
partnerId?: string;
|
|
1715
|
+
}, preferCacheValue?: boolean) => _reduxjs_toolkit_query.QueryActionCreatorResult<_reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1716
|
+
partnerId?: string;
|
|
1717
|
+
}, BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>>, [R][R extends any ? 0 : never] & {
|
|
1718
|
+
reset: () => void;
|
|
1719
|
+
}, {
|
|
1720
|
+
lastArg: void | {
|
|
1721
|
+
partnerId?: string;
|
|
1722
|
+
};
|
|
1723
|
+
}];
|
|
1724
|
+
declare const usePurchaseProductMutation: <R extends Record<string, any> = ({
|
|
1725
|
+
requestId?: undefined;
|
|
1726
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
1727
|
+
data?: undefined;
|
|
1728
|
+
error?: undefined;
|
|
1729
|
+
endpointName?: string;
|
|
1730
|
+
startedTimeStamp?: undefined;
|
|
1731
|
+
fulfilledTimeStamp?: undefined;
|
|
1732
|
+
} & {
|
|
1733
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
1734
|
+
isUninitialized: true;
|
|
1735
|
+
isLoading: false;
|
|
1736
|
+
isSuccess: false;
|
|
1737
|
+
isError: false;
|
|
1738
|
+
}) | ({
|
|
1739
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
1740
|
+
} & Omit<{
|
|
1741
|
+
requestId: string;
|
|
1742
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1743
|
+
error?: unknown;
|
|
1744
|
+
endpointName: string;
|
|
1745
|
+
startedTimeStamp: number;
|
|
1746
|
+
fulfilledTimeStamp?: number;
|
|
1747
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
1748
|
+
requestId: string;
|
|
1749
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1750
|
+
error?: unknown;
|
|
1751
|
+
endpointName: string;
|
|
1752
|
+
startedTimeStamp: number;
|
|
1753
|
+
fulfilledTimeStamp?: number;
|
|
1754
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
1755
|
+
error: undefined;
|
|
1756
|
+
} & {
|
|
1757
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
1758
|
+
isUninitialized: false;
|
|
1759
|
+
isLoading: false;
|
|
1760
|
+
isSuccess: true;
|
|
1761
|
+
isError: false;
|
|
1762
|
+
}) | ({
|
|
1763
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
1764
|
+
} & {
|
|
1765
|
+
requestId: string;
|
|
1766
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1767
|
+
error?: unknown;
|
|
1768
|
+
endpointName: string;
|
|
1769
|
+
startedTimeStamp: number;
|
|
1770
|
+
fulfilledTimeStamp?: number;
|
|
1771
|
+
} & {
|
|
1772
|
+
data?: undefined;
|
|
1773
|
+
} & {
|
|
1774
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
1775
|
+
isUninitialized: false;
|
|
1776
|
+
isLoading: true;
|
|
1777
|
+
isSuccess: false;
|
|
1778
|
+
isError: false;
|
|
1779
|
+
}) | ({
|
|
1780
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
1781
|
+
} & Omit<{
|
|
1782
|
+
requestId: string;
|
|
1783
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1784
|
+
error?: unknown;
|
|
1785
|
+
endpointName: string;
|
|
1786
|
+
startedTimeStamp: number;
|
|
1787
|
+
fulfilledTimeStamp?: number;
|
|
1788
|
+
}, "error"> & Required<Pick<{
|
|
1789
|
+
requestId: string;
|
|
1790
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1791
|
+
error?: unknown;
|
|
1792
|
+
endpointName: string;
|
|
1793
|
+
startedTimeStamp: number;
|
|
1794
|
+
fulfilledTimeStamp?: number;
|
|
1795
|
+
}, "error">> & {
|
|
1796
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
1797
|
+
isUninitialized: false;
|
|
1798
|
+
isLoading: false;
|
|
1799
|
+
isSuccess: false;
|
|
1800
|
+
isError: true;
|
|
1801
|
+
})>(options?: {
|
|
1802
|
+
selectFromResult?: ((state: ({
|
|
1803
|
+
requestId?: undefined;
|
|
1804
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
1805
|
+
data?: undefined;
|
|
1806
|
+
error?: undefined;
|
|
1807
|
+
endpointName?: string;
|
|
1808
|
+
startedTimeStamp?: undefined;
|
|
1809
|
+
fulfilledTimeStamp?: undefined;
|
|
1810
|
+
} & {
|
|
1811
|
+
status: _reduxjs_toolkit_query.QueryStatus.uninitialized;
|
|
1812
|
+
isUninitialized: true;
|
|
1813
|
+
isLoading: false;
|
|
1814
|
+
isSuccess: false;
|
|
1815
|
+
isError: false;
|
|
1816
|
+
}) | ({
|
|
1817
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
1818
|
+
} & Omit<{
|
|
1819
|
+
requestId: string;
|
|
1820
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1821
|
+
error?: unknown;
|
|
1822
|
+
endpointName: string;
|
|
1823
|
+
startedTimeStamp: number;
|
|
1824
|
+
fulfilledTimeStamp?: number;
|
|
1825
|
+
}, "data" | "fulfilledTimeStamp"> & Required<Pick<{
|
|
1826
|
+
requestId: string;
|
|
1827
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1828
|
+
error?: unknown;
|
|
1829
|
+
endpointName: string;
|
|
1830
|
+
startedTimeStamp: number;
|
|
1831
|
+
fulfilledTimeStamp?: number;
|
|
1832
|
+
}, "data" | "fulfilledTimeStamp">> & {
|
|
1833
|
+
error: undefined;
|
|
1834
|
+
} & {
|
|
1835
|
+
status: _reduxjs_toolkit_query.QueryStatus.fulfilled;
|
|
1836
|
+
isUninitialized: false;
|
|
1837
|
+
isLoading: false;
|
|
1838
|
+
isSuccess: true;
|
|
1839
|
+
isError: false;
|
|
1840
|
+
}) | ({
|
|
1841
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
1842
|
+
} & {
|
|
1843
|
+
requestId: string;
|
|
1844
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1845
|
+
error?: unknown;
|
|
1846
|
+
endpointName: string;
|
|
1847
|
+
startedTimeStamp: number;
|
|
1848
|
+
fulfilledTimeStamp?: number;
|
|
1849
|
+
} & {
|
|
1850
|
+
data?: undefined;
|
|
1851
|
+
} & {
|
|
1852
|
+
status: _reduxjs_toolkit_query.QueryStatus.pending;
|
|
1853
|
+
isUninitialized: false;
|
|
1854
|
+
isLoading: true;
|
|
1855
|
+
isSuccess: false;
|
|
1856
|
+
isError: false;
|
|
1857
|
+
}) | ({
|
|
1858
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
1859
|
+
} & Omit<{
|
|
1860
|
+
requestId: string;
|
|
1861
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1862
|
+
error?: unknown;
|
|
1863
|
+
endpointName: string;
|
|
1864
|
+
startedTimeStamp: number;
|
|
1865
|
+
fulfilledTimeStamp?: number;
|
|
1866
|
+
}, "error"> & Required<Pick<{
|
|
1867
|
+
requestId: string;
|
|
1868
|
+
data?: ProductPurchaseResponse | undefined;
|
|
1869
|
+
error?: unknown;
|
|
1870
|
+
endpointName: string;
|
|
1871
|
+
startedTimeStamp: number;
|
|
1872
|
+
fulfilledTimeStamp?: number;
|
|
1873
|
+
}, "error">> & {
|
|
1874
|
+
status: _reduxjs_toolkit_query.QueryStatus.rejected;
|
|
1875
|
+
isUninitialized: false;
|
|
1876
|
+
isLoading: false;
|
|
1877
|
+
isSuccess: false;
|
|
1878
|
+
isError: true;
|
|
1879
|
+
})) => R) | undefined;
|
|
1880
|
+
fixedCacheKey?: string;
|
|
1881
|
+
} | undefined) => readonly [(arg: ProductPurchaseRequest) => _reduxjs_toolkit_query.MutationActionCreatorResult<_reduxjs_toolkit_query.MutationDefinition<ProductPurchaseRequest, BaseQueryFn, "Products" | "Product", ProductPurchaseResponse, "productsApi", unknown>>, _reduxjs_toolkit_query.TSHelpersNoInfer<R> & {
|
|
1882
|
+
originalArgs?: ProductPurchaseRequest | undefined;
|
|
1883
|
+
reset: () => void;
|
|
1884
|
+
}];
|
|
1885
|
+
|
|
1235
1886
|
interface CartState {
|
|
1236
1887
|
addedItems: MediaEntity[];
|
|
1237
1888
|
netTotal: number;
|
|
@@ -1308,6 +1959,12 @@ declare const rootReducer: _reduxjs_toolkit.CombinedSliceReducer<{
|
|
|
1308
1959
|
getTaxRates: _reduxjs_toolkit_query.QueryDefinition<void, _reduxjs_toolkit_query.BaseQueryFn, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", any, "paymentApi", unknown>;
|
|
1309
1960
|
checkPromoCode: _reduxjs_toolkit_query.QueryDefinition<string, _reduxjs_toolkit_query.BaseQueryFn, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", any, "paymentApi", unknown>;
|
|
1310
1961
|
}, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", "paymentApi">;
|
|
1962
|
+
productsApi: _reduxjs_toolkit_query.CombinedState<{
|
|
1963
|
+
getProducts: _reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1964
|
+
partnerId?: string;
|
|
1965
|
+
}, _reduxjs_toolkit_query.BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>;
|
|
1966
|
+
purchaseProduct: _reduxjs_toolkit_query.MutationDefinition<ProductPurchaseRequest, _reduxjs_toolkit_query.BaseQueryFn, "Products" | "Product", ProductPurchaseResponse, "productsApi", unknown>;
|
|
1967
|
+
}, "Products" | "Product", "productsApi">;
|
|
1311
1968
|
ordersApi: _reduxjs_toolkit_query.CombinedState<{
|
|
1312
1969
|
fetchOrders: _reduxjs_toolkit_query.QueryDefinition<string[], _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "Orders", any, "ordersApi", unknown>;
|
|
1313
1970
|
}, "Orders", "ordersApi">;
|
|
@@ -1335,10 +1992,49 @@ declare const rootReducer: _reduxjs_toolkit.CombinedSliceReducer<{
|
|
|
1335
1992
|
getTaxRates: _reduxjs_toolkit_query.QueryDefinition<void, _reduxjs_toolkit_query.BaseQueryFn, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", any, "paymentApi", unknown>;
|
|
1336
1993
|
checkPromoCode: _reduxjs_toolkit_query.QueryDefinition<string, _reduxjs_toolkit_query.BaseQueryFn, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", any, "paymentApi", unknown>;
|
|
1337
1994
|
}, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", "paymentApi">;
|
|
1995
|
+
productsApi: _reduxjs_toolkit_query.CombinedState<{
|
|
1996
|
+
getProducts: _reduxjs_toolkit_query.QueryDefinition<void | {
|
|
1997
|
+
partnerId?: string;
|
|
1998
|
+
}, _reduxjs_toolkit_query.BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>;
|
|
1999
|
+
purchaseProduct: _reduxjs_toolkit_query.MutationDefinition<ProductPurchaseRequest, _reduxjs_toolkit_query.BaseQueryFn, "Products" | "Product", ProductPurchaseResponse, "productsApi", unknown>;
|
|
2000
|
+
}, "Products" | "Product", "productsApi">;
|
|
2001
|
+
ordersApi: _reduxjs_toolkit_query.CombinedState<{
|
|
2002
|
+
fetchOrders: _reduxjs_toolkit_query.QueryDefinition<string[], _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "Orders", any, "ordersApi", unknown>;
|
|
2003
|
+
}, "Orders", "ordersApi">;
|
|
2004
|
+
}, Partial<{
|
|
2005
|
+
"": CartState & AuthState;
|
|
2006
|
+
authApi: _reduxjs_toolkit_query.CombinedState<{
|
|
2007
|
+
resetPassword: _reduxjs_toolkit_query.MutationDefinition<ResetPasswordRequest, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", ResetPasswordResponse, "authApi", unknown>;
|
|
2008
|
+
resetPasswordAuth: _reduxjs_toolkit_query.MutationDefinition<ResetPasswordAuthRequest, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", ResetPasswordAuthResponse, "authApi", unknown>;
|
|
2009
|
+
forgottenPassword: _reduxjs_toolkit_query.MutationDefinition<ForgottenPasswordRequest, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", ForgottenPasswordResponse, "authApi", unknown>;
|
|
2010
|
+
register: _reduxjs_toolkit_query.MutationDefinition<RegisterRequest, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", RegisterResponse, "authApi", unknown>;
|
|
2011
|
+
verifyUser: _reduxjs_toolkit_query.QueryDefinition<VerifyUserRequest, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", any, "authApi", unknown>;
|
|
2012
|
+
verifyUserAttributes: _reduxjs_toolkit_query.QueryDefinition<VerifyUserAttributesRequest, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", VerifyUserAttributesResponse, "authApi", unknown>;
|
|
2013
|
+
verifyUserResend: _reduxjs_toolkit_query.QueryDefinition<VerifyUserResendRequest, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", VerifyUserAttributesResponse, "authApi", unknown>;
|
|
2014
|
+
getUserInfo: _reduxjs_toolkit_query.QueryDefinition<string | undefined, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", any, "authApi", unknown>;
|
|
2015
|
+
updateUserInfo: _reduxjs_toolkit_query.MutationDefinition<UpdateUserInfoRequest, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", any, "authApi", unknown>;
|
|
2016
|
+
updateUser: _reduxjs_toolkit_query.MutationDefinition<UpdateUserRequest, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "UserToken" | "UserData", any, "authApi", unknown>;
|
|
2017
|
+
}, "UserToken" | "UserData", "authApi">;
|
|
2018
|
+
contentApi: _reduxjs_toolkit_query.CombinedState<{
|
|
2019
|
+
getData: _reduxjs_toolkit_query.QueryDefinition<DataArgs, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Data" | "Workout", ESDataTypes, "contentApi", unknown>;
|
|
2020
|
+
getDataById: _reduxjs_toolkit_query.QueryDefinition<IdArg, _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError, {}, _reduxjs_toolkit_query.FetchBaseQueryMeta>, "Data" | "Workout", ESDataTypes, "contentApi", unknown>;
|
|
2021
|
+
}, "Data" | "Workout", "contentApi">;
|
|
2022
|
+
paymentApi: _reduxjs_toolkit_query.CombinedState<{
|
|
2023
|
+
checkUserSubscription: _reduxjs_toolkit_query.QueryDefinition<UserSubRequest, _reduxjs_toolkit_query.BaseQueryFn, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", UserSubResponse, "paymentApi", unknown>;
|
|
2024
|
+
getPaymentPlans: _reduxjs_toolkit_query.QueryDefinition<void, _reduxjs_toolkit_query.BaseQueryFn, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", PaymentPlansResponse, "paymentApi", unknown>;
|
|
2025
|
+
getTaxRates: _reduxjs_toolkit_query.QueryDefinition<void, _reduxjs_toolkit_query.BaseQueryFn, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", any, "paymentApi", unknown>;
|
|
2026
|
+
checkPromoCode: _reduxjs_toolkit_query.QueryDefinition<string, _reduxjs_toolkit_query.BaseQueryFn, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", any, "paymentApi", unknown>;
|
|
2027
|
+
}, "UserSubscription" | "Plans" | "TaxRates" | "PromoCodes", "paymentApi">;
|
|
2028
|
+
productsApi: _reduxjs_toolkit_query.CombinedState<{
|
|
2029
|
+
getProducts: _reduxjs_toolkit_query.QueryDefinition<void | {
|
|
2030
|
+
partnerId?: string;
|
|
2031
|
+
}, _reduxjs_toolkit_query.BaseQueryFn, "Products" | "Product", ProductsResponse, "productsApi", unknown>;
|
|
2032
|
+
purchaseProduct: _reduxjs_toolkit_query.MutationDefinition<ProductPurchaseRequest, _reduxjs_toolkit_query.BaseQueryFn, "Products" | "Product", ProductPurchaseResponse, "productsApi", unknown>;
|
|
2033
|
+
}, "Products" | "Product", "productsApi">;
|
|
1338
2034
|
ordersApi: _reduxjs_toolkit_query.CombinedState<{
|
|
1339
2035
|
fetchOrders: _reduxjs_toolkit_query.QueryDefinition<string[], _reduxjs_toolkit_query.BaseQueryFn<string | _reduxjs_toolkit_query.FetchArgs, unknown, _reduxjs_toolkit_query.FetchBaseQueryError>, "Orders", any, "ordersApi", unknown>;
|
|
1340
2036
|
}, "Orders", "ordersApi">;
|
|
1341
|
-
}
|
|
2037
|
+
}>>;
|
|
1342
2038
|
|
|
1343
2039
|
type RootState = ReturnType<typeof rootReducer>;
|
|
1344
2040
|
|
|
@@ -1347,5 +2043,5 @@ declare const store: EnhancedStore<RootState>;
|
|
|
1347
2043
|
type AppStore = ReturnType<typeof makeStore>;
|
|
1348
2044
|
type AppDispatch = AppStore['dispatch'];
|
|
1349
2045
|
|
|
1350
|
-
export { makeStore as
|
|
1351
|
-
export type { ESSectionItem as $, AuthState as A, ESSection as B, CartState as C, DataArgs as D, ESDataTypes as E, ForgottenPasswordRequest as F, ESSchedule as G, Schedule as H, IdArg as I, ESChallenge as J, Challenge as K, ESChallengeDay as L, MediaEntity as M, ChallengeDay as N, User as O, PaymentPlansResponse as P, FederatedSession as Q, ResetPasswordRequest as R, Section as S, SocialTokens as T, UpdateUserInfoRequest as U, VerifyUserRequest as V, Workout as W, ESConfig as X, Config as Y, ESSectionPanel as Z, SectionPanel as _, ResetPasswordResponse as a, SectionItem as a0, ESTaxonomy as a1, Taxonomy as a2, ESSeries as a3, Series as a4, ESSeason as a5, Season as a6, ESLongform as a7, LongForm as a8, ESMediaItem as a9,
|
|
2046
|
+
export { productsApi as ab, useGetProductsQuery as ag, useLazyGetProductsQuery as ah, usePurchaseProductMutation as ai, makeStore as ak, store as al };
|
|
2047
|
+
export type { ESSectionItem as $, AuthState as A, ESSection as B, CartState as C, DataArgs as D, ESDataTypes as E, ForgottenPasswordRequest as F, ESSchedule as G, Schedule as H, IdArg as I, ESChallenge as J, Challenge as K, ESChallengeDay as L, MediaEntity as M, ChallengeDay as N, User as O, PaymentPlansResponse as P, FederatedSession as Q, ResetPasswordRequest as R, Section as S, SocialTokens as T, UpdateUserInfoRequest as U, VerifyUserRequest as V, Workout as W, ESConfig as X, Config as Y, ESSectionPanel as Z, SectionPanel as _, ResetPasswordResponse as a, SectionItem as a0, ESTaxonomy as a1, Taxonomy as a2, ESSeries as a3, Series as a4, ESSeason as a5, Season as a6, ESLongform as a7, LongForm as a8, ESMediaItem as a9, UpdateUserResponse as aA, FormattedPayment as aB, PaymentResponse as aC, DecodedIdToken as aD, Plan as aE, VideoSource as aF, S3Image as aG, ESLongForm as aH, ESWorkoutResponse as aI, ESDataResponse as aJ, MediaItem as aa, Product as ac, ProductsResponse as ad, ProductPurchaseRequest as ae, ProductPurchaseResponse as af, RootState as aj, AppStore as am, AppDispatch as an, UsersState as ao, UserCreating as ap, Info as aq, UserVerify as ar, ApiError as as, VerifyUserResponse as at, LoginRequest as au, LoginResponse as av, RefreshRequest as aw, RefreshResponse as ax, LogoutResponse as ay, PaymentTokenRequest as az, ResetPasswordAuthRequest as b, ResetPasswordAuthResponse as c, ForgottenPasswordResponse as d, RegisterRequest as e, RegisterResponse as f, VerifyUserAttributesRequest as g, VerifyUserAttributesResponse as h, VerifyUserResendRequest as i, UpdateUserRequest as j, UserDetails as k, UserSubRequest as l, UserSubResponse as m, UserPayload as n, ESPromo as o, Promo as p, ESWorkout as q, ESShortform as r, ESFaq as s, ESPage as t, Page as u, ESSetting as v, ESPress as w, ESGuest as x, ESVideo as y, Video as z };
|