fix shop
This commit is contained in:
123
types/index.ts
123
types/index.ts
@ -44,7 +44,7 @@ export interface PBFooterItem {
|
||||
}>;
|
||||
data: Array<{
|
||||
title: string;
|
||||
items: Array<string>
|
||||
items: Array<string>;
|
||||
}>;
|
||||
company_info: Array<{
|
||||
data: string;
|
||||
@ -71,7 +71,6 @@ export interface PBPageItem {
|
||||
section_name: string;
|
||||
}
|
||||
|
||||
|
||||
export interface SectionLangData {
|
||||
title: string;
|
||||
description: string;
|
||||
@ -111,13 +110,13 @@ export type Countries = {
|
||||
currency_iso_code: string;
|
||||
iso_code: string;
|
||||
name: string;
|
||||
}
|
||||
};
|
||||
|
||||
export type PartnersList = {
|
||||
country_iso: string;
|
||||
country_name: string;
|
||||
total: number;
|
||||
}
|
||||
};
|
||||
|
||||
export type Currencies = {
|
||||
iso_code: string;
|
||||
@ -128,78 +127,88 @@ export type Currencies = {
|
||||
sign: string;
|
||||
active: boolean;
|
||||
suffix: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
export type FeatureValue = {
|
||||
parent: number,
|
||||
products_with_value: number,
|
||||
value: string,
|
||||
value_id: number,
|
||||
}
|
||||
parent: number;
|
||||
products_with_value: number;
|
||||
value: string;
|
||||
value_id: number;
|
||||
};
|
||||
|
||||
export type Feature = {
|
||||
feature: string,
|
||||
feature_id: number,
|
||||
feature_values: FeatureValue[],
|
||||
products_with_feature: number,
|
||||
}
|
||||
feature: string;
|
||||
feature_id: number;
|
||||
feature_values: FeatureValue[];
|
||||
products_with_feature: number;
|
||||
};
|
||||
|
||||
export type ProductType = {
|
||||
applied_tax_rate: number,
|
||||
cover_picture_uuid: string,
|
||||
description: string,
|
||||
formatted_price: string,
|
||||
id: number,
|
||||
in_stock: number,
|
||||
is_sale_active: boolean,
|
||||
link_rewrite: string,
|
||||
name: string,
|
||||
price: number,
|
||||
tax_name: string,
|
||||
cart_item_id?: number
|
||||
product_id?: number
|
||||
}
|
||||
|
||||
applied_tax_rate: number;
|
||||
cover_picture_uuid: string;
|
||||
description: string;
|
||||
formatted_price: string;
|
||||
id: number;
|
||||
in_stock: number;
|
||||
is_sale_active: boolean;
|
||||
link_rewrite: string;
|
||||
name: string;
|
||||
price: number;
|
||||
tax_name: string;
|
||||
cart_item_id?: number;
|
||||
product_id?: number;
|
||||
};
|
||||
|
||||
export interface Country {
|
||||
iso_code: string
|
||||
currency_iso_code: string
|
||||
call_prefix: string
|
||||
need_postcode: boolean
|
||||
postcode_format: string
|
||||
is_default: boolean
|
||||
active: boolean
|
||||
name: string
|
||||
iso_code: string;
|
||||
currency_iso_code: string;
|
||||
call_prefix: string;
|
||||
need_postcode: boolean;
|
||||
postcode_format: string;
|
||||
is_default: boolean;
|
||||
active: boolean;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface Currency {
|
||||
iso_code: string
|
||||
name: string
|
||||
UpdatedAt: string
|
||||
iso_code_num: number
|
||||
precision: number
|
||||
sign: string
|
||||
active: boolean
|
||||
suffix: boolean
|
||||
iso_code: string;
|
||||
name: string;
|
||||
UpdatedAt: string;
|
||||
iso_code_num: number;
|
||||
precision: number;
|
||||
sign: string;
|
||||
active: boolean;
|
||||
suffix: boolean;
|
||||
}
|
||||
|
||||
export interface UserCart {
|
||||
id: number
|
||||
checkout_in_progress: boolean
|
||||
total_value: number
|
||||
currency_iso: string
|
||||
id: number;
|
||||
checkout_in_progress: boolean;
|
||||
total_value: number;
|
||||
currency_iso: string;
|
||||
}
|
||||
|
||||
export interface GenericResponse<Data> {
|
||||
data: Data
|
||||
message?: string
|
||||
status: number
|
||||
data: Data;
|
||||
message?: string;
|
||||
status: number;
|
||||
}
|
||||
|
||||
export interface GenericResponseItems<Data> {
|
||||
data: { items: Data , items_count: number }
|
||||
message?: string
|
||||
status: number
|
||||
data: { items: Data; items_count: number };
|
||||
message?: string;
|
||||
status: number;
|
||||
}
|
||||
|
||||
export type { InvestmentPiece, PlanPrediction, PeriodToFirstPiece} from './PlanPrediction'
|
||||
export interface GenericResponseChildren<Data> {
|
||||
data: { children: Data; items_count: number };
|
||||
message?: string;
|
||||
status: number;
|
||||
}
|
||||
|
||||
export type {
|
||||
InvestmentPiece,
|
||||
PlanPrediction,
|
||||
PeriodToFirstPiece,
|
||||
} from "./planPrediction";
|
||||
export type { Product } from "./product";
|
||||
|
13
types/product.ts
Normal file
13
types/product.ts
Normal file
@ -0,0 +1,13 @@
|
||||
export interface Product {
|
||||
id: number;
|
||||
link_rewrite: string;
|
||||
name: string;
|
||||
cover_picture_uuid: string;
|
||||
description: string;
|
||||
price: number;
|
||||
formatted_price: string;
|
||||
in_stock: number;
|
||||
is_sale_active: boolean;
|
||||
applied_tax_rate: number;
|
||||
tax_name: string;
|
||||
}
|
Reference in New Issue
Block a user