@compassdigital/sdk.typescript 4.67.0 → 4.68.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 +58 -57
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +503 -501
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +1 -1
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/announcement.d.ts +1 -1
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/auth.d.ts +3 -3
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +2 -2
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +11 -11
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +1 -1
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +1 -1
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +1 -1
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +1 -1
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +2 -2
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +9 -9
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +1 -1
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +5 -3
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +2 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +149 -109
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +3 -3
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +7 -7
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +10 -10
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +3 -3
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +8 -8
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +10 -10
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/search.d.ts +8 -8
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +7 -7
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +8 -8
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +2 -2
- package/lib/interface/tax.d.ts.map +1 -1
- package/lib/interface/user.d.ts +16 -16
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +6 -6
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +10395 -10394
- package/src/interface/ai.ts +22 -22
- package/src/interface/announcement.ts +60 -60
- package/src/interface/auth.ts +68 -68
- package/src/interface/calendar.ts +94 -94
- package/src/interface/centricos.ts +145 -145
- package/src/interface/compassconnect.ts +59 -59
- package/src/interface/config.ts +166 -166
- package/src/interface/datalake.ts +13 -13
- package/src/interface/email.ts +13 -13
- package/src/interface/file.ts +18 -18
- package/src/interface/frictionless.ts +177 -177
- package/src/interface/kds.ts +49 -49
- package/src/interface/location.ts +771 -769
- package/src/interface/mealplan.ts +155 -154
- package/src/interface/menu.ts +4079 -4018
- package/src/interface/notification.ts +51 -51
- package/src/interface/order.ts +464 -464
- package/src/interface/partner.ts +823 -823
- package/src/interface/payment.ts +278 -278
- package/src/interface/promo.ts +373 -373
- package/src/interface/report.ts +348 -348
- package/src/interface/search.ts +135 -135
- package/src/interface/shoppingcart.ts +429 -429
- package/src/interface/task.ts +212 -212
- package/src/interface/tax.ts +69 -69
- package/src/interface/user.ts +410 -410
- package/src/interface/vendor.ts +215 -215
package/src/interface/search.ts
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
3
|
|
|
4
|
-
import { RequestQuery, BaseRequest } from
|
|
4
|
+
import { RequestQuery, BaseRequest } from './util';
|
|
5
5
|
|
|
6
6
|
export interface MetaResultsDto {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
limit: number;
|
|
8
|
+
page: number;
|
|
9
|
+
sortBy?: Record<string, any>;
|
|
10
|
+
sortOrder?: Record<string, any>;
|
|
11
|
+
totalResults: number;
|
|
12
|
+
totalPages: number;
|
|
13
|
+
resultsCount: number;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface GetShoppingcartDto {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
17
|
+
id: string;
|
|
18
|
+
source_id: string;
|
|
19
|
+
menu: string;
|
|
20
|
+
location: string;
|
|
21
|
+
meta: {
|
|
22
|
+
[index: string]: any;
|
|
23
|
+
};
|
|
24
|
+
sub_total: Record<string, any>;
|
|
25
|
+
payment_method: Record<string, any>;
|
|
26
|
+
loyalty: Record<string, any>;
|
|
27
|
+
total: Record<string, any>;
|
|
28
|
+
exemptions: Record<string, any>;
|
|
29
|
+
brand: string;
|
|
30
|
+
is: Record<string, any>;
|
|
31
|
+
source_order_id: string;
|
|
32
|
+
items: Record<string, any>;
|
|
33
|
+
discount: Record<string, any>;
|
|
34
|
+
delivery_fee: Record<string, any>;
|
|
35
|
+
source_date_created: string;
|
|
36
|
+
source_date_modified: string;
|
|
37
|
+
promo: Record<string, any>;
|
|
38
|
+
taxes: Record<string, any>;
|
|
39
|
+
service_fee: Record<string, any>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export interface OrderGroupDetails {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
source_id?: string;
|
|
44
|
+
name?: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export interface OrderBrandDetails {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
source_id?: string;
|
|
49
|
+
name?: string;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export interface GetOrderDto {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
53
|
+
source_id: string;
|
|
54
|
+
requested_date: string;
|
|
55
|
+
pickup_id: string;
|
|
56
|
+
pickup: string;
|
|
57
|
+
is: Record<string, any>;
|
|
58
|
+
mealplan: Record<string, any>;
|
|
59
|
+
shoppingcart: GetShoppingcartDto;
|
|
60
|
+
date: Record<string, any>;
|
|
61
|
+
pickup_name: string;
|
|
62
|
+
details: Record<string, any>;
|
|
63
|
+
payment: Record<string, any>;
|
|
64
|
+
meal_swipes: Record<string, any>;
|
|
65
|
+
meal_exchange: Record<string, any>;
|
|
66
|
+
issue: Record<string, any>;
|
|
67
|
+
source_group: OrderGroupDetails;
|
|
68
|
+
source_brand: OrderBrandDetails;
|
|
69
|
+
date_created: string;
|
|
70
|
+
refund_status: string;
|
|
71
|
+
payment_type: string;
|
|
72
|
+
payment_category: string;
|
|
73
|
+
market_place_stations: OrderBrandDetails[];
|
|
74
|
+
// Order original cart amount before refunds
|
|
75
|
+
total: string;
|
|
76
|
+
// Customer email
|
|
77
|
+
email: string;
|
|
78
|
+
// Order type: pickup/delivery/etc
|
|
79
|
+
order_type: string;
|
|
80
|
+
// Order status: accepted/in_progress/ready/etc
|
|
81
|
+
status: string;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export interface GetOrderPaginatedResult {
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
meta: MetaResultsDto;
|
|
86
|
+
results: GetOrderDto[];
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
export interface GetLocationDto {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
source_id: string;
|
|
91
|
+
source_type: string;
|
|
92
|
+
name: string;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export interface GetLocationPaginatedResult {
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
meta: MetaResultsDto;
|
|
97
|
+
results: GetLocationDto[];
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
// GET /search/order
|
|
101
101
|
|
|
102
102
|
export interface GetSearchOrderQuery {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
103
|
+
// Items to return in response
|
|
104
|
+
limit?: number;
|
|
105
|
+
// Pagination param
|
|
106
|
+
page?: number;
|
|
107
|
+
// Return items sorted by this column
|
|
108
|
+
sortBy?:
|
|
109
|
+
| 'date_created'
|
|
110
|
+
| 'destination'
|
|
111
|
+
| 'id'
|
|
112
|
+
| 'pickup'
|
|
113
|
+
| 'pickup_id'
|
|
114
|
+
| 'pickup_name'
|
|
115
|
+
| 'source_id'
|
|
116
|
+
| 'sub_total'
|
|
117
|
+
| 'total'
|
|
118
|
+
| 'site_name'
|
|
119
|
+
| 'status'
|
|
120
|
+
| 'order_type'
|
|
121
|
+
| 'fulfillment_date';
|
|
122
|
+
sortOrder?: 'ASC' | 'DESC';
|
|
123
|
+
// Filter orders by site id
|
|
124
|
+
source_group_id?: string;
|
|
125
|
+
// Filter orders by station id
|
|
126
|
+
source_brand_id?: string;
|
|
127
|
+
// Filter orders with created date not earlier than
|
|
128
|
+
date_created_start?: string;
|
|
129
|
+
// Filter orders with created date not later than this date
|
|
130
|
+
date_created_end?: string;
|
|
131
|
+
// Filter orders having specific order number
|
|
132
|
+
pickup_id?: string;
|
|
133
|
+
// Filter orders by user pickup name
|
|
134
|
+
pickup_name?: string;
|
|
135
|
+
// Search order by order ID
|
|
136
|
+
source_id?: string;
|
|
137
|
+
// Search order by refund_status
|
|
138
|
+
refund_status?: ('' | 'partial' | 'full')[];
|
|
139
|
+
// Filter orders by payment type
|
|
140
|
+
payment_type?: string;
|
|
141
|
+
// Filter orders by payment category
|
|
142
|
+
payment_category?: ('digital wallet' | 'badge pay' | 'credit card' | 'mealplan')[];
|
|
143
|
+
// Filter orders by customer email
|
|
144
|
+
email?: string;
|
|
145
|
+
// Filter orders by order type
|
|
146
|
+
order_type?: ('frictionless' | 'delivery' | 'pickup' | 'scan_and_go')[];
|
|
147
|
+
// Filter orders by order status/progress
|
|
148
|
+
status?: ('ready' | 'accepted' | 'delivered' | 'in_progress' | 'out_for_delivery' | 'created')[];
|
|
149
|
+
// Graphql query string
|
|
150
|
+
_query?: string;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
export type GetSearchOrderResponse = GetOrderPaginatedResult;
|
|
@@ -157,24 +157,24 @@ export interface GetSearchOrderRequest extends BaseRequest, RequestQuery<GetSear
|
|
|
157
157
|
// GET /search/location
|
|
158
158
|
|
|
159
159
|
export interface GetSearchLocationQuery {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
160
|
+
// Items to return in response
|
|
161
|
+
limit?: number;
|
|
162
|
+
// Pagination param
|
|
163
|
+
page?: number;
|
|
164
|
+
// Filter entities with names containing this value
|
|
165
|
+
name?: string;
|
|
166
|
+
// Filter entities with specific type
|
|
167
|
+
source_type?: 'brand' | 'location' | 'group' | 'multigroup' | 'sector' | 'company';
|
|
168
|
+
// Filter entities with specific group id as a parent
|
|
169
|
+
source_group_parent?: string;
|
|
170
|
+
// Filter entities with specific multigroup id as a parent
|
|
171
|
+
source_multigroup_parent?: string;
|
|
172
|
+
// Graphql query string
|
|
173
|
+
_query?: string;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
export type GetSearchLocationResponse = GetLocationPaginatedResult;
|
|
177
177
|
|
|
178
178
|
export interface GetSearchLocationRequest
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
extends BaseRequest,
|
|
180
|
+
RequestQuery<GetSearchLocationQuery> {}
|