@compassdigital/sdk.typescript 4.112.0 → 4.114.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 +124 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +136 -7
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +21 -14
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +329 -15
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/location.d.ts +14 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +11 -0
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +12 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +34 -0
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +344 -12
- package/src/interface/centricos.ts +23 -22
- package/src/interface/consumer.ts +465 -26
- package/src/interface/location.ts +24 -0
- package/src/interface/mealplan.ts +19 -0
- package/src/interface/menu.ts +12 -0
- package/src/interface/shoppingcart.ts +40 -0
- package/lib/interface/delivery.d.ts +0 -92
- package/lib/interface/delivery.d.ts.map +0 -1
- package/lib/interface/delivery.js +0 -5
- package/lib/interface/delivery.js.map +0 -1
- package/src/interface/delivery.ts +0 -143
package/src/interface/menu.ts
CHANGED
|
@@ -443,6 +443,7 @@ export interface DraftBrandDTO {
|
|
|
443
443
|
global_menu_group_id?: string;
|
|
444
444
|
posid_segment?: string;
|
|
445
445
|
is_simplified_view?: boolean;
|
|
446
|
+
auto_push_to_local?: boolean;
|
|
446
447
|
frictionless_partner?: string;
|
|
447
448
|
meta?: BrandMeta;
|
|
448
449
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -466,6 +467,7 @@ export interface PublishedBrandDTO {
|
|
|
466
467
|
global_menu_group_id?: string;
|
|
467
468
|
posid_segment?: string;
|
|
468
469
|
is_simplified_view?: boolean;
|
|
470
|
+
auto_push_to_local?: boolean;
|
|
469
471
|
frictionless_partner?: string;
|
|
470
472
|
meta?: Record<string, any>;
|
|
471
473
|
permissions?: Record<string, any>;
|
|
@@ -2942,6 +2944,7 @@ export interface PostMenuV3DraftBrandBody {
|
|
|
2942
2944
|
global_menu_group_id?: string;
|
|
2943
2945
|
posid_segment?: string;
|
|
2944
2946
|
is_simplified_view?: boolean;
|
|
2947
|
+
auto_push_to_local?: boolean;
|
|
2945
2948
|
frictionless_partner?: string;
|
|
2946
2949
|
meta?: BrandMeta;
|
|
2947
2950
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -3014,6 +3017,7 @@ export interface PatchMenuV3DraftBrandBody {
|
|
|
3014
3017
|
global_menu_group_id?: string;
|
|
3015
3018
|
posid_segment?: string;
|
|
3016
3019
|
is_simplified_view?: boolean;
|
|
3020
|
+
auto_push_to_local?: boolean;
|
|
3017
3021
|
frictionless_partner?: string;
|
|
3018
3022
|
meta?: BrandMeta;
|
|
3019
3023
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -3108,6 +3112,7 @@ export type PostMenuV3DraftBrandsBody = {
|
|
|
3108
3112
|
global_menu_group_id?: string;
|
|
3109
3113
|
posid_segment?: string;
|
|
3110
3114
|
is_simplified_view?: boolean;
|
|
3115
|
+
auto_push_to_local?: boolean;
|
|
3111
3116
|
frictionless_partner?: string;
|
|
3112
3117
|
meta?: BrandMeta;
|
|
3113
3118
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -3614,6 +3619,7 @@ export interface PostMenuV3BrandBody {
|
|
|
3614
3619
|
global_menu_group_id?: string;
|
|
3615
3620
|
posid_segment?: string;
|
|
3616
3621
|
is_simplified_view?: boolean;
|
|
3622
|
+
auto_push_to_local?: boolean;
|
|
3617
3623
|
frictionless_partner?: string;
|
|
3618
3624
|
meta?: BrandMeta;
|
|
3619
3625
|
local_menu_group?: LocalMenuGroupDTO;
|
|
@@ -3684,6 +3690,7 @@ export interface PatchMenuV3BrandBody {
|
|
|
3684
3690
|
global_menu_group_id?: string;
|
|
3685
3691
|
posid_segment?: string;
|
|
3686
3692
|
is_simplified_view?: boolean;
|
|
3693
|
+
auto_push_to_local?: boolean;
|
|
3687
3694
|
frictionless_partner?: string;
|
|
3688
3695
|
meta?: BrandMeta;
|
|
3689
3696
|
version?: number;
|
|
@@ -3778,6 +3785,7 @@ export type PostMenuV3BrandsBody = {
|
|
|
3778
3785
|
global_menu_group_id?: string;
|
|
3779
3786
|
posid_segment?: string;
|
|
3780
3787
|
is_simplified_view?: boolean;
|
|
3788
|
+
auto_push_to_local?: boolean;
|
|
3781
3789
|
frictionless_partner?: string;
|
|
3782
3790
|
meta?: BrandMeta;
|
|
3783
3791
|
local_menu_group?: LocalMenuGroupDTO;
|
|
@@ -7236,6 +7244,7 @@ export interface PostMenuV4BrandBody {
|
|
|
7236
7244
|
global_menu_group_id?: string;
|
|
7237
7245
|
posid_segment?: string;
|
|
7238
7246
|
is_simplified_view?: boolean;
|
|
7247
|
+
auto_push_to_local?: boolean;
|
|
7239
7248
|
frictionless_partner?: string;
|
|
7240
7249
|
meta?: BrandMeta;
|
|
7241
7250
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -7277,6 +7286,7 @@ export interface PostMenuV4BrandResponse {
|
|
|
7277
7286
|
global_menu_group_id?: string;
|
|
7278
7287
|
posid_segment?: string;
|
|
7279
7288
|
is_simplified_view?: boolean;
|
|
7289
|
+
auto_push_to_local?: boolean;
|
|
7280
7290
|
frictionless_partner?: string;
|
|
7281
7291
|
meta?: BrandMeta;
|
|
7282
7292
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -7335,6 +7345,7 @@ export interface GetMenuV4BrandResponse {
|
|
|
7335
7345
|
global_menu_group_id?: string;
|
|
7336
7346
|
posid_segment?: string;
|
|
7337
7347
|
is_simplified_view?: boolean;
|
|
7348
|
+
auto_push_to_local?: boolean;
|
|
7338
7349
|
frictionless_partner?: string;
|
|
7339
7350
|
meta?: BrandMeta;
|
|
7340
7351
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -7388,6 +7399,7 @@ export interface DeleteMenuV4BrandResponse {
|
|
|
7388
7399
|
global_menu_group_id?: string;
|
|
7389
7400
|
posid_segment?: string;
|
|
7390
7401
|
is_simplified_view?: boolean;
|
|
7402
|
+
auto_push_to_local?: boolean;
|
|
7391
7403
|
frictionless_partner?: string;
|
|
7392
7404
|
meta?: BrandMeta;
|
|
7393
7405
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -326,6 +326,7 @@ export interface ShoppingCartResponse {
|
|
|
326
326
|
order_loyalty_points?: boolean;
|
|
327
327
|
};
|
|
328
328
|
discount?: PromoDetails;
|
|
329
|
+
discounts?: Discount[];
|
|
329
330
|
payment_method?: PaymentMethod;
|
|
330
331
|
taxes?: Taxes;
|
|
331
332
|
total?: {
|
|
@@ -571,6 +572,45 @@ export interface PromoDetails {
|
|
|
571
572
|
order?: PromoOrder;
|
|
572
573
|
}
|
|
573
574
|
|
|
575
|
+
export interface Discount {
|
|
576
|
+
id: string;
|
|
577
|
+
// unix epoch timestamp of discount creation in UTC
|
|
578
|
+
createdAt: string;
|
|
579
|
+
// unix epoch timestamp of discount update in UTC
|
|
580
|
+
updatedAt: string;
|
|
581
|
+
// id of the user who created the discount
|
|
582
|
+
createdBy: string;
|
|
583
|
+
// id of the user who updated the discount most recently
|
|
584
|
+
updatedBy: string;
|
|
585
|
+
name: string;
|
|
586
|
+
is?: {
|
|
587
|
+
badgepayPromo?: boolean;
|
|
588
|
+
mealplanPromo?: boolean;
|
|
589
|
+
decliningBalancePromo?: boolean;
|
|
590
|
+
voucherPromo?: boolean;
|
|
591
|
+
};
|
|
592
|
+
status?: {
|
|
593
|
+
live?: boolean;
|
|
594
|
+
publishedTo3rdParty?: boolean;
|
|
595
|
+
readyToPublish?: boolean;
|
|
596
|
+
};
|
|
597
|
+
meta?: {
|
|
598
|
+
provider: {
|
|
599
|
+
// Voucherify metadata
|
|
600
|
+
voucherify?: {
|
|
601
|
+
id?: string;
|
|
602
|
+
code?: string;
|
|
603
|
+
discount?: {
|
|
604
|
+
type: string;
|
|
605
|
+
amountOff?: number;
|
|
606
|
+
percentOff?: number;
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
[index: string]: any;
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
|
|
574
614
|
// POST /shoppingcart - Create a new ShoppingCart
|
|
575
615
|
|
|
576
616
|
export interface PostShoppingcartCartQuery {
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { RequestQuery, BaseRequest } from "./util";
|
|
2
|
-
export interface Error {
|
|
3
|
-
message?: string;
|
|
4
|
-
code?: number;
|
|
5
|
-
data?: Record<string, any>;
|
|
6
|
-
}
|
|
7
|
-
export interface Delivery {
|
|
8
|
-
id?: string;
|
|
9
|
-
order_id?: string;
|
|
10
|
-
date?: {
|
|
11
|
-
created?: string;
|
|
12
|
-
modified?: string;
|
|
13
|
-
confirmed?: string;
|
|
14
|
-
enroute_loading_area?: string;
|
|
15
|
-
arriving_loading_area?: string;
|
|
16
|
-
waiting_loading?: string;
|
|
17
|
-
loading?: string;
|
|
18
|
-
enroute_customer?: string;
|
|
19
|
-
arriving_customer?: string;
|
|
20
|
-
waiting_customer?: string;
|
|
21
|
-
unloading?: string;
|
|
22
|
-
completed?: string;
|
|
23
|
-
cancelled?: string;
|
|
24
|
-
customer_no_show?: string;
|
|
25
|
-
no_show_deadline?: string;
|
|
26
|
-
};
|
|
27
|
-
assigned_robot?: {
|
|
28
|
-
name?: string;
|
|
29
|
-
heading?: number;
|
|
30
|
-
arrivedDestinationAt?: string;
|
|
31
|
-
coordinates?: {
|
|
32
|
-
lat?: number;
|
|
33
|
-
lng?: number;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
drop_off_location?: {
|
|
37
|
-
id?: string;
|
|
38
|
-
starship_id?: string;
|
|
39
|
-
name?: string;
|
|
40
|
-
coordinates?: {
|
|
41
|
-
lat?: number;
|
|
42
|
-
lng?: number;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
eta?: {
|
|
46
|
-
loadingAt?: string;
|
|
47
|
-
destinationAt?: string;
|
|
48
|
-
};
|
|
49
|
-
customer?: string;
|
|
50
|
-
loading_code?: string;
|
|
51
|
-
state?: "RESERVED" | "CONFIRMED" | "ENROUTE_LOADING_AREA" | "ARRIVING_LOADING_AREA" | "WAITING_LOADING" | "LOADING" | "ENROUTE_CUSTOMER" | "ARRIVING_CUSTOMER" | "WAITING_CUSTOMER" | "UNLOADING" | "COMPLETED" | "CANCELLED" | "CUSTOMER_NO_SHOW";
|
|
52
|
-
state_reason?: string;
|
|
53
|
-
tracker_url?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface Available {
|
|
56
|
-
deliverable: boolean;
|
|
57
|
-
}
|
|
58
|
-
export interface PostAvailabilityBody {
|
|
59
|
-
destination: {
|
|
60
|
-
latitude: number;
|
|
61
|
-
longitude: number;
|
|
62
|
-
};
|
|
63
|
-
brand_id: string;
|
|
64
|
-
}
|
|
65
|
-
export interface GetDeliveryOrderPath {
|
|
66
|
-
id: string;
|
|
67
|
-
order_id: string;
|
|
68
|
-
}
|
|
69
|
-
export interface GetDeliveryOrderQuery {
|
|
70
|
-
_query?: string;
|
|
71
|
-
}
|
|
72
|
-
export type GetDeliveryOrderResponse = Delivery;
|
|
73
|
-
export interface GetDeliveryOrderRequest extends BaseRequest, RequestQuery<GetDeliveryOrderQuery>, GetDeliveryOrderPath {
|
|
74
|
-
}
|
|
75
|
-
export interface GetDeliveryPath {
|
|
76
|
-
id: string;
|
|
77
|
-
}
|
|
78
|
-
export interface GetDeliveryQuery {
|
|
79
|
-
_query?: string;
|
|
80
|
-
}
|
|
81
|
-
export type GetDeliveryResponse = Delivery;
|
|
82
|
-
export interface GetDeliveryRequest extends BaseRequest, RequestQuery<GetDeliveryQuery>, GetDeliveryPath {
|
|
83
|
-
}
|
|
84
|
-
export interface PostDeliveryAvailabilityPath {
|
|
85
|
-
id: string;
|
|
86
|
-
}
|
|
87
|
-
export type PostDeliveryAvailabilityBody = PostAvailabilityBody;
|
|
88
|
-
export type PostDeliveryAvailabilityResponse = Available;
|
|
89
|
-
export interface PostDeliveryAvailabilityRequest extends BaseRequest, PostDeliveryAvailabilityPath {
|
|
90
|
-
body: PostDeliveryAvailabilityBody;
|
|
91
|
-
}
|
|
92
|
-
//# sourceMappingURL=delivery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delivery.d.ts","sourceRoot":"","sources":["../../src/interface/delivery.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,WAAW,KAAK;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,QAAQ;IAEvB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,cAAc,CAAC,EAAE;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,WAAW,CAAC,EAAE;YACZ,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;IACF,iBAAiB,CAAC,EAAE;QAElB,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE;YACZ,GAAG,CAAC,EAAE,MAAM,CAAC;YACb,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;IACF,GAAG,CAAC,EAAE;QACJ,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EACF,UAAU,GACV,WAAW,GACX,sBAAsB,GACtB,uBAAuB,GACvB,iBAAiB,GACjB,SAAS,GACT,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,WAAW,GACX,kBAAkB,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAID,MAAM,WAAW,oBAAoB;IAEnC,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IAEpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC;AAEhD,MAAM,WAAW,uBACf,SAAQ,WAAW,EACjB,YAAY,CAAC,qBAAqB,CAAC,EACnC,oBAAoB;CAAG;AAI3B,MAAM,WAAW,eAAe;IAE9B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAE/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAE3C,MAAM,WAAW,kBACf,SAAQ,WAAW,EACjB,YAAY,CAAC,gBAAgB,CAAC,EAC9B,eAAe;CAAG;AAItB,MAAM,WAAW,4BAA4B;IAE3C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC;AAEhE,MAAM,MAAM,gCAAgC,GAAG,SAAS,CAAC;AAEzD,MAAM,WAAW,+BAAgC,SAAQ,WAAW,EAAE,4BAA4B;IAChG,IAAI,EAAE,4BAA4B,CAAC;CACpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delivery.js","sourceRoot":"","sources":["../../src/interface/delivery.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,sDAAsD"}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
|
-
|
|
4
|
-
import { RequestQuery, BaseRequest } from "./util";
|
|
5
|
-
|
|
6
|
-
export interface Error {
|
|
7
|
-
message?: string;
|
|
8
|
-
code?: number;
|
|
9
|
-
data?: Record<string, any>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface Delivery {
|
|
13
|
-
// starship delivery job
|
|
14
|
-
id?: string;
|
|
15
|
-
// order id
|
|
16
|
-
order_id?: string;
|
|
17
|
-
date?: {
|
|
18
|
-
created?: string;
|
|
19
|
-
modified?: string;
|
|
20
|
-
confirmed?: string;
|
|
21
|
-
enroute_loading_area?: string;
|
|
22
|
-
arriving_loading_area?: string;
|
|
23
|
-
waiting_loading?: string;
|
|
24
|
-
loading?: string;
|
|
25
|
-
enroute_customer?: string;
|
|
26
|
-
arriving_customer?: string;
|
|
27
|
-
waiting_customer?: string;
|
|
28
|
-
unloading?: string;
|
|
29
|
-
completed?: string;
|
|
30
|
-
cancelled?: string;
|
|
31
|
-
customer_no_show?: string;
|
|
32
|
-
no_show_deadline?: string;
|
|
33
|
-
};
|
|
34
|
-
assigned_robot?: {
|
|
35
|
-
name?: string;
|
|
36
|
-
heading?: number;
|
|
37
|
-
arrivedDestinationAt?: string;
|
|
38
|
-
coordinates?: {
|
|
39
|
-
lat?: number;
|
|
40
|
-
lng?: number;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
drop_off_location?: {
|
|
44
|
-
// drop off location cd id
|
|
45
|
-
id?: string;
|
|
46
|
-
// starship delivery location id
|
|
47
|
-
starship_id?: string;
|
|
48
|
-
name?: string;
|
|
49
|
-
coordinates?: {
|
|
50
|
-
lat?: number;
|
|
51
|
-
lng?: number;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
eta?: {
|
|
55
|
-
loadingAt?: string;
|
|
56
|
-
destinationAt?: string;
|
|
57
|
-
};
|
|
58
|
-
customer?: string;
|
|
59
|
-
loading_code?: string;
|
|
60
|
-
state?:
|
|
61
|
-
| "RESERVED"
|
|
62
|
-
| "CONFIRMED"
|
|
63
|
-
| "ENROUTE_LOADING_AREA"
|
|
64
|
-
| "ARRIVING_LOADING_AREA"
|
|
65
|
-
| "WAITING_LOADING"
|
|
66
|
-
| "LOADING"
|
|
67
|
-
| "ENROUTE_CUSTOMER"
|
|
68
|
-
| "ARRIVING_CUSTOMER"
|
|
69
|
-
| "WAITING_CUSTOMER"
|
|
70
|
-
| "UNLOADING"
|
|
71
|
-
| "COMPLETED"
|
|
72
|
-
| "CANCELLED"
|
|
73
|
-
| "CUSTOMER_NO_SHOW";
|
|
74
|
-
state_reason?: string;
|
|
75
|
-
tracker_url?: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface Available {
|
|
79
|
-
deliverable: boolean;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface PostAvailabilityBody {
|
|
83
|
-
destination: {
|
|
84
|
-
latitude: number;
|
|
85
|
-
longitude: number;
|
|
86
|
-
};
|
|
87
|
-
brand_id: string;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// GET /delivery/{id}/order/{order_id} - get delivery for order
|
|
91
|
-
|
|
92
|
-
export interface GetDeliveryOrderPath {
|
|
93
|
-
// delivery provider id
|
|
94
|
-
id: string;
|
|
95
|
-
// order id
|
|
96
|
-
order_id: string;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface GetDeliveryOrderQuery {
|
|
100
|
-
// Graphql query string
|
|
101
|
-
_query?: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export type GetDeliveryOrderResponse = Delivery;
|
|
105
|
-
|
|
106
|
-
export interface GetDeliveryOrderRequest
|
|
107
|
-
extends BaseRequest,
|
|
108
|
-
RequestQuery<GetDeliveryOrderQuery>,
|
|
109
|
-
GetDeliveryOrderPath {}
|
|
110
|
-
|
|
111
|
-
// GET /delivery/{id} - Get all Deliveries for delivery provider
|
|
112
|
-
|
|
113
|
-
export interface GetDeliveryPath {
|
|
114
|
-
// delivery provider id
|
|
115
|
-
id: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface GetDeliveryQuery {
|
|
119
|
-
// Graphql query string
|
|
120
|
-
_query?: string;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export type GetDeliveryResponse = Delivery;
|
|
124
|
-
|
|
125
|
-
export interface GetDeliveryRequest
|
|
126
|
-
extends BaseRequest,
|
|
127
|
-
RequestQuery<GetDeliveryQuery>,
|
|
128
|
-
GetDeliveryPath {}
|
|
129
|
-
|
|
130
|
-
// POST /delivery/{id}/availability - Get delivery availability for provided brand and coordinates
|
|
131
|
-
|
|
132
|
-
export interface PostDeliveryAvailabilityPath {
|
|
133
|
-
// delivery provider id
|
|
134
|
-
id: string;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export type PostDeliveryAvailabilityBody = PostAvailabilityBody;
|
|
138
|
-
|
|
139
|
-
export type PostDeliveryAvailabilityResponse = Available;
|
|
140
|
-
|
|
141
|
-
export interface PostDeliveryAvailabilityRequest extends BaseRequest, PostDeliveryAvailabilityPath {
|
|
142
|
-
body: PostDeliveryAvailabilityBody;
|
|
143
|
-
}
|