vms-nest-prisma-api-document 976.0.0 → 978.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/core/cronjobs.service.d.ts +12 -12
- package/dist/services/core/external_api.service.d.ts +10 -10
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +56 -50
- package/dist/services/gps/reports/gps_reports_mongo_service.js +2 -0
- package/dist/services/website/exclusive_feature_access.d.ts +127 -0
- package/dist/services/website/exclusive_feature_access.js +309 -0
- package/dist/services/website/request_demo.service.d.ts +16 -22
- package/dist/services/website/request_demo.service.js +16 -20
- package/package.json +1 -1
|
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
user_id: string;
|
|
24
24
|
organisation_id: string;
|
|
25
|
-
country_id: string;
|
|
26
25
|
login_from: LoginFrom;
|
|
26
|
+
country_id: string;
|
|
27
27
|
os_details: Record<string, any>;
|
|
28
28
|
ip_details: Record<string, any>;
|
|
29
29
|
}, {
|
|
30
30
|
user_id: string;
|
|
31
31
|
organisation_id: string;
|
|
32
|
-
country_id: string;
|
|
33
32
|
login_from: LoginFrom;
|
|
33
|
+
country_id: string;
|
|
34
34
|
os_details?: Record<string, any> | undefined;
|
|
35
35
|
ip_details?: Record<string, any> | undefined;
|
|
36
36
|
}>;
|
|
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
48
48
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
49
|
country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
login_from: LoginFrom;
|
|
52
51
|
search: string;
|
|
53
52
|
paging: PAGING;
|
|
54
53
|
page_count: number;
|
|
55
54
|
page_index: number;
|
|
55
|
+
login_from: LoginFrom;
|
|
56
56
|
date_format_id: string;
|
|
57
57
|
time_zone_id: string;
|
|
58
58
|
user_ids: string[];
|
|
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
|
|
|
43
43
|
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
44
44
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
login_from: LoginFrom;
|
|
47
46
|
search: string;
|
|
48
47
|
paging: PAGING;
|
|
49
48
|
page_count: number;
|
|
50
49
|
page_index: number;
|
|
50
|
+
login_from: LoginFrom;
|
|
51
51
|
date_format_id: string;
|
|
52
52
|
time_zone_id: string;
|
|
53
53
|
user_ids: string[];
|
|
@@ -86,10 +86,8 @@ declare const CronMonitorQuerySchema: z.ZodObject<{
|
|
|
86
86
|
run_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof RunType>, "many">>>;
|
|
87
87
|
execution_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ExecutionStatus>, "many">>>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
run_type: RunType[];
|
|
90
|
-
execution_status: ExecutionStatus[];
|
|
91
|
-
status: Status[];
|
|
92
89
|
is_enabled: YesNo[];
|
|
90
|
+
status: Status[];
|
|
93
91
|
search: string;
|
|
94
92
|
paging: PAGING;
|
|
95
93
|
page_count: number;
|
|
@@ -110,13 +108,13 @@ declare const CronMonitorQuerySchema: z.ZodObject<{
|
|
|
110
108
|
include_master_data: YesNo;
|
|
111
109
|
date_format_id: string;
|
|
112
110
|
time_zone_id: string;
|
|
111
|
+
run_type: RunType[];
|
|
112
|
+
execution_status: ExecutionStatus[];
|
|
113
113
|
}, {
|
|
114
114
|
date_format_id: string;
|
|
115
115
|
time_zone_id: string;
|
|
116
|
-
run_type?: RunType[] | undefined;
|
|
117
|
-
execution_status?: ExecutionStatus[] | undefined;
|
|
118
|
-
status?: Status[] | undefined;
|
|
119
116
|
is_enabled?: YesNo[] | undefined;
|
|
117
|
+
status?: Status[] | undefined;
|
|
120
118
|
search?: string | undefined;
|
|
121
119
|
paging?: PAGING | undefined;
|
|
122
120
|
page_count?: unknown;
|
|
@@ -135,6 +133,8 @@ declare const CronMonitorQuerySchema: z.ZodObject<{
|
|
|
135
133
|
direction: OrderBy;
|
|
136
134
|
}[] | undefined;
|
|
137
135
|
include_master_data?: YesNo | undefined;
|
|
136
|
+
run_type?: RunType[] | undefined;
|
|
137
|
+
execution_status?: ExecutionStatus[] | undefined;
|
|
138
138
|
}>;
|
|
139
139
|
type CronMonitorQueryDTO = z.infer<typeof CronMonitorQuerySchema>;
|
|
140
140
|
declare const CronJobLogQuerySchema: z.ZodObject<{
|
|
@@ -173,9 +173,6 @@ declare const CronJobLogQuerySchema: z.ZodObject<{
|
|
|
173
173
|
execution_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ExecutionStatus>, "many">>>;
|
|
174
174
|
is_latest_run: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
175
175
|
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
run_type: RunType[];
|
|
177
|
-
execution_status: ExecutionStatus[];
|
|
178
|
-
is_latest_run: YesNo[];
|
|
179
176
|
status: Status[];
|
|
180
177
|
search: string;
|
|
181
178
|
paging: PAGING;
|
|
@@ -197,13 +194,13 @@ declare const CronJobLogQuerySchema: z.ZodObject<{
|
|
|
197
194
|
include_master_data: YesNo;
|
|
198
195
|
date_format_id: string;
|
|
199
196
|
time_zone_id: string;
|
|
197
|
+
run_type: RunType[];
|
|
198
|
+
execution_status: ExecutionStatus[];
|
|
199
|
+
is_latest_run: YesNo[];
|
|
200
200
|
cron_job_ids: string[];
|
|
201
201
|
}, {
|
|
202
202
|
date_format_id: string;
|
|
203
203
|
time_zone_id: string;
|
|
204
|
-
run_type?: RunType[] | undefined;
|
|
205
|
-
execution_status?: ExecutionStatus[] | undefined;
|
|
206
|
-
is_latest_run?: YesNo[] | undefined;
|
|
207
204
|
status?: Status[] | undefined;
|
|
208
205
|
search?: string | undefined;
|
|
209
206
|
paging?: PAGING | undefined;
|
|
@@ -223,6 +220,9 @@ declare const CronJobLogQuerySchema: z.ZodObject<{
|
|
|
223
220
|
direction: OrderBy;
|
|
224
221
|
}[] | undefined;
|
|
225
222
|
include_master_data?: YesNo | undefined;
|
|
223
|
+
run_type?: RunType[] | undefined;
|
|
224
|
+
execution_status?: ExecutionStatus[] | undefined;
|
|
225
|
+
is_latest_run?: YesNo[] | undefined;
|
|
226
226
|
cron_job_ids?: string[] | undefined;
|
|
227
227
|
}>;
|
|
228
228
|
type CronJobLogQueryDTO = z.infer<typeof CronJobLogQuerySchema>;
|
|
@@ -61,26 +61,26 @@ declare const ApiDataShareManagementSchema: z.ZodObject<{
|
|
|
61
61
|
allowed_ips: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
62
62
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
status: Status;
|
|
65
|
-
is_enabled: YesNo;
|
|
66
64
|
api_name: string;
|
|
67
65
|
vendor_name: string;
|
|
68
66
|
purpose: string;
|
|
69
67
|
description: string;
|
|
68
|
+
is_enabled: YesNo;
|
|
70
69
|
auth_type: APIAuthType;
|
|
71
70
|
api_key: string;
|
|
72
71
|
username: string;
|
|
73
72
|
password: string;
|
|
74
73
|
rate_limit_rpm: number;
|
|
75
74
|
allowed_ips: string[];
|
|
76
|
-
}, {
|
|
77
75
|
status: Status;
|
|
76
|
+
}, {
|
|
78
77
|
api_name: string;
|
|
79
78
|
vendor_name: string;
|
|
80
79
|
allowed_ips: string[];
|
|
81
|
-
|
|
80
|
+
status: Status;
|
|
82
81
|
purpose?: string | undefined;
|
|
83
82
|
description?: string | undefined;
|
|
83
|
+
is_enabled?: YesNo | undefined;
|
|
84
84
|
auth_type?: APIAuthType | undefined;
|
|
85
85
|
api_key?: string | undefined;
|
|
86
86
|
username?: string | undefined;
|
|
@@ -123,8 +123,9 @@ declare const ApiDataShareManagementQuerySchema: z.ZodObject<{
|
|
|
123
123
|
is_enabled: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
124
124
|
auth_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof APIAuthType>, "many">>>;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
status: Status[];
|
|
127
126
|
is_enabled: YesNo[];
|
|
127
|
+
auth_type: APIAuthType[];
|
|
128
|
+
status: Status[];
|
|
128
129
|
search: string;
|
|
129
130
|
paging: PAGING;
|
|
130
131
|
page_count: number;
|
|
@@ -145,13 +146,13 @@ declare const ApiDataShareManagementQuerySchema: z.ZodObject<{
|
|
|
145
146
|
include_master_data: YesNo;
|
|
146
147
|
date_format_id: string;
|
|
147
148
|
time_zone_id: string;
|
|
148
|
-
auth_type: APIAuthType[];
|
|
149
149
|
api_data_share_ids: string[];
|
|
150
150
|
}, {
|
|
151
151
|
date_format_id: string;
|
|
152
152
|
time_zone_id: string;
|
|
153
|
-
status?: Status[] | undefined;
|
|
154
153
|
is_enabled?: YesNo[] | undefined;
|
|
154
|
+
auth_type?: APIAuthType[] | undefined;
|
|
155
|
+
status?: Status[] | undefined;
|
|
155
156
|
search?: string | undefined;
|
|
156
157
|
paging?: PAGING | undefined;
|
|
157
158
|
page_count?: unknown;
|
|
@@ -170,7 +171,6 @@ declare const ApiDataShareManagementQuerySchema: z.ZodObject<{
|
|
|
170
171
|
direction: OrderBy;
|
|
171
172
|
}[] | undefined;
|
|
172
173
|
include_master_data?: YesNo | undefined;
|
|
173
|
-
auth_type?: APIAuthType[] | undefined;
|
|
174
174
|
api_data_share_ids?: string[] | undefined;
|
|
175
175
|
}>;
|
|
176
176
|
type ApiDataShareManagementQueryDTO = z.infer<typeof ApiDataShareManagementQuerySchema>;
|
|
@@ -210,6 +210,7 @@ declare const ApiDataShareHitLogQuerySchema: z.ZodObject<{
|
|
|
210
210
|
is_auth_success: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
212
|
status: Status[];
|
|
213
|
+
is_auth_success: YesNo[];
|
|
213
214
|
search: string;
|
|
214
215
|
paging: PAGING;
|
|
215
216
|
page_count: number;
|
|
@@ -230,13 +231,13 @@ declare const ApiDataShareHitLogQuerySchema: z.ZodObject<{
|
|
|
230
231
|
include_master_data: YesNo;
|
|
231
232
|
date_format_id: string;
|
|
232
233
|
time_zone_id: string;
|
|
233
|
-
is_auth_success: YesNo[];
|
|
234
234
|
api_data_share_ids: string[];
|
|
235
235
|
api_data_share_hit_log_ids: string[];
|
|
236
236
|
}, {
|
|
237
237
|
date_format_id: string;
|
|
238
238
|
time_zone_id: string;
|
|
239
239
|
status?: Status[] | undefined;
|
|
240
|
+
is_auth_success?: YesNo[] | undefined;
|
|
240
241
|
search?: string | undefined;
|
|
241
242
|
paging?: PAGING | undefined;
|
|
242
243
|
page_count?: unknown;
|
|
@@ -255,7 +256,6 @@ declare const ApiDataShareHitLogQuerySchema: z.ZodObject<{
|
|
|
255
256
|
direction: OrderBy;
|
|
256
257
|
}[] | undefined;
|
|
257
258
|
include_master_data?: YesNo | undefined;
|
|
258
|
-
is_auth_success?: YesNo[] | undefined;
|
|
259
259
|
api_data_share_ids?: string[] | undefined;
|
|
260
260
|
api_data_share_hit_log_ids?: string[] | undefined;
|
|
261
261
|
}>;
|
|
@@ -22,8 +22,10 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
|
|
|
22
22
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
23
23
|
} & {
|
|
24
24
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
+
db_instance: z.ZodEffects<z.ZodString, string, string>;
|
|
25
26
|
db_group: z.ZodEffects<z.ZodString, string, string>;
|
|
26
27
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
28
|
+
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
27
29
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
28
30
|
time_slot: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof TimeSlot>>>;
|
|
29
31
|
night_driving: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof NightDriving>>>;
|
|
@@ -34,19 +36,21 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
|
|
|
34
36
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
35
37
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
36
38
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
db_group: string;
|
|
38
|
-
night_driving: NightDriving;
|
|
39
39
|
search: string;
|
|
40
40
|
paging: PAGING;
|
|
41
41
|
page_count: number;
|
|
42
42
|
page_index: number;
|
|
43
|
+
login_from: LoginFrom;
|
|
43
44
|
date_format_id: string;
|
|
44
45
|
time_zone_id: string;
|
|
45
|
-
login_from: LoginFrom;
|
|
46
46
|
organisation_id: string;
|
|
47
|
+
db_instance: string;
|
|
48
|
+
db_group: string;
|
|
47
49
|
vehicle_ids: string[];
|
|
50
|
+
from_date: string;
|
|
48
51
|
to_date: string;
|
|
49
52
|
time_slot: TimeSlot;
|
|
53
|
+
night_driving: NightDriving;
|
|
50
54
|
over_speed: OverSpeed;
|
|
51
55
|
utilization_km: number;
|
|
52
56
|
raw_data: YesNo;
|
|
@@ -54,19 +58,21 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
|
|
|
54
58
|
vehicle_summary: YesNo;
|
|
55
59
|
driver_summary: YesNo;
|
|
56
60
|
}, {
|
|
57
|
-
|
|
61
|
+
login_from: LoginFrom;
|
|
58
62
|
date_format_id: string;
|
|
59
63
|
time_zone_id: string;
|
|
60
|
-
login_from: LoginFrom;
|
|
61
64
|
organisation_id: string;
|
|
65
|
+
db_instance: string;
|
|
66
|
+
db_group: string;
|
|
67
|
+
from_date: string;
|
|
62
68
|
to_date: string;
|
|
63
|
-
night_driving?: NightDriving | undefined;
|
|
64
69
|
search?: string | undefined;
|
|
65
70
|
paging?: PAGING | undefined;
|
|
66
71
|
page_count?: unknown;
|
|
67
72
|
page_index?: unknown;
|
|
68
73
|
vehicle_ids?: string[] | undefined;
|
|
69
74
|
time_slot?: TimeSlot | undefined;
|
|
75
|
+
night_driving?: NightDriving | undefined;
|
|
70
76
|
over_speed?: OverSpeed | undefined;
|
|
71
77
|
utilization_km?: unknown;
|
|
72
78
|
raw_data?: YesNo | undefined;
|
|
@@ -99,19 +105,20 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
|
|
|
99
105
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
100
106
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
101
107
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
db_group: string;
|
|
103
|
-
db_instance: string;
|
|
104
|
-
night_driving: NightDriving;
|
|
105
108
|
search: string;
|
|
106
109
|
paging: PAGING;
|
|
107
110
|
page_count: number;
|
|
108
111
|
page_index: number;
|
|
112
|
+
login_from: LoginFrom;
|
|
109
113
|
date_format_id: string;
|
|
110
114
|
time_zone_id: string;
|
|
111
|
-
login_from: LoginFrom;
|
|
112
115
|
organisation_id: string;
|
|
116
|
+
db_instance: string;
|
|
117
|
+
db_group: string;
|
|
118
|
+
from_date: string;
|
|
113
119
|
to_date: string;
|
|
114
120
|
time_slot: TimeSlot;
|
|
121
|
+
night_driving: NightDriving;
|
|
115
122
|
over_speed: OverSpeed;
|
|
116
123
|
utilization_km: number;
|
|
117
124
|
raw_data: YesNo;
|
|
@@ -119,22 +126,21 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
|
|
|
119
126
|
vehicle_summary: YesNo;
|
|
120
127
|
driver_summary: YesNo;
|
|
121
128
|
driver_ids: string[];
|
|
122
|
-
from_date: string;
|
|
123
129
|
}, {
|
|
124
|
-
|
|
125
|
-
db_instance: string;
|
|
130
|
+
login_from: LoginFrom;
|
|
126
131
|
date_format_id: string;
|
|
127
132
|
time_zone_id: string;
|
|
128
|
-
login_from: LoginFrom;
|
|
129
133
|
organisation_id: string;
|
|
130
|
-
|
|
134
|
+
db_instance: string;
|
|
135
|
+
db_group: string;
|
|
131
136
|
from_date: string;
|
|
132
|
-
|
|
137
|
+
to_date: string;
|
|
133
138
|
search?: string | undefined;
|
|
134
139
|
paging?: PAGING | undefined;
|
|
135
140
|
page_count?: unknown;
|
|
136
141
|
page_index?: unknown;
|
|
137
142
|
time_slot?: TimeSlot | undefined;
|
|
143
|
+
night_driving?: NightDriving | undefined;
|
|
138
144
|
over_speed?: OverSpeed | undefined;
|
|
139
145
|
utilization_km?: unknown;
|
|
140
146
|
raw_data?: YesNo | undefined;
|
|
@@ -163,31 +169,31 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
163
169
|
interval_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
164
170
|
boolean_type: z.ZodType<BooleanType, z.ZodTypeDef, BooleanType>;
|
|
165
171
|
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
db_group: string;
|
|
167
|
-
db_instance: string;
|
|
168
172
|
search: string;
|
|
169
173
|
paging: PAGING;
|
|
170
174
|
page_count: number;
|
|
171
175
|
page_index: number;
|
|
176
|
+
login_from: LoginFrom;
|
|
172
177
|
date_format_id: string;
|
|
173
178
|
time_zone_id: string;
|
|
174
|
-
login_from: LoginFrom;
|
|
175
179
|
organisation_id: string;
|
|
180
|
+
db_instance: string;
|
|
181
|
+
db_group: string;
|
|
176
182
|
vehicle_ids: string[];
|
|
177
|
-
to_date: string;
|
|
178
183
|
from_date: string;
|
|
184
|
+
to_date: string;
|
|
179
185
|
gps_type: GPSType;
|
|
180
186
|
interval_seconds: number;
|
|
181
187
|
boolean_type: BooleanType;
|
|
182
188
|
}, {
|
|
183
|
-
|
|
184
|
-
db_instance: string;
|
|
189
|
+
login_from: LoginFrom;
|
|
185
190
|
date_format_id: string;
|
|
186
191
|
time_zone_id: string;
|
|
187
|
-
login_from: LoginFrom;
|
|
188
192
|
organisation_id: string;
|
|
189
|
-
|
|
193
|
+
db_instance: string;
|
|
194
|
+
db_group: string;
|
|
190
195
|
from_date: string;
|
|
196
|
+
to_date: string;
|
|
191
197
|
gps_type: GPSType;
|
|
192
198
|
boolean_type: BooleanType;
|
|
193
199
|
search?: string | undefined;
|
|
@@ -214,26 +220,26 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
|
|
|
214
220
|
utilization_km: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
215
221
|
is12am: z.ZodType<Is12AM, z.ZodTypeDef, Is12AM>;
|
|
216
222
|
}, "strip", z.ZodTypeAny, {
|
|
217
|
-
db_group: string;
|
|
218
|
-
db_instance: string;
|
|
219
223
|
search: string;
|
|
220
224
|
paging: PAGING;
|
|
221
225
|
page_count: number;
|
|
222
226
|
page_index: number;
|
|
227
|
+
login_from: LoginFrom;
|
|
223
228
|
date_format_id: string;
|
|
224
229
|
time_zone_id: string;
|
|
225
|
-
login_from: LoginFrom;
|
|
226
230
|
organisation_id: string;
|
|
231
|
+
db_instance: string;
|
|
232
|
+
db_group: string;
|
|
227
233
|
vehicle_ids: string[];
|
|
228
234
|
utilization_km: number;
|
|
229
235
|
is12am: Is12AM;
|
|
230
236
|
}, {
|
|
231
|
-
|
|
232
|
-
db_instance: string;
|
|
237
|
+
login_from: LoginFrom;
|
|
233
238
|
date_format_id: string;
|
|
234
239
|
time_zone_id: string;
|
|
235
|
-
login_from: LoginFrom;
|
|
236
240
|
organisation_id: string;
|
|
241
|
+
db_instance: string;
|
|
242
|
+
db_group: string;
|
|
237
243
|
is12am: Is12AM;
|
|
238
244
|
search?: string | undefined;
|
|
239
245
|
paging?: PAGING | undefined;
|
|
@@ -260,27 +266,27 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
|
|
|
260
266
|
to_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
261
267
|
interval_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
262
268
|
}, "strip", z.ZodTypeAny, {
|
|
263
|
-
db_group: string;
|
|
264
|
-
db_instance: string;
|
|
265
269
|
search: string;
|
|
266
270
|
paging: PAGING;
|
|
267
271
|
page_count: number;
|
|
268
272
|
page_index: number;
|
|
273
|
+
login_from: LoginFrom;
|
|
269
274
|
date_format_id: string;
|
|
270
275
|
time_zone_id: string;
|
|
271
|
-
login_from: LoginFrom;
|
|
272
276
|
organisation_id: string;
|
|
277
|
+
db_instance: string;
|
|
278
|
+
db_group: string;
|
|
273
279
|
interval_seconds: number;
|
|
274
280
|
vehicle_id: string;
|
|
275
281
|
from_date_time: string;
|
|
276
282
|
to_date_time: string;
|
|
277
283
|
}, {
|
|
278
|
-
|
|
279
|
-
db_instance: string;
|
|
284
|
+
login_from: LoginFrom;
|
|
280
285
|
date_format_id: string;
|
|
281
286
|
time_zone_id: string;
|
|
282
|
-
login_from: LoginFrom;
|
|
283
287
|
organisation_id: string;
|
|
288
|
+
db_instance: string;
|
|
289
|
+
db_group: string;
|
|
284
290
|
vehicle_id: string;
|
|
285
291
|
from_date_time: string;
|
|
286
292
|
to_date_time: string;
|
|
@@ -305,24 +311,24 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
|
|
|
305
311
|
db_group: z.ZodEffects<z.ZodString, string, string>;
|
|
306
312
|
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
307
313
|
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
db_group: string;
|
|
309
|
-
db_instance: string;
|
|
310
314
|
search: string;
|
|
311
315
|
paging: PAGING;
|
|
312
316
|
page_count: number;
|
|
313
317
|
page_index: number;
|
|
318
|
+
login_from: LoginFrom;
|
|
314
319
|
date_format_id: string;
|
|
315
320
|
time_zone_id: string;
|
|
316
|
-
login_from: LoginFrom;
|
|
317
321
|
organisation_id: string;
|
|
322
|
+
db_instance: string;
|
|
323
|
+
db_group: string;
|
|
318
324
|
vehicle_id: string;
|
|
319
325
|
}, {
|
|
320
|
-
|
|
321
|
-
db_instance: string;
|
|
326
|
+
login_from: LoginFrom;
|
|
322
327
|
date_format_id: string;
|
|
323
328
|
time_zone_id: string;
|
|
324
|
-
login_from: LoginFrom;
|
|
325
329
|
organisation_id: string;
|
|
330
|
+
db_instance: string;
|
|
331
|
+
db_group: string;
|
|
326
332
|
vehicle_id: string;
|
|
327
333
|
search?: string | undefined;
|
|
328
334
|
paging?: PAGING | undefined;
|
|
@@ -352,34 +358,34 @@ declare const AlertReportSchema: z.ZodObject<{
|
|
|
352
358
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
353
359
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
354
360
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
db_group: string;
|
|
356
|
-
db_instance: string;
|
|
357
361
|
search: string;
|
|
358
362
|
paging: PAGING;
|
|
359
363
|
page_count: number;
|
|
360
364
|
page_index: number;
|
|
365
|
+
login_from: LoginFrom;
|
|
361
366
|
date_format_id: string;
|
|
362
367
|
time_zone_id: string;
|
|
363
|
-
login_from: LoginFrom;
|
|
364
368
|
organisation_id: string;
|
|
369
|
+
db_instance: string;
|
|
370
|
+
db_group: string;
|
|
365
371
|
vehicle_ids: string[];
|
|
372
|
+
from_date: string;
|
|
366
373
|
to_date: string;
|
|
367
374
|
driver_ids: string[];
|
|
368
|
-
from_date: string;
|
|
369
375
|
user_ids: string[];
|
|
370
376
|
gps_geofence_ids: string[];
|
|
371
377
|
modules: Module[];
|
|
372
378
|
alert_types: AlertType[];
|
|
373
379
|
alert_sub_types: AlertSubType[];
|
|
374
380
|
}, {
|
|
375
|
-
|
|
376
|
-
db_instance: string;
|
|
381
|
+
login_from: LoginFrom;
|
|
377
382
|
date_format_id: string;
|
|
378
383
|
time_zone_id: string;
|
|
379
|
-
login_from: LoginFrom;
|
|
380
384
|
organisation_id: string;
|
|
381
|
-
|
|
385
|
+
db_instance: string;
|
|
386
|
+
db_group: string;
|
|
382
387
|
from_date: string;
|
|
388
|
+
to_date: string;
|
|
383
389
|
search?: string | undefined;
|
|
384
390
|
paging?: PAGING | undefined;
|
|
385
391
|
page_count?: unknown;
|
|
@@ -507,8 +507,10 @@ var ENDPOINTS = {
|
|
|
507
507
|
};
|
|
508
508
|
var MultipleVehicleReportSchema = MongoBaseQuerySchema.extend({
|
|
509
509
|
organisation_id: single_select_mandatory("Organisation"),
|
|
510
|
+
db_instance: stringMandatory("DB Instance"),
|
|
510
511
|
db_group: stringMandatory("DB Group"),
|
|
511
512
|
vehicle_ids: multi_select_mandatory("Master Vehicle"),
|
|
513
|
+
from_date: dateMandatory("From Date"),
|
|
512
514
|
to_date: dateMandatory("To Date"),
|
|
513
515
|
time_slot: enumOptional(
|
|
514
516
|
"Time Slot",
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../core/Enums.js';
|
|
2
|
+
import { FBR, SBR } from '../../core/BaseResponse.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { U as UserOrganisation } from '../../bookmark_service-RmLX412L.js';
|
|
5
|
+
import '../../zod_utils/zod_base_schema.js';
|
|
6
|
+
import '../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
7
|
+
|
|
8
|
+
interface ExclusiveFeatureAccess extends Record<string, unknown> {
|
|
9
|
+
exclusive_feature_access_id: string;
|
|
10
|
+
subject: string;
|
|
11
|
+
message?: string;
|
|
12
|
+
organisation_id: string;
|
|
13
|
+
UserOrganisation?: UserOrganisation;
|
|
14
|
+
organisation_name?: string;
|
|
15
|
+
organisation_code?: string;
|
|
16
|
+
status: Status;
|
|
17
|
+
added_date_time: string;
|
|
18
|
+
modified_date_time: string;
|
|
19
|
+
}
|
|
20
|
+
declare const ExclusiveFeatureAccessSchema: z.ZodObject<{
|
|
21
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
22
|
+
subject: z.ZodEffects<z.ZodString, string, string>;
|
|
23
|
+
message: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
24
|
+
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
status: Status;
|
|
27
|
+
message: string;
|
|
28
|
+
organisation_id: string;
|
|
29
|
+
subject: string;
|
|
30
|
+
}, {
|
|
31
|
+
status: Status;
|
|
32
|
+
organisation_id: string;
|
|
33
|
+
subject: string;
|
|
34
|
+
message?: string | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
type ExclusiveFeatureAccessDTO = z.infer<typeof ExclusiveFeatureAccessSchema>;
|
|
37
|
+
declare const ExclusiveFeatureAccessQuerySchema: z.ZodObject<{
|
|
38
|
+
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
39
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
40
|
+
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
41
|
+
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
42
|
+
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
43
|
+
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
44
|
+
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
45
|
+
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
46
|
+
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
47
|
+
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
48
|
+
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
|
+
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
50
|
+
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
51
|
+
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
52
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
53
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
54
|
+
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
name: string;
|
|
57
|
+
field: string;
|
|
58
|
+
direction: OrderBy;
|
|
59
|
+
}, {
|
|
60
|
+
name: string;
|
|
61
|
+
field: string;
|
|
62
|
+
direction: OrderBy;
|
|
63
|
+
}>, "many">>>;
|
|
64
|
+
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
65
|
+
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
66
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
67
|
+
} & {
|
|
68
|
+
exclusive_feature_access_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
69
|
+
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
status: Status[];
|
|
72
|
+
search: string;
|
|
73
|
+
paging: PAGING;
|
|
74
|
+
page_count: number;
|
|
75
|
+
page_index: number;
|
|
76
|
+
load_parents: LoadParents;
|
|
77
|
+
load_parents_list: string[];
|
|
78
|
+
load_child: LoadChild;
|
|
79
|
+
load_child_list: string[];
|
|
80
|
+
load_child_count: LoadChildCount;
|
|
81
|
+
load_child_count_list: string[];
|
|
82
|
+
include_details: Record<string, any>;
|
|
83
|
+
where_relations: Record<string, any>;
|
|
84
|
+
order_by: {
|
|
85
|
+
name: string;
|
|
86
|
+
field: string;
|
|
87
|
+
direction: OrderBy;
|
|
88
|
+
}[];
|
|
89
|
+
include_master_data: YesNo;
|
|
90
|
+
date_format_id: string;
|
|
91
|
+
time_zone_id: string;
|
|
92
|
+
organisation_ids: string[];
|
|
93
|
+
exclusive_feature_access_ids: string[];
|
|
94
|
+
}, {
|
|
95
|
+
date_format_id: string;
|
|
96
|
+
time_zone_id: string;
|
|
97
|
+
status?: Status[] | undefined;
|
|
98
|
+
search?: string | undefined;
|
|
99
|
+
paging?: PAGING | undefined;
|
|
100
|
+
page_count?: unknown;
|
|
101
|
+
page_index?: unknown;
|
|
102
|
+
load_parents?: LoadParents | undefined;
|
|
103
|
+
load_parents_list?: string[] | undefined;
|
|
104
|
+
load_child?: LoadChild | undefined;
|
|
105
|
+
load_child_list?: string[] | undefined;
|
|
106
|
+
load_child_count?: LoadChildCount | undefined;
|
|
107
|
+
load_child_count_list?: string[] | undefined;
|
|
108
|
+
include_details?: Record<string, any> | undefined;
|
|
109
|
+
where_relations?: Record<string, any> | undefined;
|
|
110
|
+
order_by?: {
|
|
111
|
+
name: string;
|
|
112
|
+
field: string;
|
|
113
|
+
direction: OrderBy;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
include_master_data?: YesNo | undefined;
|
|
116
|
+
organisation_ids?: string[] | undefined;
|
|
117
|
+
exclusive_feature_access_ids?: string[] | undefined;
|
|
118
|
+
}>;
|
|
119
|
+
type ExclusiveFeatureAccessQueryDTO = z.infer<typeof ExclusiveFeatureAccessQuerySchema>;
|
|
120
|
+
declare const toFaqPayload: (row: ExclusiveFeatureAccess) => ExclusiveFeatureAccessDTO;
|
|
121
|
+
declare const newFaqPayload: () => ExclusiveFeatureAccessDTO;
|
|
122
|
+
declare const findExclusiveFeatureAccess: (data: ExclusiveFeatureAccessQueryDTO) => Promise<FBR<ExclusiveFeatureAccess[]>>;
|
|
123
|
+
declare const createDemo: (data: ExclusiveFeatureAccessDTO) => Promise<SBR>;
|
|
124
|
+
declare const updateExclusiveFeatureAccess: (id: string, data: ExclusiveFeatureAccessDTO) => Promise<SBR>;
|
|
125
|
+
declare const deleteExclusiveFeatureAccess: (id: string) => Promise<SBR>;
|
|
126
|
+
|
|
127
|
+
export { type ExclusiveFeatureAccess, type ExclusiveFeatureAccessDTO, type ExclusiveFeatureAccessQueryDTO, ExclusiveFeatureAccessQuerySchema, ExclusiveFeatureAccessSchema, createDemo, deleteExclusiveFeatureAccess, findExclusiveFeatureAccess, newFaqPayload, toFaqPayload, updateExclusiveFeatureAccess };
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
// src/core/sdk-config.ts
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
|
+
var getAxiosInstance = () => {
|
|
4
|
+
const instance = globalThis[KEY];
|
|
5
|
+
if (!instance) {
|
|
6
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
7
|
+
}
|
|
8
|
+
return instance;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// src/core/apiCall.ts
|
|
12
|
+
var apiPost = async (url, data) => {
|
|
13
|
+
const response = await getAxiosInstance().post(url, data);
|
|
14
|
+
return response.data;
|
|
15
|
+
};
|
|
16
|
+
var apiPatch = async (url, data) => {
|
|
17
|
+
const response = await getAxiosInstance().patch(url, data);
|
|
18
|
+
return response.data;
|
|
19
|
+
};
|
|
20
|
+
var apiDelete = async (url) => {
|
|
21
|
+
const response = await getAxiosInstance().delete(url);
|
|
22
|
+
return response.data;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// src/services/website/exclusive_feature_access.ts
|
|
26
|
+
import { z as z3 } from "zod";
|
|
27
|
+
|
|
28
|
+
// src/zod_utils/zod_utils.ts
|
|
29
|
+
import { z } from "zod";
|
|
30
|
+
|
|
31
|
+
// src/core/BaseResponse.ts
|
|
32
|
+
var r_log = (data = {}) => {
|
|
33
|
+
return data;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// src/zod_utils/zod_utils.ts
|
|
37
|
+
var handleNullOrUndefined = (value) => typeof value === "string" ? value : "";
|
|
38
|
+
var stringMandatory = (fieldName, min = 1, max = 100) => {
|
|
39
|
+
const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).nonempty(`${fieldName} is required.`).transform(handleNullOrUndefined);
|
|
40
|
+
return schema;
|
|
41
|
+
};
|
|
42
|
+
var stringOptional = (fieldName, min = 0, max = 255, defaultValue = "") => {
|
|
43
|
+
const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).transform(handleNullOrUndefined).default(defaultValue);
|
|
44
|
+
return schema;
|
|
45
|
+
};
|
|
46
|
+
var stringArrayOptional = (fieldName, min = 0, max = 100, defaultValue = [], unique = false) => {
|
|
47
|
+
const schema = z.array(z.string().trim(), {
|
|
48
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
49
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
50
|
+
if (unique) {
|
|
51
|
+
schema.refine(
|
|
52
|
+
(arr) => new Set(arr).size === arr.length,
|
|
53
|
+
`${fieldName} must contain unique values.`
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
return schema.optional().default(defaultValue);
|
|
57
|
+
};
|
|
58
|
+
var numberOptional = (fieldName, min = 0, max = 1e14, defaultValue = 0) => {
|
|
59
|
+
return z.preprocess(
|
|
60
|
+
(val) => typeof val === "string" && val.trim() !== "" ? Number(val) : val,
|
|
61
|
+
z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(min, `${fieldName} must be at least ${min}.`).max(max, `${fieldName} must be at most ${max}.`).optional().default(defaultValue)
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
var enumMandatory = (fieldName, enumType, defaultValue) => {
|
|
65
|
+
return z.union([
|
|
66
|
+
z.nativeEnum(enumType, {
|
|
67
|
+
invalid_type_error: `${fieldName} should be one of the following values: ${Object.values(
|
|
68
|
+
enumType
|
|
69
|
+
).join(", ")}.`
|
|
70
|
+
}),
|
|
71
|
+
z.string().refine((val) => Object.values(enumType).includes(val), {
|
|
72
|
+
message: `${fieldName} should be one of the following values: ${Object.values(
|
|
73
|
+
enumType
|
|
74
|
+
).join(", ")}.`
|
|
75
|
+
})
|
|
76
|
+
]).default(defaultValue).refine((val) => val !== "", {
|
|
77
|
+
message: `Please select ${fieldName}.`
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
var enumOptional = (fieldName, enumType, defaultValue) => {
|
|
81
|
+
return z.nativeEnum(enumType, {
|
|
82
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
83
|
+
enumType
|
|
84
|
+
).join(", ")}.`
|
|
85
|
+
}).optional().default(() => defaultValue);
|
|
86
|
+
};
|
|
87
|
+
var getAllEnums = (enumType) => {
|
|
88
|
+
return Object.values(enumType);
|
|
89
|
+
};
|
|
90
|
+
var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumType), min = 0, max = 100, unique = false) => {
|
|
91
|
+
const schema = z.array(z.nativeEnum(enumType), {
|
|
92
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
93
|
+
enumType
|
|
94
|
+
).join(", ")}.`
|
|
95
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
96
|
+
if (unique) {
|
|
97
|
+
schema.refine(
|
|
98
|
+
(arr) => new Set(arr).size === arr.length,
|
|
99
|
+
`${fieldName} must contain unique values.`
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
return schema.optional().default(() => defaultValue);
|
|
103
|
+
};
|
|
104
|
+
var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
|
|
105
|
+
var single_select_mandatory = (fieldName) => {
|
|
106
|
+
const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
|
|
107
|
+
return schema;
|
|
108
|
+
};
|
|
109
|
+
var single_select_optional = (fieldName) => {
|
|
110
|
+
r_log(fieldName);
|
|
111
|
+
const schema = z.string().trim().transform(handleNullOrUndefined);
|
|
112
|
+
return schema;
|
|
113
|
+
};
|
|
114
|
+
var multi_select_optional = (fieldName, max = 1e3, defaultValue = []) => {
|
|
115
|
+
const schema = z.array(
|
|
116
|
+
z.string({
|
|
117
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
118
|
+
})
|
|
119
|
+
).max(
|
|
120
|
+
max,
|
|
121
|
+
`Please select at most ${max} ${fieldName}${max > 1 ? "s" : ""}.`
|
|
122
|
+
);
|
|
123
|
+
return schema.optional().default(defaultValue);
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// src/zod_utils/zod_base_schema.ts
|
|
127
|
+
import { z as z2 } from "zod";
|
|
128
|
+
|
|
129
|
+
// src/core/Enums.ts
|
|
130
|
+
var PAGING = /* @__PURE__ */ ((PAGING2) => {
|
|
131
|
+
PAGING2["Yes"] = "Yes";
|
|
132
|
+
PAGING2["No"] = "No";
|
|
133
|
+
return PAGING2;
|
|
134
|
+
})(PAGING || {});
|
|
135
|
+
var LoadParents = /* @__PURE__ */ ((LoadParents2) => {
|
|
136
|
+
LoadParents2["Yes"] = "Yes";
|
|
137
|
+
LoadParents2["No"] = "No";
|
|
138
|
+
LoadParents2["Custom"] = "Custom";
|
|
139
|
+
return LoadParents2;
|
|
140
|
+
})(LoadParents || {});
|
|
141
|
+
var LoadChild = /* @__PURE__ */ ((LoadChild2) => {
|
|
142
|
+
LoadChild2["No"] = "No";
|
|
143
|
+
LoadChild2["Yes"] = "Yes";
|
|
144
|
+
LoadChild2["Count"] = "Count";
|
|
145
|
+
LoadChild2["Custom"] = "Custom";
|
|
146
|
+
LoadChild2["Direct"] = "Direct";
|
|
147
|
+
return LoadChild2;
|
|
148
|
+
})(LoadChild || {});
|
|
149
|
+
var LoadChildCount = /* @__PURE__ */ ((LoadChildCount2) => {
|
|
150
|
+
LoadChildCount2["No"] = "No";
|
|
151
|
+
LoadChildCount2["Yes"] = "Yes";
|
|
152
|
+
LoadChildCount2["Custom"] = "Custom";
|
|
153
|
+
return LoadChildCount2;
|
|
154
|
+
})(LoadChildCount || {});
|
|
155
|
+
var OrderBy = /* @__PURE__ */ ((OrderBy2) => {
|
|
156
|
+
OrderBy2["asc"] = "asc";
|
|
157
|
+
OrderBy2["desc"] = "desc";
|
|
158
|
+
return OrderBy2;
|
|
159
|
+
})(OrderBy || {});
|
|
160
|
+
var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
|
|
161
|
+
LoginFrom2["Web"] = "Web";
|
|
162
|
+
LoginFrom2["Android"] = "Android";
|
|
163
|
+
LoginFrom2["IPhone"] = "IPhone";
|
|
164
|
+
LoginFrom2["AndroidPWA"] = "AndroidPWA";
|
|
165
|
+
LoginFrom2["iOSPWA"] = "iOSPWA";
|
|
166
|
+
return LoginFrom2;
|
|
167
|
+
})(LoginFrom || {});
|
|
168
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
169
|
+
Status2["Active"] = "Active";
|
|
170
|
+
Status2["Inactive"] = "Inactive";
|
|
171
|
+
return Status2;
|
|
172
|
+
})(Status || {});
|
|
173
|
+
var FileType = /* @__PURE__ */ ((FileType2) => {
|
|
174
|
+
FileType2["NoFile"] = "NoFile";
|
|
175
|
+
FileType2["Image"] = "Image";
|
|
176
|
+
FileType2["Video"] = "Video";
|
|
177
|
+
FileType2["PDF"] = "PDF";
|
|
178
|
+
FileType2["Excel"] = "Excel";
|
|
179
|
+
return FileType2;
|
|
180
|
+
})(FileType || {});
|
|
181
|
+
var YesNo = /* @__PURE__ */ ((YesNo2) => {
|
|
182
|
+
YesNo2["Yes"] = "Yes";
|
|
183
|
+
YesNo2["No"] = "No";
|
|
184
|
+
return YesNo2;
|
|
185
|
+
})(YesNo || {});
|
|
186
|
+
|
|
187
|
+
// src/zod_utils/zod_base_schema.ts
|
|
188
|
+
var OrderBySchema = z2.array(
|
|
189
|
+
z2.object({
|
|
190
|
+
name: stringMandatory("Order Field Name", 0, 255),
|
|
191
|
+
field: stringMandatory("Order Field Name", 0, 255),
|
|
192
|
+
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
193
|
+
})
|
|
194
|
+
);
|
|
195
|
+
var BaseFileSchema = z2.object({
|
|
196
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
197
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
198
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
199
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
200
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
201
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
202
|
+
file_size: numberOptional("File Size"),
|
|
203
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
204
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
205
|
+
});
|
|
206
|
+
var BaseQuerySchema = z2.object({
|
|
207
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
208
|
+
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
209
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
210
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
211
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
212
|
+
load_parents: enumOptional("Load Parents", LoadParents, "No" /* No */),
|
|
213
|
+
load_parents_list: stringArrayOptional("Load Parents List"),
|
|
214
|
+
load_child: enumOptional("Load Child", LoadChild, "No" /* No */),
|
|
215
|
+
load_child_list: stringArrayOptional("Load Child List"),
|
|
216
|
+
load_child_count: enumOptional(
|
|
217
|
+
"Load Child",
|
|
218
|
+
LoadChildCount,
|
|
219
|
+
"No" /* No */
|
|
220
|
+
),
|
|
221
|
+
load_child_count_list: stringArrayOptional("Load Child List"),
|
|
222
|
+
include_details: dynamicJsonSchema("Include Details", {}),
|
|
223
|
+
where_relations: dynamicJsonSchema("Where Relations", {}),
|
|
224
|
+
order_by: OrderBySchema.optional().default([]),
|
|
225
|
+
include_master_data: enumOptional("Include Master Data", YesNo, "No" /* No */),
|
|
226
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
227
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
228
|
+
});
|
|
229
|
+
var FilePresignedUrlSchema = z2.object({
|
|
230
|
+
file_name: stringMandatory("File Name", 1, 255),
|
|
231
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */)
|
|
232
|
+
});
|
|
233
|
+
var MongoBaseQuerySchema = z2.object({
|
|
234
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
235
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
236
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
237
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
238
|
+
login_from: enumMandatory("Login From", LoginFrom, "Web" /* Web */),
|
|
239
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
240
|
+
// ✅ Single-selection -> MasterMainDateFormat
|
|
241
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
242
|
+
// ✅ Single-selection -> MasterMainTimeZone
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
// src/services/website/exclusive_feature_access.ts
|
|
246
|
+
var URL = "website/exclusive_feature_access";
|
|
247
|
+
var ENDPOINTS = {
|
|
248
|
+
// ExclusiveFeatureAccess APIs
|
|
249
|
+
find: `${URL}/search`,
|
|
250
|
+
create: URL,
|
|
251
|
+
update: (id) => `${URL}/${id}`,
|
|
252
|
+
delete: (id) => `${URL}/${id}`
|
|
253
|
+
};
|
|
254
|
+
var ExclusiveFeatureAccessSchema = z3.object({
|
|
255
|
+
// Relations - Parent
|
|
256
|
+
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
257
|
+
// Single-Selection -> UserOrganisation
|
|
258
|
+
// Main Field Details
|
|
259
|
+
subject: stringMandatory("Subject", 3, 100),
|
|
260
|
+
message: stringOptional("Message", 0, 500),
|
|
261
|
+
// Metadata
|
|
262
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
263
|
+
});
|
|
264
|
+
var ExclusiveFeatureAccessQuerySchema = BaseQuerySchema.extend({
|
|
265
|
+
// Self Table
|
|
266
|
+
exclusive_feature_access_ids: multi_select_optional("ExclusiveFeatureAccess"),
|
|
267
|
+
// Multi-selection -> ExclusiveFeatureAccess
|
|
268
|
+
// Relations - Parent
|
|
269
|
+
organisation_ids: multi_select_optional("UserOrganisation")
|
|
270
|
+
// Multi-Selection -> UserOrganisation
|
|
271
|
+
});
|
|
272
|
+
var toFaqPayload = (row) => ({
|
|
273
|
+
subject: row.subject || "",
|
|
274
|
+
message: row.message || "",
|
|
275
|
+
// Relations - Parent
|
|
276
|
+
organisation_id: row.organisation_id || "",
|
|
277
|
+
// Metadata
|
|
278
|
+
status: row.status
|
|
279
|
+
});
|
|
280
|
+
var newFaqPayload = () => ({
|
|
281
|
+
subject: "",
|
|
282
|
+
message: "",
|
|
283
|
+
// Relations - Parent
|
|
284
|
+
organisation_id: "",
|
|
285
|
+
// Metadata
|
|
286
|
+
status: "Active" /* Active */
|
|
287
|
+
});
|
|
288
|
+
var findExclusiveFeatureAccess = async (data) => {
|
|
289
|
+
return apiPost(ENDPOINTS.find, data);
|
|
290
|
+
};
|
|
291
|
+
var createDemo = async (data) => {
|
|
292
|
+
return apiPost(ENDPOINTS.create, data);
|
|
293
|
+
};
|
|
294
|
+
var updateExclusiveFeatureAccess = async (id, data) => {
|
|
295
|
+
return apiPatch(ENDPOINTS.update(id), data);
|
|
296
|
+
};
|
|
297
|
+
var deleteExclusiveFeatureAccess = async (id) => {
|
|
298
|
+
return apiDelete(ENDPOINTS.delete(id));
|
|
299
|
+
};
|
|
300
|
+
export {
|
|
301
|
+
ExclusiveFeatureAccessQuerySchema,
|
|
302
|
+
ExclusiveFeatureAccessSchema,
|
|
303
|
+
createDemo,
|
|
304
|
+
deleteExclusiveFeatureAccess,
|
|
305
|
+
findExclusiveFeatureAccess,
|
|
306
|
+
newFaqPayload,
|
|
307
|
+
toFaqPayload,
|
|
308
|
+
updateExclusiveFeatureAccess
|
|
309
|
+
};
|
|
@@ -3,12 +3,12 @@ import { FBR, SBR } from '../../core/BaseResponse.js';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
interface RequestDemo extends Record<string, unknown> {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
request_demo_id: string;
|
|
7
|
+
name: string;
|
|
8
8
|
mobile?: string;
|
|
9
|
-
country_code?: string;
|
|
10
9
|
email?: string;
|
|
11
10
|
message?: string;
|
|
11
|
+
city?: string;
|
|
12
12
|
admin_message?: string;
|
|
13
13
|
admin_view: YesNo;
|
|
14
14
|
status: Status;
|
|
@@ -16,12 +16,11 @@ interface RequestDemo extends Record<string, unknown> {
|
|
|
16
16
|
modified_date_time: string;
|
|
17
17
|
}
|
|
18
18
|
declare const RequestDemoSchema: z.ZodObject<{
|
|
19
|
-
|
|
20
|
-
last_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
19
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
21
20
|
mobile: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
22
|
-
country_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
23
21
|
email: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
24
22
|
message: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
23
|
+
city: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
25
24
|
admin_message: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
26
25
|
admin_view: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
27
26
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
@@ -29,22 +28,20 @@ declare const RequestDemoSchema: z.ZodObject<{
|
|
|
29
28
|
email: string;
|
|
30
29
|
status: Status;
|
|
31
30
|
message: string;
|
|
32
|
-
|
|
33
|
-
last_name: string;
|
|
31
|
+
name: string;
|
|
34
32
|
mobile: string;
|
|
35
|
-
country_code: string;
|
|
36
33
|
admin_message: string;
|
|
34
|
+
city: string;
|
|
37
35
|
admin_view: YesNo;
|
|
38
36
|
}, {
|
|
39
37
|
status: Status;
|
|
40
|
-
|
|
38
|
+
name: string;
|
|
41
39
|
admin_view: YesNo;
|
|
42
40
|
email?: string | undefined;
|
|
43
41
|
message?: string | undefined;
|
|
44
|
-
last_name?: string | undefined;
|
|
45
42
|
mobile?: string | undefined;
|
|
46
|
-
country_code?: string | undefined;
|
|
47
43
|
admin_message?: string | undefined;
|
|
44
|
+
city?: string | undefined;
|
|
48
45
|
}>;
|
|
49
46
|
type RequestDemoDTO = z.infer<typeof RequestDemoSchema>;
|
|
50
47
|
declare const RequestDemoQuerySchema: z.ZodObject<{
|
|
@@ -131,29 +128,26 @@ declare const RequestDemoQuerySchema: z.ZodObject<{
|
|
|
131
128
|
}>;
|
|
132
129
|
type RequestDemoQueryDTO = z.infer<typeof RequestDemoQuerySchema>;
|
|
133
130
|
declare const RequestDemoCreateSchema: z.ZodObject<{
|
|
134
|
-
|
|
135
|
-
last_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
131
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
136
132
|
mobile: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
137
|
-
country_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
138
133
|
email: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
139
134
|
message: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
135
|
+
city: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
140
136
|
}, "strip", z.ZodTypeAny, {
|
|
141
137
|
email: string;
|
|
142
138
|
message: string;
|
|
143
|
-
|
|
144
|
-
last_name: string;
|
|
139
|
+
name: string;
|
|
145
140
|
mobile: string;
|
|
146
|
-
|
|
141
|
+
city: string;
|
|
147
142
|
}, {
|
|
148
|
-
|
|
143
|
+
name: string;
|
|
149
144
|
email?: string | undefined;
|
|
150
145
|
message?: string | undefined;
|
|
151
|
-
last_name?: string | undefined;
|
|
152
146
|
mobile?: string | undefined;
|
|
153
|
-
|
|
147
|
+
city?: string | undefined;
|
|
154
148
|
}>;
|
|
155
149
|
type RequestDemoCreateDTO = z.infer<typeof RequestDemoCreateSchema>;
|
|
156
|
-
declare const toFaqPayload: (
|
|
150
|
+
declare const toFaqPayload: (row: RequestDemo) => RequestDemoDTO;
|
|
157
151
|
declare const newFaqPayload: () => RequestDemoDTO;
|
|
158
152
|
declare const findRequestDemo: (data: RequestDemoQueryDTO) => Promise<FBR<RequestDemo[]>>;
|
|
159
153
|
declare const createDemo: (data: RequestDemoDTO) => Promise<SBR>;
|
|
@@ -250,12 +250,11 @@ var ENDPOINTS = {
|
|
|
250
250
|
};
|
|
251
251
|
var RequestDemoSchema = z3.object({
|
|
252
252
|
// Main Field Details
|
|
253
|
-
|
|
254
|
-
last_name: stringOptional("Last Name", 0, 100),
|
|
253
|
+
name: stringMandatory("Name", 3, 100),
|
|
255
254
|
mobile: stringOptional("Mobile", 0, 20),
|
|
256
|
-
country_code: stringOptional("Country Code", 0, 20),
|
|
257
255
|
email: stringOptional("Email", 0, 100),
|
|
258
256
|
message: stringOptional("Message", 0, 500),
|
|
257
|
+
city: stringOptional("City", 0, 100),
|
|
259
258
|
// Admin Details
|
|
260
259
|
admin_message: stringOptional("Admin Message", 0, 1e3),
|
|
261
260
|
admin_view: enumMandatory("Admin View", YesNo, "No" /* No */),
|
|
@@ -271,33 +270,30 @@ var RequestDemoQuerySchema = BaseQuerySchema.extend({
|
|
|
271
270
|
});
|
|
272
271
|
var RequestDemoCreateSchema = z3.object({
|
|
273
272
|
// Main Field Details
|
|
274
|
-
|
|
275
|
-
last_name: stringOptional("Last Name", 0, 100),
|
|
273
|
+
name: stringMandatory("Name", 3, 100),
|
|
276
274
|
mobile: stringOptional("Mobile", 0, 20),
|
|
277
|
-
country_code: stringOptional("Country Code", 0, 20),
|
|
278
275
|
email: stringOptional("Email", 0, 100),
|
|
279
|
-
message: stringOptional("Message", 0, 500)
|
|
276
|
+
message: stringOptional("Message", 0, 500),
|
|
277
|
+
city: stringOptional("City", 0, 100)
|
|
280
278
|
});
|
|
281
|
-
var toFaqPayload = (
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
message: request_demo.message || "",
|
|
279
|
+
var toFaqPayload = (row) => ({
|
|
280
|
+
name: row.name || "",
|
|
281
|
+
mobile: row.mobile || "",
|
|
282
|
+
email: row.email || "",
|
|
283
|
+
message: row.message || "",
|
|
284
|
+
city: row.city || "",
|
|
288
285
|
// Admin Details
|
|
289
|
-
admin_message:
|
|
290
|
-
admin_view:
|
|
286
|
+
admin_message: row.admin_message || "",
|
|
287
|
+
admin_view: row.admin_view || "No" /* No */,
|
|
291
288
|
// Metadata
|
|
292
|
-
status:
|
|
289
|
+
status: row.status
|
|
293
290
|
});
|
|
294
291
|
var newFaqPayload = () => ({
|
|
295
|
-
|
|
296
|
-
last_name: "",
|
|
292
|
+
name: "",
|
|
297
293
|
mobile: "",
|
|
298
|
-
country_code: "",
|
|
299
294
|
email: "",
|
|
300
295
|
message: "",
|
|
296
|
+
city: "",
|
|
301
297
|
// Admin Details
|
|
302
298
|
admin_message: "",
|
|
303
299
|
admin_view: "No" /* No */,
|
package/package.json
CHANGED