@instockng/api-client 1.0.34 → 1.0.36
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/brands.d.ts +1 -0
- package/dist/fetchers/carts.d.ts +185 -152
- package/dist/fetchers/delivery-zones.d.ts +0 -1
- package/dist/fetchers/orders.d.ts +55 -30
- package/dist/hooks/admin/abandoned-carts.d.ts +36 -34
- package/dist/hooks/admin/brands.d.ts +4 -0
- package/dist/hooks/admin/customers.d.ts +14 -14
- package/dist/hooks/admin/delivery-zones.d.ts +12 -8
- package/dist/hooks/admin/discount-codes.d.ts +20 -15
- package/dist/hooks/admin/index.d.ts +1 -0
- package/dist/hooks/admin/index.js +1 -0
- package/dist/hooks/admin/orders.d.ts +79 -78
- package/dist/hooks/admin/products.d.ts +54 -4
- package/dist/hooks/admin/sales.d.ts +46 -0
- package/dist/hooks/admin/sales.js +180 -0
- package/dist/hooks/admin/stats.d.ts +14 -14
- package/dist/hooks/admin/variants.d.ts +13 -6
- package/dist/hooks/admin/variants.js +6 -5
- package/dist/hooks/admin/warehouses.d.ts +7 -6
- package/dist/hooks/public/brands.d.ts +1 -0
- package/dist/hooks/public/carts.d.ts +185 -152
- package/dist/hooks/public/delivery-zones.d.ts +0 -1
- package/dist/hooks/public/orders.d.ts +55 -30
- package/dist/rpc-client.d.ts +1121 -427
- package/dist/rpc-client.js +1 -0
- package/dist/rpc-types.d.ts +81 -6
- package/dist/utils/query-keys.d.ts +6 -0
- package/dist/utils/query-keys.js +6 -0
- package/package.json +1 -1
package/dist/rpc-client.js
CHANGED
package/dist/rpc-types.d.ts
CHANGED
|
@@ -79,6 +79,10 @@ declare const dummyClient: {
|
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
output: {
|
|
82
|
+
isOnSale: boolean;
|
|
83
|
+
saleId: string;
|
|
84
|
+
saleName: string;
|
|
85
|
+
saleEndsAt: string;
|
|
82
86
|
id: string;
|
|
83
87
|
name: string;
|
|
84
88
|
slug: string;
|
|
@@ -239,6 +243,7 @@ declare const dummyClient: {
|
|
|
239
243
|
metaPixelId: string;
|
|
240
244
|
tiktokPixelId: string;
|
|
241
245
|
paystackPublicKey: string;
|
|
246
|
+
freeShippingThreshold: number;
|
|
242
247
|
createdAt: string;
|
|
243
248
|
updatedAt: string;
|
|
244
249
|
deletedAt: string;
|
|
@@ -249,10 +254,11 @@ declare const dummyClient: {
|
|
|
249
254
|
price: number;
|
|
250
255
|
compareAtPrice: number;
|
|
251
256
|
deletedAt: string;
|
|
257
|
+
thumbnailUrl: string;
|
|
258
|
+
originalPrice: number;
|
|
252
259
|
id: string;
|
|
253
260
|
name: string | null;
|
|
254
261
|
isActive: boolean;
|
|
255
|
-
thumbnailUrl: string | null;
|
|
256
262
|
productId: string;
|
|
257
263
|
sku: string;
|
|
258
264
|
trackInventory: boolean;
|
|
@@ -549,11 +555,30 @@ declare const dummyClient: {
|
|
|
549
555
|
flat?: boolean;
|
|
550
556
|
};
|
|
551
557
|
};
|
|
558
|
+
sales: {
|
|
559
|
+
sale: {
|
|
560
|
+
id: string;
|
|
561
|
+
name: string;
|
|
562
|
+
createdAt: string;
|
|
563
|
+
updatedAt: string;
|
|
564
|
+
deletedAt: string;
|
|
565
|
+
isActive: boolean;
|
|
566
|
+
brandId: string;
|
|
567
|
+
discountType: import("@prisma/client").$Enums.DiscountType;
|
|
568
|
+
discountValue: string;
|
|
569
|
+
startDate: string;
|
|
570
|
+
endDate: string;
|
|
571
|
+
};
|
|
572
|
+
id: string;
|
|
573
|
+
createdAt: string;
|
|
574
|
+
productId: string;
|
|
575
|
+
saleId: string;
|
|
576
|
+
}[];
|
|
552
577
|
createdAt: string;
|
|
553
578
|
updatedAt: string;
|
|
554
579
|
deletedAt: string;
|
|
555
|
-
brandId: string;
|
|
556
580
|
isActive: boolean;
|
|
581
|
+
brandId: string;
|
|
557
582
|
};
|
|
558
583
|
outputFormat: "json";
|
|
559
584
|
status: 200;
|
|
@@ -585,6 +610,10 @@ declare const dummyClient: {
|
|
|
585
610
|
};
|
|
586
611
|
};
|
|
587
612
|
output: {
|
|
613
|
+
isOnSale: boolean;
|
|
614
|
+
saleId: string;
|
|
615
|
+
saleName: string;
|
|
616
|
+
saleEndsAt: string;
|
|
588
617
|
id: string;
|
|
589
618
|
name: string;
|
|
590
619
|
slug: string;
|
|
@@ -745,6 +774,7 @@ declare const dummyClient: {
|
|
|
745
774
|
metaPixelId: string;
|
|
746
775
|
tiktokPixelId: string;
|
|
747
776
|
paystackPublicKey: string;
|
|
777
|
+
freeShippingThreshold: number;
|
|
748
778
|
createdAt: string;
|
|
749
779
|
updatedAt: string;
|
|
750
780
|
deletedAt: string;
|
|
@@ -755,10 +785,11 @@ declare const dummyClient: {
|
|
|
755
785
|
price: number;
|
|
756
786
|
compareAtPrice: number;
|
|
757
787
|
deletedAt: string;
|
|
788
|
+
thumbnailUrl: string;
|
|
789
|
+
originalPrice: number;
|
|
758
790
|
id: string;
|
|
759
791
|
name: string | null;
|
|
760
792
|
isActive: boolean;
|
|
761
|
-
thumbnailUrl: string | null;
|
|
762
793
|
productId: string;
|
|
763
794
|
sku: string;
|
|
764
795
|
trackInventory: boolean;
|
|
@@ -1055,11 +1086,30 @@ declare const dummyClient: {
|
|
|
1055
1086
|
flat?: boolean;
|
|
1056
1087
|
};
|
|
1057
1088
|
};
|
|
1089
|
+
sales: {
|
|
1090
|
+
sale: {
|
|
1091
|
+
id: string;
|
|
1092
|
+
name: string;
|
|
1093
|
+
createdAt: string;
|
|
1094
|
+
updatedAt: string;
|
|
1095
|
+
deletedAt: string;
|
|
1096
|
+
isActive: boolean;
|
|
1097
|
+
brandId: string;
|
|
1098
|
+
discountType: import("@prisma/client").$Enums.DiscountType;
|
|
1099
|
+
discountValue: string;
|
|
1100
|
+
startDate: string;
|
|
1101
|
+
endDate: string;
|
|
1102
|
+
};
|
|
1103
|
+
id: string;
|
|
1104
|
+
createdAt: string;
|
|
1105
|
+
productId: string;
|
|
1106
|
+
saleId: string;
|
|
1107
|
+
}[];
|
|
1058
1108
|
createdAt: string;
|
|
1059
1109
|
updatedAt: string;
|
|
1060
1110
|
deletedAt: string;
|
|
1061
|
-
brandId: string;
|
|
1062
1111
|
isActive: boolean;
|
|
1112
|
+
brandId: string;
|
|
1063
1113
|
}[];
|
|
1064
1114
|
outputFormat: "json";
|
|
1065
1115
|
status: 200;
|
|
@@ -1104,6 +1154,10 @@ declare const dummyClient: {
|
|
|
1104
1154
|
};
|
|
1105
1155
|
};
|
|
1106
1156
|
output: {
|
|
1157
|
+
isOnSale: boolean;
|
|
1158
|
+
saleId: string;
|
|
1159
|
+
saleName: string;
|
|
1160
|
+
saleEndsAt: string;
|
|
1107
1161
|
id: string;
|
|
1108
1162
|
name: string;
|
|
1109
1163
|
slug: string;
|
|
@@ -1264,6 +1318,7 @@ declare const dummyClient: {
|
|
|
1264
1318
|
metaPixelId: string;
|
|
1265
1319
|
tiktokPixelId: string;
|
|
1266
1320
|
paystackPublicKey: string;
|
|
1321
|
+
freeShippingThreshold: number;
|
|
1267
1322
|
createdAt: string;
|
|
1268
1323
|
updatedAt: string;
|
|
1269
1324
|
deletedAt: string;
|
|
@@ -1274,10 +1329,11 @@ declare const dummyClient: {
|
|
|
1274
1329
|
price: number;
|
|
1275
1330
|
compareAtPrice: number;
|
|
1276
1331
|
deletedAt: string;
|
|
1332
|
+
thumbnailUrl: string;
|
|
1333
|
+
originalPrice: number;
|
|
1277
1334
|
id: string;
|
|
1278
1335
|
name: string | null;
|
|
1279
1336
|
isActive: boolean;
|
|
1280
|
-
thumbnailUrl: string | null;
|
|
1281
1337
|
productId: string;
|
|
1282
1338
|
sku: string;
|
|
1283
1339
|
trackInventory: boolean;
|
|
@@ -1574,11 +1630,30 @@ declare const dummyClient: {
|
|
|
1574
1630
|
flat?: boolean;
|
|
1575
1631
|
};
|
|
1576
1632
|
};
|
|
1633
|
+
sales: {
|
|
1634
|
+
sale: {
|
|
1635
|
+
id: string;
|
|
1636
|
+
name: string;
|
|
1637
|
+
createdAt: string;
|
|
1638
|
+
updatedAt: string;
|
|
1639
|
+
deletedAt: string;
|
|
1640
|
+
isActive: boolean;
|
|
1641
|
+
brandId: string;
|
|
1642
|
+
discountType: import("@prisma/client").$Enums.DiscountType;
|
|
1643
|
+
discountValue: string;
|
|
1644
|
+
startDate: string;
|
|
1645
|
+
endDate: string;
|
|
1646
|
+
};
|
|
1647
|
+
id: string;
|
|
1648
|
+
createdAt: string;
|
|
1649
|
+
productId: string;
|
|
1650
|
+
saleId: string;
|
|
1651
|
+
}[];
|
|
1577
1652
|
createdAt: string;
|
|
1578
1653
|
updatedAt: string;
|
|
1579
1654
|
deletedAt: string;
|
|
1580
|
-
brandId: string;
|
|
1581
1655
|
isActive: boolean;
|
|
1656
|
+
brandId: string;
|
|
1582
1657
|
}[];
|
|
1583
1658
|
outputFormat: "json";
|
|
1584
1659
|
status: 200;
|
|
@@ -111,5 +111,11 @@ export declare const queryKeys: {
|
|
|
111
111
|
all: readonly ["admin", "media"];
|
|
112
112
|
list: (type?: string) => readonly ["admin", "media", "list", string];
|
|
113
113
|
};
|
|
114
|
+
sales: {
|
|
115
|
+
all: readonly ["admin", "sales"];
|
|
116
|
+
list: (params?: any) => readonly ["admin", "sales", "list", any];
|
|
117
|
+
detail: (id: string) => readonly ["admin", "sales", string];
|
|
118
|
+
overviewStats: () => readonly ["admin", "sales", "stats", "overview"];
|
|
119
|
+
};
|
|
114
120
|
};
|
|
115
121
|
};
|
package/dist/utils/query-keys.js
CHANGED
|
@@ -119,5 +119,11 @@ export const queryKeys = {
|
|
|
119
119
|
all: ['admin', 'media'],
|
|
120
120
|
list: (type) => ['admin', 'media', 'list', type],
|
|
121
121
|
},
|
|
122
|
+
sales: {
|
|
123
|
+
all: ['admin', 'sales'],
|
|
124
|
+
list: (params) => ['admin', 'sales', 'list', params],
|
|
125
|
+
detail: (id) => ['admin', 'sales', id],
|
|
126
|
+
overviewStats: () => ['admin', 'sales', 'stats', 'overview'],
|
|
127
|
+
},
|
|
122
128
|
},
|
|
123
129
|
};
|