vr-commons 1.0.167 → 1.0.169
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.
|
@@ -6,6 +6,165 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
6
6
|
appDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
appDefaultLanguage: z.ZodDefault<z.ZodString>;
|
|
8
8
|
appSupportedLanguages: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
+
runtimeConfig: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
apiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
11
|
+
googleWebClientId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
speedGovernor: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
isActive: z.ZodBoolean;
|
|
14
|
+
speedLimitKmh: z.ZodNumber;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
speedLimitKmh: number;
|
|
18
|
+
}, {
|
|
19
|
+
isActive: boolean;
|
|
20
|
+
speedLimitKmh: number;
|
|
21
|
+
}>>;
|
|
22
|
+
serialNumber: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
prefixes: z.ZodArray<z.ZodString, "many">;
|
|
24
|
+
roles: z.ZodArray<z.ZodEnum<["PASSENGER", "RIDER", "AGENT", "ADMIN"]>, "many">;
|
|
25
|
+
identifierPattern: z.ZodEffects<z.ZodString, string, string>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
prefixes: string[];
|
|
28
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
29
|
+
identifierPattern: string;
|
|
30
|
+
}, {
|
|
31
|
+
prefixes: string[];
|
|
32
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
33
|
+
identifierPattern: string;
|
|
34
|
+
}>>;
|
|
35
|
+
bleBatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
|
+
serviceUuid: z.ZodString;
|
|
37
|
+
controlCharUuid: z.ZodString;
|
|
38
|
+
statusCharUuid: z.ZodString;
|
|
39
|
+
deviceInfoCharUuid: z.ZodString;
|
|
40
|
+
batchId: z.ZodString;
|
|
41
|
+
manufacturer: z.ZodString;
|
|
42
|
+
firmwareVersion: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
serviceUuid: string;
|
|
45
|
+
controlCharUuid: string;
|
|
46
|
+
statusCharUuid: string;
|
|
47
|
+
deviceInfoCharUuid: string;
|
|
48
|
+
batchId: string;
|
|
49
|
+
manufacturer: string;
|
|
50
|
+
firmwareVersion?: string | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
serviceUuid: string;
|
|
53
|
+
controlCharUuid: string;
|
|
54
|
+
statusCharUuid: string;
|
|
55
|
+
deviceInfoCharUuid: string;
|
|
56
|
+
batchId: string;
|
|
57
|
+
manufacturer: string;
|
|
58
|
+
firmwareVersion?: string | undefined;
|
|
59
|
+
}>, "many">>;
|
|
60
|
+
sessionDefaults: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
passengerMinutes: z.ZodNumber;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
passengerMinutes: number;
|
|
64
|
+
}, {
|
|
65
|
+
passengerMinutes: number;
|
|
66
|
+
}>>;
|
|
67
|
+
bleTiming: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
scanTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
statusPollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
locationIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
locationDistanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
scanTimeoutMs?: number | undefined;
|
|
74
|
+
statusPollIntervalMs?: number | undefined;
|
|
75
|
+
locationIntervalMs?: number | undefined;
|
|
76
|
+
locationDistanceMeters?: number | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
scanTimeoutMs?: number | undefined;
|
|
79
|
+
statusPollIntervalMs?: number | undefined;
|
|
80
|
+
locationIntervalMs?: number | undefined;
|
|
81
|
+
locationDistanceMeters?: number | undefined;
|
|
82
|
+
}>>;
|
|
83
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
paymentPlansPageSize: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
maximumPageSize: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
paymentPlansPageSize?: number | undefined;
|
|
88
|
+
maximumPageSize?: number | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
paymentPlansPageSize?: number | undefined;
|
|
91
|
+
maximumPageSize?: number | undefined;
|
|
92
|
+
}>>;
|
|
93
|
+
minimumAppVersion: z.ZodOptional<z.ZodString>;
|
|
94
|
+
forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
apiBaseUrl?: string | undefined;
|
|
97
|
+
googleWebClientId?: string | undefined;
|
|
98
|
+
speedGovernor?: {
|
|
99
|
+
isActive: boolean;
|
|
100
|
+
speedLimitKmh: number;
|
|
101
|
+
} | undefined;
|
|
102
|
+
serialNumber?: {
|
|
103
|
+
prefixes: string[];
|
|
104
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
105
|
+
identifierPattern: string;
|
|
106
|
+
} | undefined;
|
|
107
|
+
bleBatches?: {
|
|
108
|
+
serviceUuid: string;
|
|
109
|
+
controlCharUuid: string;
|
|
110
|
+
statusCharUuid: string;
|
|
111
|
+
deviceInfoCharUuid: string;
|
|
112
|
+
batchId: string;
|
|
113
|
+
manufacturer: string;
|
|
114
|
+
firmwareVersion?: string | undefined;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
sessionDefaults?: {
|
|
117
|
+
passengerMinutes: number;
|
|
118
|
+
} | undefined;
|
|
119
|
+
bleTiming?: {
|
|
120
|
+
scanTimeoutMs?: number | undefined;
|
|
121
|
+
statusPollIntervalMs?: number | undefined;
|
|
122
|
+
locationIntervalMs?: number | undefined;
|
|
123
|
+
locationDistanceMeters?: number | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
pagination?: {
|
|
126
|
+
paymentPlansPageSize?: number | undefined;
|
|
127
|
+
maximumPageSize?: number | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
minimumAppVersion?: string | undefined;
|
|
130
|
+
forceUpdateMessage?: string | null | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
apiBaseUrl?: string | undefined;
|
|
133
|
+
googleWebClientId?: string | undefined;
|
|
134
|
+
speedGovernor?: {
|
|
135
|
+
isActive: boolean;
|
|
136
|
+
speedLimitKmh: number;
|
|
137
|
+
} | undefined;
|
|
138
|
+
serialNumber?: {
|
|
139
|
+
prefixes: string[];
|
|
140
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
141
|
+
identifierPattern: string;
|
|
142
|
+
} | undefined;
|
|
143
|
+
bleBatches?: {
|
|
144
|
+
serviceUuid: string;
|
|
145
|
+
controlCharUuid: string;
|
|
146
|
+
statusCharUuid: string;
|
|
147
|
+
deviceInfoCharUuid: string;
|
|
148
|
+
batchId: string;
|
|
149
|
+
manufacturer: string;
|
|
150
|
+
firmwareVersion?: string | undefined;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
sessionDefaults?: {
|
|
153
|
+
passengerMinutes: number;
|
|
154
|
+
} | undefined;
|
|
155
|
+
bleTiming?: {
|
|
156
|
+
scanTimeoutMs?: number | undefined;
|
|
157
|
+
statusPollIntervalMs?: number | undefined;
|
|
158
|
+
locationIntervalMs?: number | undefined;
|
|
159
|
+
locationDistanceMeters?: number | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
pagination?: {
|
|
162
|
+
paymentPlansPageSize?: number | undefined;
|
|
163
|
+
maximumPageSize?: number | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
minimumAppVersion?: string | undefined;
|
|
166
|
+
forceUpdateMessage?: string | null | undefined;
|
|
167
|
+
}>>;
|
|
9
168
|
privacyPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
169
|
privacyPolicyVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
170
|
termsAndConditions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -49,6 +208,43 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
49
208
|
isUnderMaintenance: boolean;
|
|
50
209
|
appShortName?: string | null | undefined;
|
|
51
210
|
appDescription?: string | null | undefined;
|
|
211
|
+
runtimeConfig?: {
|
|
212
|
+
apiBaseUrl?: string | undefined;
|
|
213
|
+
googleWebClientId?: string | undefined;
|
|
214
|
+
speedGovernor?: {
|
|
215
|
+
isActive: boolean;
|
|
216
|
+
speedLimitKmh: number;
|
|
217
|
+
} | undefined;
|
|
218
|
+
serialNumber?: {
|
|
219
|
+
prefixes: string[];
|
|
220
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
221
|
+
identifierPattern: string;
|
|
222
|
+
} | undefined;
|
|
223
|
+
bleBatches?: {
|
|
224
|
+
serviceUuid: string;
|
|
225
|
+
controlCharUuid: string;
|
|
226
|
+
statusCharUuid: string;
|
|
227
|
+
deviceInfoCharUuid: string;
|
|
228
|
+
batchId: string;
|
|
229
|
+
manufacturer: string;
|
|
230
|
+
firmwareVersion?: string | undefined;
|
|
231
|
+
}[] | undefined;
|
|
232
|
+
sessionDefaults?: {
|
|
233
|
+
passengerMinutes: number;
|
|
234
|
+
} | undefined;
|
|
235
|
+
bleTiming?: {
|
|
236
|
+
scanTimeoutMs?: number | undefined;
|
|
237
|
+
statusPollIntervalMs?: number | undefined;
|
|
238
|
+
locationIntervalMs?: number | undefined;
|
|
239
|
+
locationDistanceMeters?: number | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
pagination?: {
|
|
242
|
+
paymentPlansPageSize?: number | undefined;
|
|
243
|
+
maximumPageSize?: number | undefined;
|
|
244
|
+
} | undefined;
|
|
245
|
+
minimumAppVersion?: string | undefined;
|
|
246
|
+
forceUpdateMessage?: string | null | undefined;
|
|
247
|
+
} | undefined;
|
|
52
248
|
privacyPolicy?: string | null | undefined;
|
|
53
249
|
privacyPolicyVersion?: string | null | undefined;
|
|
54
250
|
termsAndConditions?: string | null | undefined;
|
|
@@ -76,6 +272,43 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
76
272
|
appDescription?: string | null | undefined;
|
|
77
273
|
appDefaultLanguage?: string | undefined;
|
|
78
274
|
appSupportedLanguages?: string[] | undefined;
|
|
275
|
+
runtimeConfig?: {
|
|
276
|
+
apiBaseUrl?: string | undefined;
|
|
277
|
+
googleWebClientId?: string | undefined;
|
|
278
|
+
speedGovernor?: {
|
|
279
|
+
isActive: boolean;
|
|
280
|
+
speedLimitKmh: number;
|
|
281
|
+
} | undefined;
|
|
282
|
+
serialNumber?: {
|
|
283
|
+
prefixes: string[];
|
|
284
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
285
|
+
identifierPattern: string;
|
|
286
|
+
} | undefined;
|
|
287
|
+
bleBatches?: {
|
|
288
|
+
serviceUuid: string;
|
|
289
|
+
controlCharUuid: string;
|
|
290
|
+
statusCharUuid: string;
|
|
291
|
+
deviceInfoCharUuid: string;
|
|
292
|
+
batchId: string;
|
|
293
|
+
manufacturer: string;
|
|
294
|
+
firmwareVersion?: string | undefined;
|
|
295
|
+
}[] | undefined;
|
|
296
|
+
sessionDefaults?: {
|
|
297
|
+
passengerMinutes: number;
|
|
298
|
+
} | undefined;
|
|
299
|
+
bleTiming?: {
|
|
300
|
+
scanTimeoutMs?: number | undefined;
|
|
301
|
+
statusPollIntervalMs?: number | undefined;
|
|
302
|
+
locationIntervalMs?: number | undefined;
|
|
303
|
+
locationDistanceMeters?: number | undefined;
|
|
304
|
+
} | undefined;
|
|
305
|
+
pagination?: {
|
|
306
|
+
paymentPlansPageSize?: number | undefined;
|
|
307
|
+
maximumPageSize?: number | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
minimumAppVersion?: string | undefined;
|
|
310
|
+
forceUpdateMessage?: string | null | undefined;
|
|
311
|
+
} | undefined;
|
|
79
312
|
privacyPolicy?: string | null | undefined;
|
|
80
313
|
privacyPolicyVersion?: string | null | undefined;
|
|
81
314
|
termsAndConditions?: string | null | undefined;
|
|
@@ -121,6 +354,43 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
121
354
|
isUnderMaintenance: boolean;
|
|
122
355
|
appShortName?: string | null | undefined;
|
|
123
356
|
appDescription?: string | null | undefined;
|
|
357
|
+
runtimeConfig?: {
|
|
358
|
+
apiBaseUrl?: string | undefined;
|
|
359
|
+
googleWebClientId?: string | undefined;
|
|
360
|
+
speedGovernor?: {
|
|
361
|
+
isActive: boolean;
|
|
362
|
+
speedLimitKmh: number;
|
|
363
|
+
} | undefined;
|
|
364
|
+
serialNumber?: {
|
|
365
|
+
prefixes: string[];
|
|
366
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
367
|
+
identifierPattern: string;
|
|
368
|
+
} | undefined;
|
|
369
|
+
bleBatches?: {
|
|
370
|
+
serviceUuid: string;
|
|
371
|
+
controlCharUuid: string;
|
|
372
|
+
statusCharUuid: string;
|
|
373
|
+
deviceInfoCharUuid: string;
|
|
374
|
+
batchId: string;
|
|
375
|
+
manufacturer: string;
|
|
376
|
+
firmwareVersion?: string | undefined;
|
|
377
|
+
}[] | undefined;
|
|
378
|
+
sessionDefaults?: {
|
|
379
|
+
passengerMinutes: number;
|
|
380
|
+
} | undefined;
|
|
381
|
+
bleTiming?: {
|
|
382
|
+
scanTimeoutMs?: number | undefined;
|
|
383
|
+
statusPollIntervalMs?: number | undefined;
|
|
384
|
+
locationIntervalMs?: number | undefined;
|
|
385
|
+
locationDistanceMeters?: number | undefined;
|
|
386
|
+
} | undefined;
|
|
387
|
+
pagination?: {
|
|
388
|
+
paymentPlansPageSize?: number | undefined;
|
|
389
|
+
maximumPageSize?: number | undefined;
|
|
390
|
+
} | undefined;
|
|
391
|
+
minimumAppVersion?: string | undefined;
|
|
392
|
+
forceUpdateMessage?: string | null | undefined;
|
|
393
|
+
} | undefined;
|
|
124
394
|
privacyPolicy?: string | null | undefined;
|
|
125
395
|
privacyPolicyVersion?: string | null | undefined;
|
|
126
396
|
termsAndConditions?: string | null | undefined;
|
|
@@ -150,6 +420,43 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
150
420
|
appDescription?: string | null | undefined;
|
|
151
421
|
appDefaultLanguage?: string | undefined;
|
|
152
422
|
appSupportedLanguages?: string[] | undefined;
|
|
423
|
+
runtimeConfig?: {
|
|
424
|
+
apiBaseUrl?: string | undefined;
|
|
425
|
+
googleWebClientId?: string | undefined;
|
|
426
|
+
speedGovernor?: {
|
|
427
|
+
isActive: boolean;
|
|
428
|
+
speedLimitKmh: number;
|
|
429
|
+
} | undefined;
|
|
430
|
+
serialNumber?: {
|
|
431
|
+
prefixes: string[];
|
|
432
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
433
|
+
identifierPattern: string;
|
|
434
|
+
} | undefined;
|
|
435
|
+
bleBatches?: {
|
|
436
|
+
serviceUuid: string;
|
|
437
|
+
controlCharUuid: string;
|
|
438
|
+
statusCharUuid: string;
|
|
439
|
+
deviceInfoCharUuid: string;
|
|
440
|
+
batchId: string;
|
|
441
|
+
manufacturer: string;
|
|
442
|
+
firmwareVersion?: string | undefined;
|
|
443
|
+
}[] | undefined;
|
|
444
|
+
sessionDefaults?: {
|
|
445
|
+
passengerMinutes: number;
|
|
446
|
+
} | undefined;
|
|
447
|
+
bleTiming?: {
|
|
448
|
+
scanTimeoutMs?: number | undefined;
|
|
449
|
+
statusPollIntervalMs?: number | undefined;
|
|
450
|
+
locationIntervalMs?: number | undefined;
|
|
451
|
+
locationDistanceMeters?: number | undefined;
|
|
452
|
+
} | undefined;
|
|
453
|
+
pagination?: {
|
|
454
|
+
paymentPlansPageSize?: number | undefined;
|
|
455
|
+
maximumPageSize?: number | undefined;
|
|
456
|
+
} | undefined;
|
|
457
|
+
minimumAppVersion?: string | undefined;
|
|
458
|
+
forceUpdateMessage?: string | null | undefined;
|
|
459
|
+
} | undefined;
|
|
153
460
|
privacyPolicy?: string | null | undefined;
|
|
154
461
|
privacyPolicyVersion?: string | null | undefined;
|
|
155
462
|
termsAndConditions?: string | null | undefined;
|
|
@@ -190,11 +497,169 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
190
497
|
id: string;
|
|
191
498
|
}>;
|
|
192
499
|
body: z.ZodObject<{
|
|
193
|
-
appName: z.ZodOptional<z.ZodString>;
|
|
194
500
|
appShortName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
195
501
|
appDescription: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
196
502
|
appDefaultLanguage: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
197
503
|
appSupportedLanguages: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
504
|
+
runtimeConfig: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
505
|
+
apiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
506
|
+
googleWebClientId: z.ZodOptional<z.ZodString>;
|
|
507
|
+
speedGovernor: z.ZodOptional<z.ZodObject<{
|
|
508
|
+
isActive: z.ZodBoolean;
|
|
509
|
+
speedLimitKmh: z.ZodNumber;
|
|
510
|
+
}, "strip", z.ZodTypeAny, {
|
|
511
|
+
isActive: boolean;
|
|
512
|
+
speedLimitKmh: number;
|
|
513
|
+
}, {
|
|
514
|
+
isActive: boolean;
|
|
515
|
+
speedLimitKmh: number;
|
|
516
|
+
}>>;
|
|
517
|
+
serialNumber: z.ZodOptional<z.ZodObject<{
|
|
518
|
+
prefixes: z.ZodArray<z.ZodString, "many">;
|
|
519
|
+
roles: z.ZodArray<z.ZodEnum<["PASSENGER", "RIDER", "AGENT", "ADMIN"]>, "many">;
|
|
520
|
+
identifierPattern: z.ZodEffects<z.ZodString, string, string>;
|
|
521
|
+
}, "strip", z.ZodTypeAny, {
|
|
522
|
+
prefixes: string[];
|
|
523
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
524
|
+
identifierPattern: string;
|
|
525
|
+
}, {
|
|
526
|
+
prefixes: string[];
|
|
527
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
528
|
+
identifierPattern: string;
|
|
529
|
+
}>>;
|
|
530
|
+
bleBatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
531
|
+
serviceUuid: z.ZodString;
|
|
532
|
+
controlCharUuid: z.ZodString;
|
|
533
|
+
statusCharUuid: z.ZodString;
|
|
534
|
+
deviceInfoCharUuid: z.ZodString;
|
|
535
|
+
batchId: z.ZodString;
|
|
536
|
+
manufacturer: z.ZodString;
|
|
537
|
+
firmwareVersion: z.ZodOptional<z.ZodString>;
|
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
|
539
|
+
serviceUuid: string;
|
|
540
|
+
controlCharUuid: string;
|
|
541
|
+
statusCharUuid: string;
|
|
542
|
+
deviceInfoCharUuid: string;
|
|
543
|
+
batchId: string;
|
|
544
|
+
manufacturer: string;
|
|
545
|
+
firmwareVersion?: string | undefined;
|
|
546
|
+
}, {
|
|
547
|
+
serviceUuid: string;
|
|
548
|
+
controlCharUuid: string;
|
|
549
|
+
statusCharUuid: string;
|
|
550
|
+
deviceInfoCharUuid: string;
|
|
551
|
+
batchId: string;
|
|
552
|
+
manufacturer: string;
|
|
553
|
+
firmwareVersion?: string | undefined;
|
|
554
|
+
}>, "many">>;
|
|
555
|
+
sessionDefaults: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
passengerMinutes: z.ZodNumber;
|
|
557
|
+
}, "strip", z.ZodTypeAny, {
|
|
558
|
+
passengerMinutes: number;
|
|
559
|
+
}, {
|
|
560
|
+
passengerMinutes: number;
|
|
561
|
+
}>>;
|
|
562
|
+
bleTiming: z.ZodOptional<z.ZodObject<{
|
|
563
|
+
scanTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
564
|
+
statusPollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
565
|
+
locationIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
566
|
+
locationDistanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
567
|
+
}, "strip", z.ZodTypeAny, {
|
|
568
|
+
scanTimeoutMs?: number | undefined;
|
|
569
|
+
statusPollIntervalMs?: number | undefined;
|
|
570
|
+
locationIntervalMs?: number | undefined;
|
|
571
|
+
locationDistanceMeters?: number | undefined;
|
|
572
|
+
}, {
|
|
573
|
+
scanTimeoutMs?: number | undefined;
|
|
574
|
+
statusPollIntervalMs?: number | undefined;
|
|
575
|
+
locationIntervalMs?: number | undefined;
|
|
576
|
+
locationDistanceMeters?: number | undefined;
|
|
577
|
+
}>>;
|
|
578
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
579
|
+
paymentPlansPageSize: z.ZodOptional<z.ZodNumber>;
|
|
580
|
+
maximumPageSize: z.ZodOptional<z.ZodNumber>;
|
|
581
|
+
}, "strip", z.ZodTypeAny, {
|
|
582
|
+
paymentPlansPageSize?: number | undefined;
|
|
583
|
+
maximumPageSize?: number | undefined;
|
|
584
|
+
}, {
|
|
585
|
+
paymentPlansPageSize?: number | undefined;
|
|
586
|
+
maximumPageSize?: number | undefined;
|
|
587
|
+
}>>;
|
|
588
|
+
minimumAppVersion: z.ZodOptional<z.ZodString>;
|
|
589
|
+
forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
apiBaseUrl?: string | undefined;
|
|
592
|
+
googleWebClientId?: string | undefined;
|
|
593
|
+
speedGovernor?: {
|
|
594
|
+
isActive: boolean;
|
|
595
|
+
speedLimitKmh: number;
|
|
596
|
+
} | undefined;
|
|
597
|
+
serialNumber?: {
|
|
598
|
+
prefixes: string[];
|
|
599
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
600
|
+
identifierPattern: string;
|
|
601
|
+
} | undefined;
|
|
602
|
+
bleBatches?: {
|
|
603
|
+
serviceUuid: string;
|
|
604
|
+
controlCharUuid: string;
|
|
605
|
+
statusCharUuid: string;
|
|
606
|
+
deviceInfoCharUuid: string;
|
|
607
|
+
batchId: string;
|
|
608
|
+
manufacturer: string;
|
|
609
|
+
firmwareVersion?: string | undefined;
|
|
610
|
+
}[] | undefined;
|
|
611
|
+
sessionDefaults?: {
|
|
612
|
+
passengerMinutes: number;
|
|
613
|
+
} | undefined;
|
|
614
|
+
bleTiming?: {
|
|
615
|
+
scanTimeoutMs?: number | undefined;
|
|
616
|
+
statusPollIntervalMs?: number | undefined;
|
|
617
|
+
locationIntervalMs?: number | undefined;
|
|
618
|
+
locationDistanceMeters?: number | undefined;
|
|
619
|
+
} | undefined;
|
|
620
|
+
pagination?: {
|
|
621
|
+
paymentPlansPageSize?: number | undefined;
|
|
622
|
+
maximumPageSize?: number | undefined;
|
|
623
|
+
} | undefined;
|
|
624
|
+
minimumAppVersion?: string | undefined;
|
|
625
|
+
forceUpdateMessage?: string | null | undefined;
|
|
626
|
+
}, {
|
|
627
|
+
apiBaseUrl?: string | undefined;
|
|
628
|
+
googleWebClientId?: string | undefined;
|
|
629
|
+
speedGovernor?: {
|
|
630
|
+
isActive: boolean;
|
|
631
|
+
speedLimitKmh: number;
|
|
632
|
+
} | undefined;
|
|
633
|
+
serialNumber?: {
|
|
634
|
+
prefixes: string[];
|
|
635
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
636
|
+
identifierPattern: string;
|
|
637
|
+
} | undefined;
|
|
638
|
+
bleBatches?: {
|
|
639
|
+
serviceUuid: string;
|
|
640
|
+
controlCharUuid: string;
|
|
641
|
+
statusCharUuid: string;
|
|
642
|
+
deviceInfoCharUuid: string;
|
|
643
|
+
batchId: string;
|
|
644
|
+
manufacturer: string;
|
|
645
|
+
firmwareVersion?: string | undefined;
|
|
646
|
+
}[] | undefined;
|
|
647
|
+
sessionDefaults?: {
|
|
648
|
+
passengerMinutes: number;
|
|
649
|
+
} | undefined;
|
|
650
|
+
bleTiming?: {
|
|
651
|
+
scanTimeoutMs?: number | undefined;
|
|
652
|
+
statusPollIntervalMs?: number | undefined;
|
|
653
|
+
locationIntervalMs?: number | undefined;
|
|
654
|
+
locationDistanceMeters?: number | undefined;
|
|
655
|
+
} | undefined;
|
|
656
|
+
pagination?: {
|
|
657
|
+
paymentPlansPageSize?: number | undefined;
|
|
658
|
+
maximumPageSize?: number | undefined;
|
|
659
|
+
} | undefined;
|
|
660
|
+
minimumAppVersion?: string | undefined;
|
|
661
|
+
forceUpdateMessage?: string | null | undefined;
|
|
662
|
+
}>>>;
|
|
198
663
|
privacyPolicy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
199
664
|
privacyPolicyVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
200
665
|
termsAndConditions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -225,11 +690,47 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
225
690
|
maintenanceStartAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
226
691
|
maintenanceEndAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
227
692
|
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
appName?: string | undefined;
|
|
229
693
|
appShortName?: string | null | undefined;
|
|
230
694
|
appDescription?: string | null | undefined;
|
|
231
695
|
appDefaultLanguage?: string | undefined;
|
|
232
696
|
appSupportedLanguages?: string[] | undefined;
|
|
697
|
+
runtimeConfig?: {
|
|
698
|
+
apiBaseUrl?: string | undefined;
|
|
699
|
+
googleWebClientId?: string | undefined;
|
|
700
|
+
speedGovernor?: {
|
|
701
|
+
isActive: boolean;
|
|
702
|
+
speedLimitKmh: number;
|
|
703
|
+
} | undefined;
|
|
704
|
+
serialNumber?: {
|
|
705
|
+
prefixes: string[];
|
|
706
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
707
|
+
identifierPattern: string;
|
|
708
|
+
} | undefined;
|
|
709
|
+
bleBatches?: {
|
|
710
|
+
serviceUuid: string;
|
|
711
|
+
controlCharUuid: string;
|
|
712
|
+
statusCharUuid: string;
|
|
713
|
+
deviceInfoCharUuid: string;
|
|
714
|
+
batchId: string;
|
|
715
|
+
manufacturer: string;
|
|
716
|
+
firmwareVersion?: string | undefined;
|
|
717
|
+
}[] | undefined;
|
|
718
|
+
sessionDefaults?: {
|
|
719
|
+
passengerMinutes: number;
|
|
720
|
+
} | undefined;
|
|
721
|
+
bleTiming?: {
|
|
722
|
+
scanTimeoutMs?: number | undefined;
|
|
723
|
+
statusPollIntervalMs?: number | undefined;
|
|
724
|
+
locationIntervalMs?: number | undefined;
|
|
725
|
+
locationDistanceMeters?: number | undefined;
|
|
726
|
+
} | undefined;
|
|
727
|
+
pagination?: {
|
|
728
|
+
paymentPlansPageSize?: number | undefined;
|
|
729
|
+
maximumPageSize?: number | undefined;
|
|
730
|
+
} | undefined;
|
|
731
|
+
minimumAppVersion?: string | undefined;
|
|
732
|
+
forceUpdateMessage?: string | null | undefined;
|
|
733
|
+
} | undefined;
|
|
233
734
|
privacyPolicy?: string | null | undefined;
|
|
234
735
|
privacyPolicyVersion?: string | null | undefined;
|
|
235
736
|
termsAndConditions?: string | null | undefined;
|
|
@@ -260,11 +761,47 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
260
761
|
maintenanceStartAt?: string | null | undefined;
|
|
261
762
|
maintenanceEndAt?: string | null | undefined;
|
|
262
763
|
}, {
|
|
263
|
-
appName?: string | undefined;
|
|
264
764
|
appShortName?: string | null | undefined;
|
|
265
765
|
appDescription?: string | null | undefined;
|
|
266
766
|
appDefaultLanguage?: string | undefined;
|
|
267
767
|
appSupportedLanguages?: string[] | undefined;
|
|
768
|
+
runtimeConfig?: {
|
|
769
|
+
apiBaseUrl?: string | undefined;
|
|
770
|
+
googleWebClientId?: string | undefined;
|
|
771
|
+
speedGovernor?: {
|
|
772
|
+
isActive: boolean;
|
|
773
|
+
speedLimitKmh: number;
|
|
774
|
+
} | undefined;
|
|
775
|
+
serialNumber?: {
|
|
776
|
+
prefixes: string[];
|
|
777
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
778
|
+
identifierPattern: string;
|
|
779
|
+
} | undefined;
|
|
780
|
+
bleBatches?: {
|
|
781
|
+
serviceUuid: string;
|
|
782
|
+
controlCharUuid: string;
|
|
783
|
+
statusCharUuid: string;
|
|
784
|
+
deviceInfoCharUuid: string;
|
|
785
|
+
batchId: string;
|
|
786
|
+
manufacturer: string;
|
|
787
|
+
firmwareVersion?: string | undefined;
|
|
788
|
+
}[] | undefined;
|
|
789
|
+
sessionDefaults?: {
|
|
790
|
+
passengerMinutes: number;
|
|
791
|
+
} | undefined;
|
|
792
|
+
bleTiming?: {
|
|
793
|
+
scanTimeoutMs?: number | undefined;
|
|
794
|
+
statusPollIntervalMs?: number | undefined;
|
|
795
|
+
locationIntervalMs?: number | undefined;
|
|
796
|
+
locationDistanceMeters?: number | undefined;
|
|
797
|
+
} | undefined;
|
|
798
|
+
pagination?: {
|
|
799
|
+
paymentPlansPageSize?: number | undefined;
|
|
800
|
+
maximumPageSize?: number | undefined;
|
|
801
|
+
} | undefined;
|
|
802
|
+
minimumAppVersion?: string | undefined;
|
|
803
|
+
forceUpdateMessage?: string | null | undefined;
|
|
804
|
+
} | undefined;
|
|
268
805
|
privacyPolicy?: string | null | undefined;
|
|
269
806
|
privacyPolicyVersion?: string | null | undefined;
|
|
270
807
|
termsAndConditions?: string | null | undefined;
|
|
@@ -296,12 +833,51 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
296
833
|
maintenanceEndAt?: string | null | undefined;
|
|
297
834
|
}>;
|
|
298
835
|
}, "strip", z.ZodTypeAny, {
|
|
836
|
+
params: {
|
|
837
|
+
id: string;
|
|
838
|
+
};
|
|
299
839
|
body: {
|
|
300
|
-
appName?: string | undefined;
|
|
301
840
|
appShortName?: string | null | undefined;
|
|
302
841
|
appDescription?: string | null | undefined;
|
|
303
842
|
appDefaultLanguage?: string | undefined;
|
|
304
843
|
appSupportedLanguages?: string[] | undefined;
|
|
844
|
+
runtimeConfig?: {
|
|
845
|
+
apiBaseUrl?: string | undefined;
|
|
846
|
+
googleWebClientId?: string | undefined;
|
|
847
|
+
speedGovernor?: {
|
|
848
|
+
isActive: boolean;
|
|
849
|
+
speedLimitKmh: number;
|
|
850
|
+
} | undefined;
|
|
851
|
+
serialNumber?: {
|
|
852
|
+
prefixes: string[];
|
|
853
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
854
|
+
identifierPattern: string;
|
|
855
|
+
} | undefined;
|
|
856
|
+
bleBatches?: {
|
|
857
|
+
serviceUuid: string;
|
|
858
|
+
controlCharUuid: string;
|
|
859
|
+
statusCharUuid: string;
|
|
860
|
+
deviceInfoCharUuid: string;
|
|
861
|
+
batchId: string;
|
|
862
|
+
manufacturer: string;
|
|
863
|
+
firmwareVersion?: string | undefined;
|
|
864
|
+
}[] | undefined;
|
|
865
|
+
sessionDefaults?: {
|
|
866
|
+
passengerMinutes: number;
|
|
867
|
+
} | undefined;
|
|
868
|
+
bleTiming?: {
|
|
869
|
+
scanTimeoutMs?: number | undefined;
|
|
870
|
+
statusPollIntervalMs?: number | undefined;
|
|
871
|
+
locationIntervalMs?: number | undefined;
|
|
872
|
+
locationDistanceMeters?: number | undefined;
|
|
873
|
+
} | undefined;
|
|
874
|
+
pagination?: {
|
|
875
|
+
paymentPlansPageSize?: number | undefined;
|
|
876
|
+
maximumPageSize?: number | undefined;
|
|
877
|
+
} | undefined;
|
|
878
|
+
minimumAppVersion?: string | undefined;
|
|
879
|
+
forceUpdateMessage?: string | null | undefined;
|
|
880
|
+
} | undefined;
|
|
305
881
|
privacyPolicy?: string | null | undefined;
|
|
306
882
|
privacyPolicyVersion?: string | null | undefined;
|
|
307
883
|
termsAndConditions?: string | null | undefined;
|
|
@@ -332,16 +908,52 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
332
908
|
maintenanceStartAt?: string | null | undefined;
|
|
333
909
|
maintenanceEndAt?: string | null | undefined;
|
|
334
910
|
};
|
|
911
|
+
}, {
|
|
335
912
|
params: {
|
|
336
913
|
id: string;
|
|
337
914
|
};
|
|
338
|
-
}, {
|
|
339
915
|
body: {
|
|
340
|
-
appName?: string | undefined;
|
|
341
916
|
appShortName?: string | null | undefined;
|
|
342
917
|
appDescription?: string | null | undefined;
|
|
343
918
|
appDefaultLanguage?: string | undefined;
|
|
344
919
|
appSupportedLanguages?: string[] | undefined;
|
|
920
|
+
runtimeConfig?: {
|
|
921
|
+
apiBaseUrl?: string | undefined;
|
|
922
|
+
googleWebClientId?: string | undefined;
|
|
923
|
+
speedGovernor?: {
|
|
924
|
+
isActive: boolean;
|
|
925
|
+
speedLimitKmh: number;
|
|
926
|
+
} | undefined;
|
|
927
|
+
serialNumber?: {
|
|
928
|
+
prefixes: string[];
|
|
929
|
+
roles: ("PASSENGER" | "RIDER" | "AGENT" | "ADMIN")[];
|
|
930
|
+
identifierPattern: string;
|
|
931
|
+
} | undefined;
|
|
932
|
+
bleBatches?: {
|
|
933
|
+
serviceUuid: string;
|
|
934
|
+
controlCharUuid: string;
|
|
935
|
+
statusCharUuid: string;
|
|
936
|
+
deviceInfoCharUuid: string;
|
|
937
|
+
batchId: string;
|
|
938
|
+
manufacturer: string;
|
|
939
|
+
firmwareVersion?: string | undefined;
|
|
940
|
+
}[] | undefined;
|
|
941
|
+
sessionDefaults?: {
|
|
942
|
+
passengerMinutes: number;
|
|
943
|
+
} | undefined;
|
|
944
|
+
bleTiming?: {
|
|
945
|
+
scanTimeoutMs?: number | undefined;
|
|
946
|
+
statusPollIntervalMs?: number | undefined;
|
|
947
|
+
locationIntervalMs?: number | undefined;
|
|
948
|
+
locationDistanceMeters?: number | undefined;
|
|
949
|
+
} | undefined;
|
|
950
|
+
pagination?: {
|
|
951
|
+
paymentPlansPageSize?: number | undefined;
|
|
952
|
+
maximumPageSize?: number | undefined;
|
|
953
|
+
} | undefined;
|
|
954
|
+
minimumAppVersion?: string | undefined;
|
|
955
|
+
forceUpdateMessage?: string | null | undefined;
|
|
956
|
+
} | undefined;
|
|
345
957
|
privacyPolicy?: string | null | undefined;
|
|
346
958
|
privacyPolicyVersion?: string | null | undefined;
|
|
347
959
|
termsAndConditions?: string | null | undefined;
|
|
@@ -372,50 +984,42 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
372
984
|
maintenanceStartAt?: string | null | undefined;
|
|
373
985
|
maintenanceEndAt?: string | null | undefined;
|
|
374
986
|
};
|
|
375
|
-
params: {
|
|
376
|
-
id: string;
|
|
377
|
-
};
|
|
378
987
|
}>;
|
|
379
988
|
export declare const listAppSpecsSchema: z.ZodObject<{
|
|
380
989
|
query: z.ZodObject<{
|
|
381
990
|
page: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
382
991
|
limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
383
|
-
isActive: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
384
992
|
search: z.ZodOptional<z.ZodString>;
|
|
385
|
-
sortBy: z.ZodOptional<z.ZodEnum<["
|
|
993
|
+
sortBy: z.ZodOptional<z.ZodEnum<["appName", "createdAt", "updatedAt"]>>;
|
|
386
994
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
387
995
|
}, "strip", z.ZodTypeAny, {
|
|
388
|
-
limit: number;
|
|
389
996
|
page: number;
|
|
997
|
+
limit: number;
|
|
390
998
|
search?: string | undefined;
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
999
|
+
sortBy?: "appName" | "createdAt" | "updatedAt" | undefined;
|
|
1000
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
394
1001
|
}, {
|
|
395
|
-
search?: string | undefined;
|
|
396
|
-
limit?: string | undefined;
|
|
397
|
-
isActive?: "true" | "false" | undefined;
|
|
398
1002
|
page?: string | undefined;
|
|
399
|
-
|
|
400
|
-
|
|
1003
|
+
limit?: string | undefined;
|
|
1004
|
+
search?: string | undefined;
|
|
1005
|
+
sortBy?: "appName" | "createdAt" | "updatedAt" | undefined;
|
|
1006
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
401
1007
|
}>;
|
|
402
1008
|
}, "strip", z.ZodTypeAny, {
|
|
403
1009
|
query: {
|
|
404
|
-
limit: number;
|
|
405
1010
|
page: number;
|
|
1011
|
+
limit: number;
|
|
406
1012
|
search?: string | undefined;
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
sortOrder?: "DESC" | "ASC" | undefined;
|
|
1013
|
+
sortBy?: "appName" | "createdAt" | "updatedAt" | undefined;
|
|
1014
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
410
1015
|
};
|
|
411
1016
|
}, {
|
|
412
1017
|
query: {
|
|
413
|
-
search?: string | undefined;
|
|
414
|
-
limit?: string | undefined;
|
|
415
|
-
isActive?: "true" | "false" | undefined;
|
|
416
1018
|
page?: string | undefined;
|
|
417
|
-
|
|
418
|
-
|
|
1019
|
+
limit?: string | undefined;
|
|
1020
|
+
search?: string | undefined;
|
|
1021
|
+
sortBy?: "appName" | "createdAt" | "updatedAt" | undefined;
|
|
1022
|
+
sortOrder?: "ASC" | "DESC" | undefined;
|
|
419
1023
|
};
|
|
420
1024
|
}>;
|
|
421
1025
|
export declare const getAppSpecsSchema: z.ZodObject<{
|
|
@@ -453,3 +1057,20 @@ export declare const activateAppSpecsSchema: z.ZodObject<{
|
|
|
453
1057
|
};
|
|
454
1058
|
}>;
|
|
455
1059
|
export declare const getActiveAppSpecsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1060
|
+
export declare const getAppSpecsByNameSchema: z.ZodObject<{
|
|
1061
|
+
params: z.ZodObject<{
|
|
1062
|
+
appName: z.ZodString;
|
|
1063
|
+
}, "strip", z.ZodTypeAny, {
|
|
1064
|
+
appName: string;
|
|
1065
|
+
}, {
|
|
1066
|
+
appName: string;
|
|
1067
|
+
}>;
|
|
1068
|
+
}, "strip", z.ZodTypeAny, {
|
|
1069
|
+
params: {
|
|
1070
|
+
appName: string;
|
|
1071
|
+
};
|
|
1072
|
+
}, {
|
|
1073
|
+
params: {
|
|
1074
|
+
appName: string;
|
|
1075
|
+
};
|
|
1076
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getActiveAppSpecsSchema = exports.activateAppSpecsSchema = exports.getAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = void 0;
|
|
3
|
+
exports.getAppSpecsByNameSchema = exports.getActiveAppSpecsSchema = exports.activateAppSpecsSchema = exports.getAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = void 0;
|
|
4
4
|
// src/validations/appSpecs.validations.ts
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const urlRegex = /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/;
|
|
@@ -13,6 +13,50 @@ const appSpecsBaseSchema = {
|
|
|
13
13
|
appSupportedLanguages: zod_1.z
|
|
14
14
|
.array(zod_1.z.string().min(2).max(10))
|
|
15
15
|
.default(["en", "fr"]),
|
|
16
|
+
runtimeConfig: zod_1.z.object({
|
|
17
|
+
apiBaseUrl: zod_1.z.string().url().optional(),
|
|
18
|
+
googleWebClientId: zod_1.z.string().max(255).optional(),
|
|
19
|
+
speedGovernor: zod_1.z.object({
|
|
20
|
+
isActive: zod_1.z.boolean(),
|
|
21
|
+
speedLimitKmh: zod_1.z.number().positive().max(300),
|
|
22
|
+
}).optional(),
|
|
23
|
+
serialNumber: zod_1.z.object({
|
|
24
|
+
prefixes: zod_1.z.array(zod_1.z.string().min(1).max(32)).min(1),
|
|
25
|
+
roles: zod_1.z.array(zod_1.z.enum(["PASSENGER", "RIDER", "AGENT", "ADMIN"])).min(1),
|
|
26
|
+
// This is an identifier segment, not an executable, server-supplied regex.
|
|
27
|
+
identifierPattern: zod_1.z.string().min(1).max(100).refine((pattern) => {
|
|
28
|
+
try {
|
|
29
|
+
new RegExp(pattern);
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
}, "Must be a valid regular-expression fragment"),
|
|
36
|
+
}).optional(),
|
|
37
|
+
bleBatches: zod_1.z.array(zod_1.z.object({
|
|
38
|
+
serviceUuid: zod_1.z.string().uuid(),
|
|
39
|
+
controlCharUuid: zod_1.z.string().uuid(),
|
|
40
|
+
statusCharUuid: zod_1.z.string().uuid(),
|
|
41
|
+
deviceInfoCharUuid: zod_1.z.string().uuid(),
|
|
42
|
+
batchId: zod_1.z.string().min(1).max(100),
|
|
43
|
+
manufacturer: zod_1.z.string().min(1).max(100),
|
|
44
|
+
firmwareVersion: zod_1.z.string().max(50).optional(),
|
|
45
|
+
})).optional(),
|
|
46
|
+
sessionDefaults: zod_1.z.object({ passengerMinutes: zod_1.z.number().int().min(1).max(1440) }).optional(),
|
|
47
|
+
bleTiming: zod_1.z.object({
|
|
48
|
+
scanTimeoutMs: zod_1.z.number().int().min(1000).max(120000).optional(),
|
|
49
|
+
statusPollIntervalMs: zod_1.z.number().int().min(1000).max(120000).optional(),
|
|
50
|
+
locationIntervalMs: zod_1.z.number().int().min(1000).max(120000).optional(),
|
|
51
|
+
locationDistanceMeters: zod_1.z.number().min(0).max(1000).optional(),
|
|
52
|
+
}).optional(),
|
|
53
|
+
pagination: zod_1.z.object({
|
|
54
|
+
paymentPlansPageSize: zod_1.z.number().int().min(1).max(100).optional(),
|
|
55
|
+
maximumPageSize: zod_1.z.number().int().min(1).max(100).optional(),
|
|
56
|
+
}).optional(),
|
|
57
|
+
minimumAppVersion: zod_1.z.string().max(30).optional(),
|
|
58
|
+
forceUpdateMessage: zod_1.z.string().nullable().optional(),
|
|
59
|
+
}).optional(),
|
|
16
60
|
// Legal Documents
|
|
17
61
|
privacyPolicy: zod_1.z.string().nullable().optional(),
|
|
18
62
|
privacyPolicyVersion: zod_1.z.string().max(20).nullable().optional(),
|
|
@@ -56,7 +100,7 @@ exports.updateAppSpecsSchema = zod_1.z.object({
|
|
|
56
100
|
params: zod_1.z.object({
|
|
57
101
|
id: zod_1.z.string().uuid(),
|
|
58
102
|
}),
|
|
59
|
-
body: zod_1.z.object(appSpecsBaseSchema).partial(),
|
|
103
|
+
body: zod_1.z.object(appSpecsBaseSchema).omit({ appName: true }).partial(),
|
|
60
104
|
});
|
|
61
105
|
exports.listAppSpecsSchema = zod_1.z.object({
|
|
62
106
|
query: zod_1.z.object({
|
|
@@ -70,9 +114,8 @@ exports.listAppSpecsSchema = zod_1.z.object({
|
|
|
70
114
|
.optional()
|
|
71
115
|
.transform((val) => (val ? parseInt(val) : 10))
|
|
72
116
|
.pipe(zod_1.z.number().min(1).max(100)),
|
|
73
|
-
isActive: zod_1.z.enum(["true", "false"]).optional(),
|
|
74
117
|
search: zod_1.z.string().optional(),
|
|
75
|
-
sortBy: zod_1.z.enum(["
|
|
118
|
+
sortBy: zod_1.z.enum(["appName", "createdAt", "updatedAt"]).optional(),
|
|
76
119
|
sortOrder: zod_1.z.enum(["ASC", "DESC"]).optional(),
|
|
77
120
|
}),
|
|
78
121
|
});
|
|
@@ -87,3 +130,6 @@ exports.activateAppSpecsSchema = zod_1.z.object({
|
|
|
87
130
|
}),
|
|
88
131
|
});
|
|
89
132
|
exports.getActiveAppSpecsSchema = zod_1.z.object({});
|
|
133
|
+
exports.getAppSpecsByNameSchema = zod_1.z.object({
|
|
134
|
+
params: zod_1.z.object({ appName: zod_1.z.string().min(1).max(100) }),
|
|
135
|
+
});
|
|
@@ -2,7 +2,7 @@ export { validate } from "./validate.validations";
|
|
|
2
2
|
export { riderLoginSchema, forgotPasswordSchema, userLoginSchema, refreshTokenSchema, registerSchema, verifyOtpSchema, resendOtpSchema, requestOtpSchema, phoneRegex, emailRegex, passwordRegex, riderPasswordRegex, setRiderPasswordSchema, checkRiderAccountSchema, completePassengerProfileSchema, googleLoginSchema, } from "./auth.validations";
|
|
3
3
|
export { createUserSchema, getUserByIdSchema, updateUserProfileSchema, getAllUsersSchema, viewProfileSchema, passengerSignupSchema, updatePassengerProfileSchema, updateRiderProfileSchema, createRiderSchema, deactivateAccountSchema, } from "./profiles.validations";
|
|
4
4
|
export { submitBanAppealSchema, submitSuspensionAppealSchema, getBanSchema, getUserRestrictionsSchema, getSuspensionSchema, getUserSuspensionsSchema, getUserBansSchema, listBansSchema, listPendingAppealsSchema, listSuspensionsSchema, reviewAppealSchema, revokeBanSchema, revokeSuspensionSchema, extendSuspensionSchema, createBanSchema, createSuspensionSchema, exportBansSchema, } from "./moderation.validations";
|
|
5
|
-
export { createAppSpecsSchema, updateAppSpecsSchema, listAppSpecsSchema, getActiveAppSpecsSchema, activateAppSpecsSchema, getAppSpecsSchema, } from "./appSpecs.validations";
|
|
5
|
+
export { createAppSpecsSchema, updateAppSpecsSchema, listAppSpecsSchema, getActiveAppSpecsSchema, getAppSpecsByNameSchema, activateAppSpecsSchema, getAppSpecsSchema, } from "./appSpecs.validations";
|
|
6
6
|
export { listUserPaymentPlansSchema, getUserPaymentPlanSchema, } from "./devicePaymentPlan.validations";
|
|
7
7
|
export { unlockDeviceSchema, extendSessionSchema, serialRegex, } from "./devices.validations";
|
|
8
8
|
export { payInstallmentSchema, getInstallmentByIdSchema, getInstallmentsSchema, } from "./admin.installment.validations";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.getEventLogSchema = exports.listEventLogsSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = exports.createPlanSchema = exports.customDeviceResetSchema = exports.triggerDeviceResetSchema = exports.getDevicesSchema = void 0;
|
|
3
|
+
exports.activateAppSpecsSchema = exports.getAppSpecsByNameSchema = exports.getActiveAppSpecsSchema = exports.listAppSpecsSchema = exports.updateAppSpecsSchema = exports.createAppSpecsSchema = exports.exportBansSchema = exports.createSuspensionSchema = exports.createBanSchema = exports.extendSuspensionSchema = exports.revokeSuspensionSchema = exports.revokeBanSchema = exports.reviewAppealSchema = exports.listSuspensionsSchema = exports.listPendingAppealsSchema = exports.listBansSchema = exports.getUserBansSchema = exports.getUserSuspensionsSchema = exports.getSuspensionSchema = exports.getUserRestrictionsSchema = exports.getBanSchema = exports.submitSuspensionAppealSchema = exports.submitBanAppealSchema = exports.deactivateAccountSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.googleLoginSchema = exports.completePassengerProfileSchema = exports.checkRiderAccountSchema = exports.setRiderPasswordSchema = exports.riderPasswordRegex = exports.passwordRegex = exports.emailRegex = exports.phoneRegex = exports.requestOtpSchema = exports.resendOtpSchema = exports.verifyOtpSchema = exports.registerSchema = exports.refreshTokenSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
|
|
4
|
+
exports.enableDevicesSchema = exports.disableDevicesSchema = exports.permanentDeleteDevicesByPairsSchema = exports.makeDevicesPermanentSchema = exports.deleteDevicesByPairsSchema = exports.unlockDevicesSchema = exports.lockDevicesSchema = exports.createDevicePairsSchema = exports.checkAvailabilitySchema = exports.deletePricingSchema = exports.getPricingsSchema = exports.getPricingSchema = exports.updatePricingSchema = exports.createPricingSchema = exports.updateStockSchema = exports.deleteProductSchema = exports.activateProductSchema = exports.deactivateProductSchema = exports.getProductsSchema = exports.getProductSchema = exports.updateProductSchema = exports.createProductSchema = exports.resetPasswordSchema = exports.upgradeToRiderSchema = exports.fireEmployeeSchema = exports.demoteAdminSchema = exports.promoteAdminSchema = exports.hireAdminSchema = exports.getUsersSchema = exports.getUserSchema = exports.deleteUserSchema = exports.updateRiderSchema = exports.updateAdminSchema = exports.registerRiderSchema = exports.riderPasswordSchema = exports.changePasswordSchema = exports.strongPasswordRegex = exports.deleteAccountSchema = exports.verifyPhoneChangeSchema = exports.requestPhoneChangeSchema = exports.updateProfileSchema = exports.getInstallmentsSchema = exports.getInstallmentByIdSchema = exports.payInstallmentSchema = exports.serialRegex = exports.extendSessionSchema = exports.unlockDeviceSchema = exports.getUserPaymentPlanSchema = exports.listUserPaymentPlansSchema = exports.getAppSpecsSchema = void 0;
|
|
5
|
+
exports.getEventLogSchema = exports.listEventLogsSchema = exports.deletePlanSchema = exports.recordPaymentSchema = exports.listPlansSchema = exports.getUserPlansSchema = exports.getPlanSchema = exports.getDevicePlanSchema = exports.limitedUpdateSchema = exports.createPlanSchema = exports.customDeviceResetSchema = exports.triggerDeviceResetSchema = exports.getDevicesSchema = exports.getDeviceSchema = void 0;
|
|
6
6
|
var validate_validations_1 = require("./validate.validations");
|
|
7
7
|
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_validations_1.validate; } });
|
|
8
8
|
var auth_validations_1 = require("./auth.validations");
|
|
@@ -64,6 +64,7 @@ Object.defineProperty(exports, "createAppSpecsSchema", { enumerable: true, get:
|
|
|
64
64
|
Object.defineProperty(exports, "updateAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.updateAppSpecsSchema; } });
|
|
65
65
|
Object.defineProperty(exports, "listAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.listAppSpecsSchema; } });
|
|
66
66
|
Object.defineProperty(exports, "getActiveAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.getActiveAppSpecsSchema; } });
|
|
67
|
+
Object.defineProperty(exports, "getAppSpecsByNameSchema", { enumerable: true, get: function () { return appSpecs_validations_1.getAppSpecsByNameSchema; } });
|
|
67
68
|
Object.defineProperty(exports, "activateAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.activateAppSpecsSchema; } });
|
|
68
69
|
Object.defineProperty(exports, "getAppSpecsSchema", { enumerable: true, get: function () { return appSpecs_validations_1.getAppSpecsSchema; } });
|
|
69
70
|
var devicePaymentPlan_validations_1 = require("./devicePaymentPlan.validations");
|