@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.
@@ -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;