Skip to content

Commit

Permalink
add order page (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogfrogfog authored Sep 6, 2024
1 parent 50520c0 commit 02dbdc8
Show file tree
Hide file tree
Showing 5 changed files with 314 additions and 21 deletions.
2 changes: 1 addition & 1 deletion proto
11 changes: 1 addition & 10 deletions src/api/proto-http/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export type ArchiveItemInsert = {
};

export type Address = {
id: number | undefined;
addressInsert: AddressInsert | undefined;
};

Expand All @@ -96,9 +95,6 @@ export type AddressInsert = {
};

export type Buyer = {
id: number | undefined;
billingAddressId: number | undefined;
shippingAddressId: number | undefined;
buyerInsert: BuyerInsert | undefined;
};

Expand Down Expand Up @@ -357,7 +353,6 @@ export type PaymentMethodNameEnum =
| "PAYMENT_METHOD_NAME_ENUM_USDT_SHASTA";
// Payment represents the payment table
export type Payment = {
id: number | undefined;
createdAt: wellKnownTimestamp | undefined;
modifiedAt: wellKnownTimestamp | undefined;
paymentInsert: PaymentInsert | undefined;
Expand Down Expand Up @@ -392,7 +387,6 @@ export type PromoCodeInsert = {

// PromoCode represents the promo_code table
export type PromoCode = {
id: number | undefined;
promoCodeInsert: PromoCodeInsert | undefined;
};

Expand All @@ -410,7 +404,7 @@ export type ShipmentCarrier = {

// Shipment represents the shipment table
export type Shipment = {
id: number | undefined;
cost: googletype_Decimal | undefined;
createdAt: wellKnownTimestamp | undefined;
updatedAt: wellKnownTimestamp | undefined;
carrierId: number | undefined;
Expand Down Expand Up @@ -458,13 +452,10 @@ export type OrderFull = {
export type Order = {
id: number | undefined;
uuid: string | undefined;
buyerId: number | undefined;
placed: wellKnownTimestamp | undefined;
modified: wellKnownTimestamp | undefined;
paymentId: number | undefined;
totalPrice: googletype_Decimal | undefined;
orderStatusId: number | undefined;
shipmentId: number | undefined;
promoId: number | undefined;
};

Expand Down
11 changes: 1 addition & 10 deletions src/api/proto-http/frontend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,10 @@ export type common_OrderFull = {
export type common_Order = {
id: number | undefined;
uuid: string | undefined;
buyerId: number | undefined;
placed: wellKnownTimestamp | undefined;
modified: wellKnownTimestamp | undefined;
paymentId: number | undefined;
totalPrice: googletype_Decimal | undefined;
orderStatusId: number | undefined;
shipmentId: number | undefined;
promoId: number | undefined;
};

Expand All @@ -467,15 +464,14 @@ export type common_OrderItem = {

// Payment represents the payment table
export type common_Payment = {
id: number | undefined;
createdAt: wellKnownTimestamp | undefined;
modifiedAt: wellKnownTimestamp | undefined;
paymentInsert: common_PaymentInsert | undefined;
};

// Shipment represents the shipment table
export type common_Shipment = {
id: number | undefined;
cost: googletype_Decimal | undefined;
createdAt: wellKnownTimestamp | undefined;
updatedAt: wellKnownTimestamp | undefined;
carrierId: number | undefined;
Expand All @@ -486,7 +482,6 @@ export type common_Shipment = {

// PromoCode represents the promo_code table
export type common_PromoCode = {
id: number | undefined;
promoCodeInsert: common_PromoCodeInsert | undefined;
};

Expand All @@ -501,14 +496,10 @@ export type common_PromoCodeInsert = {
};

export type common_Buyer = {
id: number | undefined;
billingAddressId: number | undefined;
shippingAddressId: number | undefined;
buyerInsert: common_BuyerInsert | undefined;
};

export type common_Address = {
id: number | undefined;
addressInsert: common_AddressInsert | undefined;
};

Expand Down
Loading

0 comments on commit 02dbdc8

Please sign in to comment.