@instockng/api-client 1.0.7 → 1.0.9
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/apps/backend/src/http-app.js +28 -0
- package/dist/apps/backend/src/lib/brand-response.d.ts +1 -1
- package/dist/apps/backend/src/lib/cart-helpers.d.ts +13 -11
- package/dist/apps/backend/src/lib/cart-helpers.js +28 -0
- package/dist/apps/backend/src/lib/cart-response.d.ts +5 -5
- package/dist/apps/backend/src/lib/clerk.js +23 -0
- package/dist/apps/backend/src/lib/delivery-zone-response.d.ts +6 -4
- package/dist/apps/backend/src/lib/discount-code-response.d.ts +2 -2
- package/dist/apps/backend/src/lib/meta-capi.d.ts +5 -0
- package/dist/apps/backend/src/lib/meta-capi.js +33 -2
- package/dist/apps/backend/src/lib/order-recovery.d.ts +30 -24
- package/dist/apps/backend/src/lib/order-response.d.ts +9 -7
- package/dist/apps/backend/src/lib/product-response.d.ts +4 -4
- package/dist/apps/backend/src/lib/sentry.d.ts +48 -0
- package/dist/apps/backend/src/lib/sentry.js +180 -0
- package/dist/apps/backend/src/lib/utils.d.ts +1 -1
- package/dist/apps/backend/src/lib/utils.js +1 -1
- package/dist/apps/backend/src/notifications/producers/meta-capi-producer.js +18 -4
- package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +18 -10
- package/dist/apps/backend/src/routes/admin/brands.d.ts +4 -4
- package/dist/apps/backend/src/routes/admin/customers.d.ts +13 -7
- package/dist/apps/backend/src/routes/admin/delivery-zones.d.ts +23 -15
- package/dist/apps/backend/src/routes/admin/discount-codes.d.ts +10 -10
- package/dist/apps/backend/src/routes/admin/inventory.d.ts +4 -0
- package/dist/apps/backend/src/routes/admin/inventory.js +10 -0
- package/dist/apps/backend/src/routes/admin/orders.d.ts +78 -42
- package/dist/apps/backend/src/routes/admin/orders.js +25 -0
- package/dist/apps/backend/src/routes/admin/products.d.ts +28 -12
- package/dist/apps/backend/src/routes/admin/products.js +34 -15
- package/dist/apps/backend/src/routes/admin/stats.d.ts +13 -7
- package/dist/apps/backend/src/routes/admin/variants.d.ts +5 -5
- package/dist/apps/backend/src/routes/admin/variants.js +42 -18
- package/dist/apps/backend/src/routes/admin/warehouses.d.ts +11 -7
- package/dist/apps/backend/src/routes/public/brands.d.ts +1 -1
- package/dist/apps/backend/src/routes/public/carts.d.ts +85 -47
- package/dist/apps/backend/src/routes/public/carts.js +148 -1
- package/dist/apps/backend/src/routes/public/delivery-zones.d.ts +2 -0
- package/dist/apps/backend/src/routes/public/delivery-zones.js +2 -0
- package/dist/apps/backend/src/routes/public/orders.d.ts +26 -14
- package/dist/apps/backend/src/routes/public/orders.js +24 -0
- package/dist/apps/backend/src/routes/public/products.d.ts +14 -6
- package/dist/apps/backend/src/types/index.d.ts +1 -0
- package/dist/apps/backend/src/validators/delivery-zone.d.ts +4 -0
- package/dist/apps/backend/src/validators/delivery-zone.js +4 -0
- package/dist/apps/backend/src/validators/discount-code.d.ts +3 -3
- package/dist/apps/backend/src/validators/order.d.ts +3 -1
- package/dist/apps/backend/src/validators/order.js +3 -1
- package/dist/packages/api-client/src/fetchers/brands.d.ts +1 -1
- package/dist/packages/api-client/src/fetchers/carts.d.ts +85 -47
- package/dist/packages/api-client/src/fetchers/delivery-zones.d.ts +2 -0
- package/dist/packages/api-client/src/fetchers/orders.d.ts +26 -14
- package/dist/packages/api-client/src/fetchers/products.d.ts +14 -6
- package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +18 -10
- package/dist/packages/api-client/src/hooks/admin/brands.d.ts +4 -4
- package/dist/packages/api-client/src/hooks/admin/customers.d.ts +13 -7
- package/dist/packages/api-client/src/hooks/admin/delivery-zones.d.ts +23 -15
- package/dist/packages/api-client/src/hooks/admin/discount-codes.d.ts +10 -10
- package/dist/packages/api-client/src/hooks/admin/inventory.d.ts +4 -0
- package/dist/packages/api-client/src/hooks/admin/orders.d.ts +78 -42
- package/dist/packages/api-client/src/hooks/admin/products.d.ts +14 -6
- package/dist/packages/api-client/src/hooks/admin/stats.d.ts +13 -7
- package/dist/packages/api-client/src/hooks/admin/variants.d.ts +5 -5
- package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +11 -7
- package/dist/packages/api-client/src/hooks/public/brands.d.ts +1 -1
- package/dist/packages/api-client/src/hooks/public/carts.d.ts +85 -47
- package/dist/packages/api-client/src/hooks/public/delivery-zones.d.ts +2 -0
- package/dist/packages/api-client/src/hooks/public/orders.d.ts +26 -14
- package/dist/packages/api-client/src/hooks/public/products.d.ts +14 -6
- package/dist/packages/api-client/src/rpc-client.d.ts +335 -187
- package/package.json +1 -1
|
@@ -19,8 +19,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
19
19
|
createdAt: string;
|
|
20
20
|
updatedAt: string;
|
|
21
21
|
deletedAt: string;
|
|
22
|
-
name: string;
|
|
23
22
|
id: string;
|
|
23
|
+
name: string;
|
|
24
24
|
slug: string;
|
|
25
25
|
logoUrl: string | null;
|
|
26
26
|
siteUrl: string;
|
|
@@ -40,14 +40,14 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
40
40
|
lastRecoveryAttemptAt: string;
|
|
41
41
|
recoveryDiscountCode: {
|
|
42
42
|
id: string;
|
|
43
|
+
type: string;
|
|
44
|
+
value: string;
|
|
43
45
|
createdAt: string;
|
|
44
46
|
updatedAt: string;
|
|
45
47
|
deletedAt: string;
|
|
46
48
|
brandId: string | null;
|
|
47
49
|
isActive: boolean;
|
|
48
50
|
code: string;
|
|
49
|
-
type: string;
|
|
50
|
-
value: string;
|
|
51
51
|
minPurchase: string;
|
|
52
52
|
maxDiscount: string;
|
|
53
53
|
usageLimit: number | null;
|
|
@@ -65,8 +65,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
65
65
|
variant: {
|
|
66
66
|
price: number;
|
|
67
67
|
product: {
|
|
68
|
-
name: string;
|
|
69
68
|
id: string;
|
|
69
|
+
name: string;
|
|
70
70
|
slug: string;
|
|
71
71
|
createdAt: string;
|
|
72
72
|
updatedAt: string;
|
|
@@ -145,7 +145,9 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
145
145
|
includes?: boolean;
|
|
146
146
|
flatMap?: boolean;
|
|
147
147
|
flat?: boolean;
|
|
148
|
+
at?: boolean;
|
|
148
149
|
};
|
|
150
|
+
at: never;
|
|
149
151
|
};
|
|
150
152
|
} | {
|
|
151
153
|
[x: number]: string | number | boolean | {
|
|
@@ -218,11 +220,13 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
218
220
|
includes?: boolean;
|
|
219
221
|
flatMap?: boolean;
|
|
220
222
|
flat?: boolean;
|
|
223
|
+
at?: boolean;
|
|
221
224
|
};
|
|
225
|
+
at: never;
|
|
222
226
|
};
|
|
223
227
|
};
|
|
224
|
-
name: string | null;
|
|
225
228
|
id: string;
|
|
229
|
+
name: string | null;
|
|
226
230
|
createdAt: string;
|
|
227
231
|
updatedAt: string;
|
|
228
232
|
deletedAt: string;
|
|
@@ -300,8 +304,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
300
304
|
createdAt: string;
|
|
301
305
|
updatedAt: string;
|
|
302
306
|
deletedAt: string;
|
|
303
|
-
name: string;
|
|
304
307
|
id: string;
|
|
308
|
+
name: string;
|
|
305
309
|
slug: string;
|
|
306
310
|
logoUrl: string | null;
|
|
307
311
|
siteUrl: string;
|
|
@@ -321,14 +325,14 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
321
325
|
lastRecoveryAttemptAt: string;
|
|
322
326
|
recoveryDiscountCode: {
|
|
323
327
|
id: string;
|
|
328
|
+
type: string;
|
|
329
|
+
value: string;
|
|
324
330
|
createdAt: string;
|
|
325
331
|
updatedAt: string;
|
|
326
332
|
deletedAt: string;
|
|
327
333
|
brandId: string | null;
|
|
328
334
|
isActive: boolean;
|
|
329
335
|
code: string;
|
|
330
|
-
type: string;
|
|
331
|
-
value: string;
|
|
332
336
|
minPurchase: string;
|
|
333
337
|
maxDiscount: string;
|
|
334
338
|
usageLimit: number | null;
|
|
@@ -346,8 +350,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
346
350
|
variant: {
|
|
347
351
|
price: number;
|
|
348
352
|
product: {
|
|
349
|
-
name: string;
|
|
350
353
|
id: string;
|
|
354
|
+
name: string;
|
|
351
355
|
slug: string;
|
|
352
356
|
createdAt: string;
|
|
353
357
|
updatedAt: string;
|
|
@@ -426,7 +430,9 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
426
430
|
includes?: boolean;
|
|
427
431
|
flatMap?: boolean;
|
|
428
432
|
flat?: boolean;
|
|
433
|
+
at?: boolean;
|
|
429
434
|
};
|
|
435
|
+
at: never;
|
|
430
436
|
};
|
|
431
437
|
} | {
|
|
432
438
|
[x: number]: string | number | boolean | {
|
|
@@ -499,11 +505,13 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
499
505
|
includes?: boolean;
|
|
500
506
|
flatMap?: boolean;
|
|
501
507
|
flat?: boolean;
|
|
508
|
+
at?: boolean;
|
|
502
509
|
};
|
|
510
|
+
at: never;
|
|
503
511
|
};
|
|
504
512
|
};
|
|
505
|
-
name: string | null;
|
|
506
513
|
id: string;
|
|
514
|
+
name: string | null;
|
|
507
515
|
createdAt: string;
|
|
508
516
|
updatedAt: string;
|
|
509
517
|
deletedAt: string;
|
|
@@ -571,8 +579,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
571
579
|
createdAt: string;
|
|
572
580
|
updatedAt: string;
|
|
573
581
|
deletedAt: string;
|
|
574
|
-
name: string;
|
|
575
582
|
id: string;
|
|
583
|
+
name: string;
|
|
576
584
|
slug: string;
|
|
577
585
|
logoUrl: string | null;
|
|
578
586
|
siteUrl: string;
|
|
@@ -592,14 +600,14 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
592
600
|
lastRecoveryAttemptAt: string;
|
|
593
601
|
recoveryDiscountCode: {
|
|
594
602
|
id: string;
|
|
603
|
+
type: string;
|
|
604
|
+
value: string;
|
|
595
605
|
createdAt: string;
|
|
596
606
|
updatedAt: string;
|
|
597
607
|
deletedAt: string;
|
|
598
608
|
brandId: string | null;
|
|
599
609
|
isActive: boolean;
|
|
600
610
|
code: string;
|
|
601
|
-
type: string;
|
|
602
|
-
value: string;
|
|
603
611
|
minPurchase: string;
|
|
604
612
|
maxDiscount: string;
|
|
605
613
|
usageLimit: number | null;
|
|
@@ -617,8 +625,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
617
625
|
variant: {
|
|
618
626
|
price: number;
|
|
619
627
|
product: {
|
|
620
|
-
name: string;
|
|
621
628
|
id: string;
|
|
629
|
+
name: string;
|
|
622
630
|
slug: string;
|
|
623
631
|
createdAt: string;
|
|
624
632
|
updatedAt: string;
|
|
@@ -697,7 +705,9 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
697
705
|
includes?: boolean;
|
|
698
706
|
flatMap?: boolean;
|
|
699
707
|
flat?: boolean;
|
|
708
|
+
at?: boolean;
|
|
700
709
|
};
|
|
710
|
+
at: never;
|
|
701
711
|
};
|
|
702
712
|
} | {
|
|
703
713
|
[x: number]: string | number | boolean | {
|
|
@@ -770,11 +780,13 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
770
780
|
includes?: boolean;
|
|
771
781
|
flatMap?: boolean;
|
|
772
782
|
flat?: boolean;
|
|
783
|
+
at?: boolean;
|
|
773
784
|
};
|
|
785
|
+
at: never;
|
|
774
786
|
};
|
|
775
787
|
};
|
|
776
|
-
name: string | null;
|
|
777
788
|
id: string;
|
|
789
|
+
name: string | null;
|
|
778
790
|
createdAt: string;
|
|
779
791
|
updatedAt: string;
|
|
780
792
|
deletedAt: string;
|
|
@@ -856,8 +868,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
856
868
|
createdAt: string;
|
|
857
869
|
updatedAt: string;
|
|
858
870
|
deletedAt: string;
|
|
859
|
-
name: string;
|
|
860
871
|
id: string;
|
|
872
|
+
name: string;
|
|
861
873
|
slug: string;
|
|
862
874
|
logoUrl: string | null;
|
|
863
875
|
siteUrl: string;
|
|
@@ -877,14 +889,14 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
877
889
|
lastRecoveryAttemptAt: string;
|
|
878
890
|
recoveryDiscountCode: {
|
|
879
891
|
id: string;
|
|
892
|
+
type: string;
|
|
893
|
+
value: string;
|
|
880
894
|
createdAt: string;
|
|
881
895
|
updatedAt: string;
|
|
882
896
|
deletedAt: string;
|
|
883
897
|
brandId: string | null;
|
|
884
898
|
isActive: boolean;
|
|
885
899
|
code: string;
|
|
886
|
-
type: string;
|
|
887
|
-
value: string;
|
|
888
900
|
minPurchase: string;
|
|
889
901
|
maxDiscount: string;
|
|
890
902
|
usageLimit: number | null;
|
|
@@ -902,8 +914,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
902
914
|
variant: {
|
|
903
915
|
price: number;
|
|
904
916
|
product: {
|
|
905
|
-
name: string;
|
|
906
917
|
id: string;
|
|
918
|
+
name: string;
|
|
907
919
|
slug: string;
|
|
908
920
|
createdAt: string;
|
|
909
921
|
updatedAt: string;
|
|
@@ -982,7 +994,9 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
982
994
|
includes?: boolean;
|
|
983
995
|
flatMap?: boolean;
|
|
984
996
|
flat?: boolean;
|
|
997
|
+
at?: boolean;
|
|
985
998
|
};
|
|
999
|
+
at: never;
|
|
986
1000
|
};
|
|
987
1001
|
} | {
|
|
988
1002
|
[x: number]: string | number | boolean | {
|
|
@@ -1055,11 +1069,13 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1055
1069
|
includes?: boolean;
|
|
1056
1070
|
flatMap?: boolean;
|
|
1057
1071
|
flat?: boolean;
|
|
1072
|
+
at?: boolean;
|
|
1058
1073
|
};
|
|
1074
|
+
at: never;
|
|
1059
1075
|
};
|
|
1060
1076
|
};
|
|
1061
|
-
name: string | null;
|
|
1062
1077
|
id: string;
|
|
1078
|
+
name: string | null;
|
|
1063
1079
|
createdAt: string;
|
|
1064
1080
|
updatedAt: string;
|
|
1065
1081
|
deletedAt: string;
|
|
@@ -1141,8 +1157,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1141
1157
|
createdAt: string;
|
|
1142
1158
|
updatedAt: string;
|
|
1143
1159
|
deletedAt: string;
|
|
1144
|
-
name: string;
|
|
1145
1160
|
id: string;
|
|
1161
|
+
name: string;
|
|
1146
1162
|
slug: string;
|
|
1147
1163
|
logoUrl: string | null;
|
|
1148
1164
|
siteUrl: string;
|
|
@@ -1162,14 +1178,14 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1162
1178
|
lastRecoveryAttemptAt: string;
|
|
1163
1179
|
recoveryDiscountCode: {
|
|
1164
1180
|
id: string;
|
|
1181
|
+
type: string;
|
|
1182
|
+
value: string;
|
|
1165
1183
|
createdAt: string;
|
|
1166
1184
|
updatedAt: string;
|
|
1167
1185
|
deletedAt: string;
|
|
1168
1186
|
brandId: string | null;
|
|
1169
1187
|
isActive: boolean;
|
|
1170
1188
|
code: string;
|
|
1171
|
-
type: string;
|
|
1172
|
-
value: string;
|
|
1173
1189
|
minPurchase: string;
|
|
1174
1190
|
maxDiscount: string;
|
|
1175
1191
|
usageLimit: number | null;
|
|
@@ -1187,8 +1203,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1187
1203
|
variant: {
|
|
1188
1204
|
price: number;
|
|
1189
1205
|
product: {
|
|
1190
|
-
name: string;
|
|
1191
1206
|
id: string;
|
|
1207
|
+
name: string;
|
|
1192
1208
|
slug: string;
|
|
1193
1209
|
createdAt: string;
|
|
1194
1210
|
updatedAt: string;
|
|
@@ -1267,7 +1283,9 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1267
1283
|
includes?: boolean;
|
|
1268
1284
|
flatMap?: boolean;
|
|
1269
1285
|
flat?: boolean;
|
|
1286
|
+
at?: boolean;
|
|
1270
1287
|
};
|
|
1288
|
+
at: never;
|
|
1271
1289
|
};
|
|
1272
1290
|
} | {
|
|
1273
1291
|
[x: number]: string | number | boolean | {
|
|
@@ -1340,11 +1358,13 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1340
1358
|
includes?: boolean;
|
|
1341
1359
|
flatMap?: boolean;
|
|
1342
1360
|
flat?: boolean;
|
|
1361
|
+
at?: boolean;
|
|
1343
1362
|
};
|
|
1363
|
+
at: never;
|
|
1344
1364
|
};
|
|
1345
1365
|
};
|
|
1346
|
-
name: string | null;
|
|
1347
1366
|
id: string;
|
|
1367
|
+
name: string | null;
|
|
1348
1368
|
createdAt: string;
|
|
1349
1369
|
updatedAt: string;
|
|
1350
1370
|
deletedAt: string;
|
|
@@ -1426,8 +1446,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1426
1446
|
createdAt: string;
|
|
1427
1447
|
updatedAt: string;
|
|
1428
1448
|
deletedAt: string;
|
|
1429
|
-
name: string;
|
|
1430
1449
|
id: string;
|
|
1450
|
+
name: string;
|
|
1431
1451
|
slug: string;
|
|
1432
1452
|
logoUrl: string | null;
|
|
1433
1453
|
siteUrl: string;
|
|
@@ -1447,14 +1467,14 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1447
1467
|
lastRecoveryAttemptAt: string;
|
|
1448
1468
|
recoveryDiscountCode: {
|
|
1449
1469
|
id: string;
|
|
1470
|
+
type: string;
|
|
1471
|
+
value: string;
|
|
1450
1472
|
createdAt: string;
|
|
1451
1473
|
updatedAt: string;
|
|
1452
1474
|
deletedAt: string;
|
|
1453
1475
|
brandId: string | null;
|
|
1454
1476
|
isActive: boolean;
|
|
1455
1477
|
code: string;
|
|
1456
|
-
type: string;
|
|
1457
|
-
value: string;
|
|
1458
1478
|
minPurchase: string;
|
|
1459
1479
|
maxDiscount: string;
|
|
1460
1480
|
usageLimit: number | null;
|
|
@@ -1472,8 +1492,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1472
1492
|
variant: {
|
|
1473
1493
|
price: number;
|
|
1474
1494
|
product: {
|
|
1475
|
-
name: string;
|
|
1476
1495
|
id: string;
|
|
1496
|
+
name: string;
|
|
1477
1497
|
slug: string;
|
|
1478
1498
|
createdAt: string;
|
|
1479
1499
|
updatedAt: string;
|
|
@@ -1552,7 +1572,9 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1552
1572
|
includes?: boolean;
|
|
1553
1573
|
flatMap?: boolean;
|
|
1554
1574
|
flat?: boolean;
|
|
1575
|
+
at?: boolean;
|
|
1555
1576
|
};
|
|
1577
|
+
at: never;
|
|
1556
1578
|
};
|
|
1557
1579
|
} | {
|
|
1558
1580
|
[x: number]: string | number | boolean | {
|
|
@@ -1625,11 +1647,13 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1625
1647
|
includes?: boolean;
|
|
1626
1648
|
flatMap?: boolean;
|
|
1627
1649
|
flat?: boolean;
|
|
1650
|
+
at?: boolean;
|
|
1628
1651
|
};
|
|
1652
|
+
at: never;
|
|
1629
1653
|
};
|
|
1630
1654
|
};
|
|
1631
|
-
name: string | null;
|
|
1632
1655
|
id: string;
|
|
1656
|
+
name: string | null;
|
|
1633
1657
|
createdAt: string;
|
|
1634
1658
|
updatedAt: string;
|
|
1635
1659
|
deletedAt: string;
|
|
@@ -1713,8 +1737,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1713
1737
|
createdAt: string;
|
|
1714
1738
|
updatedAt: string;
|
|
1715
1739
|
deletedAt: string;
|
|
1716
|
-
name: string;
|
|
1717
1740
|
id: string;
|
|
1741
|
+
name: string;
|
|
1718
1742
|
slug: string;
|
|
1719
1743
|
logoUrl: string | null;
|
|
1720
1744
|
siteUrl: string;
|
|
@@ -1734,14 +1758,14 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1734
1758
|
lastRecoveryAttemptAt: string;
|
|
1735
1759
|
recoveryDiscountCode: {
|
|
1736
1760
|
id: string;
|
|
1761
|
+
type: string;
|
|
1762
|
+
value: string;
|
|
1737
1763
|
createdAt: string;
|
|
1738
1764
|
updatedAt: string;
|
|
1739
1765
|
deletedAt: string;
|
|
1740
1766
|
brandId: string | null;
|
|
1741
1767
|
isActive: boolean;
|
|
1742
1768
|
code: string;
|
|
1743
|
-
type: string;
|
|
1744
|
-
value: string;
|
|
1745
1769
|
minPurchase: string;
|
|
1746
1770
|
maxDiscount: string;
|
|
1747
1771
|
usageLimit: number | null;
|
|
@@ -1759,8 +1783,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1759
1783
|
variant: {
|
|
1760
1784
|
price: number;
|
|
1761
1785
|
product: {
|
|
1762
|
-
name: string;
|
|
1763
1786
|
id: string;
|
|
1787
|
+
name: string;
|
|
1764
1788
|
slug: string;
|
|
1765
1789
|
createdAt: string;
|
|
1766
1790
|
updatedAt: string;
|
|
@@ -1839,7 +1863,9 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1839
1863
|
includes?: boolean;
|
|
1840
1864
|
flatMap?: boolean;
|
|
1841
1865
|
flat?: boolean;
|
|
1866
|
+
at?: boolean;
|
|
1842
1867
|
};
|
|
1868
|
+
at: never;
|
|
1843
1869
|
};
|
|
1844
1870
|
} | {
|
|
1845
1871
|
[x: number]: string | number | boolean | {
|
|
@@ -1912,11 +1938,13 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
1912
1938
|
includes?: boolean;
|
|
1913
1939
|
flatMap?: boolean;
|
|
1914
1940
|
flat?: boolean;
|
|
1941
|
+
at?: boolean;
|
|
1915
1942
|
};
|
|
1943
|
+
at: never;
|
|
1916
1944
|
};
|
|
1917
1945
|
};
|
|
1918
|
-
name: string | null;
|
|
1919
1946
|
id: string;
|
|
1947
|
+
name: string | null;
|
|
1920
1948
|
createdAt: string;
|
|
1921
1949
|
updatedAt: string;
|
|
1922
1950
|
deletedAt: string;
|
|
@@ -2020,8 +2048,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2020
2048
|
createdAt: string;
|
|
2021
2049
|
updatedAt: string;
|
|
2022
2050
|
deletedAt: string;
|
|
2023
|
-
name: string;
|
|
2024
2051
|
id: string;
|
|
2052
|
+
name: string;
|
|
2025
2053
|
slug: string;
|
|
2026
2054
|
logoUrl: string | null;
|
|
2027
2055
|
siteUrl: string;
|
|
@@ -2041,14 +2069,14 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2041
2069
|
lastRecoveryAttemptAt: string;
|
|
2042
2070
|
recoveryDiscountCode: {
|
|
2043
2071
|
id: string;
|
|
2072
|
+
type: string;
|
|
2073
|
+
value: string;
|
|
2044
2074
|
createdAt: string;
|
|
2045
2075
|
updatedAt: string;
|
|
2046
2076
|
deletedAt: string;
|
|
2047
2077
|
brandId: string | null;
|
|
2048
2078
|
isActive: boolean;
|
|
2049
2079
|
code: string;
|
|
2050
|
-
type: string;
|
|
2051
|
-
value: string;
|
|
2052
2080
|
minPurchase: string;
|
|
2053
2081
|
maxDiscount: string;
|
|
2054
2082
|
usageLimit: number | null;
|
|
@@ -2066,8 +2094,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2066
2094
|
variant: {
|
|
2067
2095
|
price: number;
|
|
2068
2096
|
product: {
|
|
2069
|
-
name: string;
|
|
2070
2097
|
id: string;
|
|
2098
|
+
name: string;
|
|
2071
2099
|
slug: string;
|
|
2072
2100
|
createdAt: string;
|
|
2073
2101
|
updatedAt: string;
|
|
@@ -2146,7 +2174,9 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2146
2174
|
includes?: boolean;
|
|
2147
2175
|
flatMap?: boolean;
|
|
2148
2176
|
flat?: boolean;
|
|
2177
|
+
at?: boolean;
|
|
2149
2178
|
};
|
|
2179
|
+
at: never;
|
|
2150
2180
|
};
|
|
2151
2181
|
} | {
|
|
2152
2182
|
[x: number]: string | number | boolean | {
|
|
@@ -2219,11 +2249,13 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2219
2249
|
includes?: boolean;
|
|
2220
2250
|
flatMap?: boolean;
|
|
2221
2251
|
flat?: boolean;
|
|
2252
|
+
at?: boolean;
|
|
2222
2253
|
};
|
|
2254
|
+
at: never;
|
|
2223
2255
|
};
|
|
2224
2256
|
};
|
|
2225
|
-
name: string | null;
|
|
2226
2257
|
id: string;
|
|
2258
|
+
name: string | null;
|
|
2227
2259
|
createdAt: string;
|
|
2228
2260
|
updatedAt: string;
|
|
2229
2261
|
deletedAt: string;
|
|
@@ -2389,8 +2421,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2389
2421
|
createdAt: string;
|
|
2390
2422
|
updatedAt: string;
|
|
2391
2423
|
deletedAt: string;
|
|
2392
|
-
name: string;
|
|
2393
2424
|
id: string;
|
|
2425
|
+
name: string;
|
|
2394
2426
|
slug: string;
|
|
2395
2427
|
logoUrl: string | null;
|
|
2396
2428
|
siteUrl: string;
|
|
@@ -2407,18 +2439,20 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2407
2439
|
createdAt: string;
|
|
2408
2440
|
updatedAt: string;
|
|
2409
2441
|
deletedAt: string;
|
|
2410
|
-
name: string;
|
|
2411
2442
|
id: string;
|
|
2443
|
+
name: string;
|
|
2412
2444
|
isActive: boolean;
|
|
2413
2445
|
};
|
|
2414
|
-
name: string;
|
|
2415
2446
|
id: string;
|
|
2447
|
+
name: string;
|
|
2416
2448
|
brandId: string | null;
|
|
2417
2449
|
stateId: string;
|
|
2418
2450
|
allowCOD: boolean;
|
|
2419
2451
|
allowOnline: boolean;
|
|
2420
2452
|
waybillOnly: boolean;
|
|
2421
2453
|
estimatedDays: number | null;
|
|
2454
|
+
noteTitle: string | null;
|
|
2455
|
+
noteContent: string | null;
|
|
2422
2456
|
isActive: boolean;
|
|
2423
2457
|
};
|
|
2424
2458
|
items: {
|
|
@@ -2432,8 +2466,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2432
2466
|
createdAt: string;
|
|
2433
2467
|
updatedAt: string;
|
|
2434
2468
|
deletedAt: string;
|
|
2435
|
-
name: string;
|
|
2436
2469
|
id: string;
|
|
2470
|
+
name: string;
|
|
2437
2471
|
slug: string;
|
|
2438
2472
|
brandId: string;
|
|
2439
2473
|
isActive: boolean;
|
|
@@ -2509,7 +2543,9 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2509
2543
|
includes?: boolean;
|
|
2510
2544
|
flatMap?: boolean;
|
|
2511
2545
|
flat?: boolean;
|
|
2546
|
+
at?: boolean;
|
|
2512
2547
|
};
|
|
2548
|
+
at: never;
|
|
2513
2549
|
};
|
|
2514
2550
|
} | {
|
|
2515
2551
|
[x: number]: string | number | boolean | {
|
|
@@ -2582,11 +2618,13 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2582
2618
|
includes?: boolean;
|
|
2583
2619
|
flatMap?: boolean;
|
|
2584
2620
|
flat?: boolean;
|
|
2621
|
+
at?: boolean;
|
|
2585
2622
|
};
|
|
2623
|
+
at: never;
|
|
2586
2624
|
};
|
|
2587
2625
|
};
|
|
2588
|
-
name: string | null;
|
|
2589
2626
|
id: string;
|
|
2627
|
+
name: string | null;
|
|
2590
2628
|
isActive: boolean;
|
|
2591
2629
|
thumbnailUrl: string | null;
|
|
2592
2630
|
productId: string;
|
|
@@ -2598,8 +2636,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2598
2636
|
createdAt: string;
|
|
2599
2637
|
updatedAt: string;
|
|
2600
2638
|
deletedAt: string;
|
|
2601
|
-
name: string;
|
|
2602
2639
|
id: string;
|
|
2640
|
+
name: string;
|
|
2603
2641
|
isActive: boolean;
|
|
2604
2642
|
address: string | null;
|
|
2605
2643
|
city: string | null;
|
|
@@ -2611,8 +2649,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
|
|
|
2611
2649
|
warehouseId: string | null;
|
|
2612
2650
|
quantity: number;
|
|
2613
2651
|
}[];
|
|
2614
|
-
id: string;
|
|
2615
2652
|
email: string | null;
|
|
2653
|
+
id: string;
|
|
2616
2654
|
brandId: string;
|
|
2617
2655
|
deliveryZoneId: string;
|
|
2618
2656
|
recoveryAttempts: number;
|