vr-commons 1.0.167 → 1.0.171
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { User, SecurityClearance, UserRole, Permission } from "vr-models";
|
|
1
|
+
import { User, SecurityClearance, UserRole, Permission, Gender } from "vr-models";
|
|
2
2
|
import { Transaction, WhereOptions } from "sequelize";
|
|
3
3
|
export type UserType = "RIDER" | "PASSENGER" | "AGENT" | "ADMIN" | "SUPER_ADMIN";
|
|
4
4
|
export interface ProfileFormatOptions {
|
|
@@ -12,7 +12,7 @@ export interface BaseUserProfile {
|
|
|
12
12
|
firstName: string;
|
|
13
13
|
lastName: string;
|
|
14
14
|
primaryContact: string;
|
|
15
|
-
gender:
|
|
15
|
+
gender: Gender;
|
|
16
16
|
birthDate: number | null;
|
|
17
17
|
birthMonth: number | null;
|
|
18
18
|
birthYear: number | null;
|
|
@@ -6,6 +6,188 @@ 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
|
+
apiBaseUrls: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
production: z.ZodOptional<z.ZodString>;
|
|
13
|
+
staging: z.ZodOptional<z.ZodString>;
|
|
14
|
+
develop: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
production?: string | undefined;
|
|
17
|
+
staging?: string | undefined;
|
|
18
|
+
develop?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
production?: string | undefined;
|
|
21
|
+
staging?: string | undefined;
|
|
22
|
+
develop?: string | undefined;
|
|
23
|
+
}>>;
|
|
24
|
+
googleWebClientId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
speedGovernor: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
isActive: z.ZodBoolean;
|
|
27
|
+
speedLimitKmh: z.ZodNumber;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
isActive: boolean;
|
|
30
|
+
speedLimitKmh: number;
|
|
31
|
+
}, {
|
|
32
|
+
isActive: boolean;
|
|
33
|
+
speedLimitKmh: number;
|
|
34
|
+
}>>;
|
|
35
|
+
serialNumber: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
prefixes: z.ZodArray<z.ZodString, "many">;
|
|
37
|
+
roles: z.ZodArray<z.ZodEnum<["PASSENGER", "RIDER", "AGENT", "ADMIN"]>, "many">;
|
|
38
|
+
identifierPattern: z.ZodEffects<z.ZodString, string, string>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
prefixes: string[];
|
|
41
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
42
|
+
identifierPattern: string;
|
|
43
|
+
}, {
|
|
44
|
+
prefixes: string[];
|
|
45
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
46
|
+
identifierPattern: string;
|
|
47
|
+
}>>;
|
|
48
|
+
bleBatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
+
serviceUuid: z.ZodString;
|
|
50
|
+
controlCharUuid: z.ZodString;
|
|
51
|
+
statusCharUuid: z.ZodString;
|
|
52
|
+
deviceInfoCharUuid: z.ZodString;
|
|
53
|
+
batchId: z.ZodString;
|
|
54
|
+
manufacturer: z.ZodString;
|
|
55
|
+
firmwareVersion: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
serviceUuid: string;
|
|
58
|
+
controlCharUuid: string;
|
|
59
|
+
statusCharUuid: string;
|
|
60
|
+
deviceInfoCharUuid: string;
|
|
61
|
+
batchId: string;
|
|
62
|
+
manufacturer: string;
|
|
63
|
+
firmwareVersion?: string | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
serviceUuid: string;
|
|
66
|
+
controlCharUuid: string;
|
|
67
|
+
statusCharUuid: string;
|
|
68
|
+
deviceInfoCharUuid: string;
|
|
69
|
+
batchId: string;
|
|
70
|
+
manufacturer: string;
|
|
71
|
+
firmwareVersion?: string | undefined;
|
|
72
|
+
}>, "many">>;
|
|
73
|
+
sessionDefaults: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
passengerMinutes: z.ZodNumber;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
passengerMinutes: number;
|
|
77
|
+
}, {
|
|
78
|
+
passengerMinutes: number;
|
|
79
|
+
}>>;
|
|
80
|
+
bleTiming: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
scanTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
statusPollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
locationIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
locationDistanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
scanTimeoutMs?: number | undefined;
|
|
87
|
+
statusPollIntervalMs?: number | undefined;
|
|
88
|
+
locationIntervalMs?: number | undefined;
|
|
89
|
+
locationDistanceMeters?: number | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
scanTimeoutMs?: number | undefined;
|
|
92
|
+
statusPollIntervalMs?: number | undefined;
|
|
93
|
+
locationIntervalMs?: number | undefined;
|
|
94
|
+
locationDistanceMeters?: number | undefined;
|
|
95
|
+
}>>;
|
|
96
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
paymentPlansPageSize: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
maximumPageSize: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
paymentPlansPageSize?: number | undefined;
|
|
101
|
+
maximumPageSize?: number | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
paymentPlansPageSize?: number | undefined;
|
|
104
|
+
maximumPageSize?: number | undefined;
|
|
105
|
+
}>>;
|
|
106
|
+
minimumAppVersion: z.ZodOptional<z.ZodString>;
|
|
107
|
+
forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
apiBaseUrl?: string | undefined;
|
|
110
|
+
apiBaseUrls?: {
|
|
111
|
+
production?: string | undefined;
|
|
112
|
+
staging?: string | undefined;
|
|
113
|
+
develop?: string | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
googleWebClientId?: string | undefined;
|
|
116
|
+
speedGovernor?: {
|
|
117
|
+
isActive: boolean;
|
|
118
|
+
speedLimitKmh: number;
|
|
119
|
+
} | undefined;
|
|
120
|
+
serialNumber?: {
|
|
121
|
+
prefixes: string[];
|
|
122
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
123
|
+
identifierPattern: string;
|
|
124
|
+
} | undefined;
|
|
125
|
+
bleBatches?: {
|
|
126
|
+
serviceUuid: string;
|
|
127
|
+
controlCharUuid: string;
|
|
128
|
+
statusCharUuid: string;
|
|
129
|
+
deviceInfoCharUuid: string;
|
|
130
|
+
batchId: string;
|
|
131
|
+
manufacturer: string;
|
|
132
|
+
firmwareVersion?: string | undefined;
|
|
133
|
+
}[] | undefined;
|
|
134
|
+
sessionDefaults?: {
|
|
135
|
+
passengerMinutes: number;
|
|
136
|
+
} | undefined;
|
|
137
|
+
bleTiming?: {
|
|
138
|
+
scanTimeoutMs?: number | undefined;
|
|
139
|
+
statusPollIntervalMs?: number | undefined;
|
|
140
|
+
locationIntervalMs?: number | undefined;
|
|
141
|
+
locationDistanceMeters?: number | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
pagination?: {
|
|
144
|
+
paymentPlansPageSize?: number | undefined;
|
|
145
|
+
maximumPageSize?: number | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
minimumAppVersion?: string | undefined;
|
|
148
|
+
forceUpdateMessage?: string | null | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
apiBaseUrl?: string | undefined;
|
|
151
|
+
apiBaseUrls?: {
|
|
152
|
+
production?: string | undefined;
|
|
153
|
+
staging?: string | undefined;
|
|
154
|
+
develop?: string | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
googleWebClientId?: string | undefined;
|
|
157
|
+
speedGovernor?: {
|
|
158
|
+
isActive: boolean;
|
|
159
|
+
speedLimitKmh: number;
|
|
160
|
+
} | undefined;
|
|
161
|
+
serialNumber?: {
|
|
162
|
+
prefixes: string[];
|
|
163
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
164
|
+
identifierPattern: string;
|
|
165
|
+
} | undefined;
|
|
166
|
+
bleBatches?: {
|
|
167
|
+
serviceUuid: string;
|
|
168
|
+
controlCharUuid: string;
|
|
169
|
+
statusCharUuid: string;
|
|
170
|
+
deviceInfoCharUuid: string;
|
|
171
|
+
batchId: string;
|
|
172
|
+
manufacturer: string;
|
|
173
|
+
firmwareVersion?: string | undefined;
|
|
174
|
+
}[] | undefined;
|
|
175
|
+
sessionDefaults?: {
|
|
176
|
+
passengerMinutes: number;
|
|
177
|
+
} | undefined;
|
|
178
|
+
bleTiming?: {
|
|
179
|
+
scanTimeoutMs?: number | undefined;
|
|
180
|
+
statusPollIntervalMs?: number | undefined;
|
|
181
|
+
locationIntervalMs?: number | undefined;
|
|
182
|
+
locationDistanceMeters?: number | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
pagination?: {
|
|
185
|
+
paymentPlansPageSize?: number | undefined;
|
|
186
|
+
maximumPageSize?: number | undefined;
|
|
187
|
+
} | undefined;
|
|
188
|
+
minimumAppVersion?: string | undefined;
|
|
189
|
+
forceUpdateMessage?: string | null | undefined;
|
|
190
|
+
}>>;
|
|
9
191
|
privacyPolicy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
192
|
privacyPolicyVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
193
|
termsAndConditions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -18,17 +200,17 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
18
200
|
enableCashPayment: z.ZodDefault<z.ZodBoolean>;
|
|
19
201
|
enableMomoPayPayment: z.ZodDefault<z.ZodBoolean>;
|
|
20
202
|
enableAirtelMoneyPayment: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
-
facebookUrl: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
22
|
-
twitterUrl: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
23
|
-
instagramUrl: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
24
|
-
linkedinUrl: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
25
|
-
youtubeUrl: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
26
|
-
websiteUrl: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
27
|
-
supportEmail: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
203
|
+
facebookUrl: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
204
|
+
twitterUrl: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
205
|
+
instagramUrl: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
206
|
+
linkedinUrl: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
207
|
+
youtubeUrl: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
208
|
+
websiteUrl: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
209
|
+
supportEmail: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
28
210
|
supportPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
211
|
companyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
212
|
companyAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
companyEmail: z.ZodOptional<z.ZodNullable<z.ZodString
|
|
213
|
+
companyEmail: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
|
|
32
214
|
companyPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
215
|
companyTaxId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
216
|
isUnderMaintenance: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -49,6 +231,48 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
49
231
|
isUnderMaintenance: boolean;
|
|
50
232
|
appShortName?: string | null | undefined;
|
|
51
233
|
appDescription?: string | null | undefined;
|
|
234
|
+
runtimeConfig?: {
|
|
235
|
+
apiBaseUrl?: string | undefined;
|
|
236
|
+
apiBaseUrls?: {
|
|
237
|
+
production?: string | undefined;
|
|
238
|
+
staging?: string | undefined;
|
|
239
|
+
develop?: string | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
googleWebClientId?: string | undefined;
|
|
242
|
+
speedGovernor?: {
|
|
243
|
+
isActive: boolean;
|
|
244
|
+
speedLimitKmh: number;
|
|
245
|
+
} | undefined;
|
|
246
|
+
serialNumber?: {
|
|
247
|
+
prefixes: string[];
|
|
248
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
249
|
+
identifierPattern: string;
|
|
250
|
+
} | undefined;
|
|
251
|
+
bleBatches?: {
|
|
252
|
+
serviceUuid: string;
|
|
253
|
+
controlCharUuid: string;
|
|
254
|
+
statusCharUuid: string;
|
|
255
|
+
deviceInfoCharUuid: string;
|
|
256
|
+
batchId: string;
|
|
257
|
+
manufacturer: string;
|
|
258
|
+
firmwareVersion?: string | undefined;
|
|
259
|
+
}[] | undefined;
|
|
260
|
+
sessionDefaults?: {
|
|
261
|
+
passengerMinutes: number;
|
|
262
|
+
} | undefined;
|
|
263
|
+
bleTiming?: {
|
|
264
|
+
scanTimeoutMs?: number | undefined;
|
|
265
|
+
statusPollIntervalMs?: number | undefined;
|
|
266
|
+
locationIntervalMs?: number | undefined;
|
|
267
|
+
locationDistanceMeters?: number | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
pagination?: {
|
|
270
|
+
paymentPlansPageSize?: number | undefined;
|
|
271
|
+
maximumPageSize?: number | undefined;
|
|
272
|
+
} | undefined;
|
|
273
|
+
minimumAppVersion?: string | undefined;
|
|
274
|
+
forceUpdateMessage?: string | null | undefined;
|
|
275
|
+
} | undefined;
|
|
52
276
|
privacyPolicy?: string | null | undefined;
|
|
53
277
|
privacyPolicyVersion?: string | null | undefined;
|
|
54
278
|
termsAndConditions?: string | null | undefined;
|
|
@@ -76,6 +300,48 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
76
300
|
appDescription?: string | null | undefined;
|
|
77
301
|
appDefaultLanguage?: string | undefined;
|
|
78
302
|
appSupportedLanguages?: string[] | undefined;
|
|
303
|
+
runtimeConfig?: {
|
|
304
|
+
apiBaseUrl?: string | undefined;
|
|
305
|
+
apiBaseUrls?: {
|
|
306
|
+
production?: string | undefined;
|
|
307
|
+
staging?: string | undefined;
|
|
308
|
+
develop?: string | undefined;
|
|
309
|
+
} | undefined;
|
|
310
|
+
googleWebClientId?: string | undefined;
|
|
311
|
+
speedGovernor?: {
|
|
312
|
+
isActive: boolean;
|
|
313
|
+
speedLimitKmh: number;
|
|
314
|
+
} | undefined;
|
|
315
|
+
serialNumber?: {
|
|
316
|
+
prefixes: string[];
|
|
317
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
318
|
+
identifierPattern: string;
|
|
319
|
+
} | undefined;
|
|
320
|
+
bleBatches?: {
|
|
321
|
+
serviceUuid: string;
|
|
322
|
+
controlCharUuid: string;
|
|
323
|
+
statusCharUuid: string;
|
|
324
|
+
deviceInfoCharUuid: string;
|
|
325
|
+
batchId: string;
|
|
326
|
+
manufacturer: string;
|
|
327
|
+
firmwareVersion?: string | undefined;
|
|
328
|
+
}[] | undefined;
|
|
329
|
+
sessionDefaults?: {
|
|
330
|
+
passengerMinutes: number;
|
|
331
|
+
} | undefined;
|
|
332
|
+
bleTiming?: {
|
|
333
|
+
scanTimeoutMs?: number | undefined;
|
|
334
|
+
statusPollIntervalMs?: number | undefined;
|
|
335
|
+
locationIntervalMs?: number | undefined;
|
|
336
|
+
locationDistanceMeters?: number | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
pagination?: {
|
|
339
|
+
paymentPlansPageSize?: number | undefined;
|
|
340
|
+
maximumPageSize?: number | undefined;
|
|
341
|
+
} | undefined;
|
|
342
|
+
minimumAppVersion?: string | undefined;
|
|
343
|
+
forceUpdateMessage?: string | null | undefined;
|
|
344
|
+
} | undefined;
|
|
79
345
|
privacyPolicy?: string | null | undefined;
|
|
80
346
|
privacyPolicyVersion?: string | null | undefined;
|
|
81
347
|
termsAndConditions?: string | null | undefined;
|
|
@@ -88,17 +354,17 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
88
354
|
enableCashPayment?: boolean | undefined;
|
|
89
355
|
enableMomoPayPayment?: boolean | undefined;
|
|
90
356
|
enableAirtelMoneyPayment?: boolean | undefined;
|
|
91
|
-
facebookUrl?:
|
|
92
|
-
twitterUrl?:
|
|
93
|
-
instagramUrl?:
|
|
94
|
-
linkedinUrl?:
|
|
95
|
-
youtubeUrl?:
|
|
96
|
-
websiteUrl?:
|
|
97
|
-
supportEmail?:
|
|
357
|
+
facebookUrl?: unknown;
|
|
358
|
+
twitterUrl?: unknown;
|
|
359
|
+
instagramUrl?: unknown;
|
|
360
|
+
linkedinUrl?: unknown;
|
|
361
|
+
youtubeUrl?: unknown;
|
|
362
|
+
websiteUrl?: unknown;
|
|
363
|
+
supportEmail?: unknown;
|
|
98
364
|
supportPhone?: string | null | undefined;
|
|
99
365
|
companyName?: string | null | undefined;
|
|
100
366
|
companyAddress?: string | null | undefined;
|
|
101
|
-
companyEmail?:
|
|
367
|
+
companyEmail?: unknown;
|
|
102
368
|
companyPhone?: string | null | undefined;
|
|
103
369
|
companyTaxId?: string | null | undefined;
|
|
104
370
|
isUnderMaintenance?: boolean | undefined;
|
|
@@ -121,6 +387,48 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
121
387
|
isUnderMaintenance: boolean;
|
|
122
388
|
appShortName?: string | null | undefined;
|
|
123
389
|
appDescription?: string | null | undefined;
|
|
390
|
+
runtimeConfig?: {
|
|
391
|
+
apiBaseUrl?: string | undefined;
|
|
392
|
+
apiBaseUrls?: {
|
|
393
|
+
production?: string | undefined;
|
|
394
|
+
staging?: string | undefined;
|
|
395
|
+
develop?: string | undefined;
|
|
396
|
+
} | undefined;
|
|
397
|
+
googleWebClientId?: string | undefined;
|
|
398
|
+
speedGovernor?: {
|
|
399
|
+
isActive: boolean;
|
|
400
|
+
speedLimitKmh: number;
|
|
401
|
+
} | undefined;
|
|
402
|
+
serialNumber?: {
|
|
403
|
+
prefixes: string[];
|
|
404
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
405
|
+
identifierPattern: string;
|
|
406
|
+
} | undefined;
|
|
407
|
+
bleBatches?: {
|
|
408
|
+
serviceUuid: string;
|
|
409
|
+
controlCharUuid: string;
|
|
410
|
+
statusCharUuid: string;
|
|
411
|
+
deviceInfoCharUuid: string;
|
|
412
|
+
batchId: string;
|
|
413
|
+
manufacturer: string;
|
|
414
|
+
firmwareVersion?: string | undefined;
|
|
415
|
+
}[] | undefined;
|
|
416
|
+
sessionDefaults?: {
|
|
417
|
+
passengerMinutes: number;
|
|
418
|
+
} | undefined;
|
|
419
|
+
bleTiming?: {
|
|
420
|
+
scanTimeoutMs?: number | undefined;
|
|
421
|
+
statusPollIntervalMs?: number | undefined;
|
|
422
|
+
locationIntervalMs?: number | undefined;
|
|
423
|
+
locationDistanceMeters?: number | undefined;
|
|
424
|
+
} | undefined;
|
|
425
|
+
pagination?: {
|
|
426
|
+
paymentPlansPageSize?: number | undefined;
|
|
427
|
+
maximumPageSize?: number | undefined;
|
|
428
|
+
} | undefined;
|
|
429
|
+
minimumAppVersion?: string | undefined;
|
|
430
|
+
forceUpdateMessage?: string | null | undefined;
|
|
431
|
+
} | undefined;
|
|
124
432
|
privacyPolicy?: string | null | undefined;
|
|
125
433
|
privacyPolicyVersion?: string | null | undefined;
|
|
126
434
|
termsAndConditions?: string | null | undefined;
|
|
@@ -150,6 +458,48 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
150
458
|
appDescription?: string | null | undefined;
|
|
151
459
|
appDefaultLanguage?: string | undefined;
|
|
152
460
|
appSupportedLanguages?: string[] | undefined;
|
|
461
|
+
runtimeConfig?: {
|
|
462
|
+
apiBaseUrl?: string | undefined;
|
|
463
|
+
apiBaseUrls?: {
|
|
464
|
+
production?: string | undefined;
|
|
465
|
+
staging?: string | undefined;
|
|
466
|
+
develop?: string | undefined;
|
|
467
|
+
} | undefined;
|
|
468
|
+
googleWebClientId?: string | undefined;
|
|
469
|
+
speedGovernor?: {
|
|
470
|
+
isActive: boolean;
|
|
471
|
+
speedLimitKmh: number;
|
|
472
|
+
} | undefined;
|
|
473
|
+
serialNumber?: {
|
|
474
|
+
prefixes: string[];
|
|
475
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
476
|
+
identifierPattern: string;
|
|
477
|
+
} | undefined;
|
|
478
|
+
bleBatches?: {
|
|
479
|
+
serviceUuid: string;
|
|
480
|
+
controlCharUuid: string;
|
|
481
|
+
statusCharUuid: string;
|
|
482
|
+
deviceInfoCharUuid: string;
|
|
483
|
+
batchId: string;
|
|
484
|
+
manufacturer: string;
|
|
485
|
+
firmwareVersion?: string | undefined;
|
|
486
|
+
}[] | undefined;
|
|
487
|
+
sessionDefaults?: {
|
|
488
|
+
passengerMinutes: number;
|
|
489
|
+
} | undefined;
|
|
490
|
+
bleTiming?: {
|
|
491
|
+
scanTimeoutMs?: number | undefined;
|
|
492
|
+
statusPollIntervalMs?: number | undefined;
|
|
493
|
+
locationIntervalMs?: number | undefined;
|
|
494
|
+
locationDistanceMeters?: number | undefined;
|
|
495
|
+
} | undefined;
|
|
496
|
+
pagination?: {
|
|
497
|
+
paymentPlansPageSize?: number | undefined;
|
|
498
|
+
maximumPageSize?: number | undefined;
|
|
499
|
+
} | undefined;
|
|
500
|
+
minimumAppVersion?: string | undefined;
|
|
501
|
+
forceUpdateMessage?: string | null | undefined;
|
|
502
|
+
} | undefined;
|
|
153
503
|
privacyPolicy?: string | null | undefined;
|
|
154
504
|
privacyPolicyVersion?: string | null | undefined;
|
|
155
505
|
termsAndConditions?: string | null | undefined;
|
|
@@ -162,17 +512,17 @@ export declare const createAppSpecsSchema: z.ZodObject<{
|
|
|
162
512
|
enableCashPayment?: boolean | undefined;
|
|
163
513
|
enableMomoPayPayment?: boolean | undefined;
|
|
164
514
|
enableAirtelMoneyPayment?: boolean | undefined;
|
|
165
|
-
facebookUrl?:
|
|
166
|
-
twitterUrl?:
|
|
167
|
-
instagramUrl?:
|
|
168
|
-
linkedinUrl?:
|
|
169
|
-
youtubeUrl?:
|
|
170
|
-
websiteUrl?:
|
|
171
|
-
supportEmail?:
|
|
515
|
+
facebookUrl?: unknown;
|
|
516
|
+
twitterUrl?: unknown;
|
|
517
|
+
instagramUrl?: unknown;
|
|
518
|
+
linkedinUrl?: unknown;
|
|
519
|
+
youtubeUrl?: unknown;
|
|
520
|
+
websiteUrl?: unknown;
|
|
521
|
+
supportEmail?: unknown;
|
|
172
522
|
supportPhone?: string | null | undefined;
|
|
173
523
|
companyName?: string | null | undefined;
|
|
174
524
|
companyAddress?: string | null | undefined;
|
|
175
|
-
companyEmail?:
|
|
525
|
+
companyEmail?: unknown;
|
|
176
526
|
companyPhone?: string | null | undefined;
|
|
177
527
|
companyTaxId?: string | null | undefined;
|
|
178
528
|
isUnderMaintenance?: boolean | undefined;
|
|
@@ -190,11 +540,192 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
190
540
|
id: string;
|
|
191
541
|
}>;
|
|
192
542
|
body: z.ZodObject<{
|
|
193
|
-
appName: z.ZodOptional<z.ZodString>;
|
|
194
543
|
appShortName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
195
544
|
appDescription: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
196
545
|
appDefaultLanguage: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
197
546
|
appSupportedLanguages: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
547
|
+
runtimeConfig: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
548
|
+
apiBaseUrl: z.ZodOptional<z.ZodString>;
|
|
549
|
+
apiBaseUrls: z.ZodOptional<z.ZodObject<{
|
|
550
|
+
production: z.ZodOptional<z.ZodString>;
|
|
551
|
+
staging: z.ZodOptional<z.ZodString>;
|
|
552
|
+
develop: z.ZodOptional<z.ZodString>;
|
|
553
|
+
}, "strip", z.ZodTypeAny, {
|
|
554
|
+
production?: string | undefined;
|
|
555
|
+
staging?: string | undefined;
|
|
556
|
+
develop?: string | undefined;
|
|
557
|
+
}, {
|
|
558
|
+
production?: string | undefined;
|
|
559
|
+
staging?: string | undefined;
|
|
560
|
+
develop?: string | undefined;
|
|
561
|
+
}>>;
|
|
562
|
+
googleWebClientId: z.ZodOptional<z.ZodString>;
|
|
563
|
+
speedGovernor: z.ZodOptional<z.ZodObject<{
|
|
564
|
+
isActive: z.ZodBoolean;
|
|
565
|
+
speedLimitKmh: z.ZodNumber;
|
|
566
|
+
}, "strip", z.ZodTypeAny, {
|
|
567
|
+
isActive: boolean;
|
|
568
|
+
speedLimitKmh: number;
|
|
569
|
+
}, {
|
|
570
|
+
isActive: boolean;
|
|
571
|
+
speedLimitKmh: number;
|
|
572
|
+
}>>;
|
|
573
|
+
serialNumber: z.ZodOptional<z.ZodObject<{
|
|
574
|
+
prefixes: z.ZodArray<z.ZodString, "many">;
|
|
575
|
+
roles: z.ZodArray<z.ZodEnum<["PASSENGER", "RIDER", "AGENT", "ADMIN"]>, "many">;
|
|
576
|
+
identifierPattern: z.ZodEffects<z.ZodString, string, string>;
|
|
577
|
+
}, "strip", z.ZodTypeAny, {
|
|
578
|
+
prefixes: string[];
|
|
579
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
580
|
+
identifierPattern: string;
|
|
581
|
+
}, {
|
|
582
|
+
prefixes: string[];
|
|
583
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
584
|
+
identifierPattern: string;
|
|
585
|
+
}>>;
|
|
586
|
+
bleBatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
587
|
+
serviceUuid: z.ZodString;
|
|
588
|
+
controlCharUuid: z.ZodString;
|
|
589
|
+
statusCharUuid: z.ZodString;
|
|
590
|
+
deviceInfoCharUuid: z.ZodString;
|
|
591
|
+
batchId: z.ZodString;
|
|
592
|
+
manufacturer: z.ZodString;
|
|
593
|
+
firmwareVersion: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, "strip", z.ZodTypeAny, {
|
|
595
|
+
serviceUuid: string;
|
|
596
|
+
controlCharUuid: string;
|
|
597
|
+
statusCharUuid: string;
|
|
598
|
+
deviceInfoCharUuid: string;
|
|
599
|
+
batchId: string;
|
|
600
|
+
manufacturer: string;
|
|
601
|
+
firmwareVersion?: string | undefined;
|
|
602
|
+
}, {
|
|
603
|
+
serviceUuid: string;
|
|
604
|
+
controlCharUuid: string;
|
|
605
|
+
statusCharUuid: string;
|
|
606
|
+
deviceInfoCharUuid: string;
|
|
607
|
+
batchId: string;
|
|
608
|
+
manufacturer: string;
|
|
609
|
+
firmwareVersion?: string | undefined;
|
|
610
|
+
}>, "many">>;
|
|
611
|
+
sessionDefaults: z.ZodOptional<z.ZodObject<{
|
|
612
|
+
passengerMinutes: z.ZodNumber;
|
|
613
|
+
}, "strip", z.ZodTypeAny, {
|
|
614
|
+
passengerMinutes: number;
|
|
615
|
+
}, {
|
|
616
|
+
passengerMinutes: number;
|
|
617
|
+
}>>;
|
|
618
|
+
bleTiming: z.ZodOptional<z.ZodObject<{
|
|
619
|
+
scanTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
620
|
+
statusPollIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
621
|
+
locationIntervalMs: z.ZodOptional<z.ZodNumber>;
|
|
622
|
+
locationDistanceMeters: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
}, "strip", z.ZodTypeAny, {
|
|
624
|
+
scanTimeoutMs?: number | undefined;
|
|
625
|
+
statusPollIntervalMs?: number | undefined;
|
|
626
|
+
locationIntervalMs?: number | undefined;
|
|
627
|
+
locationDistanceMeters?: number | undefined;
|
|
628
|
+
}, {
|
|
629
|
+
scanTimeoutMs?: number | undefined;
|
|
630
|
+
statusPollIntervalMs?: number | undefined;
|
|
631
|
+
locationIntervalMs?: number | undefined;
|
|
632
|
+
locationDistanceMeters?: number | undefined;
|
|
633
|
+
}>>;
|
|
634
|
+
pagination: z.ZodOptional<z.ZodObject<{
|
|
635
|
+
paymentPlansPageSize: z.ZodOptional<z.ZodNumber>;
|
|
636
|
+
maximumPageSize: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
}, "strip", z.ZodTypeAny, {
|
|
638
|
+
paymentPlansPageSize?: number | undefined;
|
|
639
|
+
maximumPageSize?: number | undefined;
|
|
640
|
+
}, {
|
|
641
|
+
paymentPlansPageSize?: number | undefined;
|
|
642
|
+
maximumPageSize?: number | undefined;
|
|
643
|
+
}>>;
|
|
644
|
+
minimumAppVersion: z.ZodOptional<z.ZodString>;
|
|
645
|
+
forceUpdateMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
646
|
+
}, "strip", z.ZodTypeAny, {
|
|
647
|
+
apiBaseUrl?: string | undefined;
|
|
648
|
+
apiBaseUrls?: {
|
|
649
|
+
production?: string | undefined;
|
|
650
|
+
staging?: string | undefined;
|
|
651
|
+
develop?: string | undefined;
|
|
652
|
+
} | undefined;
|
|
653
|
+
googleWebClientId?: string | undefined;
|
|
654
|
+
speedGovernor?: {
|
|
655
|
+
isActive: boolean;
|
|
656
|
+
speedLimitKmh: number;
|
|
657
|
+
} | undefined;
|
|
658
|
+
serialNumber?: {
|
|
659
|
+
prefixes: string[];
|
|
660
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
661
|
+
identifierPattern: string;
|
|
662
|
+
} | undefined;
|
|
663
|
+
bleBatches?: {
|
|
664
|
+
serviceUuid: string;
|
|
665
|
+
controlCharUuid: string;
|
|
666
|
+
statusCharUuid: string;
|
|
667
|
+
deviceInfoCharUuid: string;
|
|
668
|
+
batchId: string;
|
|
669
|
+
manufacturer: string;
|
|
670
|
+
firmwareVersion?: string | undefined;
|
|
671
|
+
}[] | undefined;
|
|
672
|
+
sessionDefaults?: {
|
|
673
|
+
passengerMinutes: number;
|
|
674
|
+
} | undefined;
|
|
675
|
+
bleTiming?: {
|
|
676
|
+
scanTimeoutMs?: number | undefined;
|
|
677
|
+
statusPollIntervalMs?: number | undefined;
|
|
678
|
+
locationIntervalMs?: number | undefined;
|
|
679
|
+
locationDistanceMeters?: number | undefined;
|
|
680
|
+
} | undefined;
|
|
681
|
+
pagination?: {
|
|
682
|
+
paymentPlansPageSize?: number | undefined;
|
|
683
|
+
maximumPageSize?: number | undefined;
|
|
684
|
+
} | undefined;
|
|
685
|
+
minimumAppVersion?: string | undefined;
|
|
686
|
+
forceUpdateMessage?: string | null | undefined;
|
|
687
|
+
}, {
|
|
688
|
+
apiBaseUrl?: string | undefined;
|
|
689
|
+
apiBaseUrls?: {
|
|
690
|
+
production?: string | undefined;
|
|
691
|
+
staging?: string | undefined;
|
|
692
|
+
develop?: string | undefined;
|
|
693
|
+
} | undefined;
|
|
694
|
+
googleWebClientId?: string | undefined;
|
|
695
|
+
speedGovernor?: {
|
|
696
|
+
isActive: boolean;
|
|
697
|
+
speedLimitKmh: number;
|
|
698
|
+
} | undefined;
|
|
699
|
+
serialNumber?: {
|
|
700
|
+
prefixes: string[];
|
|
701
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
702
|
+
identifierPattern: string;
|
|
703
|
+
} | undefined;
|
|
704
|
+
bleBatches?: {
|
|
705
|
+
serviceUuid: string;
|
|
706
|
+
controlCharUuid: string;
|
|
707
|
+
statusCharUuid: string;
|
|
708
|
+
deviceInfoCharUuid: string;
|
|
709
|
+
batchId: string;
|
|
710
|
+
manufacturer: string;
|
|
711
|
+
firmwareVersion?: string | undefined;
|
|
712
|
+
}[] | undefined;
|
|
713
|
+
sessionDefaults?: {
|
|
714
|
+
passengerMinutes: number;
|
|
715
|
+
} | undefined;
|
|
716
|
+
bleTiming?: {
|
|
717
|
+
scanTimeoutMs?: number | undefined;
|
|
718
|
+
statusPollIntervalMs?: number | undefined;
|
|
719
|
+
locationIntervalMs?: number | undefined;
|
|
720
|
+
locationDistanceMeters?: number | undefined;
|
|
721
|
+
} | undefined;
|
|
722
|
+
pagination?: {
|
|
723
|
+
paymentPlansPageSize?: number | undefined;
|
|
724
|
+
maximumPageSize?: number | undefined;
|
|
725
|
+
} | undefined;
|
|
726
|
+
minimumAppVersion?: string | undefined;
|
|
727
|
+
forceUpdateMessage?: string | null | undefined;
|
|
728
|
+
}>>>;
|
|
198
729
|
privacyPolicy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
199
730
|
privacyPolicyVersion: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
200
731
|
termsAndConditions: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -207,17 +738,17 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
207
738
|
enableCashPayment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
208
739
|
enableMomoPayPayment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
209
740
|
enableAirtelMoneyPayment: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
210
|
-
facebookUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString
|
|
211
|
-
twitterUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString
|
|
212
|
-
instagramUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString
|
|
213
|
-
linkedinUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString
|
|
214
|
-
youtubeUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString
|
|
215
|
-
websiteUrl: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString
|
|
216
|
-
supportEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString
|
|
741
|
+
facebookUrl: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
742
|
+
twitterUrl: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
743
|
+
instagramUrl: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
744
|
+
linkedinUrl: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
745
|
+
youtubeUrl: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
746
|
+
websiteUrl: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
747
|
+
supportEmail: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
217
748
|
supportPhone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
218
749
|
companyName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
219
750
|
companyAddress: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
220
|
-
companyEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString
|
|
751
|
+
companyEmail: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>>;
|
|
221
752
|
companyPhone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
222
753
|
companyTaxId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
223
754
|
isUnderMaintenance: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -225,11 +756,52 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
225
756
|
maintenanceStartAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
226
757
|
maintenanceEndAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
227
758
|
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
appName?: string | undefined;
|
|
229
759
|
appShortName?: string | null | undefined;
|
|
230
760
|
appDescription?: string | null | undefined;
|
|
231
761
|
appDefaultLanguage?: string | undefined;
|
|
232
762
|
appSupportedLanguages?: string[] | undefined;
|
|
763
|
+
runtimeConfig?: {
|
|
764
|
+
apiBaseUrl?: string | undefined;
|
|
765
|
+
apiBaseUrls?: {
|
|
766
|
+
production?: string | undefined;
|
|
767
|
+
staging?: string | undefined;
|
|
768
|
+
develop?: string | undefined;
|
|
769
|
+
} | undefined;
|
|
770
|
+
googleWebClientId?: string | undefined;
|
|
771
|
+
speedGovernor?: {
|
|
772
|
+
isActive: boolean;
|
|
773
|
+
speedLimitKmh: number;
|
|
774
|
+
} | undefined;
|
|
775
|
+
serialNumber?: {
|
|
776
|
+
prefixes: string[];
|
|
777
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
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;
|
|
233
805
|
privacyPolicy?: string | null | undefined;
|
|
234
806
|
privacyPolicyVersion?: string | null | undefined;
|
|
235
807
|
termsAndConditions?: string | null | undefined;
|
|
@@ -260,11 +832,52 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
260
832
|
maintenanceStartAt?: string | null | undefined;
|
|
261
833
|
maintenanceEndAt?: string | null | undefined;
|
|
262
834
|
}, {
|
|
263
|
-
appName?: string | undefined;
|
|
264
835
|
appShortName?: string | null | undefined;
|
|
265
836
|
appDescription?: string | null | undefined;
|
|
266
837
|
appDefaultLanguage?: string | undefined;
|
|
267
838
|
appSupportedLanguages?: string[] | undefined;
|
|
839
|
+
runtimeConfig?: {
|
|
840
|
+
apiBaseUrl?: string | undefined;
|
|
841
|
+
apiBaseUrls?: {
|
|
842
|
+
production?: string | undefined;
|
|
843
|
+
staging?: string | undefined;
|
|
844
|
+
develop?: string | undefined;
|
|
845
|
+
} | undefined;
|
|
846
|
+
googleWebClientId?: string | undefined;
|
|
847
|
+
speedGovernor?: {
|
|
848
|
+
isActive: boolean;
|
|
849
|
+
speedLimitKmh: number;
|
|
850
|
+
} | undefined;
|
|
851
|
+
serialNumber?: {
|
|
852
|
+
prefixes: string[];
|
|
853
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
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;
|
|
268
881
|
privacyPolicy?: string | null | undefined;
|
|
269
882
|
privacyPolicyVersion?: string | null | undefined;
|
|
270
883
|
termsAndConditions?: string | null | undefined;
|
|
@@ -277,17 +890,17 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
277
890
|
enableCashPayment?: boolean | undefined;
|
|
278
891
|
enableMomoPayPayment?: boolean | undefined;
|
|
279
892
|
enableAirtelMoneyPayment?: boolean | undefined;
|
|
280
|
-
facebookUrl?:
|
|
281
|
-
twitterUrl?:
|
|
282
|
-
instagramUrl?:
|
|
283
|
-
linkedinUrl?:
|
|
284
|
-
youtubeUrl?:
|
|
285
|
-
websiteUrl?:
|
|
286
|
-
supportEmail?:
|
|
893
|
+
facebookUrl?: unknown;
|
|
894
|
+
twitterUrl?: unknown;
|
|
895
|
+
instagramUrl?: unknown;
|
|
896
|
+
linkedinUrl?: unknown;
|
|
897
|
+
youtubeUrl?: unknown;
|
|
898
|
+
websiteUrl?: unknown;
|
|
899
|
+
supportEmail?: unknown;
|
|
287
900
|
supportPhone?: string | null | undefined;
|
|
288
901
|
companyName?: string | null | undefined;
|
|
289
902
|
companyAddress?: string | null | undefined;
|
|
290
|
-
companyEmail?:
|
|
903
|
+
companyEmail?: unknown;
|
|
291
904
|
companyPhone?: string | null | undefined;
|
|
292
905
|
companyTaxId?: string | null | undefined;
|
|
293
906
|
isUnderMaintenance?: boolean | undefined;
|
|
@@ -297,11 +910,52 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
297
910
|
}>;
|
|
298
911
|
}, "strip", z.ZodTypeAny, {
|
|
299
912
|
body: {
|
|
300
|
-
appName?: string | undefined;
|
|
301
913
|
appShortName?: string | null | undefined;
|
|
302
914
|
appDescription?: string | null | undefined;
|
|
303
915
|
appDefaultLanguage?: string | undefined;
|
|
304
916
|
appSupportedLanguages?: string[] | undefined;
|
|
917
|
+
runtimeConfig?: {
|
|
918
|
+
apiBaseUrl?: string | undefined;
|
|
919
|
+
apiBaseUrls?: {
|
|
920
|
+
production?: string | undefined;
|
|
921
|
+
staging?: string | undefined;
|
|
922
|
+
develop?: string | undefined;
|
|
923
|
+
} | undefined;
|
|
924
|
+
googleWebClientId?: string | undefined;
|
|
925
|
+
speedGovernor?: {
|
|
926
|
+
isActive: boolean;
|
|
927
|
+
speedLimitKmh: number;
|
|
928
|
+
} | undefined;
|
|
929
|
+
serialNumber?: {
|
|
930
|
+
prefixes: string[];
|
|
931
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
932
|
+
identifierPattern: string;
|
|
933
|
+
} | undefined;
|
|
934
|
+
bleBatches?: {
|
|
935
|
+
serviceUuid: string;
|
|
936
|
+
controlCharUuid: string;
|
|
937
|
+
statusCharUuid: string;
|
|
938
|
+
deviceInfoCharUuid: string;
|
|
939
|
+
batchId: string;
|
|
940
|
+
manufacturer: string;
|
|
941
|
+
firmwareVersion?: string | undefined;
|
|
942
|
+
}[] | undefined;
|
|
943
|
+
sessionDefaults?: {
|
|
944
|
+
passengerMinutes: number;
|
|
945
|
+
} | undefined;
|
|
946
|
+
bleTiming?: {
|
|
947
|
+
scanTimeoutMs?: number | undefined;
|
|
948
|
+
statusPollIntervalMs?: number | undefined;
|
|
949
|
+
locationIntervalMs?: number | undefined;
|
|
950
|
+
locationDistanceMeters?: number | undefined;
|
|
951
|
+
} | undefined;
|
|
952
|
+
pagination?: {
|
|
953
|
+
paymentPlansPageSize?: number | undefined;
|
|
954
|
+
maximumPageSize?: number | undefined;
|
|
955
|
+
} | undefined;
|
|
956
|
+
minimumAppVersion?: string | undefined;
|
|
957
|
+
forceUpdateMessage?: string | null | undefined;
|
|
958
|
+
} | undefined;
|
|
305
959
|
privacyPolicy?: string | null | undefined;
|
|
306
960
|
privacyPolicyVersion?: string | null | undefined;
|
|
307
961
|
termsAndConditions?: string | null | undefined;
|
|
@@ -337,11 +991,52 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
337
991
|
};
|
|
338
992
|
}, {
|
|
339
993
|
body: {
|
|
340
|
-
appName?: string | undefined;
|
|
341
994
|
appShortName?: string | null | undefined;
|
|
342
995
|
appDescription?: string | null | undefined;
|
|
343
996
|
appDefaultLanguage?: string | undefined;
|
|
344
997
|
appSupportedLanguages?: string[] | undefined;
|
|
998
|
+
runtimeConfig?: {
|
|
999
|
+
apiBaseUrl?: string | undefined;
|
|
1000
|
+
apiBaseUrls?: {
|
|
1001
|
+
production?: string | undefined;
|
|
1002
|
+
staging?: string | undefined;
|
|
1003
|
+
develop?: string | undefined;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
googleWebClientId?: string | undefined;
|
|
1006
|
+
speedGovernor?: {
|
|
1007
|
+
isActive: boolean;
|
|
1008
|
+
speedLimitKmh: number;
|
|
1009
|
+
} | undefined;
|
|
1010
|
+
serialNumber?: {
|
|
1011
|
+
prefixes: string[];
|
|
1012
|
+
roles: ("ADMIN" | "PASSENGER" | "RIDER" | "AGENT")[];
|
|
1013
|
+
identifierPattern: string;
|
|
1014
|
+
} | undefined;
|
|
1015
|
+
bleBatches?: {
|
|
1016
|
+
serviceUuid: string;
|
|
1017
|
+
controlCharUuid: string;
|
|
1018
|
+
statusCharUuid: string;
|
|
1019
|
+
deviceInfoCharUuid: string;
|
|
1020
|
+
batchId: string;
|
|
1021
|
+
manufacturer: string;
|
|
1022
|
+
firmwareVersion?: string | undefined;
|
|
1023
|
+
}[] | undefined;
|
|
1024
|
+
sessionDefaults?: {
|
|
1025
|
+
passengerMinutes: number;
|
|
1026
|
+
} | undefined;
|
|
1027
|
+
bleTiming?: {
|
|
1028
|
+
scanTimeoutMs?: number | undefined;
|
|
1029
|
+
statusPollIntervalMs?: number | undefined;
|
|
1030
|
+
locationIntervalMs?: number | undefined;
|
|
1031
|
+
locationDistanceMeters?: number | undefined;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
pagination?: {
|
|
1034
|
+
paymentPlansPageSize?: number | undefined;
|
|
1035
|
+
maximumPageSize?: number | undefined;
|
|
1036
|
+
} | undefined;
|
|
1037
|
+
minimumAppVersion?: string | undefined;
|
|
1038
|
+
forceUpdateMessage?: string | null | undefined;
|
|
1039
|
+
} | undefined;
|
|
345
1040
|
privacyPolicy?: string | null | undefined;
|
|
346
1041
|
privacyPolicyVersion?: string | null | undefined;
|
|
347
1042
|
termsAndConditions?: string | null | undefined;
|
|
@@ -354,17 +1049,17 @@ export declare const updateAppSpecsSchema: z.ZodObject<{
|
|
|
354
1049
|
enableCashPayment?: boolean | undefined;
|
|
355
1050
|
enableMomoPayPayment?: boolean | undefined;
|
|
356
1051
|
enableAirtelMoneyPayment?: boolean | undefined;
|
|
357
|
-
facebookUrl?:
|
|
358
|
-
twitterUrl?:
|
|
359
|
-
instagramUrl?:
|
|
360
|
-
linkedinUrl?:
|
|
361
|
-
youtubeUrl?:
|
|
362
|
-
websiteUrl?:
|
|
363
|
-
supportEmail?:
|
|
1052
|
+
facebookUrl?: unknown;
|
|
1053
|
+
twitterUrl?: unknown;
|
|
1054
|
+
instagramUrl?: unknown;
|
|
1055
|
+
linkedinUrl?: unknown;
|
|
1056
|
+
youtubeUrl?: unknown;
|
|
1057
|
+
websiteUrl?: unknown;
|
|
1058
|
+
supportEmail?: unknown;
|
|
364
1059
|
supportPhone?: string | null | undefined;
|
|
365
1060
|
companyName?: string | null | undefined;
|
|
366
1061
|
companyAddress?: string | null | undefined;
|
|
367
|
-
companyEmail?:
|
|
1062
|
+
companyEmail?: unknown;
|
|
368
1063
|
companyPhone?: string | null | undefined;
|
|
369
1064
|
companyTaxId?: string | null | undefined;
|
|
370
1065
|
isUnderMaintenance?: boolean | undefined;
|
|
@@ -380,23 +1075,20 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
380
1075
|
query: z.ZodObject<{
|
|
381
1076
|
page: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
382
1077
|
limit: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodString>, number, string | undefined>, z.ZodNumber>;
|
|
383
|
-
isActive: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
|
|
384
1078
|
search: z.ZodOptional<z.ZodString>;
|
|
385
|
-
sortBy: z.ZodOptional<z.ZodEnum<["
|
|
1079
|
+
sortBy: z.ZodOptional<z.ZodEnum<["appName", "createdAt", "updatedAt"]>>;
|
|
386
1080
|
sortOrder: z.ZodOptional<z.ZodEnum<["ASC", "DESC"]>>;
|
|
387
1081
|
}, "strip", z.ZodTypeAny, {
|
|
388
1082
|
limit: number;
|
|
389
1083
|
page: number;
|
|
390
1084
|
search?: string | undefined;
|
|
391
|
-
|
|
392
|
-
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
1085
|
+
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
393
1086
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
394
1087
|
}, {
|
|
395
1088
|
search?: string | undefined;
|
|
396
1089
|
limit?: string | undefined;
|
|
397
|
-
isActive?: "true" | "false" | undefined;
|
|
398
1090
|
page?: string | undefined;
|
|
399
|
-
sortBy?: "createdAt" | "updatedAt" | "
|
|
1091
|
+
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
400
1092
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
401
1093
|
}>;
|
|
402
1094
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -404,17 +1096,15 @@ export declare const listAppSpecsSchema: z.ZodObject<{
|
|
|
404
1096
|
limit: number;
|
|
405
1097
|
page: number;
|
|
406
1098
|
search?: string | undefined;
|
|
407
|
-
|
|
408
|
-
sortBy?: "createdAt" | "updatedAt" | "version" | undefined;
|
|
1099
|
+
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
409
1100
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
410
1101
|
};
|
|
411
1102
|
}, {
|
|
412
1103
|
query: {
|
|
413
1104
|
search?: string | undefined;
|
|
414
1105
|
limit?: string | undefined;
|
|
415
|
-
isActive?: "true" | "false" | undefined;
|
|
416
1106
|
page?: string | undefined;
|
|
417
|
-
sortBy?: "createdAt" | "updatedAt" | "
|
|
1107
|
+
sortBy?: "createdAt" | "updatedAt" | "appName" | undefined;
|
|
418
1108
|
sortOrder?: "DESC" | "ASC" | undefined;
|
|
419
1109
|
};
|
|
420
1110
|
}>;
|
|
@@ -453,3 +1143,20 @@ export declare const activateAppSpecsSchema: z.ZodObject<{
|
|
|
453
1143
|
};
|
|
454
1144
|
}>;
|
|
455
1145
|
export declare const getActiveAppSpecsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1146
|
+
export declare const getAppSpecsByNameSchema: z.ZodObject<{
|
|
1147
|
+
params: z.ZodObject<{
|
|
1148
|
+
appName: z.ZodString;
|
|
1149
|
+
}, "strip", z.ZodTypeAny, {
|
|
1150
|
+
appName: string;
|
|
1151
|
+
}, {
|
|
1152
|
+
appName: string;
|
|
1153
|
+
}>;
|
|
1154
|
+
}, "strip", z.ZodTypeAny, {
|
|
1155
|
+
params: {
|
|
1156
|
+
appName: string;
|
|
1157
|
+
};
|
|
1158
|
+
}, {
|
|
1159
|
+
params: {
|
|
1160
|
+
appName: string;
|
|
1161
|
+
};
|
|
1162
|
+
}>;
|
|
@@ -1,9 +1,11 @@
|
|
|
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 .-]*)*\/?$/;
|
|
7
|
+
const optionalUrl = zod_1.z.preprocess((value) => typeof value === "string" && value.trim() === "" ? null : value, zod_1.z.string().url().nullable().optional());
|
|
8
|
+
const optionalEmail = zod_1.z.preprocess((value) => typeof value === "string" && value.trim() === "" ? null : value, zod_1.z.string().email().nullable().optional());
|
|
7
9
|
const appSpecsBaseSchema = {
|
|
8
10
|
// App Identity
|
|
9
11
|
appName: zod_1.z.string().min(1).max(100),
|
|
@@ -13,6 +15,55 @@ const appSpecsBaseSchema = {
|
|
|
13
15
|
appSupportedLanguages: zod_1.z
|
|
14
16
|
.array(zod_1.z.string().min(2).max(10))
|
|
15
17
|
.default(["en", "fr"]),
|
|
18
|
+
runtimeConfig: zod_1.z.object({
|
|
19
|
+
apiBaseUrl: zod_1.z.string().url().optional(),
|
|
20
|
+
apiBaseUrls: zod_1.z.object({
|
|
21
|
+
production: zod_1.z.string().url().optional(),
|
|
22
|
+
staging: zod_1.z.string().url().optional(),
|
|
23
|
+
develop: zod_1.z.string().url().optional(),
|
|
24
|
+
}).optional(),
|
|
25
|
+
googleWebClientId: zod_1.z.string().max(255).optional(),
|
|
26
|
+
speedGovernor: zod_1.z.object({
|
|
27
|
+
isActive: zod_1.z.boolean(),
|
|
28
|
+
speedLimitKmh: zod_1.z.number().positive().max(300),
|
|
29
|
+
}).optional(),
|
|
30
|
+
serialNumber: zod_1.z.object({
|
|
31
|
+
prefixes: zod_1.z.array(zod_1.z.string().min(1).max(32)).min(1),
|
|
32
|
+
roles: zod_1.z.array(zod_1.z.enum(["PASSENGER", "RIDER", "AGENT", "ADMIN"])).min(1),
|
|
33
|
+
// This is an identifier segment, not an executable, server-supplied regex.
|
|
34
|
+
identifierPattern: zod_1.z.string().min(1).max(100).refine((pattern) => {
|
|
35
|
+
try {
|
|
36
|
+
new RegExp(pattern);
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
catch {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
}, "Must be a valid regular-expression fragment"),
|
|
43
|
+
}).optional(),
|
|
44
|
+
bleBatches: zod_1.z.array(zod_1.z.object({
|
|
45
|
+
serviceUuid: zod_1.z.string().uuid(),
|
|
46
|
+
controlCharUuid: zod_1.z.string().uuid(),
|
|
47
|
+
statusCharUuid: zod_1.z.string().uuid(),
|
|
48
|
+
deviceInfoCharUuid: zod_1.z.string().uuid(),
|
|
49
|
+
batchId: zod_1.z.string().min(1).max(100),
|
|
50
|
+
manufacturer: zod_1.z.string().min(1).max(100),
|
|
51
|
+
firmwareVersion: zod_1.z.string().max(50).optional(),
|
|
52
|
+
})).optional(),
|
|
53
|
+
sessionDefaults: zod_1.z.object({ passengerMinutes: zod_1.z.number().int().min(1).max(1440) }).optional(),
|
|
54
|
+
bleTiming: zod_1.z.object({
|
|
55
|
+
scanTimeoutMs: zod_1.z.number().int().min(1000).max(120000).optional(),
|
|
56
|
+
statusPollIntervalMs: zod_1.z.number().int().min(1000).max(120000).optional(),
|
|
57
|
+
locationIntervalMs: zod_1.z.number().int().min(1000).max(120000).optional(),
|
|
58
|
+
locationDistanceMeters: zod_1.z.number().min(0).max(1000).optional(),
|
|
59
|
+
}).optional(),
|
|
60
|
+
pagination: zod_1.z.object({
|
|
61
|
+
paymentPlansPageSize: zod_1.z.number().int().min(1).max(100).optional(),
|
|
62
|
+
maximumPageSize: zod_1.z.number().int().min(1).max(100).optional(),
|
|
63
|
+
}).optional(),
|
|
64
|
+
minimumAppVersion: zod_1.z.string().max(30).optional(),
|
|
65
|
+
forceUpdateMessage: zod_1.z.string().nullable().optional(),
|
|
66
|
+
}).optional(),
|
|
16
67
|
// Legal Documents
|
|
17
68
|
privacyPolicy: zod_1.z.string().nullable().optional(),
|
|
18
69
|
privacyPolicyVersion: zod_1.z.string().max(20).nullable().optional(),
|
|
@@ -29,18 +80,18 @@ const appSpecsBaseSchema = {
|
|
|
29
80
|
enableMomoPayPayment: zod_1.z.boolean().default(true),
|
|
30
81
|
enableAirtelMoneyPayment: zod_1.z.boolean().default(true),
|
|
31
82
|
// Social Links
|
|
32
|
-
facebookUrl:
|
|
33
|
-
twitterUrl:
|
|
34
|
-
instagramUrl:
|
|
35
|
-
linkedinUrl:
|
|
36
|
-
youtubeUrl:
|
|
37
|
-
websiteUrl:
|
|
38
|
-
supportEmail:
|
|
83
|
+
facebookUrl: optionalUrl,
|
|
84
|
+
twitterUrl: optionalUrl,
|
|
85
|
+
instagramUrl: optionalUrl,
|
|
86
|
+
linkedinUrl: optionalUrl,
|
|
87
|
+
youtubeUrl: optionalUrl,
|
|
88
|
+
websiteUrl: optionalUrl,
|
|
89
|
+
supportEmail: optionalEmail,
|
|
39
90
|
supportPhone: zod_1.z.string().max(20).nullable().optional(),
|
|
40
91
|
// Contact Info
|
|
41
92
|
companyName: zod_1.z.string().max(200).nullable().optional(),
|
|
42
93
|
companyAddress: zod_1.z.string().nullable().optional(),
|
|
43
|
-
companyEmail:
|
|
94
|
+
companyEmail: optionalEmail,
|
|
44
95
|
companyPhone: zod_1.z.string().max(20).nullable().optional(),
|
|
45
96
|
companyTaxId: zod_1.z.string().max(50).nullable().optional(),
|
|
46
97
|
// Maintenance
|
|
@@ -56,7 +107,7 @@ exports.updateAppSpecsSchema = zod_1.z.object({
|
|
|
56
107
|
params: zod_1.z.object({
|
|
57
108
|
id: zod_1.z.string().uuid(),
|
|
58
109
|
}),
|
|
59
|
-
body: zod_1.z.object(appSpecsBaseSchema).partial(),
|
|
110
|
+
body: zod_1.z.object(appSpecsBaseSchema).omit({ appName: true }).partial(),
|
|
60
111
|
});
|
|
61
112
|
exports.listAppSpecsSchema = zod_1.z.object({
|
|
62
113
|
query: zod_1.z.object({
|
|
@@ -70,9 +121,8 @@ exports.listAppSpecsSchema = zod_1.z.object({
|
|
|
70
121
|
.optional()
|
|
71
122
|
.transform((val) => (val ? parseInt(val) : 10))
|
|
72
123
|
.pipe(zod_1.z.number().min(1).max(100)),
|
|
73
|
-
isActive: zod_1.z.enum(["true", "false"]).optional(),
|
|
74
124
|
search: zod_1.z.string().optional(),
|
|
75
|
-
sortBy: zod_1.z.enum(["
|
|
125
|
+
sortBy: zod_1.z.enum(["appName", "createdAt", "updatedAt"]).optional(),
|
|
76
126
|
sortOrder: zod_1.z.enum(["ASC", "DESC"]).optional(),
|
|
77
127
|
}),
|
|
78
128
|
});
|
|
@@ -87,3 +137,6 @@ exports.activateAppSpecsSchema = zod_1.z.object({
|
|
|
87
137
|
}),
|
|
88
138
|
});
|
|
89
139
|
exports.getActiveAppSpecsSchema = zod_1.z.object({});
|
|
140
|
+
exports.getAppSpecsByNameSchema = zod_1.z.object({
|
|
141
|
+
params: zod_1.z.object({ appName: zod_1.z.string().min(1).max(100) }),
|
|
142
|
+
});
|
|
@@ -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");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vr-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.171",
|
|
4
4
|
"description": "Shared functions package",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"rimraf": "^5.0.5",
|
|
104
104
|
"streamifier": "^0.1.1",
|
|
105
105
|
"typescript": "^5.3.3",
|
|
106
|
-
"vr-models": "^1.0.
|
|
106
|
+
"vr-models": "^1.0.93",
|
|
107
107
|
"zod": "^3.25.20"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|