@compassdigital/sdk.typescript 3.70.0 → 3.71.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/.eslintignore +1 -0
- package/lib/base.d.ts +35 -36
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +66 -68
- package/lib/base.js.map +1 -1
- package/lib/interface/config.d.ts +83 -1
- package/lib/interface/config.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/base.ts +410 -425
- package/src/interface/config.ts +88 -1
package/src/interface/config.ts
CHANGED
|
@@ -19,6 +19,93 @@ export interface Success {
|
|
|
19
19
|
success?: boolean;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export interface PublicBrandConfig {
|
|
23
|
+
global_item_search?: string;
|
|
24
|
+
canadian_calorie_disclaimer?: string;
|
|
25
|
+
email_subscriptions?: string;
|
|
26
|
+
brand_location_description?: string;
|
|
27
|
+
description_label?: {
|
|
28
|
+
en?: string;
|
|
29
|
+
fr?: string;
|
|
30
|
+
};
|
|
31
|
+
description?: string;
|
|
32
|
+
delivery_destinations?: string[];
|
|
33
|
+
display_calories?: boolean;
|
|
34
|
+
pickup_asap?: {
|
|
35
|
+
enabled?: boolean;
|
|
36
|
+
};
|
|
37
|
+
show_instructions?: boolean;
|
|
38
|
+
has_kds?: boolean;
|
|
39
|
+
runner_app_enabled?: boolean;
|
|
40
|
+
show_single_timeslot?: boolean;
|
|
41
|
+
[index: string]: any;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface PublicLocationConfig {
|
|
45
|
+
mealplan?: MealplanConfig[];
|
|
46
|
+
badge_pay?: {
|
|
47
|
+
id?: string;
|
|
48
|
+
type?: string;
|
|
49
|
+
webview?: string;
|
|
50
|
+
name?: string;
|
|
51
|
+
};
|
|
52
|
+
cashless?: {
|
|
53
|
+
id?: string;
|
|
54
|
+
type?: string;
|
|
55
|
+
webview?: string;
|
|
56
|
+
name?: string;
|
|
57
|
+
voucher_webview?: string;
|
|
58
|
+
tenders?: {
|
|
59
|
+
tender_type?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
tax_exempt?: string;
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
has_kds?: boolean;
|
|
65
|
+
runner_app_enabled?: boolean;
|
|
66
|
+
show_single_timeslot?: boolean;
|
|
67
|
+
is_checkin_enabled?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface AppConfig {
|
|
71
|
+
min?: string;
|
|
72
|
+
url?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface PrivateConfig {
|
|
76
|
+
payment?: {
|
|
77
|
+
refund?: boolean;
|
|
78
|
+
freedompay?: any;
|
|
79
|
+
};
|
|
80
|
+
loyalty?: {
|
|
81
|
+
provider_id?: string;
|
|
82
|
+
enabled?: boolean;
|
|
83
|
+
loyalty_emails?: {
|
|
84
|
+
email?: string;
|
|
85
|
+
}[];
|
|
86
|
+
};
|
|
87
|
+
mealplan?: MealplanConfig[];
|
|
88
|
+
[index: string]: any;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface MealplanConfig {
|
|
92
|
+
id?: string;
|
|
93
|
+
type?: string;
|
|
94
|
+
name?: string;
|
|
95
|
+
tenders?: {
|
|
96
|
+
max_swipes_per_transaction?: number;
|
|
97
|
+
name?: string;
|
|
98
|
+
rates?: {
|
|
99
|
+
amount?: any;
|
|
100
|
+
hours?: any;
|
|
101
|
+
}[];
|
|
102
|
+
tender_number?: string;
|
|
103
|
+
type?: string;
|
|
104
|
+
id?: string;
|
|
105
|
+
tax_exempt?: boolean;
|
|
106
|
+
}[];
|
|
107
|
+
}
|
|
108
|
+
|
|
22
109
|
// GET /config/appconfig - get appconfig - an object with data for clients including minimum versions apps (boost, thrive, J&J) should be running and a link to the respective app store
|
|
23
110
|
|
|
24
111
|
export interface GetConfigAppconfigQuery {
|
|
@@ -26,7 +113,7 @@ export interface GetConfigAppconfigQuery {
|
|
|
26
113
|
_query?: string;
|
|
27
114
|
}
|
|
28
115
|
|
|
29
|
-
export type GetConfigAppconfigResponse =
|
|
116
|
+
export type GetConfigAppconfigResponse = AppConfig;
|
|
30
117
|
|
|
31
118
|
export interface GetConfigAppconfigRequest
|
|
32
119
|
extends BaseRequest,
|