@compassdigital/sdk.typescript 4.709.0 → 4.710.0
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/lib/index.d.ts +15 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +55 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +42 -0
- package/src/interface/consumer.ts +102 -0
|
@@ -4499,6 +4499,92 @@ export interface GetConsumerLocationResponse {
|
|
|
4499
4499
|
address?: ConsumerAddress;
|
|
4500
4500
|
}
|
|
4501
4501
|
|
|
4502
|
+
export interface LocationDto {
|
|
4503
|
+
// Street address
|
|
4504
|
+
address?: string;
|
|
4505
|
+
// External identifier for the location
|
|
4506
|
+
extId?: string;
|
|
4507
|
+
// Latitude
|
|
4508
|
+
lat?: number;
|
|
4509
|
+
// Longitude
|
|
4510
|
+
lon?: number;
|
|
4511
|
+
}
|
|
4512
|
+
|
|
4513
|
+
export interface EtaDto {
|
|
4514
|
+
// Estimated drop-off time
|
|
4515
|
+
dropOff?: string;
|
|
4516
|
+
// Estimated pick-up time
|
|
4517
|
+
pickUp?: string;
|
|
4518
|
+
// Estimated return time
|
|
4519
|
+
return?: string;
|
|
4520
|
+
}
|
|
4521
|
+
|
|
4522
|
+
export interface RequestLocationDto {
|
|
4523
|
+
// Street address
|
|
4524
|
+
address: string;
|
|
4525
|
+
}
|
|
4526
|
+
|
|
4527
|
+
export interface RequestDto {
|
|
4528
|
+
// Client name
|
|
4529
|
+
clientName?: string;
|
|
4530
|
+
// Destination location
|
|
4531
|
+
dst?: RequestLocationDto;
|
|
4532
|
+
// Source location
|
|
4533
|
+
src?: RequestLocationDto;
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4536
|
+
export interface RobotPositionDto {
|
|
4537
|
+
// Latitude
|
|
4538
|
+
lat: number;
|
|
4539
|
+
// Longitude
|
|
4540
|
+
lon: number;
|
|
4541
|
+
// Heading, in degrees
|
|
4542
|
+
yaw: number;
|
|
4543
|
+
}
|
|
4544
|
+
|
|
4545
|
+
export interface RoutePointDto {
|
|
4546
|
+
// Latitude
|
|
4547
|
+
lat: number;
|
|
4548
|
+
// Longitude
|
|
4549
|
+
lon: number;
|
|
4550
|
+
}
|
|
4551
|
+
|
|
4552
|
+
export interface RobotDto {
|
|
4553
|
+
// Whether the robot is delivering other orders
|
|
4554
|
+
deliveringOtherOrders?: boolean;
|
|
4555
|
+
// Robot name
|
|
4556
|
+
name?: string;
|
|
4557
|
+
// Robot position
|
|
4558
|
+
position?: RobotPositionDto;
|
|
4559
|
+
// Robot route
|
|
4560
|
+
route?: RoutePointDto[];
|
|
4561
|
+
}
|
|
4562
|
+
|
|
4563
|
+
export interface OrderOpenCloseLidResponseDto {
|
|
4564
|
+
// Order creation time
|
|
4565
|
+
createdAt?: string;
|
|
4566
|
+
// Destination location
|
|
4567
|
+
dst?: LocationDto;
|
|
4568
|
+
// Estimated times
|
|
4569
|
+
eta?: EtaDto;
|
|
4570
|
+
// External identifier for the order
|
|
4571
|
+
extId?: string;
|
|
4572
|
+
// Order identifier
|
|
4573
|
+
id: string;
|
|
4574
|
+
// Whether the lid is ready to be opened
|
|
4575
|
+
ready: boolean;
|
|
4576
|
+
// Request details
|
|
4577
|
+
request?: RequestDto;
|
|
4578
|
+
// Robots involved
|
|
4579
|
+
robots?: RobotDto[];
|
|
4580
|
+
// Scheduled pick-up time
|
|
4581
|
+
scheduledPickUp?: string;
|
|
4582
|
+
// Source location
|
|
4583
|
+
src?: LocationDto;
|
|
4584
|
+
// Order status
|
|
4585
|
+
status: string;
|
|
4586
|
+
}
|
|
4587
|
+
|
|
4502
4588
|
// GET /consumer/v1/health-check
|
|
4503
4589
|
|
|
4504
4590
|
export type HealthCheckControllerExecuteResponse = {};
|
|
@@ -5379,3 +5465,19 @@ export interface GetConsumerLocationQuery {
|
|
|
5379
5465
|
}
|
|
5380
5466
|
|
|
5381
5467
|
export type GetConsumerLocationResponse$0 = GetConsumerLocationResponse;
|
|
5468
|
+
|
|
5469
|
+
// POST /consumer/delivery/order/{id}/open - Open the lid of a delivery order
|
|
5470
|
+
|
|
5471
|
+
export interface PostConsumerDeliveryOrderOpenLidPath {
|
|
5472
|
+
id: string;
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
export type PostConsumerDeliveryOrderOpenLidResponse = OrderOpenCloseLidResponseDto;
|
|
5476
|
+
|
|
5477
|
+
// POST /consumer/delivery/order/{id}/close - Close the lid of a delivery order
|
|
5478
|
+
|
|
5479
|
+
export interface PostConsumerDeliveryOrderCloseLidPath {
|
|
5480
|
+
id: string;
|
|
5481
|
+
}
|
|
5482
|
+
|
|
5483
|
+
export type PostConsumerDeliveryOrderCloseLidResponse = OrderOpenCloseLidResponseDto;
|