@instockng/api-client 1.0.20 → 1.0.22
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/backend-types.d.ts +1 -1
- package/dist/fetchers/carts.d.ts +10 -0
- package/dist/fetchers/orders.d.ts +197 -0
- package/dist/fetchers/orders.js +20 -0
- package/dist/fetchers/products.d.ts +10 -0
- package/dist/fetchers/products.js +18 -0
- package/dist/hooks/admin/abandoned-carts.d.ts +2 -0
- package/dist/hooks/admin/customers.d.ts +1 -0
- package/dist/hooks/admin/orders.d.ts +6 -0
- package/dist/hooks/admin/products.d.ts +4 -0
- package/dist/hooks/admin/products.js +33 -0
- package/dist/hooks/admin/stats.d.ts +1 -0
- package/dist/hooks/admin/variants.d.ts +5 -0
- package/dist/hooks/admin/warehouses.d.ts +1 -0
- package/dist/hooks/public/carts.d.ts +10 -0
- package/dist/hooks/public/orders.d.ts +204 -1
- package/dist/hooks/public/orders.js +23 -1
- package/dist/hooks/public/products.d.ts +10 -1
- package/dist/hooks/public/products.js +14 -1
- package/dist/rpc-client.d.ts +559 -14
- package/dist/rpc-client.js +2 -0
- package/dist/utils/query-keys.d.ts +3 -0
- package/dist/utils/query-keys.js +5 -0
- package/package.json +8 -9
package/dist/rpc-client.d.ts
CHANGED
|
@@ -252,6 +252,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
252
252
|
thumbnailUrl: string | null;
|
|
253
253
|
productId: string;
|
|
254
254
|
sku: string;
|
|
255
|
+
compareAtPrice: string;
|
|
255
256
|
trackInventory: boolean;
|
|
256
257
|
lowStockThreshold: number | null;
|
|
257
258
|
};
|
|
@@ -536,6 +537,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
536
537
|
thumbnailUrl: string | null;
|
|
537
538
|
productId: string;
|
|
538
539
|
sku: string;
|
|
540
|
+
compareAtPrice: string;
|
|
539
541
|
trackInventory: boolean;
|
|
540
542
|
lowStockThreshold: number | null;
|
|
541
543
|
};
|
|
@@ -808,6 +810,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
808
810
|
thumbnailUrl: string | null;
|
|
809
811
|
productId: string;
|
|
810
812
|
sku: string;
|
|
813
|
+
compareAtPrice: string;
|
|
811
814
|
trackInventory: boolean;
|
|
812
815
|
lowStockThreshold: number | null;
|
|
813
816
|
};
|
|
@@ -1097,6 +1100,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
1097
1100
|
thumbnailUrl: string | null;
|
|
1098
1101
|
productId: string;
|
|
1099
1102
|
sku: string;
|
|
1103
|
+
compareAtPrice: string;
|
|
1100
1104
|
trackInventory: boolean;
|
|
1101
1105
|
lowStockThreshold: number | null;
|
|
1102
1106
|
};
|
|
@@ -1387,6 +1391,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
1387
1391
|
thumbnailUrl: string | null;
|
|
1388
1392
|
productId: string;
|
|
1389
1393
|
sku: string;
|
|
1394
|
+
compareAtPrice: string;
|
|
1390
1395
|
trackInventory: boolean;
|
|
1391
1396
|
lowStockThreshold: number | null;
|
|
1392
1397
|
};
|
|
@@ -1677,6 +1682,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
1677
1682
|
thumbnailUrl: string | null;
|
|
1678
1683
|
productId: string;
|
|
1679
1684
|
sku: string;
|
|
1685
|
+
compareAtPrice: string;
|
|
1680
1686
|
trackInventory: boolean;
|
|
1681
1687
|
lowStockThreshold: number | null;
|
|
1682
1688
|
};
|
|
@@ -1970,6 +1976,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
1970
1976
|
thumbnailUrl: string | null;
|
|
1971
1977
|
productId: string;
|
|
1972
1978
|
sku: string;
|
|
1979
|
+
compareAtPrice: string;
|
|
1973
1980
|
trackInventory: boolean;
|
|
1974
1981
|
lowStockThreshold: number | null;
|
|
1975
1982
|
};
|
|
@@ -2278,6 +2285,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
2278
2285
|
thumbnailUrl: string | null;
|
|
2279
2286
|
productId: string;
|
|
2280
2287
|
sku: string;
|
|
2288
|
+
compareAtPrice: string;
|
|
2281
2289
|
trackInventory: boolean;
|
|
2282
2290
|
lowStockThreshold: number | null;
|
|
2283
2291
|
};
|
|
@@ -2391,6 +2399,278 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
2391
2399
|
};
|
|
2392
2400
|
outputFormat: "json";
|
|
2393
2401
|
status: 410;
|
|
2402
|
+
} | {
|
|
2403
|
+
input: {
|
|
2404
|
+
param: {
|
|
2405
|
+
id: string;
|
|
2406
|
+
};
|
|
2407
|
+
};
|
|
2408
|
+
output: {
|
|
2409
|
+
subtotal: number;
|
|
2410
|
+
deliveryCharge: number;
|
|
2411
|
+
totalPrice: number;
|
|
2412
|
+
discountAmount: number;
|
|
2413
|
+
createdAt: string;
|
|
2414
|
+
updatedAt: string;
|
|
2415
|
+
deletedAt: string;
|
|
2416
|
+
prospectSince: string;
|
|
2417
|
+
lastRecoveryAttemptAt: string;
|
|
2418
|
+
brand: {
|
|
2419
|
+
createdAt: string;
|
|
2420
|
+
updatedAt: string;
|
|
2421
|
+
deletedAt: string;
|
|
2422
|
+
id: string;
|
|
2423
|
+
name: string;
|
|
2424
|
+
slug: string;
|
|
2425
|
+
logoUrl: string | null;
|
|
2426
|
+
siteUrl: string;
|
|
2427
|
+
domain: string;
|
|
2428
|
+
metaPixelId: string | null;
|
|
2429
|
+
tiktokPixelId: string | null;
|
|
2430
|
+
paystackPublicKey: string | null;
|
|
2431
|
+
paystackSecretKey: string | null;
|
|
2432
|
+
};
|
|
2433
|
+
deliveryZone: {
|
|
2434
|
+
deliveryCost: number;
|
|
2435
|
+
freeShippingThreshold: number;
|
|
2436
|
+
createdAt: string;
|
|
2437
|
+
updatedAt: string;
|
|
2438
|
+
deletedAt: string;
|
|
2439
|
+
state: {
|
|
2440
|
+
createdAt: string;
|
|
2441
|
+
updatedAt: string;
|
|
2442
|
+
deletedAt: string;
|
|
2443
|
+
id: string;
|
|
2444
|
+
name: string;
|
|
2445
|
+
isActive: boolean;
|
|
2446
|
+
};
|
|
2447
|
+
id: string;
|
|
2448
|
+
name: string;
|
|
2449
|
+
brandId: string | null;
|
|
2450
|
+
stateId: string;
|
|
2451
|
+
allowCOD: boolean;
|
|
2452
|
+
allowOnline: boolean;
|
|
2453
|
+
waybillOnly: boolean;
|
|
2454
|
+
estimatedDays: number | null;
|
|
2455
|
+
noteTitle: string | null;
|
|
2456
|
+
noteContent: string | null;
|
|
2457
|
+
isActive: boolean;
|
|
2458
|
+
};
|
|
2459
|
+
items: {
|
|
2460
|
+
priceAtPurchase: number;
|
|
2461
|
+
variant: {
|
|
2462
|
+
price: number;
|
|
2463
|
+
createdAt: string;
|
|
2464
|
+
updatedAt: string;
|
|
2465
|
+
deletedAt: string;
|
|
2466
|
+
product: {
|
|
2467
|
+
createdAt: string;
|
|
2468
|
+
updatedAt: string;
|
|
2469
|
+
deletedAt: string;
|
|
2470
|
+
id: string;
|
|
2471
|
+
name: string;
|
|
2472
|
+
slug: string;
|
|
2473
|
+
brandId: string;
|
|
2474
|
+
isActive: boolean;
|
|
2475
|
+
description: string | null;
|
|
2476
|
+
thumbnailUrl: string | null;
|
|
2477
|
+
quantityDiscounts: string | number | boolean | {
|
|
2478
|
+
[x: string]: string | number | boolean | /*elided*/ any | {
|
|
2479
|
+
[x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any;
|
|
2480
|
+
length: number;
|
|
2481
|
+
toString: never;
|
|
2482
|
+
toLocaleString: never;
|
|
2483
|
+
pop: never;
|
|
2484
|
+
push: never;
|
|
2485
|
+
concat: never;
|
|
2486
|
+
join: never;
|
|
2487
|
+
reverse: never;
|
|
2488
|
+
shift: never;
|
|
2489
|
+
slice: never;
|
|
2490
|
+
sort: never;
|
|
2491
|
+
splice: never;
|
|
2492
|
+
unshift: never;
|
|
2493
|
+
indexOf: never;
|
|
2494
|
+
lastIndexOf: never;
|
|
2495
|
+
every: never;
|
|
2496
|
+
some: never;
|
|
2497
|
+
forEach: never;
|
|
2498
|
+
map: never;
|
|
2499
|
+
filter: never;
|
|
2500
|
+
reduce: never;
|
|
2501
|
+
reduceRight: never;
|
|
2502
|
+
find: never;
|
|
2503
|
+
findIndex: never;
|
|
2504
|
+
fill: never;
|
|
2505
|
+
copyWithin: never;
|
|
2506
|
+
entries: never;
|
|
2507
|
+
keys: never;
|
|
2508
|
+
values: never;
|
|
2509
|
+
includes: never;
|
|
2510
|
+
flatMap: never;
|
|
2511
|
+
flat: never;
|
|
2512
|
+
[Symbol.iterator]: never;
|
|
2513
|
+
readonly [Symbol.unscopables]: {
|
|
2514
|
+
[x: number]: boolean;
|
|
2515
|
+
length?: boolean;
|
|
2516
|
+
toString?: boolean;
|
|
2517
|
+
toLocaleString?: boolean;
|
|
2518
|
+
pop?: boolean;
|
|
2519
|
+
push?: boolean;
|
|
2520
|
+
concat?: boolean;
|
|
2521
|
+
join?: boolean;
|
|
2522
|
+
reverse?: boolean;
|
|
2523
|
+
shift?: boolean;
|
|
2524
|
+
slice?: boolean;
|
|
2525
|
+
sort?: boolean;
|
|
2526
|
+
splice?: boolean;
|
|
2527
|
+
unshift?: boolean;
|
|
2528
|
+
indexOf?: boolean;
|
|
2529
|
+
lastIndexOf?: boolean;
|
|
2530
|
+
every?: boolean;
|
|
2531
|
+
some?: boolean;
|
|
2532
|
+
forEach?: boolean;
|
|
2533
|
+
map?: boolean;
|
|
2534
|
+
filter?: boolean;
|
|
2535
|
+
reduce?: boolean;
|
|
2536
|
+
reduceRight?: boolean;
|
|
2537
|
+
find?: boolean;
|
|
2538
|
+
findIndex?: boolean;
|
|
2539
|
+
fill?: boolean;
|
|
2540
|
+
copyWithin?: boolean;
|
|
2541
|
+
entries?: boolean;
|
|
2542
|
+
keys?: boolean;
|
|
2543
|
+
values?: boolean;
|
|
2544
|
+
includes?: boolean;
|
|
2545
|
+
flatMap?: boolean;
|
|
2546
|
+
flat?: boolean;
|
|
2547
|
+
};
|
|
2548
|
+
};
|
|
2549
|
+
} | {
|
|
2550
|
+
[x: number]: string | number | boolean | {
|
|
2551
|
+
[x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any;
|
|
2552
|
+
} | /*elided*/ any;
|
|
2553
|
+
length: number;
|
|
2554
|
+
toString: never;
|
|
2555
|
+
toLocaleString: never;
|
|
2556
|
+
pop: never;
|
|
2557
|
+
push: never;
|
|
2558
|
+
concat: never;
|
|
2559
|
+
join: never;
|
|
2560
|
+
reverse: never;
|
|
2561
|
+
shift: never;
|
|
2562
|
+
slice: never;
|
|
2563
|
+
sort: never;
|
|
2564
|
+
splice: never;
|
|
2565
|
+
unshift: never;
|
|
2566
|
+
indexOf: never;
|
|
2567
|
+
lastIndexOf: never;
|
|
2568
|
+
every: never;
|
|
2569
|
+
some: never;
|
|
2570
|
+
forEach: never;
|
|
2571
|
+
map: never;
|
|
2572
|
+
filter: never;
|
|
2573
|
+
reduce: never;
|
|
2574
|
+
reduceRight: never;
|
|
2575
|
+
find: never;
|
|
2576
|
+
findIndex: never;
|
|
2577
|
+
fill: never;
|
|
2578
|
+
copyWithin: never;
|
|
2579
|
+
entries: never;
|
|
2580
|
+
keys: never;
|
|
2581
|
+
values: never;
|
|
2582
|
+
includes: never;
|
|
2583
|
+
flatMap: never;
|
|
2584
|
+
flat: never;
|
|
2585
|
+
[Symbol.iterator]: never;
|
|
2586
|
+
readonly [Symbol.unscopables]: {
|
|
2587
|
+
[x: number]: boolean;
|
|
2588
|
+
length?: boolean;
|
|
2589
|
+
toString?: boolean;
|
|
2590
|
+
toLocaleString?: boolean;
|
|
2591
|
+
pop?: boolean;
|
|
2592
|
+
push?: boolean;
|
|
2593
|
+
concat?: boolean;
|
|
2594
|
+
join?: boolean;
|
|
2595
|
+
reverse?: boolean;
|
|
2596
|
+
shift?: boolean;
|
|
2597
|
+
slice?: boolean;
|
|
2598
|
+
sort?: boolean;
|
|
2599
|
+
splice?: boolean;
|
|
2600
|
+
unshift?: boolean;
|
|
2601
|
+
indexOf?: boolean;
|
|
2602
|
+
lastIndexOf?: boolean;
|
|
2603
|
+
every?: boolean;
|
|
2604
|
+
some?: boolean;
|
|
2605
|
+
forEach?: boolean;
|
|
2606
|
+
map?: boolean;
|
|
2607
|
+
filter?: boolean;
|
|
2608
|
+
reduce?: boolean;
|
|
2609
|
+
reduceRight?: boolean;
|
|
2610
|
+
find?: boolean;
|
|
2611
|
+
findIndex?: boolean;
|
|
2612
|
+
fill?: boolean;
|
|
2613
|
+
copyWithin?: boolean;
|
|
2614
|
+
entries?: boolean;
|
|
2615
|
+
keys?: boolean;
|
|
2616
|
+
values?: boolean;
|
|
2617
|
+
includes?: boolean;
|
|
2618
|
+
flatMap?: boolean;
|
|
2619
|
+
flat?: boolean;
|
|
2620
|
+
};
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
id: string;
|
|
2624
|
+
name: string | null;
|
|
2625
|
+
isActive: boolean;
|
|
2626
|
+
thumbnailUrl: string | null;
|
|
2627
|
+
productId: string;
|
|
2628
|
+
sku: string;
|
|
2629
|
+
compareAtPrice: string;
|
|
2630
|
+
trackInventory: boolean;
|
|
2631
|
+
lowStockThreshold: number | null;
|
|
2632
|
+
};
|
|
2633
|
+
warehouse: {
|
|
2634
|
+
createdAt: string;
|
|
2635
|
+
updatedAt: string;
|
|
2636
|
+
deletedAt: string;
|
|
2637
|
+
id: string;
|
|
2638
|
+
name: string;
|
|
2639
|
+
isActive: boolean;
|
|
2640
|
+
address: string | null;
|
|
2641
|
+
city: string | null;
|
|
2642
|
+
state: string | null;
|
|
2643
|
+
};
|
|
2644
|
+
id: string;
|
|
2645
|
+
orderId: string;
|
|
2646
|
+
variantId: string;
|
|
2647
|
+
warehouseId: string | null;
|
|
2648
|
+
quantity: number;
|
|
2649
|
+
}[];
|
|
2650
|
+
email: string | null;
|
|
2651
|
+
id: string;
|
|
2652
|
+
brandId: string;
|
|
2653
|
+
deliveryZoneId: string;
|
|
2654
|
+
recoveryAttempts: number;
|
|
2655
|
+
recoveryDiscountCodeId: string | null;
|
|
2656
|
+
wasRecovered: boolean;
|
|
2657
|
+
estimatedDays: number | null;
|
|
2658
|
+
orderNumber: number;
|
|
2659
|
+
firstName: string;
|
|
2660
|
+
lastName: string;
|
|
2661
|
+
phone: string;
|
|
2662
|
+
address: string;
|
|
2663
|
+
city: string;
|
|
2664
|
+
discountCodeId: string | null;
|
|
2665
|
+
paymentMethod: import("@prisma/client").$Enums.PaymentMethod;
|
|
2666
|
+
paystackReference: string | null;
|
|
2667
|
+
status: import("@prisma/client").$Enums.OrderStatus;
|
|
2668
|
+
cancellationReason: string | null;
|
|
2669
|
+
prospectReason: import("@prisma/client").$Enums.ProspectReason | null;
|
|
2670
|
+
userActionToken: string;
|
|
2671
|
+
};
|
|
2672
|
+
outputFormat: "json";
|
|
2673
|
+
status: 200;
|
|
2394
2674
|
} | {
|
|
2395
2675
|
input: {
|
|
2396
2676
|
param: {
|
|
@@ -2646,6 +2926,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
2646
2926
|
thumbnailUrl: string | null;
|
|
2647
2927
|
productId: string;
|
|
2648
2928
|
sku: string;
|
|
2929
|
+
compareAtPrice: string;
|
|
2649
2930
|
trackInventory: boolean;
|
|
2650
2931
|
lowStockThreshold: number | null;
|
|
2651
2932
|
};
|
|
@@ -2736,6 +3017,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
2736
3017
|
createdAt: string;
|
|
2737
3018
|
updatedAt: string;
|
|
2738
3019
|
price: number;
|
|
3020
|
+
compareAtPrice: number;
|
|
2739
3021
|
deletedAt: string;
|
|
2740
3022
|
id: string;
|
|
2741
3023
|
name: string | null;
|
|
@@ -3186,6 +3468,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
3186
3468
|
thumbnailUrl: string | null;
|
|
3187
3469
|
productId: string;
|
|
3188
3470
|
sku: string;
|
|
3471
|
+
compareAtPrice: string;
|
|
3189
3472
|
trackInventory: boolean;
|
|
3190
3473
|
lowStockThreshold: number | null;
|
|
3191
3474
|
};
|
|
@@ -3494,6 +3777,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
3494
3777
|
thumbnailUrl: string | null;
|
|
3495
3778
|
productId: string;
|
|
3496
3779
|
sku: string;
|
|
3780
|
+
compareAtPrice: string;
|
|
3497
3781
|
trackInventory: boolean;
|
|
3498
3782
|
lowStockThreshold: number | null;
|
|
3499
3783
|
};
|
|
@@ -3550,6 +3834,243 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
3550
3834
|
status: 500;
|
|
3551
3835
|
};
|
|
3552
3836
|
}>;
|
|
3837
|
+
} & {
|
|
3838
|
+
":id": {
|
|
3839
|
+
":token": {
|
|
3840
|
+
recommendations: import("hono/client").ClientRequest<{
|
|
3841
|
+
$get: {
|
|
3842
|
+
input: {
|
|
3843
|
+
param: {
|
|
3844
|
+
id: string;
|
|
3845
|
+
} & {
|
|
3846
|
+
token: string;
|
|
3847
|
+
};
|
|
3848
|
+
};
|
|
3849
|
+
output: {
|
|
3850
|
+
error: {
|
|
3851
|
+
code: string;
|
|
3852
|
+
message: string;
|
|
3853
|
+
};
|
|
3854
|
+
};
|
|
3855
|
+
outputFormat: "json";
|
|
3856
|
+
status: 404;
|
|
3857
|
+
} | {
|
|
3858
|
+
input: {
|
|
3859
|
+
param: {
|
|
3860
|
+
id: string;
|
|
3861
|
+
} & {
|
|
3862
|
+
token: string;
|
|
3863
|
+
};
|
|
3864
|
+
};
|
|
3865
|
+
output: {
|
|
3866
|
+
brand: {
|
|
3867
|
+
createdAt: string;
|
|
3868
|
+
updatedAt: string;
|
|
3869
|
+
deletedAt: string;
|
|
3870
|
+
id: string;
|
|
3871
|
+
name: string;
|
|
3872
|
+
slug: string;
|
|
3873
|
+
logoUrl: string | null;
|
|
3874
|
+
siteUrl: string;
|
|
3875
|
+
domain: string;
|
|
3876
|
+
metaPixelId: string | null;
|
|
3877
|
+
tiktokPixelId: string | null;
|
|
3878
|
+
paystackPublicKey: string | null;
|
|
3879
|
+
paystackSecretKey: string | null;
|
|
3880
|
+
};
|
|
3881
|
+
variants: {
|
|
3882
|
+
createdAt: string;
|
|
3883
|
+
updatedAt: string;
|
|
3884
|
+
price: number;
|
|
3885
|
+
compareAtPrice: number;
|
|
3886
|
+
deletedAt: string;
|
|
3887
|
+
id: string;
|
|
3888
|
+
name: string | null;
|
|
3889
|
+
isActive: boolean;
|
|
3890
|
+
thumbnailUrl: string | null;
|
|
3891
|
+
productId: string;
|
|
3892
|
+
sku: string;
|
|
3893
|
+
trackInventory: boolean;
|
|
3894
|
+
lowStockThreshold: number | null;
|
|
3895
|
+
}[];
|
|
3896
|
+
id: string;
|
|
3897
|
+
name: string;
|
|
3898
|
+
slug: string;
|
|
3899
|
+
createdAt: string;
|
|
3900
|
+
updatedAt: string;
|
|
3901
|
+
deletedAt: string;
|
|
3902
|
+
brandId: string;
|
|
3903
|
+
isActive: boolean;
|
|
3904
|
+
description: string | null;
|
|
3905
|
+
thumbnailUrl: string | null;
|
|
3906
|
+
quantityDiscounts: string | number | boolean | {
|
|
3907
|
+
[x: string]: string | number | boolean | /*elided*/ any | {
|
|
3908
|
+
[x: number]: string | number | boolean | /*elided*/ any | /*elided*/ any;
|
|
3909
|
+
length: number;
|
|
3910
|
+
toString: never;
|
|
3911
|
+
toLocaleString: never;
|
|
3912
|
+
pop: never;
|
|
3913
|
+
push: never;
|
|
3914
|
+
concat: never;
|
|
3915
|
+
join: never;
|
|
3916
|
+
reverse: never;
|
|
3917
|
+
shift: never;
|
|
3918
|
+
slice: never;
|
|
3919
|
+
sort: never;
|
|
3920
|
+
splice: never;
|
|
3921
|
+
unshift: never;
|
|
3922
|
+
indexOf: never;
|
|
3923
|
+
lastIndexOf: never;
|
|
3924
|
+
every: never;
|
|
3925
|
+
some: never;
|
|
3926
|
+
forEach: never;
|
|
3927
|
+
map: never;
|
|
3928
|
+
filter: never;
|
|
3929
|
+
reduce: never;
|
|
3930
|
+
reduceRight: never;
|
|
3931
|
+
find: never;
|
|
3932
|
+
findIndex: never;
|
|
3933
|
+
fill: never;
|
|
3934
|
+
copyWithin: never;
|
|
3935
|
+
entries: never;
|
|
3936
|
+
keys: never;
|
|
3937
|
+
values: never;
|
|
3938
|
+
includes: never;
|
|
3939
|
+
flatMap: never;
|
|
3940
|
+
flat: never;
|
|
3941
|
+
[Symbol.iterator]: never;
|
|
3942
|
+
readonly [Symbol.unscopables]: {
|
|
3943
|
+
[x: number]: boolean;
|
|
3944
|
+
length?: boolean;
|
|
3945
|
+
toString?: boolean;
|
|
3946
|
+
toLocaleString?: boolean;
|
|
3947
|
+
pop?: boolean;
|
|
3948
|
+
push?: boolean;
|
|
3949
|
+
concat?: boolean;
|
|
3950
|
+
join?: boolean;
|
|
3951
|
+
reverse?: boolean;
|
|
3952
|
+
shift?: boolean;
|
|
3953
|
+
slice?: boolean;
|
|
3954
|
+
sort?: boolean;
|
|
3955
|
+
splice?: boolean;
|
|
3956
|
+
unshift?: boolean;
|
|
3957
|
+
indexOf?: boolean;
|
|
3958
|
+
lastIndexOf?: boolean;
|
|
3959
|
+
every?: boolean;
|
|
3960
|
+
some?: boolean;
|
|
3961
|
+
forEach?: boolean;
|
|
3962
|
+
map?: boolean;
|
|
3963
|
+
filter?: boolean;
|
|
3964
|
+
reduce?: boolean;
|
|
3965
|
+
reduceRight?: boolean;
|
|
3966
|
+
find?: boolean;
|
|
3967
|
+
findIndex?: boolean;
|
|
3968
|
+
fill?: boolean;
|
|
3969
|
+
copyWithin?: boolean;
|
|
3970
|
+
entries?: boolean;
|
|
3971
|
+
keys?: boolean;
|
|
3972
|
+
values?: boolean;
|
|
3973
|
+
includes?: boolean;
|
|
3974
|
+
flatMap?: boolean;
|
|
3975
|
+
flat?: boolean;
|
|
3976
|
+
};
|
|
3977
|
+
};
|
|
3978
|
+
} | {
|
|
3979
|
+
[x: number]: string | number | boolean | {
|
|
3980
|
+
[x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any;
|
|
3981
|
+
} | /*elided*/ any;
|
|
3982
|
+
length: number;
|
|
3983
|
+
toString: never;
|
|
3984
|
+
toLocaleString: never;
|
|
3985
|
+
pop: never;
|
|
3986
|
+
push: never;
|
|
3987
|
+
concat: never;
|
|
3988
|
+
join: never;
|
|
3989
|
+
reverse: never;
|
|
3990
|
+
shift: never;
|
|
3991
|
+
slice: never;
|
|
3992
|
+
sort: never;
|
|
3993
|
+
splice: never;
|
|
3994
|
+
unshift: never;
|
|
3995
|
+
indexOf: never;
|
|
3996
|
+
lastIndexOf: never;
|
|
3997
|
+
every: never;
|
|
3998
|
+
some: never;
|
|
3999
|
+
forEach: never;
|
|
4000
|
+
map: never;
|
|
4001
|
+
filter: never;
|
|
4002
|
+
reduce: never;
|
|
4003
|
+
reduceRight: never;
|
|
4004
|
+
find: never;
|
|
4005
|
+
findIndex: never;
|
|
4006
|
+
fill: never;
|
|
4007
|
+
copyWithin: never;
|
|
4008
|
+
entries: never;
|
|
4009
|
+
keys: never;
|
|
4010
|
+
values: never;
|
|
4011
|
+
includes: never;
|
|
4012
|
+
flatMap: never;
|
|
4013
|
+
flat: never;
|
|
4014
|
+
[Symbol.iterator]: never;
|
|
4015
|
+
readonly [Symbol.unscopables]: {
|
|
4016
|
+
[x: number]: boolean;
|
|
4017
|
+
length?: boolean;
|
|
4018
|
+
toString?: boolean;
|
|
4019
|
+
toLocaleString?: boolean;
|
|
4020
|
+
pop?: boolean;
|
|
4021
|
+
push?: boolean;
|
|
4022
|
+
concat?: boolean;
|
|
4023
|
+
join?: boolean;
|
|
4024
|
+
reverse?: boolean;
|
|
4025
|
+
shift?: boolean;
|
|
4026
|
+
slice?: boolean;
|
|
4027
|
+
sort?: boolean;
|
|
4028
|
+
splice?: boolean;
|
|
4029
|
+
unshift?: boolean;
|
|
4030
|
+
indexOf?: boolean;
|
|
4031
|
+
lastIndexOf?: boolean;
|
|
4032
|
+
every?: boolean;
|
|
4033
|
+
some?: boolean;
|
|
4034
|
+
forEach?: boolean;
|
|
4035
|
+
map?: boolean;
|
|
4036
|
+
filter?: boolean;
|
|
4037
|
+
reduce?: boolean;
|
|
4038
|
+
reduceRight?: boolean;
|
|
4039
|
+
find?: boolean;
|
|
4040
|
+
findIndex?: boolean;
|
|
4041
|
+
fill?: boolean;
|
|
4042
|
+
copyWithin?: boolean;
|
|
4043
|
+
entries?: boolean;
|
|
4044
|
+
keys?: boolean;
|
|
4045
|
+
values?: boolean;
|
|
4046
|
+
includes?: boolean;
|
|
4047
|
+
flatMap?: boolean;
|
|
4048
|
+
flat?: boolean;
|
|
4049
|
+
};
|
|
4050
|
+
};
|
|
4051
|
+
}[];
|
|
4052
|
+
outputFormat: "json";
|
|
4053
|
+
status: 200;
|
|
4054
|
+
} | {
|
|
4055
|
+
input: {
|
|
4056
|
+
param: {
|
|
4057
|
+
id: string;
|
|
4058
|
+
} & {
|
|
4059
|
+
token: string;
|
|
4060
|
+
};
|
|
4061
|
+
};
|
|
4062
|
+
output: {
|
|
4063
|
+
error: {
|
|
4064
|
+
code: string;
|
|
4065
|
+
message: any;
|
|
4066
|
+
};
|
|
4067
|
+
};
|
|
4068
|
+
outputFormat: "json";
|
|
4069
|
+
status: 500;
|
|
4070
|
+
};
|
|
4071
|
+
}>;
|
|
4072
|
+
};
|
|
4073
|
+
};
|
|
3553
4074
|
};
|
|
3554
4075
|
products: {
|
|
3555
4076
|
product: {
|
|
@@ -3594,6 +4115,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
3594
4115
|
createdAt: string;
|
|
3595
4116
|
updatedAt: string;
|
|
3596
4117
|
price: number;
|
|
4118
|
+
compareAtPrice: number;
|
|
3597
4119
|
deletedAt: string;
|
|
3598
4120
|
id: string;
|
|
3599
4121
|
name: string | null;
|
|
@@ -3782,20 +4304,6 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
3782
4304
|
} & {
|
|
3783
4305
|
":brandId": import("hono/client").ClientRequest<{
|
|
3784
4306
|
$get: {
|
|
3785
|
-
input: {
|
|
3786
|
-
param: {
|
|
3787
|
-
brandId: string;
|
|
3788
|
-
};
|
|
3789
|
-
};
|
|
3790
|
-
output: {
|
|
3791
|
-
error: {
|
|
3792
|
-
code: string;
|
|
3793
|
-
message: string;
|
|
3794
|
-
};
|
|
3795
|
-
};
|
|
3796
|
-
outputFormat: "json";
|
|
3797
|
-
status: 404;
|
|
3798
|
-
} | {
|
|
3799
4307
|
input: {
|
|
3800
4308
|
param: {
|
|
3801
4309
|
brandId: string;
|
|
@@ -3821,6 +4329,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
3821
4329
|
createdAt: string;
|
|
3822
4330
|
updatedAt: string;
|
|
3823
4331
|
price: number;
|
|
4332
|
+
compareAtPrice: number;
|
|
3824
4333
|
deletedAt: string;
|
|
3825
4334
|
id: string;
|
|
3826
4335
|
name: string | null;
|
|
@@ -3989,6 +4498,20 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
3989
4498
|
}[];
|
|
3990
4499
|
outputFormat: "json";
|
|
3991
4500
|
status: 200;
|
|
4501
|
+
} | {
|
|
4502
|
+
input: {
|
|
4503
|
+
param: {
|
|
4504
|
+
brandId: string;
|
|
4505
|
+
};
|
|
4506
|
+
};
|
|
4507
|
+
output: {
|
|
4508
|
+
error: {
|
|
4509
|
+
code: string;
|
|
4510
|
+
message: string;
|
|
4511
|
+
};
|
|
4512
|
+
};
|
|
4513
|
+
outputFormat: "json";
|
|
4514
|
+
status: 404;
|
|
3992
4515
|
} | {
|
|
3993
4516
|
input: {
|
|
3994
4517
|
param: {
|
|
@@ -4081,6 +4604,7 @@ export declare function createRpcClients(baseURL: string): {
|
|
|
4081
4604
|
};
|
|
4082
4605
|
}>;
|
|
4083
4606
|
};
|
|
4607
|
+
productAddons: unknown;
|
|
4084
4608
|
};
|
|
4085
4609
|
/**
|
|
4086
4610
|
* Create typed RPC clients for all admin endpoints
|
|
@@ -4323,6 +4847,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
4323
4847
|
thumbnailUrl: string | null;
|
|
4324
4848
|
productId: string;
|
|
4325
4849
|
sku: string;
|
|
4850
|
+
compareAtPrice: string;
|
|
4326
4851
|
trackInventory: boolean;
|
|
4327
4852
|
lowStockThreshold: number | null;
|
|
4328
4853
|
};
|
|
@@ -4613,6 +5138,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
4613
5138
|
thumbnailUrl: string | null;
|
|
4614
5139
|
productId: string;
|
|
4615
5140
|
sku: string;
|
|
5141
|
+
compareAtPrice: string;
|
|
4616
5142
|
trackInventory: boolean;
|
|
4617
5143
|
lowStockThreshold: number | null;
|
|
4618
5144
|
};
|
|
@@ -4905,6 +5431,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
4905
5431
|
thumbnailUrl: string | null;
|
|
4906
5432
|
productId: string;
|
|
4907
5433
|
sku: string;
|
|
5434
|
+
compareAtPrice: string;
|
|
4908
5435
|
trackInventory: boolean;
|
|
4909
5436
|
lowStockThreshold: number | null;
|
|
4910
5437
|
};
|
|
@@ -5206,6 +5733,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
5206
5733
|
thumbnailUrl: string | null;
|
|
5207
5734
|
productId: string;
|
|
5208
5735
|
sku: string;
|
|
5736
|
+
compareAtPrice: string;
|
|
5209
5737
|
trackInventory: boolean;
|
|
5210
5738
|
lowStockThreshold: number | null;
|
|
5211
5739
|
};
|
|
@@ -5492,6 +6020,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
5492
6020
|
productId: string;
|
|
5493
6021
|
sku: string;
|
|
5494
6022
|
price: string;
|
|
6023
|
+
compareAtPrice: string;
|
|
5495
6024
|
trackInventory: boolean;
|
|
5496
6025
|
lowStockThreshold: number | null;
|
|
5497
6026
|
};
|
|
@@ -5962,6 +6491,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
5962
6491
|
thumbnailUrl: string | null;
|
|
5963
6492
|
productId: string;
|
|
5964
6493
|
sku: string;
|
|
6494
|
+
compareAtPrice: string;
|
|
5965
6495
|
trackInventory: boolean;
|
|
5966
6496
|
lowStockThreshold: number | null;
|
|
5967
6497
|
};
|
|
@@ -6459,6 +6989,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
6459
6989
|
createdAt: string;
|
|
6460
6990
|
updatedAt: string;
|
|
6461
6991
|
price: number;
|
|
6992
|
+
compareAtPrice: number;
|
|
6462
6993
|
deletedAt: string;
|
|
6463
6994
|
id: string;
|
|
6464
6995
|
name: string | null;
|
|
@@ -6661,6 +7192,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
6661
7192
|
createdAt: string;
|
|
6662
7193
|
updatedAt: string;
|
|
6663
7194
|
price: number;
|
|
7195
|
+
compareAtPrice: number;
|
|
6664
7196
|
deletedAt: string;
|
|
6665
7197
|
id: string;
|
|
6666
7198
|
name: string | null;
|
|
@@ -6884,6 +7416,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
6884
7416
|
createdAt: string;
|
|
6885
7417
|
updatedAt: string;
|
|
6886
7418
|
price: number;
|
|
7419
|
+
compareAtPrice: number;
|
|
6887
7420
|
deletedAt: string;
|
|
6888
7421
|
id: string;
|
|
6889
7422
|
name: string | null;
|
|
@@ -7094,6 +7627,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
7094
7627
|
createdAt: string;
|
|
7095
7628
|
updatedAt: string;
|
|
7096
7629
|
price: number;
|
|
7630
|
+
compareAtPrice: number;
|
|
7097
7631
|
deletedAt: string;
|
|
7098
7632
|
id: string;
|
|
7099
7633
|
name: string | null;
|
|
@@ -7307,6 +7841,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
7307
7841
|
createdAt: string;
|
|
7308
7842
|
updatedAt: string;
|
|
7309
7843
|
price: number;
|
|
7844
|
+
compareAtPrice: number;
|
|
7310
7845
|
deletedAt: string;
|
|
7311
7846
|
id: string;
|
|
7312
7847
|
name: string | null;
|
|
@@ -7343,6 +7878,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
7343
7878
|
createdAt: string;
|
|
7344
7879
|
updatedAt: string;
|
|
7345
7880
|
price: number;
|
|
7881
|
+
compareAtPrice: number;
|
|
7346
7882
|
deletedAt: string;
|
|
7347
7883
|
id: string;
|
|
7348
7884
|
name: string | null;
|
|
@@ -7405,6 +7941,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
7405
7941
|
createdAt: string;
|
|
7406
7942
|
updatedAt: string;
|
|
7407
7943
|
price: number;
|
|
7944
|
+
compareAtPrice: number;
|
|
7408
7945
|
deletedAt: string;
|
|
7409
7946
|
id: string;
|
|
7410
7947
|
name: string | null;
|
|
@@ -7443,6 +7980,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
7443
7980
|
createdAt: string;
|
|
7444
7981
|
updatedAt: string;
|
|
7445
7982
|
price: number;
|
|
7983
|
+
compareAtPrice: number;
|
|
7446
7984
|
deletedAt: string;
|
|
7447
7985
|
id: string;
|
|
7448
7986
|
name: string | null;
|
|
@@ -7501,6 +8039,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
7501
8039
|
createdAt: string;
|
|
7502
8040
|
updatedAt: string;
|
|
7503
8041
|
price: number;
|
|
8042
|
+
compareAtPrice: number;
|
|
7504
8043
|
deletedAt: string;
|
|
7505
8044
|
id: string;
|
|
7506
8045
|
name: string | null;
|
|
@@ -7860,6 +8399,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
7860
8399
|
productId: string;
|
|
7861
8400
|
sku: string;
|
|
7862
8401
|
price: string;
|
|
8402
|
+
compareAtPrice: string;
|
|
7863
8403
|
trackInventory: boolean;
|
|
7864
8404
|
lowStockThreshold: number | null;
|
|
7865
8405
|
};
|
|
@@ -8432,6 +8972,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
8432
8972
|
thumbnailUrl: string | null;
|
|
8433
8973
|
productId: string;
|
|
8434
8974
|
sku: string;
|
|
8975
|
+
compareAtPrice: string;
|
|
8435
8976
|
trackInventory: boolean;
|
|
8436
8977
|
lowStockThreshold: number | null;
|
|
8437
8978
|
};
|
|
@@ -8736,6 +9277,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
8736
9277
|
thumbnailUrl: string | null;
|
|
8737
9278
|
productId: string;
|
|
8738
9279
|
sku: string;
|
|
9280
|
+
compareAtPrice: string;
|
|
8739
9281
|
trackInventory: boolean;
|
|
8740
9282
|
lowStockThreshold: number | null;
|
|
8741
9283
|
};
|
|
@@ -9019,6 +9561,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
9019
9561
|
thumbnailUrl: string | null;
|
|
9020
9562
|
productId: string;
|
|
9021
9563
|
sku: string;
|
|
9564
|
+
compareAtPrice: string;
|
|
9022
9565
|
trackInventory: boolean;
|
|
9023
9566
|
lowStockThreshold: number | null;
|
|
9024
9567
|
};
|
|
@@ -9305,6 +9848,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
9305
9848
|
thumbnailUrl: string | null;
|
|
9306
9849
|
productId: string;
|
|
9307
9850
|
sku: string;
|
|
9851
|
+
compareAtPrice: string;
|
|
9308
9852
|
trackInventory: boolean;
|
|
9309
9853
|
lowStockThreshold: number | null;
|
|
9310
9854
|
};
|
|
@@ -10344,6 +10888,7 @@ export declare function createAdminRpcClients(baseURL: string): {
|
|
|
10344
10888
|
}>;
|
|
10345
10889
|
};
|
|
10346
10890
|
};
|
|
10891
|
+
productAddons: unknown;
|
|
10347
10892
|
};
|
|
10348
10893
|
/**
|
|
10349
10894
|
* Helper to create auth headers for admin RPC requests
|