@compassdigital/sdk.typescript 4.821.0 → 4.823.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 +9 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +28 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +1 -0
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/consumer.ts +53 -0
- package/src/interface/mealplan.ts +2 -0
|
@@ -1166,6 +1166,48 @@ export interface PatchOrderCancelResponseDTO {
|
|
|
1166
1166
|
latest_refunds?: OrderRefundItem[];
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
|
+
export interface PostOrderIssueItemDTO {
|
|
1170
|
+
// Item ID
|
|
1171
|
+
id: string;
|
|
1172
|
+
// Unique index of the item within the cart
|
|
1173
|
+
_index: string;
|
|
1174
|
+
// Quantity of the item with the issue
|
|
1175
|
+
quantity?: number;
|
|
1176
|
+
// Reason for the issue with this item
|
|
1177
|
+
reason?: string;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export interface PostOrderIssueMetaDTO {
|
|
1181
|
+
// POS item ID that could not be matched, for issue type INVALID_NEXTEP_ID
|
|
1182
|
+
invalid_id?: string;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
export interface PostOrderIssueBodyDTO {
|
|
1186
|
+
// Type of issue. Use 'DISPUTE' when reporting a dispute
|
|
1187
|
+
type?: string;
|
|
1188
|
+
// Array of items with issues. Required for DISPUTE along with reason
|
|
1189
|
+
items?: PostOrderIssueItemDTO[];
|
|
1190
|
+
// Optional additional explanation for issue: 5,10,15 for late issues, SOLD_OUT, MODIFICATION, DIETARY_RESTRICTION for see kitchen issues
|
|
1191
|
+
reason?: string;
|
|
1192
|
+
// Brand ID, used to include the brand name in the issue message for SEE_KITCHEN
|
|
1193
|
+
location_brand?: string;
|
|
1194
|
+
// Issue meta
|
|
1195
|
+
meta?: PostOrderIssueMetaDTO;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
export interface PostOrderIssueResponseDTO {
|
|
1199
|
+
// Issue ID
|
|
1200
|
+
id?: string;
|
|
1201
|
+
// Type of issue
|
|
1202
|
+
type?: string;
|
|
1203
|
+
// Array of items with issues
|
|
1204
|
+
items?: OrderItemWithIssue[];
|
|
1205
|
+
// Optional additional explanation for issue: 5,10,15 for late issues, SOLD_OUT, MODIFICATION, DIETARY_RESTRICTION for see kitchen issues
|
|
1206
|
+
reason?: string;
|
|
1207
|
+
// Issue meta
|
|
1208
|
+
meta?: OrderIssueMeta;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1169
1211
|
export interface PostReviewOrderItemRequest {
|
|
1170
1212
|
// rating score
|
|
1171
1213
|
score: number;
|
|
@@ -4846,6 +4888,17 @@ export type PatchConsumerOrderCancelBody = PatchOrderCancelBodyDTO;
|
|
|
4846
4888
|
|
|
4847
4889
|
export type PatchConsumerOrderCancelResponse = PatchOrderCancelResponseDTO;
|
|
4848
4890
|
|
|
4891
|
+
// POST /consumer/order/{id}/issue - Report an issue with an existing order
|
|
4892
|
+
|
|
4893
|
+
export interface PostConsumerOrderIssuePath {
|
|
4894
|
+
// a valid CDL order id
|
|
4895
|
+
id: string;
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4898
|
+
export type PostConsumerOrderIssueBody = PostOrderIssueBodyDTO;
|
|
4899
|
+
|
|
4900
|
+
export type PostConsumerOrderIssueResponse = PostOrderIssueResponseDTO;
|
|
4901
|
+
|
|
4849
4902
|
// POST /consumer/review/order-items - Submit reviews for order items
|
|
4850
4903
|
|
|
4851
4904
|
export type PostReviewOrderItemsBody = PostReviewOrderItemsRequestDTO;
|
|
@@ -101,6 +101,8 @@ export interface MealplanHealthFinding {
|
|
|
101
101
|
| 'guest_linking'
|
|
102
102
|
| 'guest_balance'
|
|
103
103
|
| 'unknown';
|
|
104
|
+
// The meal plan provider the failure came from.
|
|
105
|
+
provider?: string;
|
|
104
106
|
// Which part of the Centric meal plan config is at fault. Only set when failure_class is centric_mealplan_config; it decides which field the operator is offered.
|
|
105
107
|
config_issue?:
|
|
106
108
|
| 'missing_config'
|