Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(customer-order.function.ts): use less endpoints for orders, only range and get #105

Merged
merged 6 commits into from
Feb 29, 2024

Conversation

jamalsoueidan
Copy link
Owner

…ints

feat(customer-order.function.ts): add new endpoint for customer order range
feat(customer-order.function.ts): update endpoint handler to use new controller
feat(customer-order.function.ts): add support for fetching order range
feat(customer-order.function.ts): update endpoint name to customerOrderRange
feat(customer-order.function.ts): update handler to use CustomerOrderControllerRange
feat(customer/services/order/_types.ts): remove unused types and lookup properties
feat(customer/services/order/get-lineitem.ts): remove unused file and specs

chore(get-shipping.spec.ts): remove unused test file
chore(get-shipping.ts): remove unused file
chore(get.spec.ts): fix typo in import statement
chore(get.ts): refactor and optimize code for getting order details

chore(order): remove unused CustomerOrderServiceList file
feat(order): add CustomerOrderServiceRange for fetching orders within a range
feat(order): add CustomerOrderServicePaginate for paginating order results

feat(order): add CustomerOrderServiceRange function to retrieve orders within a specified date range for a customer

…ints

feat(customer-order.function.ts): add new endpoint for customer order range
feat(customer-order.function.ts): update endpoint handler to use new controller
feat(customer-order.function.ts): add support for fetching order range
feat(customer-order.function.ts): update endpoint name to customerOrderRange
feat(customer-order.function.ts): update handler to use CustomerOrderControllerRange
feat(customer/services/order/_types.ts): remove unused types and lookup properties
feat(customer/services/order/get-lineitem.ts): remove unused file and specs

chore(get-shipping.spec.ts): remove unused test file
chore(get-shipping.ts): remove unused file
chore(get.spec.ts): fix typo in import statement
chore(get.ts): refactor and optimize code for getting order details

chore(order): remove unused CustomerOrderServiceList file
feat(order): add CustomerOrderServiceRange for fetching orders within a range
feat(order): add CustomerOrderServicePaginate for paginating order results

feat(order): add CustomerOrderServiceRange function to retrieve orders within a specified date range for a customer
feat(order): add groupId field to LineItemSchema
feat(order): add groupId field to Properties interface
feat(order): add range endpoint to order controllers
feat(order): add shippingId field to Properties interface
feat(order): update get-shipping-booked-time service to handle multiple line items
feat(order): update get-shipping-booked-time service to sort by shippingId and from date

feat(webhook): add data for an order with fulfillment and refunds

feat(webhook): add data for an order with shipping information

feat(webhook): add data for order with no fulfillment to webhook data-order.ts

fix(order.spec.ts): correct file names for data imports
feat(order.ts): add groupId field to getOrderObject function
…ts to 3

refactor(generate.ts): replace CustomerOrderServiceGetOrdersBookedTimes
with UserAvailabilityServiceGetOrders
feat(get-orders): add UserAvailabilityServiceGetOrders function
feat(get-orders): add UserAvailabilityServiceGetOrders function

chore(availability): remove unused file get-shipping-booked-time.ts
fix(generate.spec.ts): update targetToTime calculation to add 30 minutes
fix(generate.spec.ts): remove unnecessary response variable assignment
fix(generate.spec.ts): update slotExists check to use targetFromTime and targetToTime
feat(generate.spec.ts): add test case for handling shipping time in available slots
fix(get-orders.spec.ts): update property names in order object assertions
fix(get-orders.ts): update property names in UserAvailabilityServiceGetOrdersAggregate
fix(get-orders.ts): update $and to $or in MongoDB query conditions
fix(remove-booked-slots.ts): refactor removeBookedSlots function to handle overlapping intervals
fix(shipping.ts): set shipping duration from filter or default value
…endDate

fix(range.ts): update variable names to match parameter names for clarity
fix(range.ts): correct comparison operators for date ranges
fix(range.ts): update index names in order schema
refactor(get-orders.spec.ts): use line item properties for start and end dates
fix(get-orders.ts): update parameter names for start and end dates
fix(get-orders.ts): correct comparison operators for date ranges
fix(get-orders.ts): ensure correct field names are used for date comparisons
fix(remove-booked-slots.spec.ts): update variable names for clarity
refactor(order.ts): import addMinutes function for generating random date range
@jamalsoueidan jamalsoueidan merged commit 9334944 into main Feb 29, 2024
2 checks passed
@jamalsoueidan jamalsoueidan deleted the fix-shipping-timing branch February 29, 2024 05:52
@jamalsoueidan jamalsoueidan self-assigned this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant