@compassdigital/sdk.typescript 4.142.0 → 4.144.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 +10 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/catalog.d.ts +99 -8
- package/lib/interface/catalog.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +3 -6
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +98 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/timeslots.d.ts +34 -0
- package/lib/interface/timeslots.d.ts.map +1 -0
- package/lib/interface/timeslots.js +5 -0
- package/lib/interface/timeslots.js.map +1 -0
- package/manifest.json +7 -0
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/catalog.ts +109 -8
- package/src/interface/consumer.ts +3 -7
- package/src/interface/menu.ts +100 -0
- package/src/interface/timeslots.ts +62 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
|
+
|
|
4
|
+
import { RequestQuery, BaseRequest } from './util';
|
|
5
|
+
|
|
6
|
+
export interface Timeslot {
|
|
7
|
+
// Start time of the timeslot
|
|
8
|
+
start_time: string;
|
|
9
|
+
// Number of orders in the timeslot
|
|
10
|
+
number_orders: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface GetTimeslotResponse {
|
|
14
|
+
// List of available timeslots for the brand
|
|
15
|
+
timeslots: Timeslot[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ErrorDisplayMessage {
|
|
19
|
+
// user message title
|
|
20
|
+
title: string;
|
|
21
|
+
// user message description
|
|
22
|
+
description: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface ErrorData {
|
|
26
|
+
// http status code
|
|
27
|
+
statusCode: number;
|
|
28
|
+
// http status text
|
|
29
|
+
statusText: string;
|
|
30
|
+
timestamp: string;
|
|
31
|
+
displayMessage: ErrorDisplayMessage;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface Error {
|
|
35
|
+
// business error code
|
|
36
|
+
code: number;
|
|
37
|
+
// business error description
|
|
38
|
+
message: string;
|
|
39
|
+
data: ErrorData;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// GET /timeslots/brand/{brandId} - Get timeslots for brand
|
|
43
|
+
|
|
44
|
+
export interface GetTimeslotsBrandPath {
|
|
45
|
+
// brandId
|
|
46
|
+
brandId: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface GetTimeslotsBrandQuery {
|
|
50
|
+
// timeslot length
|
|
51
|
+
duration: number;
|
|
52
|
+
// timeslot type
|
|
53
|
+
type: 'pickup' | 'delivery';
|
|
54
|
+
// start time
|
|
55
|
+
startTime: string;
|
|
56
|
+
// end_time
|
|
57
|
+
endTime: string;
|
|
58
|
+
// Graphql query string
|
|
59
|
+
_query?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type GetTimeslotsBrandResponse = GetTimeslotResponse;
|