vms-nest-prisma-api-document 15.0.0 → 16.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.js +11 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +29 -31
- 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 +6 -6
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +5 -5
- 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 +6 -6
- 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 +1 -1
- 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.d.ts +46 -46
- 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.js +11 -0
- 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.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.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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FileType, Status } from './Enums.js';
|
|
2
|
+
|
|
1
3
|
interface PageData {
|
|
2
4
|
total_count: number;
|
|
3
5
|
page_count: number;
|
|
@@ -45,6 +47,19 @@ interface AWSPresignedUrl {
|
|
|
45
47
|
file_url: string;
|
|
46
48
|
file_key: string;
|
|
47
49
|
}
|
|
50
|
+
interface BaseCommionFile extends Record<string, unknown> {
|
|
51
|
+
usage_type?: string;
|
|
52
|
+
file_type: FileType;
|
|
53
|
+
file_url?: string;
|
|
54
|
+
file_key?: string;
|
|
55
|
+
file_name?: string;
|
|
56
|
+
file_description?: string;
|
|
57
|
+
file_size?: number;
|
|
58
|
+
file_metadata?: Record<string, unknown>;
|
|
59
|
+
status: Status;
|
|
60
|
+
added_date_time: string;
|
|
61
|
+
modified_date_time: string;
|
|
62
|
+
}
|
|
48
63
|
declare const r_log: (data?: {}) => {};
|
|
49
64
|
|
|
50
|
-
export { type AWSPresignedUrl, type BR, type FBR, type PageData, type SBR, type SummaryData, r_log };
|
|
65
|
+
export { type AWSPresignedUrl, type BR, type BaseCommionFile, type FBR, type PageData, type SBR, type SummaryData, r_log };
|
|
@@ -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
|
-
login_from: LoginFrom;
|
|
26
25
|
country_id: string;
|
|
26
|
+
login_from: LoginFrom;
|
|
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
|
-
login_from: LoginFrom;
|
|
33
32
|
country_id: string;
|
|
33
|
+
login_from: LoginFrom;
|
|
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;
|
|
51
52
|
search: string;
|
|
52
53
|
paging: PAGING;
|
|
53
54
|
page_count: number;
|
|
54
55
|
page_index: number;
|
|
55
|
-
login_from: LoginFrom;
|
|
56
56
|
date_format_id: string;
|
|
57
57
|
time_zone_id: string;
|
|
58
58
|
user_ids: string[];
|
|
@@ -181,6 +181,17 @@ var OrderBySchema = z2.array(
|
|
|
181
181
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
182
182
|
})
|
|
183
183
|
);
|
|
184
|
+
var BaseFileSchema = z2.object({
|
|
185
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
186
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
187
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
188
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
189
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
190
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
191
|
+
file_size: numberOptional("File Size"),
|
|
192
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
193
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
194
|
+
});
|
|
184
195
|
var BaseQuerySchema = z2.object({
|
|
185
196
|
search: stringOptional("Search", 0, 255, ""),
|
|
186
197
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -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;
|
|
46
47
|
search: string;
|
|
47
48
|
paging: PAGING;
|
|
48
49
|
page_count: number;
|
|
49
50
|
page_index: number;
|
|
50
|
-
login_from: LoginFrom;
|
|
51
51
|
date_format_id: string;
|
|
52
52
|
time_zone_id: string;
|
|
53
53
|
user_ids: string[];
|
|
@@ -181,6 +181,17 @@ var OrderBySchema = z2.array(
|
|
|
181
181
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
182
182
|
})
|
|
183
183
|
);
|
|
184
|
+
var BaseFileSchema = z2.object({
|
|
185
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
186
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
187
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
188
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
189
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
190
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
191
|
+
file_size: numberOptional("File Size"),
|
|
192
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
193
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
194
|
+
});
|
|
184
195
|
var BaseQuerySchema = z2.object({
|
|
185
196
|
search: stringOptional("Search", 0, 255, ""),
|
|
186
197
|
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: stringOptional("Usage Type", 0, 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),
|
|
@@ -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: stringOptional("Usage Type", 0, 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),
|
|
@@ -239,6 +239,17 @@ var OrderBySchema = z2.array(
|
|
|
239
239
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
240
240
|
})
|
|
241
241
|
);
|
|
242
|
+
var BaseFileSchema = z2.object({
|
|
243
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
244
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
245
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
246
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
247
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
248
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
249
|
+
file_size: numberOptional("File Size"),
|
|
250
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
251
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
252
|
+
});
|
|
242
253
|
var BaseQuerySchema = z2.object({
|
|
243
254
|
search: stringOptional("Search", 0, 255, ""),
|
|
244
255
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GPSFuelApproveStatus, RefillEntrySource, RefillMethod, PaymentMode, PaymentStatus, YesNo, Status, FileType, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
|
|
2
|
-
import { FBR, SBR, BR, AWSPresignedUrl } from '../../../core/BaseResponse.js';
|
|
2
|
+
import { BaseCommionFile, FBR, SBR, BR, AWSPresignedUrl } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
|
|
5
5
|
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice, d as MasterVehicleFuelType, e as MasterVehicleFuelUnit } from '../../../user_organisation_service-djKCoZTQ.js';
|
|
@@ -82,26 +82,13 @@ interface FleetFuelRefill extends Record<string, unknown> {
|
|
|
82
82
|
FleetFuelRefillFile?: number;
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
interface FleetFuelRefillFile extends
|
|
85
|
+
interface FleetFuelRefillFile extends BaseCommionFile {
|
|
86
86
|
fleet_fuel_refill_file_id: string;
|
|
87
|
-
file_type: FileType;
|
|
88
|
-
file_url?: string;
|
|
89
|
-
file_key?: string;
|
|
90
|
-
file_name?: string;
|
|
91
|
-
file_description?: string;
|
|
92
|
-
file_size?: number;
|
|
93
|
-
file_metadata?: Record<string, unknown>;
|
|
94
|
-
status: Status;
|
|
95
|
-
added_date_time: string;
|
|
96
|
-
modified_date_time: string;
|
|
97
|
-
organisation_id: string;
|
|
98
|
-
UserOrganisation?: UserOrganisation;
|
|
99
87
|
fleet_fuel_refill_id: string;
|
|
100
|
-
|
|
88
|
+
organisation_id: string;
|
|
101
89
|
}
|
|
102
90
|
declare const FleetFuelRefillFileSchema: z.ZodObject<{
|
|
103
|
-
|
|
104
|
-
fleet_fuel_refill_id: z.ZodEffects<z.ZodString, string, string>;
|
|
91
|
+
usage_type: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
105
92
|
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
106
93
|
file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
107
94
|
file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -110,25 +97,30 @@ declare const FleetFuelRefillFileSchema: z.ZodObject<{
|
|
|
110
97
|
file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
111
98
|
file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
112
99
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
100
|
+
} & {
|
|
101
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
102
|
+
fleet_fuel_refill_id: z.ZodEffects<z.ZodString, string, string>;
|
|
113
103
|
}, "strip", z.ZodTypeAny, {
|
|
114
104
|
status: Status;
|
|
115
105
|
organisation_id: string;
|
|
116
|
-
|
|
106
|
+
usage_type: string;
|
|
117
107
|
file_type: FileType;
|
|
118
|
-
fleet_fuel_refill_id: string;
|
|
119
108
|
file_url: string;
|
|
120
109
|
file_key: string;
|
|
110
|
+
file_name: string;
|
|
121
111
|
file_description: string;
|
|
122
112
|
file_size: number;
|
|
123
113
|
file_metadata: Record<string, any>;
|
|
114
|
+
fleet_fuel_refill_id: string;
|
|
124
115
|
}, {
|
|
125
116
|
status: Status;
|
|
126
117
|
organisation_id: string;
|
|
127
118
|
file_type: FileType;
|
|
128
119
|
fleet_fuel_refill_id: string;
|
|
129
|
-
|
|
120
|
+
usage_type?: string | undefined;
|
|
130
121
|
file_url?: string | undefined;
|
|
131
122
|
file_key?: string | undefined;
|
|
123
|
+
file_name?: string | undefined;
|
|
132
124
|
file_description?: string | undefined;
|
|
133
125
|
file_size?: unknown;
|
|
134
126
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -175,9 +167,8 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
175
167
|
is_previous_entries_missed: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
176
168
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
177
169
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
fleet_fuel_refill_id: z.ZodEffects<z.ZodString, string, string>;
|
|
170
|
+
FleetFuelRefillFile: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
171
|
+
usage_type: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
181
172
|
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
182
173
|
file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
183
174
|
file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -186,25 +177,30 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
186
177
|
file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
187
178
|
file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
188
179
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
180
|
+
} & {
|
|
181
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
182
|
+
fleet_fuel_refill_id: z.ZodEffects<z.ZodString, string, string>;
|
|
189
183
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
190
184
|
status: Status;
|
|
191
185
|
organisation_id: string;
|
|
192
|
-
|
|
186
|
+
usage_type: string;
|
|
193
187
|
file_type: FileType;
|
|
194
|
-
fleet_fuel_refill_id: string;
|
|
195
188
|
file_url: string;
|
|
196
189
|
file_key: string;
|
|
190
|
+
file_name: string;
|
|
197
191
|
file_description: string;
|
|
198
192
|
file_size: number;
|
|
199
193
|
file_metadata: Record<string, any>;
|
|
194
|
+
fleet_fuel_refill_id: string;
|
|
200
195
|
}, {
|
|
201
196
|
status: Status;
|
|
202
197
|
organisation_id: string;
|
|
203
198
|
file_type: FileType;
|
|
204
199
|
fleet_fuel_refill_id: string;
|
|
205
|
-
|
|
200
|
+
usage_type?: string | undefined;
|
|
206
201
|
file_url?: string | undefined;
|
|
207
202
|
file_key?: string | undefined;
|
|
203
|
+
file_name?: string | undefined;
|
|
208
204
|
file_description?: string | undefined;
|
|
209
205
|
file_size?: unknown;
|
|
210
206
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -241,17 +237,18 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
241
237
|
is_previous_entries_missed: YesNo;
|
|
242
238
|
vendor_id: string;
|
|
243
239
|
fuel_station_id: string;
|
|
244
|
-
|
|
240
|
+
FleetFuelRefillFile: {
|
|
245
241
|
status: Status;
|
|
246
242
|
organisation_id: string;
|
|
247
|
-
|
|
243
|
+
usage_type: string;
|
|
248
244
|
file_type: FileType;
|
|
249
|
-
fleet_fuel_refill_id: string;
|
|
250
245
|
file_url: string;
|
|
251
246
|
file_key: string;
|
|
247
|
+
file_name: string;
|
|
252
248
|
file_description: string;
|
|
253
249
|
file_size: number;
|
|
254
250
|
file_metadata: Record<string, any>;
|
|
251
|
+
fleet_fuel_refill_id: string;
|
|
255
252
|
}[];
|
|
256
253
|
latitude?: number | undefined;
|
|
257
254
|
longitude?: number | undefined;
|
|
@@ -303,14 +300,15 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
303
300
|
fuel_card_number?: string | undefined;
|
|
304
301
|
payment_notes?: string | undefined;
|
|
305
302
|
tank_size?: unknown;
|
|
306
|
-
|
|
303
|
+
FleetFuelRefillFile?: {
|
|
307
304
|
status: Status;
|
|
308
305
|
organisation_id: string;
|
|
309
306
|
file_type: FileType;
|
|
310
307
|
fleet_fuel_refill_id: string;
|
|
311
|
-
|
|
308
|
+
usage_type?: string | undefined;
|
|
312
309
|
file_url?: string | undefined;
|
|
313
310
|
file_key?: string | undefined;
|
|
311
|
+
file_name?: string | undefined;
|
|
314
312
|
file_description?: string | undefined;
|
|
315
313
|
file_size?: unknown;
|
|
316
314
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -290,6 +290,17 @@ var OrderBySchema = z2.array(
|
|
|
290
290
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
291
291
|
})
|
|
292
292
|
);
|
|
293
|
+
var BaseFileSchema = z2.object({
|
|
294
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
295
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
296
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
297
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
298
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
299
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
300
|
+
file_size: numberOptional("File Size"),
|
|
301
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
302
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
303
|
+
});
|
|
293
304
|
var BaseQuerySchema = z2.object({
|
|
294
305
|
search: stringOptional("Search", 0, 255, ""),
|
|
295
306
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -340,19 +351,11 @@ var ENDPOINTS = {
|
|
|
340
351
|
create_file: `${URL}/create_file`,
|
|
341
352
|
remove_file: (id) => `${URL}/remove_file/${id}`
|
|
342
353
|
};
|
|
343
|
-
var FleetFuelRefillFileSchema =
|
|
344
|
-
organisation_id:
|
|
354
|
+
var FleetFuelRefillFileSchema = BaseFileSchema.extend({
|
|
355
|
+
organisation_id: single_select_optional("UserOrganisation"),
|
|
345
356
|
// ✅ Single-Selection -> UserOrganisation
|
|
346
|
-
fleet_fuel_refill_id:
|
|
357
|
+
fleet_fuel_refill_id: single_select_optional("FleetFuelRefill")
|
|
347
358
|
// ✅ Single-Selection -> FleetFuelRefill
|
|
348
|
-
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
349
|
-
file_url: stringOptional("File URL", 0, 300),
|
|
350
|
-
file_key: stringOptional("File Key", 0, 300),
|
|
351
|
-
file_name: stringOptional("File Name", 0, 300),
|
|
352
|
-
file_description: stringOptional("File Description", 0, 2e3),
|
|
353
|
-
file_size: numberOptional("File Size"),
|
|
354
|
-
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
355
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
356
359
|
});
|
|
357
360
|
var FleetFuelRefillSchema = z3.object({
|
|
358
361
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
@@ -438,7 +441,7 @@ var FleetFuelRefillSchema = z3.object({
|
|
|
438
441
|
// Other
|
|
439
442
|
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
440
443
|
time_zone_id: single_select_mandatory("MasterMainTimeZone"),
|
|
441
|
-
|
|
444
|
+
FleetFuelRefillFile: nestedArrayOfObjectsOptional(
|
|
442
445
|
"Refill Files",
|
|
443
446
|
FleetFuelRefillFileSchema,
|
|
444
447
|
[]
|
|
@@ -525,9 +528,11 @@ var toFleetFuelRefillPayload = (row) => ({
|
|
|
525
528
|
status: row.status,
|
|
526
529
|
time_zone_id: "",
|
|
527
530
|
// Needs to be provided manually
|
|
528
|
-
|
|
531
|
+
FleetFuelRefillFile: row.FleetFuelRefillFile?.map((file) => ({
|
|
529
532
|
organisation_id: file.organisation_id ?? "",
|
|
530
533
|
fleet_fuel_refill_id: file.fleet_fuel_refill_id ?? "",
|
|
534
|
+
fleet_fuel_refill_file_id: file.fleet_fuel_refill_file_id ?? "",
|
|
535
|
+
usage_type: file.usage_type || "",
|
|
531
536
|
file_type: file.file_type,
|
|
532
537
|
file_url: file.file_url || "",
|
|
533
538
|
file_key: file.file_key || "",
|
|
@@ -579,7 +584,7 @@ var newFleetFuelRefillPayload = () => ({
|
|
|
579
584
|
is_previous_entries_missed: "No" /* No */,
|
|
580
585
|
status: "Active" /* Active */,
|
|
581
586
|
time_zone_id: "",
|
|
582
|
-
|
|
587
|
+
FleetFuelRefillFile: []
|
|
583
588
|
});
|
|
584
589
|
var findFleetFuelRefill = async (data) => {
|
|
585
590
|
return apiPost(ENDPOINTS.find, data);
|
|
@@ -96,10 +96,10 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
status: Status;
|
|
98
98
|
organisation_id: string;
|
|
99
|
-
file_name: string;
|
|
100
99
|
file_type: FileType;
|
|
101
100
|
file_url: string;
|
|
102
101
|
file_key: string;
|
|
102
|
+
file_name: string;
|
|
103
103
|
file_description: string;
|
|
104
104
|
file_size: number;
|
|
105
105
|
file_metadata: Record<string, any>;
|
|
@@ -109,9 +109,9 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
109
109
|
organisation_id: string;
|
|
110
110
|
file_type: FileType;
|
|
111
111
|
fleet_fuel_removal_id: string;
|
|
112
|
-
file_name?: string | undefined;
|
|
113
112
|
file_url?: string | undefined;
|
|
114
113
|
file_key?: string | undefined;
|
|
114
|
+
file_name?: string | undefined;
|
|
115
115
|
file_description?: string | undefined;
|
|
116
116
|
file_size?: unknown;
|
|
117
117
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -160,10 +160,10 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
160
160
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
161
161
|
status: Status;
|
|
162
162
|
organisation_id: string;
|
|
163
|
-
file_name: string;
|
|
164
163
|
file_type: FileType;
|
|
165
164
|
file_url: string;
|
|
166
165
|
file_key: string;
|
|
166
|
+
file_name: string;
|
|
167
167
|
file_description: string;
|
|
168
168
|
file_size: number;
|
|
169
169
|
file_metadata: Record<string, any>;
|
|
@@ -173,9 +173,9 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
173
173
|
organisation_id: string;
|
|
174
174
|
file_type: FileType;
|
|
175
175
|
fleet_fuel_removal_id: string;
|
|
176
|
-
file_name?: string | undefined;
|
|
177
176
|
file_url?: string | undefined;
|
|
178
177
|
file_key?: string | undefined;
|
|
178
|
+
file_name?: string | undefined;
|
|
179
179
|
file_description?: string | undefined;
|
|
180
180
|
file_size?: unknown;
|
|
181
181
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -203,10 +203,10 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
203
203
|
removal_files: {
|
|
204
204
|
status: Status;
|
|
205
205
|
organisation_id: string;
|
|
206
|
-
file_name: string;
|
|
207
206
|
file_type: FileType;
|
|
208
207
|
file_url: string;
|
|
209
208
|
file_key: string;
|
|
209
|
+
file_name: string;
|
|
210
210
|
file_description: string;
|
|
211
211
|
file_size: number;
|
|
212
212
|
file_metadata: Record<string, any>;
|
|
@@ -255,9 +255,9 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
255
255
|
organisation_id: string;
|
|
256
256
|
file_type: FileType;
|
|
257
257
|
fleet_fuel_removal_id: string;
|
|
258
|
-
file_name?: string | undefined;
|
|
259
258
|
file_url?: string | undefined;
|
|
260
259
|
file_key?: string | undefined;
|
|
260
|
+
file_name?: string | undefined;
|
|
261
261
|
file_description?: string | undefined;
|
|
262
262
|
file_size?: unknown;
|
|
263
263
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -264,6 +264,17 @@ var OrderBySchema = z2.array(
|
|
|
264
264
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
265
265
|
})
|
|
266
266
|
);
|
|
267
|
+
var BaseFileSchema = z2.object({
|
|
268
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
269
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
270
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
271
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
272
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
273
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
274
|
+
file_size: numberOptional("File Size"),
|
|
275
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
276
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
277
|
+
});
|
|
267
278
|
var BaseQuerySchema = z2.object({
|
|
268
279
|
search: stringOptional("Search", 0, 255, ""),
|
|
269
280
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -308,6 +308,17 @@ var OrderBySchema = z2.array(
|
|
|
308
308
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
309
309
|
})
|
|
310
310
|
);
|
|
311
|
+
var BaseFileSchema = z2.object({
|
|
312
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
313
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
314
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
315
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
316
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
317
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
318
|
+
file_size: numberOptional("File Size"),
|
|
319
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
320
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
321
|
+
});
|
|
311
322
|
var BaseQuerySchema = z2.object({
|
|
312
323
|
search: stringOptional("Search", 0, 255, ""),
|
|
313
324
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -36,23 +36,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
|
36
36
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
37
37
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
geofence_status_type: GeofenceStatusType;
|
|
40
|
+
geofence_time: string;
|
|
39
41
|
status: Status;
|
|
40
42
|
organisation_id: string;
|
|
41
43
|
vehicle_id: string;
|
|
42
44
|
driver_id: string;
|
|
43
45
|
gps_geofence_id: string;
|
|
44
46
|
time_zone_id: string;
|
|
47
|
+
}, {
|
|
45
48
|
geofence_status_type: GeofenceStatusType;
|
|
46
49
|
geofence_time: string;
|
|
47
|
-
}, {
|
|
48
50
|
status: Status;
|
|
49
51
|
organisation_id: string;
|
|
50
52
|
vehicle_id: string;
|
|
51
53
|
driver_id: string;
|
|
52
54
|
gps_geofence_id: string;
|
|
53
55
|
time_zone_id: string;
|
|
54
|
-
geofence_status_type: GeofenceStatusType;
|
|
55
|
-
geofence_time: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
|
|
58
58
|
declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
@@ -94,6 +94,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
94
94
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
95
95
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
geofence_status_type: GeofenceStatusType[];
|
|
97
98
|
status: Status[];
|
|
98
99
|
time_zone_id: string;
|
|
99
100
|
search: string;
|
|
@@ -121,12 +122,12 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
121
122
|
gps_geofence_ids: string[];
|
|
122
123
|
from_date: string;
|
|
123
124
|
to_date: string;
|
|
124
|
-
geofence_status_type: GeofenceStatusType[];
|
|
125
125
|
}, {
|
|
126
126
|
time_zone_id: string;
|
|
127
127
|
date_format_id: string;
|
|
128
128
|
from_date: string;
|
|
129
129
|
to_date: string;
|
|
130
|
+
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
130
131
|
status?: Status[] | undefined;
|
|
131
132
|
search?: string | undefined;
|
|
132
133
|
paging?: PAGING | undefined;
|
|
@@ -150,7 +151,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
150
151
|
vehicle_ids?: string[] | undefined;
|
|
151
152
|
driver_ids?: string[] | undefined;
|
|
152
153
|
gps_geofence_ids?: string[] | undefined;
|
|
153
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
154
154
|
}>;
|
|
155
155
|
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
156
156
|
declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
|
|
@@ -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: stringOptional("Usage Type", 0, 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),
|
|
@@ -46,27 +46,27 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
|
|
|
46
46
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
47
47
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
geofence_enter_date_time: string;
|
|
50
|
-
geofence_exit_date_time: string;
|
|
51
|
-
duration_seconds: number;
|
|
52
49
|
status: Status;
|
|
53
50
|
organisation_id: string;
|
|
54
51
|
vehicle_id: string;
|
|
55
52
|
driver_id: string;
|
|
56
53
|
gps_geofence_id: string;
|
|
54
|
+
time_zone_id: string;
|
|
55
|
+
geofence_enter_date_time: string;
|
|
56
|
+
geofence_exit_date_time: string;
|
|
57
|
+
duration_seconds: number;
|
|
57
58
|
enter_gps_geofence_transaction_id: string;
|
|
58
59
|
exit_gps_geofence_transaction_id: string;
|
|
59
|
-
time_zone_id: string;
|
|
60
60
|
}, {
|
|
61
|
-
geofence_enter_date_time: string;
|
|
62
61
|
status: Status;
|
|
63
62
|
organisation_id: string;
|
|
64
63
|
vehicle_id: string;
|
|
65
64
|
driver_id: string;
|
|
66
65
|
gps_geofence_id: string;
|
|
66
|
+
time_zone_id: string;
|
|
67
|
+
geofence_enter_date_time: string;
|
|
67
68
|
enter_gps_geofence_transaction_id: string;
|
|
68
69
|
exit_gps_geofence_transaction_id: string;
|
|
69
|
-
time_zone_id: string;
|
|
70
70
|
geofence_exit_date_time?: string | undefined;
|
|
71
71
|
duration_seconds?: unknown;
|
|
72
72
|
}>;
|
|
@@ -227,6 +227,17 @@ var OrderBySchema = z2.array(
|
|
|
227
227
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
228
228
|
})
|
|
229
229
|
);
|
|
230
|
+
var BaseFileSchema = z2.object({
|
|
231
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
232
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
233
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
234
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
235
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
236
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
237
|
+
file_size: numberOptional("File Size"),
|
|
238
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
239
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
240
|
+
});
|
|
230
241
|
var BaseQuerySchema = z2.object({
|
|
231
242
|
search: stringOptional("Search", 0, 255, ""),
|
|
232
243
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -55,12 +55,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
55
55
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
56
56
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
duration_seconds: number;
|
|
59
58
|
status: Status;
|
|
60
59
|
organisation_id: string;
|
|
61
60
|
vehicle_id: string;
|
|
62
61
|
driver_id: string;
|
|
63
62
|
time_zone_id: string;
|
|
63
|
+
duration_seconds: number;
|
|
64
64
|
from_geofence_exit_date_time: string;
|
|
65
65
|
to_geofence_enter_date_time: string;
|
|
66
66
|
travel_duration_seconds: number;
|
|
@@ -239,6 +239,17 @@ var OrderBySchema = z2.array(
|
|
|
239
239
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
240
240
|
})
|
|
241
241
|
);
|
|
242
|
+
var BaseFileSchema = z2.object({
|
|
243
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
244
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
245
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
246
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
247
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
248
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
249
|
+
file_size: numberOptional("File Size"),
|
|
250
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
251
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
252
|
+
});
|
|
242
253
|
var BaseQuerySchema = z2.object({
|
|
243
254
|
search: stringOptional("Search", 0, 255, ""),
|
|
244
255
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|