vms-nest-prisma-api-document 15.0.0 → 17.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/core/BaseResponse.d.ts +16 -1
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_login_analytics_service.js +11 -0
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/account/analytics/user_page_analytics_service.js +11 -0
- package/dist/services/account/bookmark_service.js +11 -0
- package/dist/services/account/ticket_service.js +11 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +16 -16
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +11 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +70 -72
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +19 -14
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +35 -35
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +16 -16
- package/dist/services/gps/features/geofence/gps_geofence_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +11 -11
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +14 -14
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +11 -0
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +7 -7
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +11 -0
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +22 -22
- package/dist/services/gps/features/gps_live_track_share_link_service.js +11 -0
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +15 -15
- package/dist/services/gps/features/gps_track_history_share_link_service.js +11 -0
- package/dist/services/gps/features/user_notification_preferences.service.d.ts +11 -11
- package/dist/services/gps/features/user_notification_preferences.service.js +11 -0
- package/dist/services/gps/features/user_report_preferences.service.d.ts +8 -8
- package/dist/services/gps/features/user_report_preferences.service.js +11 -0
- package/dist/services/gps/reports/gps_reports_mongo_service.js +11 -0
- package/dist/services/main/devices/master_device_service.js +11 -0
- package/dist/services/main/drivers/master_driver_service.js +11 -0
- package/dist/services/main/sims/master_sim_service.js +11 -0
- package/dist/services/main/users/user_admin_service.js +11 -0
- package/dist/services/main/users/user_organisation_service.js +11 -0
- package/dist/services/main/users/user_service.js +11 -0
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +11 -0
- package/dist/services/main/vehicle/master_vehicle_service.js +11 -0
- package/dist/services/master/device/master_device_manufacturer_service.js +11 -0
- package/dist/services/master/device/master_device_model_service.js +11 -0
- package/dist/services/master/device/master_device_type_service.js +11 -0
- package/dist/services/master/expense/master_expense_name_service.js +11 -0
- package/dist/services/master/expense/master_expense_type_service.js +11 -0
- package/dist/services/master/expense/master_fuel_company_service.js +11 -0
- package/dist/services/master/expense/master_vendor_document_type_service.js +11 -0
- package/dist/services/master/expense/master_vendor_type_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_service_task_service.js +11 -0
- package/dist/services/master/main/master_main_country_service.js +11 -0
- package/dist/services/master/main/master_main_currency_service.js +11 -0
- package/dist/services/master/main/master_main_date_format_service.js +11 -0
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_eway_bill_provider_service.js +11 -0
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.js +11 -0
- package/dist/services/master/main/master_main_industry_service.js +11 -0
- package/dist/services/master/main/master_main_landmark_service.d.ts +6 -6
- package/dist/services/master/main/master_main_landmark_service.js +11 -0
- package/dist/services/master/main/master_main_language_service.js +11 -0
- package/dist/services/master/main/master_main_sim_provider_service.js +11 -0
- package/dist/services/master/main/master_main_state_service.js +11 -0
- package/dist/services/master/main/master_main_timezone_service.js +11 -0
- package/dist/services/master/main/master_main_unit_distance_service.js +11 -0
- package/dist/services/master/main/master_main_unit_mileage_service.js +11 -0
- package/dist/services/master/main/master_main_unit_volume_service.js +11 -0
- package/dist/services/master/organisation/organisation_branch_service.js +11 -0
- package/dist/services/master/organisation/organisation_color_service.js +11 -0
- package/dist/services/master/organisation/organisation_group_service.js +11 -0
- package/dist/services/master/organisation/organisation_sub_company_service.js +11 -0
- package/dist/services/master/organisation/organisation_tag_service.js +11 -0
- package/dist/services/master/spare_part/master_spare_part_category_service.js +11 -0
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +11 -0
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +11 -0
- package/dist/services/master/trip/master_trip_party_type_service.js +11 -0
- package/dist/services/master/tyre/master_tyre_grade_service.js +11 -0
- package/dist/services/master/tyre/master_tyre_make_service.js +11 -0
- package/dist/services/master/tyre/master_tyre_model_service.js +11 -0
- package/dist/services/master/user/master_user_role_service.js +11 -0
- package/dist/services/master/user/master_user_status_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_document_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_make_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_model_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_type_service.js +11 -0
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/contact_us_detail_service.js +11 -0
- package/dist/services/website/faq_service.js +11 -0
- package/dist/services/website/static_pages_service.d.ts +1 -1
- package/dist/services/website/static_pages_service.js +11 -0
- package/dist/zod_utils/zod_base_schema.d.ts +36 -4
- package/dist/zod_utils/zod_base_schema.js +12 -0
- package/package.json +1 -1
|
@@ -45,14 +45,14 @@ declare const GPSLiveTrackShareLinkNotificationsSchema: z.ZodObject<{
|
|
|
45
45
|
status: Status;
|
|
46
46
|
organisation_id: string;
|
|
47
47
|
type: NotificationType;
|
|
48
|
-
gps_live_track_share_link_id: string;
|
|
49
48
|
to_recipients: string;
|
|
49
|
+
gps_live_track_share_link_id: string;
|
|
50
50
|
}, {
|
|
51
51
|
status: Status;
|
|
52
52
|
organisation_id: string;
|
|
53
53
|
type: NotificationType;
|
|
54
|
-
gps_live_track_share_link_id: string;
|
|
55
54
|
to_recipients: string;
|
|
55
|
+
gps_live_track_share_link_id: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
|
|
58
58
|
declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
@@ -76,51 +76,51 @@ declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
|
76
76
|
status: Status;
|
|
77
77
|
organisation_id: string;
|
|
78
78
|
type: NotificationType;
|
|
79
|
-
gps_live_track_share_link_id: string;
|
|
80
79
|
to_recipients: string;
|
|
80
|
+
gps_live_track_share_link_id: string;
|
|
81
81
|
}, {
|
|
82
82
|
status: Status;
|
|
83
83
|
organisation_id: string;
|
|
84
84
|
type: NotificationType;
|
|
85
|
-
gps_live_track_share_link_id: string;
|
|
86
85
|
to_recipients: string;
|
|
86
|
+
gps_live_track_share_link_id: string;
|
|
87
87
|
}>, "many">>>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
link_status: LinkStatus;
|
|
89
90
|
status: Status;
|
|
90
91
|
organisation_id: string;
|
|
91
92
|
vehicle_id: string;
|
|
92
|
-
link_type: LinkType;
|
|
93
|
-
location: string;
|
|
94
|
-
link_status: LinkStatus;
|
|
95
93
|
trip_id: string;
|
|
96
|
-
expire_milliseconds: number;
|
|
97
94
|
notifications: {
|
|
98
95
|
status: Status;
|
|
99
96
|
organisation_id: string;
|
|
100
97
|
type: NotificationType;
|
|
101
|
-
gps_live_track_share_link_id: string;
|
|
102
98
|
to_recipients: string;
|
|
99
|
+
gps_live_track_share_link_id: string;
|
|
103
100
|
}[];
|
|
101
|
+
link_type: LinkType;
|
|
102
|
+
location: string;
|
|
103
|
+
expire_milliseconds: number;
|
|
104
104
|
latitude?: number | undefined;
|
|
105
105
|
longitude?: number | undefined;
|
|
106
106
|
}, {
|
|
107
|
+
link_status: LinkStatus;
|
|
107
108
|
status: Status;
|
|
108
109
|
organisation_id: string;
|
|
109
110
|
vehicle_id: string;
|
|
110
|
-
link_type: LinkType;
|
|
111
|
-
link_status: LinkStatus;
|
|
112
111
|
trip_id: string;
|
|
113
|
-
|
|
114
|
-
longitude?: unknown;
|
|
115
|
-
location?: string | undefined;
|
|
116
|
-
expire_milliseconds?: unknown;
|
|
112
|
+
link_type: LinkType;
|
|
117
113
|
notifications?: {
|
|
118
114
|
status: Status;
|
|
119
115
|
organisation_id: string;
|
|
120
116
|
type: NotificationType;
|
|
121
|
-
gps_live_track_share_link_id: string;
|
|
122
117
|
to_recipients: string;
|
|
118
|
+
gps_live_track_share_link_id: string;
|
|
123
119
|
}[] | undefined;
|
|
120
|
+
latitude?: unknown;
|
|
121
|
+
longitude?: unknown;
|
|
122
|
+
location?: string | undefined;
|
|
123
|
+
expire_milliseconds?: unknown;
|
|
124
124
|
}>;
|
|
125
125
|
type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
|
|
126
126
|
declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
|
|
@@ -176,8 +176,8 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
176
176
|
link_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkType>, "many">>>;
|
|
177
177
|
link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkStatus>, "many">>>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
link_status: LinkStatus[];
|
|
179
180
|
status: Status[];
|
|
180
|
-
vehicle_ids: string[];
|
|
181
181
|
search: string;
|
|
182
182
|
paging: PAGING;
|
|
183
183
|
page_count: number;
|
|
@@ -199,14 +199,14 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
199
199
|
date_format_id: string;
|
|
200
200
|
time_zone_id: string;
|
|
201
201
|
organisation_ids: string[];
|
|
202
|
-
|
|
203
|
-
link_status: LinkStatus[];
|
|
202
|
+
vehicle_ids: string[];
|
|
204
203
|
trip_ids: string[];
|
|
204
|
+
link_type: LinkType[];
|
|
205
205
|
}, {
|
|
206
206
|
date_format_id: string;
|
|
207
207
|
time_zone_id: string;
|
|
208
|
+
link_status?: LinkStatus[] | undefined;
|
|
208
209
|
status?: Status[] | undefined;
|
|
209
|
-
vehicle_ids?: string[] | undefined;
|
|
210
210
|
search?: string | undefined;
|
|
211
211
|
paging?: PAGING | undefined;
|
|
212
212
|
page_count?: unknown;
|
|
@@ -226,9 +226,9 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
226
226
|
}[] | undefined;
|
|
227
227
|
include_master_data?: YesNo | undefined;
|
|
228
228
|
organisation_ids?: string[] | undefined;
|
|
229
|
-
|
|
230
|
-
link_status?: LinkStatus[] | undefined;
|
|
229
|
+
vehicle_ids?: string[] | undefined;
|
|
231
230
|
trip_ids?: string[] | undefined;
|
|
231
|
+
link_type?: LinkType[] | undefined;
|
|
232
232
|
}>;
|
|
233
233
|
type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
|
|
234
234
|
declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
|
|
@@ -249,6 +249,17 @@ var OrderBySchema = z2.array(
|
|
|
249
249
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
250
250
|
})
|
|
251
251
|
);
|
|
252
|
+
var BaseFileSchema = z2.object({
|
|
253
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
254
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
255
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
256
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
257
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
258
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
259
|
+
file_size: numberOptional("File Size"),
|
|
260
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
261
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
262
|
+
});
|
|
252
263
|
var BaseQuerySchema = z2.object({
|
|
253
264
|
search: stringOptional("Search", 0, 255, ""),
|
|
254
265
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -40,17 +40,17 @@ declare const GPSTrackHistoryShareLinkNotificationsSchema: z.ZodObject<{
|
|
|
40
40
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
gps_track_history_share_link_id: string;
|
|
43
44
|
status: Status;
|
|
44
45
|
organisation_id: string;
|
|
45
46
|
type: NotificationType;
|
|
46
47
|
to_recipients: string;
|
|
47
|
-
gps_track_history_share_link_id: string;
|
|
48
48
|
}, {
|
|
49
|
+
gps_track_history_share_link_id: string;
|
|
49
50
|
status: Status;
|
|
50
51
|
organisation_id: string;
|
|
51
52
|
type: NotificationType;
|
|
52
53
|
to_recipients: string;
|
|
53
|
-
gps_track_history_share_link_id: string;
|
|
54
54
|
}>;
|
|
55
55
|
type GPSTrackHistoryShareLinkNotificationsDTO = z.infer<typeof GPSTrackHistoryShareLinkNotificationsSchema>;
|
|
56
56
|
declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
@@ -68,47 +68,47 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
|
68
68
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
69
69
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
70
70
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
71
|
+
gps_track_history_share_link_id: string;
|
|
71
72
|
status: Status;
|
|
72
73
|
organisation_id: string;
|
|
73
74
|
type: NotificationType;
|
|
74
75
|
to_recipients: string;
|
|
75
|
-
gps_track_history_share_link_id: string;
|
|
76
76
|
}, {
|
|
77
|
+
gps_track_history_share_link_id: string;
|
|
77
78
|
status: Status;
|
|
78
79
|
organisation_id: string;
|
|
79
80
|
type: NotificationType;
|
|
80
81
|
to_recipients: string;
|
|
81
|
-
gps_track_history_share_link_id: string;
|
|
82
82
|
}>, "many">>>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
from_date_time: string;
|
|
85
|
+
to_date_time: string;
|
|
86
|
+
link_status: TrackHistoryLinkStatus;
|
|
84
87
|
status: Status;
|
|
85
88
|
organisation_id: string;
|
|
86
89
|
vehicle_id: string;
|
|
87
|
-
link_status: TrackHistoryLinkStatus;
|
|
88
90
|
trip_id: string;
|
|
89
91
|
notifications: {
|
|
92
|
+
gps_track_history_share_link_id: string;
|
|
90
93
|
status: Status;
|
|
91
94
|
organisation_id: string;
|
|
92
95
|
type: NotificationType;
|
|
93
96
|
to_recipients: string;
|
|
94
|
-
gps_track_history_share_link_id: string;
|
|
95
97
|
}[];
|
|
98
|
+
}, {
|
|
96
99
|
from_date_time: string;
|
|
97
100
|
to_date_time: string;
|
|
98
|
-
|
|
101
|
+
link_status: TrackHistoryLinkStatus;
|
|
99
102
|
status: Status;
|
|
100
103
|
organisation_id: string;
|
|
101
104
|
vehicle_id: string;
|
|
102
|
-
link_status: TrackHistoryLinkStatus;
|
|
103
105
|
trip_id: string;
|
|
104
|
-
from_date_time: string;
|
|
105
|
-
to_date_time: string;
|
|
106
106
|
notifications?: {
|
|
107
|
+
gps_track_history_share_link_id: string;
|
|
107
108
|
status: Status;
|
|
108
109
|
organisation_id: string;
|
|
109
110
|
type: NotificationType;
|
|
110
111
|
to_recipients: string;
|
|
111
|
-
gps_track_history_share_link_id: string;
|
|
112
112
|
}[] | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
|
|
@@ -148,8 +148,8 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
148
148
|
trip_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
149
149
|
link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof TrackHistoryLinkStatus>, "many">>>;
|
|
150
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
link_status: TrackHistoryLinkStatus[];
|
|
151
152
|
status: Status[];
|
|
152
|
-
vehicle_ids: string[];
|
|
153
153
|
search: string;
|
|
154
154
|
paging: PAGING;
|
|
155
155
|
page_count: number;
|
|
@@ -171,13 +171,13 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
171
171
|
date_format_id: string;
|
|
172
172
|
time_zone_id: string;
|
|
173
173
|
organisation_ids: string[];
|
|
174
|
-
|
|
174
|
+
vehicle_ids: string[];
|
|
175
175
|
trip_ids: string[];
|
|
176
176
|
}, {
|
|
177
177
|
date_format_id: string;
|
|
178
178
|
time_zone_id: string;
|
|
179
|
+
link_status?: TrackHistoryLinkStatus[] | undefined;
|
|
179
180
|
status?: Status[] | undefined;
|
|
180
|
-
vehicle_ids?: string[] | undefined;
|
|
181
181
|
search?: string | undefined;
|
|
182
182
|
paging?: PAGING | undefined;
|
|
183
183
|
page_count?: unknown;
|
|
@@ -197,7 +197,7 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
197
197
|
}[] | undefined;
|
|
198
198
|
include_master_data?: YesNo | undefined;
|
|
199
199
|
organisation_ids?: string[] | undefined;
|
|
200
|
-
|
|
200
|
+
vehicle_ids?: string[] | undefined;
|
|
201
201
|
trip_ids?: string[] | undefined;
|
|
202
202
|
}>;
|
|
203
203
|
type GPSTrackHistoryShareLinkQueryDTO = z.infer<typeof GPSTrackHistoryShareLinkQuerySchema>;
|
|
@@ -214,6 +214,17 @@ var OrderBySchema = z2.array(
|
|
|
214
214
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
215
215
|
})
|
|
216
216
|
);
|
|
217
|
+
var BaseFileSchema = z2.object({
|
|
218
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
219
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
220
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
221
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
222
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
223
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
224
|
+
file_size: numberOptional("File Size"),
|
|
225
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
226
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
227
|
+
});
|
|
217
228
|
var BaseQuerySchema = z2.object({
|
|
218
229
|
search: stringOptional("Search", 0, 255, ""),
|
|
219
230
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -64,6 +64,10 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
|
|
|
64
64
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
65
65
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
status: Status;
|
|
68
|
+
organisation_id: string;
|
|
69
|
+
vehicle_ids: string[];
|
|
70
|
+
user_ids: string[];
|
|
67
71
|
notification_name: string;
|
|
68
72
|
notification_status: OnOff;
|
|
69
73
|
notification_types: NotificationType[];
|
|
@@ -72,23 +76,19 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
|
|
|
72
76
|
email_ids: string;
|
|
73
77
|
cc_email_ids: string;
|
|
74
78
|
all_vehicles: YesNo;
|
|
79
|
+
}, {
|
|
75
80
|
status: Status;
|
|
76
81
|
organisation_id: string;
|
|
77
|
-
user_ids: string[];
|
|
78
|
-
vehicle_ids: string[];
|
|
79
|
-
}, {
|
|
80
82
|
notification_name: string;
|
|
81
83
|
notification_status: OnOff;
|
|
82
84
|
all_vehicles: YesNo;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
vehicle_ids?: string[] | undefined;
|
|
86
|
+
user_ids?: string[] | undefined;
|
|
85
87
|
notification_types?: NotificationType[] | undefined;
|
|
86
88
|
notification_list?: NotificationPreference[] | undefined;
|
|
87
89
|
mobile_numbers?: string | undefined;
|
|
88
90
|
email_ids?: string | undefined;
|
|
89
91
|
cc_email_ids?: string | undefined;
|
|
90
|
-
user_ids?: string[] | undefined;
|
|
91
|
-
vehicle_ids?: string[] | undefined;
|
|
92
92
|
}>;
|
|
93
93
|
type UserNotificationPreferencesDTO = z.infer<typeof UserNotificationPreferencesSchema>;
|
|
94
94
|
declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
@@ -127,8 +127,6 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
127
127
|
notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
128
128
|
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
notification_status: OnOff[];
|
|
131
|
-
all_vehicles: YesNo[];
|
|
132
130
|
status: Status[];
|
|
133
131
|
search: string;
|
|
134
132
|
paging: PAGING;
|
|
@@ -151,12 +149,12 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
151
149
|
date_format_id: string;
|
|
152
150
|
time_zone_id: string;
|
|
153
151
|
organisation_ids: string[];
|
|
152
|
+
notification_status: OnOff[];
|
|
153
|
+
all_vehicles: YesNo[];
|
|
154
154
|
notification_preference_ids: string[];
|
|
155
155
|
}, {
|
|
156
156
|
date_format_id: string;
|
|
157
157
|
time_zone_id: string;
|
|
158
|
-
notification_status?: OnOff[] | undefined;
|
|
159
|
-
all_vehicles?: YesNo[] | undefined;
|
|
160
158
|
status?: Status[] | undefined;
|
|
161
159
|
search?: string | undefined;
|
|
162
160
|
paging?: PAGING | undefined;
|
|
@@ -177,6 +175,8 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
177
175
|
}[] | undefined;
|
|
178
176
|
include_master_data?: YesNo | undefined;
|
|
179
177
|
organisation_ids?: string[] | undefined;
|
|
178
|
+
notification_status?: OnOff[] | undefined;
|
|
179
|
+
all_vehicles?: YesNo[] | undefined;
|
|
180
180
|
notification_preference_ids?: string[] | undefined;
|
|
181
181
|
}>;
|
|
182
182
|
type UserNotificationPreferencesQueryDTO = z.infer<typeof UserNotificationPreferencesQuerySchema>;
|
|
@@ -234,6 +234,17 @@ var OrderBySchema = z2.array(
|
|
|
234
234
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
235
235
|
})
|
|
236
236
|
);
|
|
237
|
+
var BaseFileSchema = z2.object({
|
|
238
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
239
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
240
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
241
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
242
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
243
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
244
|
+
file_size: numberOptional("File Size"),
|
|
245
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
246
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
247
|
+
});
|
|
237
248
|
var BaseQuerySchema = z2.object({
|
|
238
249
|
search: stringOptional("Search", 0, 255, ""),
|
|
239
250
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -48,25 +48,25 @@ declare const UserReportPreferencesSchema: z.ZodObject<{
|
|
|
48
48
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
49
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
email_ids: string;
|
|
52
|
-
cc_email_ids: string;
|
|
53
|
-
all_vehicles: YesNo;
|
|
54
51
|
status: Status;
|
|
55
52
|
organisation_id: string;
|
|
56
53
|
vehicle_ids: string[];
|
|
54
|
+
email_ids: string;
|
|
55
|
+
cc_email_ids: string;
|
|
56
|
+
all_vehicles: YesNo;
|
|
57
57
|
report_name: string;
|
|
58
58
|
report_status: OnOff;
|
|
59
59
|
report_types: ReportType[];
|
|
60
60
|
report_list: ReportPreference[];
|
|
61
61
|
}, {
|
|
62
|
-
email_ids: string;
|
|
63
|
-
all_vehicles: YesNo;
|
|
64
62
|
status: Status;
|
|
65
63
|
organisation_id: string;
|
|
64
|
+
email_ids: string;
|
|
65
|
+
all_vehicles: YesNo;
|
|
66
66
|
report_name: string;
|
|
67
67
|
report_status: OnOff;
|
|
68
|
-
cc_email_ids?: string | undefined;
|
|
69
68
|
vehicle_ids?: string[] | undefined;
|
|
69
|
+
cc_email_ids?: string | undefined;
|
|
70
70
|
report_types?: ReportType[] | undefined;
|
|
71
71
|
report_list?: ReportPreference[] | undefined;
|
|
72
72
|
}>;
|
|
@@ -107,7 +107,6 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
107
107
|
report_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
108
108
|
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
all_vehicles: YesNo[];
|
|
111
110
|
status: Status[];
|
|
112
111
|
search: string;
|
|
113
112
|
paging: PAGING;
|
|
@@ -130,12 +129,12 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
130
129
|
date_format_id: string;
|
|
131
130
|
time_zone_id: string;
|
|
132
131
|
organisation_ids: string[];
|
|
132
|
+
all_vehicles: YesNo[];
|
|
133
133
|
report_status: OnOff[];
|
|
134
134
|
report_preference_ids: string[];
|
|
135
135
|
}, {
|
|
136
136
|
date_format_id: string;
|
|
137
137
|
time_zone_id: string;
|
|
138
|
-
all_vehicles?: YesNo[] | undefined;
|
|
139
138
|
status?: Status[] | undefined;
|
|
140
139
|
search?: string | undefined;
|
|
141
140
|
paging?: PAGING | undefined;
|
|
@@ -156,6 +155,7 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
156
155
|
}[] | undefined;
|
|
157
156
|
include_master_data?: YesNo | undefined;
|
|
158
157
|
organisation_ids?: string[] | undefined;
|
|
158
|
+
all_vehicles?: YesNo[] | undefined;
|
|
159
159
|
report_status?: OnOff[] | undefined;
|
|
160
160
|
report_preference_ids?: string[] | undefined;
|
|
161
161
|
}>;
|
|
@@ -232,6 +232,17 @@ var OrderBySchema = z2.array(
|
|
|
232
232
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
233
233
|
})
|
|
234
234
|
);
|
|
235
|
+
var BaseFileSchema = z2.object({
|
|
236
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
237
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
238
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
239
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
240
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
241
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
242
|
+
file_size: numberOptional("File Size"),
|
|
243
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
244
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
245
|
+
});
|
|
235
246
|
var BaseQuerySchema = z2.object({
|
|
236
247
|
search: stringOptional("Search", 0, 255, ""),
|
|
237
248
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -419,6 +419,17 @@ var OrderBySchema = z2.array(
|
|
|
419
419
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
420
420
|
})
|
|
421
421
|
);
|
|
422
|
+
var BaseFileSchema = z2.object({
|
|
423
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
424
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
425
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
426
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
427
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
428
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
429
|
+
file_size: numberOptional("File Size"),
|
|
430
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
431
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
432
|
+
});
|
|
422
433
|
var BaseQuerySchema = z2.object({
|
|
423
434
|
search: stringOptional("Search", 0, 255, ""),
|
|
424
435
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -206,6 +206,17 @@ var OrderBySchema = z2.array(
|
|
|
206
206
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
207
207
|
})
|
|
208
208
|
);
|
|
209
|
+
var BaseFileSchema = z2.object({
|
|
210
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
211
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
212
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
213
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
214
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
215
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
216
|
+
file_size: numberOptional("File Size"),
|
|
217
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
218
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
219
|
+
});
|
|
209
220
|
var BaseQuerySchema = z2.object({
|
|
210
221
|
search: stringOptional("Search", 0, 255, ""),
|
|
211
222
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -193,6 +193,17 @@ var OrderBySchema = z2.array(
|
|
|
193
193
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
194
194
|
})
|
|
195
195
|
);
|
|
196
|
+
var BaseFileSchema = z2.object({
|
|
197
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
198
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
199
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
200
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
201
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
202
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
203
|
+
file_size: numberOptional("File Size"),
|
|
204
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
205
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
206
|
+
});
|
|
196
207
|
var BaseQuerySchema = z2.object({
|
|
197
208
|
search: stringOptional("Search", 0, 255, ""),
|
|
198
209
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -201,6 +201,17 @@ var OrderBySchema = z2.array(
|
|
|
201
201
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
202
202
|
})
|
|
203
203
|
);
|
|
204
|
+
var BaseFileSchema = z2.object({
|
|
205
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
206
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
207
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
208
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
209
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
210
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
211
|
+
file_size: numberOptional("File Size"),
|
|
212
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
213
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
214
|
+
});
|
|
204
215
|
var BaseQuerySchema = z2.object({
|
|
205
216
|
search: stringOptional("Search", 0, 255, ""),
|
|
206
217
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -194,6 +194,17 @@ var OrderBySchema = z2.array(
|
|
|
194
194
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
195
195
|
})
|
|
196
196
|
);
|
|
197
|
+
var BaseFileSchema = z2.object({
|
|
198
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
199
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
200
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
201
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
202
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
203
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
204
|
+
file_size: numberOptional("File Size"),
|
|
205
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
206
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
207
|
+
});
|
|
197
208
|
var BaseQuerySchema = z2.object({
|
|
198
209
|
search: stringOptional("Search", 0, 255, ""),
|
|
199
210
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -216,6 +216,17 @@ var OrderBySchema = z2.array(
|
|
|
216
216
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
217
217
|
})
|
|
218
218
|
);
|
|
219
|
+
var BaseFileSchema = z2.object({
|
|
220
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
221
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
222
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
223
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
224
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
225
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
226
|
+
file_size: numberOptional("File Size"),
|
|
227
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
228
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
229
|
+
});
|
|
219
230
|
var BaseQuerySchema = z2.object({
|
|
220
231
|
search: stringOptional("Search", 0, 255, ""),
|
|
221
232
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -193,6 +193,17 @@ var OrderBySchema = z2.array(
|
|
|
193
193
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
194
194
|
})
|
|
195
195
|
);
|
|
196
|
+
var BaseFileSchema = z2.object({
|
|
197
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
198
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
199
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
200
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
201
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
202
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
203
|
+
file_size: numberOptional("File Size"),
|
|
204
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
205
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
206
|
+
});
|
|
196
207
|
var BaseQuerySchema = z2.object({
|
|
197
208
|
search: stringOptional("Search", 0, 255, ""),
|
|
198
209
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -238,6 +238,17 @@ var OrderBySchema = z2.array(
|
|
|
238
238
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
239
239
|
})
|
|
240
240
|
);
|
|
241
|
+
var BaseFileSchema = z2.object({
|
|
242
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
243
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
244
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
245
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
246
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
247
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
248
|
+
file_size: numberOptional("File Size"),
|
|
249
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
250
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
251
|
+
});
|
|
241
252
|
var BaseQuerySchema = z2.object({
|
|
242
253
|
search: stringOptional("Search", 0, 255, ""),
|
|
243
254
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -275,6 +275,17 @@ var OrderBySchema = z2.array(
|
|
|
275
275
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
276
276
|
})
|
|
277
277
|
);
|
|
278
|
+
var BaseFileSchema = z2.object({
|
|
279
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
280
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
281
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
282
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
283
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
284
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
285
|
+
file_size: numberOptional("File Size"),
|
|
286
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
287
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
288
|
+
});
|
|
278
289
|
var BaseQuerySchema = z2.object({
|
|
279
290
|
search: stringOptional("Search", 0, 255, ""),
|
|
280
291
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -189,6 +189,17 @@ var OrderBySchema = z2.array(
|
|
|
189
189
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
190
190
|
})
|
|
191
191
|
);
|
|
192
|
+
var BaseFileSchema = z2.object({
|
|
193
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
194
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
195
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
196
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
197
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
198
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
199
|
+
file_size: numberOptional("File Size"),
|
|
200
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
201
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
202
|
+
});
|
|
192
203
|
var BaseQuerySchema = z2.object({
|
|
193
204
|
search: stringOptional("Search", 0, 255, ""),
|
|
194
205
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -193,6 +193,17 @@ var OrderBySchema = z2.array(
|
|
|
193
193
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
194
194
|
})
|
|
195
195
|
);
|
|
196
|
+
var BaseFileSchema = z2.object({
|
|
197
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
198
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
199
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
200
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
201
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
202
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
203
|
+
file_size: numberOptional("File Size"),
|
|
204
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
205
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
206
|
+
});
|
|
196
207
|
var BaseQuerySchema = z2.object({
|
|
197
208
|
search: stringOptional("Search", 0, 255, ""),
|
|
198
209
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|