UNPKG

@enable-tech/shared-types

Version:

This package represents the single source of truth of the Types being used in the codebase (front-end and back-end) of enable.tech, It is an organization-scoped package. So, all the development teams belonging to it can participate to enhance it.

35 lines 1.18 kB
import { I_TempCustomer } from 'src/modules/customer/backend/responses/schemas'; import { E_DeliveryOrderDropOff, E_ShipmentStatus } from '../enums'; import { I_Address } from 'src/modules/location/backend/responses/schemas'; import { keysToPick } from '../../client/props'; export type T_UpdateShipmentDataBodyParams = { _id: string; salesOrderId?: string; trackingNumber?: string; status?: E_ShipmentStatus; externalId?: string; index?: number; totalShipments?: number; eblBrandId?: string; location?: I_Address; customer?: Pick<I_TempCustomer, (typeof keysToPick)[number]>; cashToCollect?: number; }; export type T_PostDeliveryOrderBodyParams = { shipmentIds: string[]; dropOff: E_DeliveryOrderDropOff; distributionCenterId?: string; }; export type T_PostAssignDriverToDeliveryOrderBodyParams = { enableDriverId: string; deliveryOrderId: string; }; export type T_PostAcquireCustomerLocationBodyParams = { tempCustomerId: string; }; export type T_UpdateTempCustomerBodyParams = I_TempCustomer & { eblBrandId?: string; companyId: string; salesOrderId: string; }; //# sourceMappingURL=index.d.ts.map