@raxonltd/raxon-core 1.1.7 → 1.1.13
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/core/component/general.image.tsx +86 -0
- package/core/context/cart.context.tsx +446 -0
- package/core/context/security.context.tsx +151 -0
- package/core/feature/address/api/places.api.ts +92 -0
- package/core/feature/address/form/address-search-input.tsx +125 -0
- package/core/feature/address/hook/use.addres.tsx +63 -0
- package/core/feature/address/hook/use.address-autocomplete.ts +116 -0
- package/core/feature/address/util/address.types.ts +38 -0
- package/core/feature/address/util/parse-google-place.ts +66 -0
- package/core/feature/analytic-event/analytic.event.api.ts +27 -0
- package/core/feature/analytic-event/analytic.event.context.tsx +180 -0
- package/core/feature/analytic-event/analytic.event.util.ts +42 -0
- package/core/feature/analytic-event/use.analytic.auto.tsx +114 -0
- package/core/feature/article/hook/use.article.tsx +33 -0
- package/core/feature/attribute/hook/use.attribute.tsx +24 -0
- package/core/feature/auth/hook/use.auth.tsx +141 -0
- package/core/feature/auth/modal/modal.auth.tsx +80 -0
- package/core/feature/auth/view/view.login.tsx +199 -0
- package/core/feature/auth/view/view.register.tsx +333 -0
- package/core/feature/bank-account/hook/use.bank.account.tsx +47 -0
- package/core/feature/brand/hook/use.brand.tsx +24 -0
- package/core/feature/cart/component/cart.order.summary.tsx +89 -0
- package/core/feature/cart/component/cart.promo.code.section.tsx +208 -0
- package/core/feature/cart/hook/use.cart.tsx +267 -0
- package/core/feature/cart/util/basket-pay.response.ts +67 -0
- package/core/feature/cart/util/cart-optimistic.ts +425 -0
- package/core/feature/cart/util/garanti-payment.ts +27 -0
- package/core/feature/collection/hook/use.collection.tsx +32 -0
- package/core/feature/delivery-method/hook/use.delivery.method.tsx +40 -0
- package/core/feature/delivery-method/util/checkout.delivery.method.ts +11 -0
- package/core/feature/faq/hook/use.faq.tsx +23 -0
- package/core/feature/favorite/hook/use.favorite.tsx +48 -0
- package/core/feature/form-submit/form/form.contact.tsx +118 -0
- package/core/feature/form-submit/hook/use.form.submit.tsx +16 -0
- package/core/feature/invoice/hook/use.invoice.tsx +51 -0
- package/core/feature/newsletter/hook/use.newsletter.tsx +124 -0
- package/core/feature/newsletter/modal/modal.newsletter.product.tsx +163 -0
- package/core/feature/order/hook/use.order.tsx +31 -0
- package/core/feature/payment-method/checkout.payment.options.ts +117 -0
- package/core/feature/payment-method/hook/use.payment.method.tsx +44 -0
- package/core/feature/product/hook/use.product.tsx +122 -0
- package/core/feature/profile/hook/use.profile.tsx +126 -0
- package/core/feature/promo-code/hook/use.promo.code.tsx +27 -0
- package/core/interface/basket.interface.ts +360 -0
- package/core/interface/bootstrap.interface.ts +39 -0
- package/core/interface/context.interface.ts +9 -0
- package/core/interface/inventory.interface.ts +88 -0
- package/core/interface/nexine.interface.ts +4 -0
- package/core/interface/prisma.interface.ts +8844 -0
- package/core/interface/product.interface.ts +111 -0
- package/core/raxon.context.tsx +256 -0
- package/core/schema/checkout.schema.ts +103 -0
- package/core/server/places.proxy.ts +35 -0
- package/core/server/raxon.bootstrap.route.ts +39 -0
- package/core/server/raxon.server.ts +80 -0
- package/core/util/basket.item.display.ts +19 -0
- package/core/util/category.nav.ts +46 -0
- package/core/util/client-ip.ts +35 -0
- package/core/util/collection.util.ts +433 -0
- package/core/util/fetch.bootstrap.ts +21 -0
- package/core/util/garanti-payment.ts +5 -0
- package/core/util/nexine.axios.tsx +104 -0
- package/core/util/no-cache.ts +6 -0
- package/core/util/util.ts +191 -0
- package/core/view/view.checkout.tsx +1964 -0
- package/dist/core/feature/address/api/places.api.d.ts.map +1 -1
- package/dist/core/feature/address/api/places.api.js +18 -4
- package/dist/core/server/places.proxy.d.ts +10 -0
- package/dist/core/server/places.proxy.d.ts.map +1 -0
- package/dist/core/server/places.proxy.js +24 -0
- package/dist/core/server/raxon.bootstrap.route.d.ts +7 -0
- package/dist/core/server/raxon.bootstrap.route.d.ts.map +1 -0
- package/dist/core/server/raxon.bootstrap.route.js +27 -0
- package/dist/core/server/raxon.server.d.ts +24 -0
- package/dist/core/server/raxon.server.d.ts.map +1 -0
- package/dist/core/server/raxon.server.js +59 -0
- package/dist/core/view/view.checkout.js +2 -2
- package/dist/middleware.d.ts +6 -0
- package/dist/middleware.d.ts.map +1 -0
- package/dist/middleware.js +5 -0
- package/dist/server-bootstrap.d.ts +2 -0
- package/dist/server-bootstrap.d.ts.map +1 -0
- package/dist/server-bootstrap.js +1 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +22 -3
- package/tailwind.css +11 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ProductContent, ProductType, SaleType, WeightType } from '@/core/interface/prisma.interface';
|
|
2
|
+
|
|
3
|
+
export interface InventoryFetchResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
stock: number;
|
|
10
|
+
sku: string;
|
|
11
|
+
type: ProductType;
|
|
12
|
+
saleType: SaleType;
|
|
13
|
+
articleNumber: string;
|
|
14
|
+
tags: string[];
|
|
15
|
+
currentStock: number;
|
|
16
|
+
icon?: string;
|
|
17
|
+
shortDescription?: string;
|
|
18
|
+
brand: string;
|
|
19
|
+
barcode: string;
|
|
20
|
+
dynamicContent: any;
|
|
21
|
+
weightType: WeightType;
|
|
22
|
+
weightValue: number;
|
|
23
|
+
isFavorite: boolean;
|
|
24
|
+
status: 'PUBLISHED' | 'OUT_OF_STOCK' | 'UNKNOWN';
|
|
25
|
+
price: {
|
|
26
|
+
mainPrice: number;
|
|
27
|
+
discountPrice: number;
|
|
28
|
+
taxAmount: number;
|
|
29
|
+
depositAmount: number;
|
|
30
|
+
payPrice: number;
|
|
31
|
+
};
|
|
32
|
+
images: string[];
|
|
33
|
+
categories: {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
slug: string;
|
|
37
|
+
}[];
|
|
38
|
+
}
|
|
39
|
+
export interface InventoryDetailResponse extends InventoryFetchResponse {
|
|
40
|
+
baseUnit: string;
|
|
41
|
+
productUnits: {
|
|
42
|
+
id: string;
|
|
43
|
+
unit: string;
|
|
44
|
+
quantityPerUnitOfMeasure: number;
|
|
45
|
+
}[];
|
|
46
|
+
variant: {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
attribute1: string | null;
|
|
50
|
+
attribute2: string | null;
|
|
51
|
+
price: {
|
|
52
|
+
mainPrice: number;
|
|
53
|
+
discountPrice: number;
|
|
54
|
+
taxAmount: number;
|
|
55
|
+
depositAmount: number;
|
|
56
|
+
payPrice: number;
|
|
57
|
+
};
|
|
58
|
+
}[];
|
|
59
|
+
description: string;
|
|
60
|
+
saleUnit: string;
|
|
61
|
+
purchaseUnit: string;
|
|
62
|
+
shortDescription: string;
|
|
63
|
+
productContent: ProductContent;
|
|
64
|
+
price: {
|
|
65
|
+
mainPrice: number;
|
|
66
|
+
discountPrice: number;
|
|
67
|
+
taxAmount: number;
|
|
68
|
+
depositAmount: number;
|
|
69
|
+
payPrice: number;
|
|
70
|
+
};
|
|
71
|
+
matrix?: InventoryPriceMatrixResponse[] | null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface InventoryPriceMatrixResponse {
|
|
75
|
+
supplier: {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
} | null;
|
|
79
|
+
unit: {
|
|
80
|
+
id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
} | null;
|
|
83
|
+
price: {
|
|
84
|
+
mainPrice: number;
|
|
85
|
+
discountPrice: number;
|
|
86
|
+
minimumQuantity: number;
|
|
87
|
+
};
|
|
88
|
+
}
|