@transcommerce/cwm-shared 1.1.63 → 1.1.65
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/fesm2022/transcommerce-cwm-shared.mjs +355 -11
- package/fesm2022/transcommerce-cwm-shared.mjs.map +1 -1
- package/lib/models/config/api-config.d.ts +43 -0
- package/lib/models/config/auth-config.d.ts +68 -0
- package/lib/models/config/carousel-config.d.ts +55 -0
- package/lib/models/config/configuration.d.ts +285 -0
- package/lib/models/config/menu-board-config.d.ts +25 -0
- package/lib/models/config/subscription-config.d.ts +31 -0
- package/lib/models/slide.d.ts +45 -0
- package/package.json +1 -1
|
@@ -7,3 +7,46 @@ export type ApiConfig = {
|
|
|
7
7
|
locationId: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const DEFAULT_API_CONFIG: ApiConfig;
|
|
10
|
+
export declare const API_CONFIG_SCHEMA: {
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
properties: {
|
|
14
|
+
apiBaseUrl: {
|
|
15
|
+
type: string;
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
createSubscriptionApiRoute: {
|
|
21
|
+
type: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
getInventoryApiRoute: {
|
|
27
|
+
type: string;
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
apiKey: {
|
|
33
|
+
type: string;
|
|
34
|
+
title: string;
|
|
35
|
+
description: string;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
clientId: {
|
|
39
|
+
type: string;
|
|
40
|
+
title: string;
|
|
41
|
+
description: string;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
locationId: {
|
|
45
|
+
type: string;
|
|
46
|
+
title: string;
|
|
47
|
+
description: string;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
required: string[];
|
|
52
|
+
};
|
|
@@ -22,4 +22,72 @@ export type AuthConfig = {
|
|
|
22
22
|
configConnectString: string;
|
|
23
23
|
};
|
|
24
24
|
export declare const DEFAULT_AUTH_CONFIG: AuthConfig;
|
|
25
|
+
export declare const AUTH_CONFIG_SCHEMA: {
|
|
26
|
+
type: string;
|
|
27
|
+
title: string;
|
|
28
|
+
properties: {
|
|
29
|
+
logLevel: {
|
|
30
|
+
type: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
enum: string[];
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
clientId: {
|
|
37
|
+
type: string;
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
tenantId: {
|
|
42
|
+
type: string;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
authority: {
|
|
47
|
+
type: string;
|
|
48
|
+
title: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
scopes: {
|
|
52
|
+
type: string;
|
|
53
|
+
title: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
redirect_uri: {
|
|
57
|
+
type: string;
|
|
58
|
+
title: string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
logout_redirect_uri: {
|
|
62
|
+
type: string;
|
|
63
|
+
title: string;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
prompt: {
|
|
67
|
+
type: string;
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
enum: string[];
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
msalDiagnosticsEnabled: {
|
|
74
|
+
type: string;
|
|
75
|
+
title: string;
|
|
76
|
+
description: string;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
showPii: {
|
|
80
|
+
type: string;
|
|
81
|
+
title: string;
|
|
82
|
+
description: string;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
configConnectString: {
|
|
86
|
+
type: string;
|
|
87
|
+
title: string;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
required: string[];
|
|
92
|
+
};
|
|
25
93
|
export declare const AUTH_CONFIG: InjectionToken<AuthConfig>;
|
|
@@ -9,3 +9,58 @@ export type CarouselConfig = {
|
|
|
9
9
|
arrows: boolean;
|
|
10
10
|
};
|
|
11
11
|
export declare const DEFAULT_CAROUSEL_CONFIG: CarouselConfig;
|
|
12
|
+
export declare const CAROUSEL_CONFIG_SCHEMA: {
|
|
13
|
+
type: string;
|
|
14
|
+
title: string;
|
|
15
|
+
properties: {
|
|
16
|
+
slidesToShow: {
|
|
17
|
+
type: string;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
slidesToScroll: {
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
description: string;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
dots: {
|
|
29
|
+
type: string;
|
|
30
|
+
title: string;
|
|
31
|
+
description: string;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
infinite: {
|
|
35
|
+
type: string;
|
|
36
|
+
title: string;
|
|
37
|
+
description: string;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
autoplay: {
|
|
41
|
+
type: string;
|
|
42
|
+
title: string;
|
|
43
|
+
description: string;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
autoplaySpeed: {
|
|
47
|
+
type: string;
|
|
48
|
+
title: string;
|
|
49
|
+
description: string;
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
speed: {
|
|
53
|
+
type: string;
|
|
54
|
+
title: string;
|
|
55
|
+
description: string;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
arrows: {
|
|
59
|
+
type: string;
|
|
60
|
+
title: string;
|
|
61
|
+
description: string;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
required: string[];
|
|
66
|
+
};
|
|
@@ -15,3 +15,288 @@ export type Configuration = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const DEFAULT_COMPANY_NAME = "Test Weed Dispensary";
|
|
17
17
|
export declare const DEFAULT_CONFIGURATION: Configuration;
|
|
18
|
+
export declare const CONFIGURATION_SCHEMA: {
|
|
19
|
+
type: string;
|
|
20
|
+
title: string;
|
|
21
|
+
properties: {
|
|
22
|
+
companyName: {
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
authConfig: {
|
|
28
|
+
type: string;
|
|
29
|
+
title: string;
|
|
30
|
+
properties: {
|
|
31
|
+
logLevel: {
|
|
32
|
+
type: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
enum: string[];
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
clientId: {
|
|
39
|
+
type: string;
|
|
40
|
+
title: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
tenantId: {
|
|
44
|
+
type: string;
|
|
45
|
+
title: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
authority: {
|
|
49
|
+
type: string;
|
|
50
|
+
title: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
scopes: {
|
|
54
|
+
type: string;
|
|
55
|
+
title: string;
|
|
56
|
+
description: string;
|
|
57
|
+
};
|
|
58
|
+
redirect_uri: {
|
|
59
|
+
type: string;
|
|
60
|
+
title: string;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
logout_redirect_uri: {
|
|
64
|
+
type: string;
|
|
65
|
+
title: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
prompt: {
|
|
69
|
+
type: string;
|
|
70
|
+
title: string;
|
|
71
|
+
description: string;
|
|
72
|
+
enum: string[];
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
msalDiagnosticsEnabled: {
|
|
76
|
+
type: string;
|
|
77
|
+
title: string;
|
|
78
|
+
description: string;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
showPii: {
|
|
82
|
+
type: string;
|
|
83
|
+
title: string;
|
|
84
|
+
description: string;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
configConnectString: {
|
|
88
|
+
type: string;
|
|
89
|
+
title: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
required: string[];
|
|
94
|
+
};
|
|
95
|
+
apiConfig: {
|
|
96
|
+
type: string;
|
|
97
|
+
title: string;
|
|
98
|
+
properties: {
|
|
99
|
+
apiBaseUrl: {
|
|
100
|
+
type: string;
|
|
101
|
+
title: string;
|
|
102
|
+
description: string;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
createSubscriptionApiRoute: {
|
|
106
|
+
type: string;
|
|
107
|
+
title: string;
|
|
108
|
+
description: string;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
getInventoryApiRoute: {
|
|
112
|
+
type: string;
|
|
113
|
+
title: string;
|
|
114
|
+
description: string;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
apiKey: {
|
|
118
|
+
type: string;
|
|
119
|
+
title: string;
|
|
120
|
+
description: string;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
clientId: {
|
|
124
|
+
type: string;
|
|
125
|
+
title: string;
|
|
126
|
+
description: string;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
locationId: {
|
|
130
|
+
type: string;
|
|
131
|
+
title: string;
|
|
132
|
+
description: string;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
required: string[];
|
|
137
|
+
};
|
|
138
|
+
subscriptionConfig: {
|
|
139
|
+
type: string;
|
|
140
|
+
title: string;
|
|
141
|
+
properties: {
|
|
142
|
+
amount: {
|
|
143
|
+
type: string;
|
|
144
|
+
title: string;
|
|
145
|
+
description: string;
|
|
146
|
+
default: number;
|
|
147
|
+
};
|
|
148
|
+
days: {
|
|
149
|
+
type: string;
|
|
150
|
+
title: string;
|
|
151
|
+
description: string;
|
|
152
|
+
default: number;
|
|
153
|
+
};
|
|
154
|
+
totalOccurrences: {
|
|
155
|
+
type: string;
|
|
156
|
+
title: string;
|
|
157
|
+
description: string;
|
|
158
|
+
default: number;
|
|
159
|
+
};
|
|
160
|
+
trialOccurrences: {
|
|
161
|
+
type: string;
|
|
162
|
+
title: string;
|
|
163
|
+
description: string;
|
|
164
|
+
default: number;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
required: string[];
|
|
168
|
+
};
|
|
169
|
+
menuBoardConfig: {
|
|
170
|
+
type: string;
|
|
171
|
+
title: string;
|
|
172
|
+
properties: {
|
|
173
|
+
amountToScroll: {
|
|
174
|
+
type: string;
|
|
175
|
+
title: string;
|
|
176
|
+
description: string;
|
|
177
|
+
default: number;
|
|
178
|
+
};
|
|
179
|
+
autoScrollTimeout: {
|
|
180
|
+
type: string;
|
|
181
|
+
title: string;
|
|
182
|
+
description: string;
|
|
183
|
+
default: number;
|
|
184
|
+
};
|
|
185
|
+
dataAgeThreshold: {
|
|
186
|
+
type: string;
|
|
187
|
+
title: string;
|
|
188
|
+
description: string;
|
|
189
|
+
default: number;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
required: string[];
|
|
193
|
+
};
|
|
194
|
+
footerCarouselConfig: {
|
|
195
|
+
type: string;
|
|
196
|
+
title: string;
|
|
197
|
+
properties: {
|
|
198
|
+
slidesToShow: {
|
|
199
|
+
type: string;
|
|
200
|
+
title: string;
|
|
201
|
+
description: string;
|
|
202
|
+
default: number;
|
|
203
|
+
};
|
|
204
|
+
slidesToScroll: {
|
|
205
|
+
type: string;
|
|
206
|
+
title: string;
|
|
207
|
+
description: string;
|
|
208
|
+
default: number;
|
|
209
|
+
};
|
|
210
|
+
dots: {
|
|
211
|
+
type: string;
|
|
212
|
+
title: string;
|
|
213
|
+
description: string;
|
|
214
|
+
default: boolean;
|
|
215
|
+
};
|
|
216
|
+
infinite: {
|
|
217
|
+
type: string;
|
|
218
|
+
title: string;
|
|
219
|
+
description: string;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
222
|
+
autoplay: {
|
|
223
|
+
type: string;
|
|
224
|
+
title: string;
|
|
225
|
+
description: string;
|
|
226
|
+
default: boolean;
|
|
227
|
+
};
|
|
228
|
+
autoplaySpeed: {
|
|
229
|
+
type: string;
|
|
230
|
+
title: string;
|
|
231
|
+
description: string;
|
|
232
|
+
default: number;
|
|
233
|
+
};
|
|
234
|
+
speed: {
|
|
235
|
+
type: string;
|
|
236
|
+
title: string;
|
|
237
|
+
description: string;
|
|
238
|
+
default: number;
|
|
239
|
+
};
|
|
240
|
+
arrows: {
|
|
241
|
+
type: string;
|
|
242
|
+
title: string;
|
|
243
|
+
description: string;
|
|
244
|
+
default: boolean;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
required: string[];
|
|
248
|
+
};
|
|
249
|
+
footerCarouselSlideConfig: {
|
|
250
|
+
type: string;
|
|
251
|
+
title: string;
|
|
252
|
+
description: string;
|
|
253
|
+
items: {
|
|
254
|
+
type: string;
|
|
255
|
+
title: string;
|
|
256
|
+
properties: {
|
|
257
|
+
image: {
|
|
258
|
+
type: string;
|
|
259
|
+
title: string;
|
|
260
|
+
description: string;
|
|
261
|
+
default: string;
|
|
262
|
+
};
|
|
263
|
+
title: {
|
|
264
|
+
type: string;
|
|
265
|
+
title: string;
|
|
266
|
+
description: string;
|
|
267
|
+
default: string;
|
|
268
|
+
};
|
|
269
|
+
description: {
|
|
270
|
+
type: string;
|
|
271
|
+
title: string;
|
|
272
|
+
description: string;
|
|
273
|
+
default: string;
|
|
274
|
+
};
|
|
275
|
+
highlighted: {
|
|
276
|
+
type: string;
|
|
277
|
+
title: string;
|
|
278
|
+
description: string;
|
|
279
|
+
default: boolean;
|
|
280
|
+
};
|
|
281
|
+
textColor: {
|
|
282
|
+
type: string;
|
|
283
|
+
title: string;
|
|
284
|
+
description: string;
|
|
285
|
+
enum: string[];
|
|
286
|
+
default: string;
|
|
287
|
+
};
|
|
288
|
+
backgroundColor: {
|
|
289
|
+
type: string;
|
|
290
|
+
title: string;
|
|
291
|
+
description: string;
|
|
292
|
+
enum: string[];
|
|
293
|
+
default: string;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
required: string[];
|
|
297
|
+
};
|
|
298
|
+
default: Slide[];
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
required: string[];
|
|
302
|
+
};
|
|
@@ -4,3 +4,28 @@ export type MenuBoardConfig = {
|
|
|
4
4
|
dataAgeThreshold: number;
|
|
5
5
|
};
|
|
6
6
|
export declare const DEFAULT_MENU_BOARD_CONFIG: MenuBoardConfig;
|
|
7
|
+
export declare const MENU_BOARD_CONFIG_SCHEMA: {
|
|
8
|
+
type: string;
|
|
9
|
+
title: string;
|
|
10
|
+
properties: {
|
|
11
|
+
amountToScroll: {
|
|
12
|
+
type: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
autoScrollTimeout: {
|
|
18
|
+
type: string;
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
dataAgeThreshold: {
|
|
24
|
+
type: string;
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
required: string[];
|
|
31
|
+
};
|
|
@@ -5,3 +5,34 @@ export interface SubscriptionConfig {
|
|
|
5
5
|
trialOccurrences: number;
|
|
6
6
|
}
|
|
7
7
|
export declare const DEFAULT_SUBSCRIPTION_CONFIG: SubscriptionConfig;
|
|
8
|
+
export declare const SUBSCRIPTION_CONFIG_SCHEMA: {
|
|
9
|
+
type: string;
|
|
10
|
+
title: string;
|
|
11
|
+
properties: {
|
|
12
|
+
amount: {
|
|
13
|
+
type: string;
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
default: number;
|
|
17
|
+
};
|
|
18
|
+
days: {
|
|
19
|
+
type: string;
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
totalOccurrences: {
|
|
25
|
+
type: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
default: number;
|
|
29
|
+
};
|
|
30
|
+
trialOccurrences: {
|
|
31
|
+
type: string;
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
required: string[];
|
|
38
|
+
};
|
package/lib/models/slide.d.ts
CHANGED
|
@@ -7,3 +7,48 @@ export type Slide = {
|
|
|
7
7
|
backgroundColor: 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'white';
|
|
8
8
|
};
|
|
9
9
|
export declare const DEFAULT_SLIDE: Slide;
|
|
10
|
+
export declare const SLIDE_SCHEMA: {
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
properties: {
|
|
14
|
+
image: {
|
|
15
|
+
type: string;
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
title: {
|
|
21
|
+
type: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
description: {
|
|
27
|
+
type: string;
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
highlighted: {
|
|
33
|
+
type: string;
|
|
34
|
+
title: string;
|
|
35
|
+
description: string;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
textColor: {
|
|
39
|
+
type: string;
|
|
40
|
+
title: string;
|
|
41
|
+
description: string;
|
|
42
|
+
enum: string[];
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
backgroundColor: {
|
|
46
|
+
type: string;
|
|
47
|
+
title: string;
|
|
48
|
+
description: string;
|
|
49
|
+
enum: string[];
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
required: string[];
|
|
54
|
+
};
|