vms-nest-prisma-api-document 5.0.5 → 6.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/Enums.d.ts +23 -1
- package/dist/core/Enums.js +28 -0
- package/dist/services/account/alert_service.d.ts +1 -1
- package/dist/services/account/bookmark_service.d.ts +3 -3
- package/dist/services/account/notification_service.d.ts +1 -1
- package/dist/services/account/ticket_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +299 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +372 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +351 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +562 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +295 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +484 -0
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.ts +1 -1
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +1 -1
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_data_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +6 -6
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -5
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +17 -17
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +10 -10
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +43 -43
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.js +8 -5
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.js +14 -11
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.js +19 -19
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.js +15 -12
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.js +13 -10
- package/dist/services/master/expense/master_fuel_company_service.d.ts +6 -6
- package/dist/services/master/expense/master_fuel_company_service.js +18 -21
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +4 -4
- package/dist/services/master/expense/master_vendor_document_type_service.js +13 -16
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.js +11 -14
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +13 -8
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +11 -8
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +12 -11
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +14 -19
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.js +13 -15
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.js +7 -10
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.js +12 -15
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.js +5 -8
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +1 -1
- package/dist/services/master/main/master_main_eway_bill_provider_service.js +6 -8
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +10 -10
- package/dist/services/master/main/master_main_fasttag_bank_service.js +10 -12
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_industry_service.js +11 -14
- package/dist/services/master/main/master_main_landmark_service.d.ts +4 -4
- package/dist/services/master/main/master_main_landmark_service.js +19 -19
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_language_service.js +5 -8
- package/dist/services/master/main/master_main_sim_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_sim_provider_service.js +4 -7
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.js +10 -13
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.js +34 -16
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.js +5 -8
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.js +5 -8
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.js +5 -8
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.js +28 -32
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.js +23 -27
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.js +25 -29
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.js +22 -36
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.js +19 -19
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.js +17 -26
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +26 -21
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +19 -14
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.js +12 -12
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.js +18 -13
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.js +12 -17
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.js +23 -20
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_role_service.js +18 -13
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.js +18 -13
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +132 -0
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.js +293 -0
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +129 -0
- package/dist/services/master/vehicle/master_vehicle_document_type_service.js +283 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +131 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.js +297 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +25 -15
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +137 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.js +293 -0
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.js +19 -21
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.js +30 -22
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +28 -18
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +25 -14
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +36 -29
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.js +18 -20
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/static_pages_service.d.ts +1 -1
- package/dist/{user_organisation_service-DJWj2iMa.d.ts → user_organisation_service-_rBwGIT-.d.ts} +253 -121
- package/package.json +1 -1
|
@@ -231,55 +231,50 @@ var ENDPOINTS = {
|
|
|
231
231
|
cache: (organisation_id) => `${URL}/cache/${organisation_id}`
|
|
232
232
|
};
|
|
233
233
|
var MasterFleetInsuranceClaimStatusSchema = z3.object({
|
|
234
|
-
organisation_id: single_select_mandatory("
|
|
235
|
-
// ✅ Single-
|
|
234
|
+
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
235
|
+
// ✅ Single-Selection -> UserOrganisation
|
|
236
236
|
fleet_insurance_claim_status: stringMandatory(
|
|
237
237
|
"Fleet Insurance Claim Status",
|
|
238
238
|
3,
|
|
239
239
|
100
|
|
240
240
|
),
|
|
241
|
+
description: stringOptional("Description", 0, 300),
|
|
241
242
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
242
243
|
});
|
|
243
244
|
var MasterFleetInsuranceClaimStatusQuerySchema = BaseQuerySchema.extend({
|
|
244
|
-
organisation_ids: multi_select_optional("
|
|
245
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
245
246
|
// ✅ Multi-selection -> UserOrganisation
|
|
246
247
|
fleet_insurance_claim_status_ids: multi_select_optional(
|
|
247
|
-
"
|
|
248
|
+
"MasterFleetInsuranceClaimStatus"
|
|
248
249
|
)
|
|
249
250
|
// ✅ Multi-selection -> MasterFleetInsuranceClaimStatus
|
|
250
251
|
});
|
|
251
|
-
var toMasterFleetInsuranceClaimStatusPayload = (
|
|
252
|
-
organisation_id:
|
|
253
|
-
fleet_insurance_claim_status:
|
|
254
|
-
|
|
252
|
+
var toMasterFleetInsuranceClaimStatusPayload = (row) => ({
|
|
253
|
+
organisation_id: row.organisation_id ?? "",
|
|
254
|
+
fleet_insurance_claim_status: row.fleet_insurance_claim_status,
|
|
255
|
+
description: row.description || "",
|
|
256
|
+
status: row.status
|
|
255
257
|
});
|
|
256
258
|
var newMasterFleetInsuranceClaimStatusPayload = () => ({
|
|
257
259
|
organisation_id: "",
|
|
258
260
|
fleet_insurance_claim_status: "",
|
|
261
|
+
description: "",
|
|
259
262
|
status: "Active" /* Active */
|
|
260
263
|
});
|
|
261
264
|
var findMasterFleetInsuranceClaimStatuses = async (data) => {
|
|
262
265
|
return apiPost(ENDPOINTS.find, data);
|
|
263
266
|
};
|
|
264
267
|
var createMasterFleetInsuranceClaimStatus = async (data) => {
|
|
265
|
-
return apiPost(
|
|
266
|
-
ENDPOINTS.create,
|
|
267
|
-
data
|
|
268
|
-
);
|
|
268
|
+
return apiPost(ENDPOINTS.create, data);
|
|
269
269
|
};
|
|
270
270
|
var updateMasterFleetInsuranceClaimStatus = async (id, data) => {
|
|
271
|
-
return apiPatch(
|
|
272
|
-
ENDPOINTS.update(id),
|
|
273
|
-
data
|
|
274
|
-
);
|
|
271
|
+
return apiPatch(ENDPOINTS.update(id), data);
|
|
275
272
|
};
|
|
276
273
|
var deleteMasterFleetInsuranceClaimStatus = async (id) => {
|
|
277
274
|
return apiDelete(ENDPOINTS.delete(id));
|
|
278
275
|
};
|
|
279
276
|
var getMasterFleetInsuranceClaimStatusCache = async (organisation_id) => {
|
|
280
|
-
return apiGet(
|
|
281
|
-
ENDPOINTS.cache(organisation_id)
|
|
282
|
-
);
|
|
277
|
+
return apiGet(ENDPOINTS.cache(organisation_id));
|
|
283
278
|
};
|
|
284
279
|
export {
|
|
285
280
|
MasterFleetInsuranceClaimStatusQuerySchema,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { iU as MasterFleetServiceTask, iW as MasterFleetServiceTaskDTO, iY as MasterFleetServiceTaskQueryDTO, iX as MasterFleetServiceTaskQuerySchema, iV as MasterFleetServiceTaskSchema, j0 as createMasterFleetServiceTask, j2 as deleteMasterFleetServiceTask, i$ as findMasterFleetServiceTasks, j3 as getMasterFleetServiceTaskCache, i_ as newMasterFleetServiceTaskPayload, iZ as toMasterFleetServiceTaskPayload, j1 as updateMasterFleetServiceTask } from '../../../user_organisation_service-_rBwGIT-.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
@@ -231,32 +231,32 @@ var ENDPOINTS = {
|
|
|
231
231
|
cache: (organisation_id) => `${URL}/cache/${organisation_id}`
|
|
232
232
|
};
|
|
233
233
|
var MasterFleetServiceTaskSchema = z3.object({
|
|
234
|
-
organisation_id: single_select_mandatory("
|
|
235
|
-
// ✅ Single-
|
|
234
|
+
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
235
|
+
// ✅ Single-Selection -> UserOrganisation
|
|
236
236
|
fleet_service_task: stringMandatory("Fleet Service Task", 3, 100),
|
|
237
|
+
description: stringOptional("Description", 0, 300),
|
|
237
238
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
238
239
|
});
|
|
239
240
|
var MasterFleetServiceTaskQuerySchema = BaseQuerySchema.extend({
|
|
240
|
-
organisation_ids: multi_select_optional("
|
|
241
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
241
242
|
// ✅ Multi-selection -> UserOrganisation
|
|
242
|
-
fleet_service_task_ids: multi_select_optional("
|
|
243
|
+
fleet_service_task_ids: multi_select_optional("MasterFleetServiceTask")
|
|
243
244
|
// ✅ Multi-selection -> MasterFleetServiceTask
|
|
244
245
|
});
|
|
245
|
-
var toMasterFleetServiceTaskPayload = (
|
|
246
|
-
organisation_id:
|
|
247
|
-
fleet_service_task:
|
|
248
|
-
|
|
246
|
+
var toMasterFleetServiceTaskPayload = (row) => ({
|
|
247
|
+
organisation_id: row.organisation_id ?? "",
|
|
248
|
+
fleet_service_task: row.fleet_service_task,
|
|
249
|
+
description: row.description || "",
|
|
250
|
+
status: row.status
|
|
249
251
|
});
|
|
250
252
|
var newMasterFleetServiceTaskPayload = () => ({
|
|
251
253
|
organisation_id: "",
|
|
252
254
|
fleet_service_task: "",
|
|
255
|
+
description: "",
|
|
253
256
|
status: "Active" /* Active */
|
|
254
257
|
});
|
|
255
258
|
var findMasterFleetServiceTasks = async (data) => {
|
|
256
|
-
return apiPost(
|
|
257
|
-
ENDPOINTS.find,
|
|
258
|
-
data
|
|
259
|
-
);
|
|
259
|
+
return apiPost(ENDPOINTS.find, data);
|
|
260
260
|
};
|
|
261
261
|
var createMasterFleetServiceTask = async (data) => {
|
|
262
262
|
return apiPost(ENDPOINTS.create, data);
|
|
@@ -268,9 +268,7 @@ var deleteMasterFleetServiceTask = async (id) => {
|
|
|
268
268
|
return apiDelete(ENDPOINTS.delete(id));
|
|
269
269
|
};
|
|
270
270
|
var getMasterFleetServiceTaskCache = async (organisation_id) => {
|
|
271
|
-
return apiGet(
|
|
272
|
-
ENDPOINTS.cache(organisation_id)
|
|
273
|
-
);
|
|
271
|
+
return apiGet(ENDPOINTS.cache(organisation_id));
|
|
274
272
|
};
|
|
275
273
|
export {
|
|
276
274
|
MasterFleetServiceTaskQuerySchema,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { e as MasterMainCountry, a2 as MasterMainCountryDTO, a4 as MasterMainCountryQueryDTO, a3 as MasterMainCountryQuerySchema, a1 as MasterMainCountrySchema, a8 as createMasterMainCountry, aa as deleteMasterMainCountry, a7 as findMasterMainCountries, ab as getMasterMainCountryCache, ac as getMasterMainCountryCacheChild, a6 as newMasterMainCountryPayload, a5 as toMasterMainCountryPayload, a9 as updateMasterMainCountry } from '../../../user_organisation_service-_rBwGIT-.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import './master_main_sim_provider_service.js';
|
|
@@ -229,7 +229,7 @@ var ENDPOINTS = {
|
|
|
229
229
|
};
|
|
230
230
|
var MasterMainCountrySchema = z3.object({
|
|
231
231
|
country_name: stringMandatory("Country Name", 3, 100),
|
|
232
|
-
country_code: stringMandatory("Country Code",
|
|
232
|
+
country_code: stringMandatory("Country Code", 1, 10),
|
|
233
233
|
country_mobile_code: stringMandatory("Country Mobile Code", 1, 10),
|
|
234
234
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
235
235
|
});
|
|
@@ -237,11 +237,11 @@ var MasterMainCountryQuerySchema = BaseQuerySchema.extend({
|
|
|
237
237
|
country_ids: multi_select_optional("Country")
|
|
238
238
|
// ✅ Multi-selection -> MasterMainCountry
|
|
239
239
|
});
|
|
240
|
-
var toMasterMainCountryPayload = (
|
|
241
|
-
country_name:
|
|
242
|
-
country_code:
|
|
243
|
-
country_mobile_code:
|
|
244
|
-
status:
|
|
240
|
+
var toMasterMainCountryPayload = (row) => ({
|
|
241
|
+
country_name: row.country_name,
|
|
242
|
+
country_code: row.country_code,
|
|
243
|
+
country_mobile_code: row.country_mobile_code,
|
|
244
|
+
status: row.status
|
|
245
245
|
});
|
|
246
246
|
var newMasterMainCountryPayload = () => ({
|
|
247
247
|
country_name: "",
|
|
@@ -250,10 +250,7 @@ var newMasterMainCountryPayload = () => ({
|
|
|
250
250
|
status: "Active" /* Active */
|
|
251
251
|
});
|
|
252
252
|
var findMasterMainCountries = async (data) => {
|
|
253
|
-
return apiPost(
|
|
254
|
-
ENDPOINTS.find,
|
|
255
|
-
data
|
|
256
|
-
);
|
|
253
|
+
return apiPost(ENDPOINTS.find, data);
|
|
257
254
|
};
|
|
258
255
|
var createMasterMainCountry = async (data) => {
|
|
259
256
|
return apiPost(ENDPOINTS.create, data);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { q as MasterMainCurrency, s as MasterMainCurrencyDTO, w as MasterMainCurrencyQueryDTO, v as MasterMainCurrencyQuerySchema, r as MasterMainCurrencySchema, A as createMasterMainCurrency, C as deleteMasterMainCurrency, z as findMasterMainCurrencies, D as getMasterMainCurrencyCache, y as newMasterMainCurrencyPayload, x as toMasterMainCurrencyPayload, B as updateMasterMainCurrency } from '../../../user_organisation_service-_rBwGIT-.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import './master_main_sim_provider_service.js';
|
|
@@ -231,25 +231,25 @@ var ENDPOINTS = {
|
|
|
231
231
|
cache: (country_id) => `${URL}/cache?country_id=${country_id}`
|
|
232
232
|
};
|
|
233
233
|
var MasterMainCurrencySchema = z3.object({
|
|
234
|
-
country_id: single_select_mandatory("
|
|
235
|
-
// ✅ Single-
|
|
234
|
+
country_id: single_select_mandatory("MasterMainCountry"),
|
|
235
|
+
// ✅ Single-Selection -> MasterMainCountry
|
|
236
236
|
currency_name: stringMandatory("Currency Name", 3, 100),
|
|
237
|
-
currency_code: stringMandatory("Currency Code", 2, 10),
|
|
238
237
|
currency_symbol: stringOptional("Currency Symbol", 0, 10),
|
|
238
|
+
currency_code: stringMandatory("Currency Code", 2, 10),
|
|
239
239
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
240
240
|
});
|
|
241
241
|
var MasterMainCurrencyQuerySchema = BaseQuerySchema.extend({
|
|
242
|
-
country_ids: multi_select_optional("
|
|
242
|
+
country_ids: multi_select_optional("MasterMainCountry"),
|
|
243
243
|
// ✅ Multi-selection -> MasterMainCountry
|
|
244
|
-
currency_ids: multi_select_optional("
|
|
244
|
+
currency_ids: multi_select_optional("MasterMainCurrency")
|
|
245
245
|
// ✅ Multi-selection -> MasterMainCurrency
|
|
246
246
|
});
|
|
247
|
-
var toMasterMainCurrencyPayload = (
|
|
248
|
-
country_id:
|
|
249
|
-
currency_name:
|
|
250
|
-
currency_symbol:
|
|
251
|
-
currency_code:
|
|
252
|
-
status:
|
|
247
|
+
var toMasterMainCurrencyPayload = (row) => ({
|
|
248
|
+
country_id: row.country_id,
|
|
249
|
+
currency_name: row.currency_name,
|
|
250
|
+
currency_symbol: row.currency_symbol ?? "",
|
|
251
|
+
currency_code: row.currency_code,
|
|
252
|
+
status: row.status
|
|
253
253
|
});
|
|
254
254
|
var newMasterMainCurrencyPayload = () => ({
|
|
255
255
|
country_id: "",
|
|
@@ -259,10 +259,7 @@ var newMasterMainCurrencyPayload = () => ({
|
|
|
259
259
|
status: "Active" /* Active */
|
|
260
260
|
});
|
|
261
261
|
var findMasterMainCurrencies = async (data) => {
|
|
262
|
-
return apiPost(
|
|
263
|
-
ENDPOINTS.find,
|
|
264
|
-
data
|
|
265
|
-
);
|
|
262
|
+
return apiPost(ENDPOINTS.find, data);
|
|
266
263
|
};
|
|
267
264
|
var createMasterMainCurrency = async (data) => {
|
|
268
265
|
return apiPost(ENDPOINTS.create, data);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { ad as MasterMainDateFormat, af as MasterMainDateFormatDTO, ah as MasterMainDateFormatQueryDTO, ag as MasterMainDateFormatQuerySchema, ae as MasterMainDateFormatSchema, al as createMasterMainDateFormat, an as deleteMasterMainDateFormat, ak as findMasterMainDateFormats, ao as getMasterMainDateFormatCache, aj as newMasterMainDateFormatPayload, ai as toMasterMainDateFormatPayload, am as updateMasterMainDateFormat } from '../../../user_organisation_service-_rBwGIT-.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import './master_main_sim_provider_service.js';
|
|
@@ -235,10 +235,10 @@ var MasterMainDateFormatQuerySchema = BaseQuerySchema.extend({
|
|
|
235
235
|
date_format_ids: multi_select_optional("Date Format")
|
|
236
236
|
// ✅ Multi-selection -> MasterMainDateFormat
|
|
237
237
|
});
|
|
238
|
-
var toMasterMainDateFormatPayload = (
|
|
239
|
-
date_format_date:
|
|
240
|
-
date_format_time:
|
|
241
|
-
status:
|
|
238
|
+
var toMasterMainDateFormatPayload = (row) => ({
|
|
239
|
+
date_format_date: row.date_format_date,
|
|
240
|
+
date_format_time: row.date_format_time,
|
|
241
|
+
status: row.status
|
|
242
242
|
});
|
|
243
243
|
var newMasterMainDateFormatPayload = () => ({
|
|
244
244
|
date_format_date: "",
|
|
@@ -246,10 +246,7 @@ var newMasterMainDateFormatPayload = () => ({
|
|
|
246
246
|
status: "Active" /* Active */
|
|
247
247
|
});
|
|
248
248
|
var findMasterMainDateFormats = async (data) => {
|
|
249
|
-
return apiPost(
|
|
250
|
-
ENDPOINTS.find,
|
|
251
|
-
data
|
|
252
|
-
);
|
|
249
|
+
return apiPost(ENDPOINTS.find, data);
|
|
253
250
|
};
|
|
254
251
|
var createMasterMainDateFormat = async (data) => {
|
|
255
252
|
return apiPost(ENDPOINTS.create, data);
|
|
@@ -104,7 +104,7 @@ declare const MasterMainEwayBillProviderQuerySchema: z.ZodObject<{
|
|
|
104
104
|
e_way_bill_provider_ids?: string[] | undefined;
|
|
105
105
|
}>;
|
|
106
106
|
type MasterMainEwayBillProviderQueryDTO = z.infer<typeof MasterMainEwayBillProviderQuerySchema>;
|
|
107
|
-
declare const toMasterMainEwayBillProviderPayload: (
|
|
107
|
+
declare const toMasterMainEwayBillProviderPayload: (row: MasterMainEwayBillProvider) => MasterMainEwayBillProviderDTO;
|
|
108
108
|
declare const newMasterMainEwayBillProviderPayload: () => MasterMainEwayBillProviderDTO;
|
|
109
109
|
declare const findMasterMainEwayBillProviders: (data: MasterMainEwayBillProviderQueryDTO) => Promise<FBR<MasterMainEwayBillProvider[]>>;
|
|
110
110
|
declare const createMasterMainEwayBillProvider: (data: MasterMainEwayBillProviderDTO) => Promise<SBR>;
|
|
@@ -233,11 +233,12 @@ var MasterMainEwayBillProviderSchema = z3.object({
|
|
|
233
233
|
});
|
|
234
234
|
var MasterMainEwayBillProviderQuerySchema = BaseQuerySchema.extend({
|
|
235
235
|
e_way_bill_provider_ids: multi_select_optional("MasterMainEWayBillProvider")
|
|
236
|
+
// ✅ Multi-selection -> MasterMainEWayBillProvider
|
|
236
237
|
});
|
|
237
|
-
var toMasterMainEwayBillProviderPayload = (
|
|
238
|
-
provider_name:
|
|
239
|
-
provider_code:
|
|
240
|
-
status:
|
|
238
|
+
var toMasterMainEwayBillProviderPayload = (row) => ({
|
|
239
|
+
provider_name: row.provider_name,
|
|
240
|
+
provider_code: row.provider_code ?? "",
|
|
241
|
+
status: row.status
|
|
241
242
|
});
|
|
242
243
|
var newMasterMainEwayBillProviderPayload = () => ({
|
|
243
244
|
provider_name: "",
|
|
@@ -251,10 +252,7 @@ var createMasterMainEwayBillProvider = async (data) => {
|
|
|
251
252
|
return apiPost(ENDPOINTS.create, data);
|
|
252
253
|
};
|
|
253
254
|
var updateMasterMainEwayBillProvider = async (id, data) => {
|
|
254
|
-
return apiPatch(
|
|
255
|
-
ENDPOINTS.update(id),
|
|
256
|
-
data
|
|
257
|
-
);
|
|
255
|
+
return apiPatch(ENDPOINTS.update(id), data);
|
|
258
256
|
};
|
|
259
257
|
var deleteMasterMainEwayBillProvider = async (id) => {
|
|
260
258
|
return apiDelete(ENDPOINTS.delete(id));
|
|
@@ -10,7 +10,7 @@ interface MasterMainFasttagBank extends Record<string, unknown> {
|
|
|
10
10
|
added_date_time: string;
|
|
11
11
|
modified_date_time: string;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
13
|
+
declare const MasterMainFasttagBankSchema: z.ZodObject<{
|
|
14
14
|
bank_name: z.ZodEffects<z.ZodString, string, string>;
|
|
15
15
|
bank_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
16
16
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
@@ -23,8 +23,8 @@ declare const MasterMainFasttagSchema: z.ZodObject<{
|
|
|
23
23
|
status: Status;
|
|
24
24
|
bank_code?: string | undefined;
|
|
25
25
|
}>;
|
|
26
|
-
type
|
|
27
|
-
declare const
|
|
26
|
+
type MasterMainFasttagBankDTO = z.infer<typeof MasterMainFasttagBankSchema>;
|
|
27
|
+
declare const MasterMainFasttagBankQuerySchema: z.ZodObject<{
|
|
28
28
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
29
29
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
30
30
|
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
@@ -103,13 +103,13 @@ declare const MasterMainFasttagQuerySchema: z.ZodObject<{
|
|
|
103
103
|
include_master_data?: YesNo | undefined;
|
|
104
104
|
fasttag_bank_ids?: string[] | undefined;
|
|
105
105
|
}>;
|
|
106
|
-
type
|
|
107
|
-
declare const toMasterMainFasttagPayload: (
|
|
108
|
-
declare const newMasterMainFasttagPayload: () =>
|
|
109
|
-
declare const findMasterMainFasttagBanks: (data:
|
|
110
|
-
declare const createMasterMainFasttagBank: (data:
|
|
111
|
-
declare const updateMasterMainFasttagBank: (id: string, data:
|
|
106
|
+
type MasterMainFasttagBankQueryDTO = z.infer<typeof MasterMainFasttagBankQuerySchema>;
|
|
107
|
+
declare const toMasterMainFasttagPayload: (row: MasterMainFasttagBank) => MasterMainFasttagBankDTO;
|
|
108
|
+
declare const newMasterMainFasttagPayload: () => MasterMainFasttagBankDTO;
|
|
109
|
+
declare const findMasterMainFasttagBanks: (data: MasterMainFasttagBankQueryDTO) => Promise<FBR<MasterMainFasttagBank[]>>;
|
|
110
|
+
declare const createMasterMainFasttagBank: (data: MasterMainFasttagBankDTO) => Promise<SBR>;
|
|
111
|
+
declare const updateMasterMainFasttagBank: (id: string, data: MasterMainFasttagBankDTO) => Promise<SBR>;
|
|
112
112
|
declare const deleteMasterMainFasttagBank: (id: string) => Promise<SBR>;
|
|
113
113
|
declare const getMasterMainFasttagBankCache: () => Promise<FBR<MasterMainFasttagBank[]>>;
|
|
114
114
|
|
|
115
|
-
export { type MasterMainFasttagBank, type
|
|
115
|
+
export { type MasterMainFasttagBank, type MasterMainFasttagBankDTO, type MasterMainFasttagBankQueryDTO, MasterMainFasttagBankQuerySchema, MasterMainFasttagBankSchema, createMasterMainFasttagBank, deleteMasterMainFasttagBank, findMasterMainFasttagBanks, getMasterMainFasttagBankCache, newMasterMainFasttagPayload, toMasterMainFasttagPayload, updateMasterMainFasttagBank };
|
|
@@ -226,18 +226,19 @@ var ENDPOINTS = {
|
|
|
226
226
|
delete: (id) => `${URL}/${id}`,
|
|
227
227
|
cache: `${URL}/cache`
|
|
228
228
|
};
|
|
229
|
-
var
|
|
229
|
+
var MasterMainFasttagBankSchema = z3.object({
|
|
230
230
|
bank_name: stringMandatory("Bank Name", 3, 100),
|
|
231
231
|
bank_code: stringOptional("Bank Code", 0, 10),
|
|
232
232
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
233
233
|
});
|
|
234
|
-
var
|
|
234
|
+
var MasterMainFasttagBankQuerySchema = BaseQuerySchema.extend({
|
|
235
235
|
fasttag_bank_ids: multi_select_optional("MasterMainFasttagBank")
|
|
236
|
+
// ✅ Multi-selection -> MasterMainFasttagBank
|
|
236
237
|
});
|
|
237
|
-
var toMasterMainFasttagPayload = (
|
|
238
|
-
bank_name:
|
|
239
|
-
bank_code:
|
|
240
|
-
status:
|
|
238
|
+
var toMasterMainFasttagPayload = (row) => ({
|
|
239
|
+
bank_name: row.bank_name,
|
|
240
|
+
bank_code: row.bank_code ?? "",
|
|
241
|
+
status: row.status
|
|
241
242
|
});
|
|
242
243
|
var newMasterMainFasttagPayload = () => ({
|
|
243
244
|
bank_name: "",
|
|
@@ -245,10 +246,7 @@ var newMasterMainFasttagPayload = () => ({
|
|
|
245
246
|
status: "Active" /* Active */
|
|
246
247
|
});
|
|
247
248
|
var findMasterMainFasttagBanks = async (data) => {
|
|
248
|
-
return apiPost(
|
|
249
|
-
ENDPOINTS.find,
|
|
250
|
-
data
|
|
251
|
-
);
|
|
249
|
+
return apiPost(ENDPOINTS.find, data);
|
|
252
250
|
};
|
|
253
251
|
var createMasterMainFasttagBank = async (data) => {
|
|
254
252
|
return apiPost(ENDPOINTS.create, data);
|
|
@@ -263,8 +261,8 @@ var getMasterMainFasttagBankCache = async () => {
|
|
|
263
261
|
return apiGet(ENDPOINTS.cache);
|
|
264
262
|
};
|
|
265
263
|
export {
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
MasterMainFasttagBankQuerySchema,
|
|
265
|
+
MasterMainFasttagBankSchema,
|
|
268
266
|
createMasterMainFasttagBank,
|
|
269
267
|
deleteMasterMainFasttagBank,
|
|
270
268
|
findMasterMainFasttagBanks,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { g as MasterMainIndustry, i as MasterMainIndustryDTO, k as MasterMainIndustryQueryDTO, j as MasterMainIndustryQuerySchema, h as MasterMainIndustrySchema, m as createMasterMainIndustry, o as deleteMasterMainIndustry, l as findMasterMainIndustrys, p as getMasterMainIndustryCache, n as newMasterMainIndustryPayload, t as toMasterMainIndustryPayload, u as updateMasterMainIndustry } from '../../../user_organisation_service-_rBwGIT-.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import './master_main_sim_provider_service.js';
|
|
@@ -228,28 +228,25 @@ var ENDPOINTS = {
|
|
|
228
228
|
};
|
|
229
229
|
var MasterMainIndustrySchema = z3.object({
|
|
230
230
|
industry_name: stringMandatory("Industry Name", 3, 100),
|
|
231
|
-
|
|
231
|
+
description: stringOptional("Industry Description", 0, 300),
|
|
232
232
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
233
233
|
});
|
|
234
234
|
var MasterMainIndustryQuerySchema = BaseQuerySchema.extend({
|
|
235
|
-
industry_ids: multi_select_optional("
|
|
236
|
-
// ✅ Multi-
|
|
235
|
+
industry_ids: multi_select_optional("MasterMainIndustry")
|
|
236
|
+
// ✅ Multi-Selection -> MasterMainIndustry
|
|
237
237
|
});
|
|
238
|
-
var toMasterMainIndustryPayload = (
|
|
239
|
-
industry_name:
|
|
240
|
-
|
|
241
|
-
status:
|
|
238
|
+
var toMasterMainIndustryPayload = (row) => ({
|
|
239
|
+
industry_name: row.industry_name,
|
|
240
|
+
description: row.description ?? "",
|
|
241
|
+
status: row.status
|
|
242
242
|
});
|
|
243
243
|
var newMasterMainIndustryPayload = () => ({
|
|
244
244
|
industry_name: "",
|
|
245
|
-
|
|
245
|
+
description: "",
|
|
246
246
|
status: "Active" /* Active */
|
|
247
247
|
});
|
|
248
|
-
var
|
|
249
|
-
return apiPost(
|
|
250
|
-
ENDPOINTS.find,
|
|
251
|
-
data
|
|
252
|
-
);
|
|
248
|
+
var findMasterMainIndustrys = async (data) => {
|
|
249
|
+
return apiPost(ENDPOINTS.find, data);
|
|
253
250
|
};
|
|
254
251
|
var createMasterMainIndustry = async (data) => {
|
|
255
252
|
return apiPost(ENDPOINTS.create, data);
|
|
@@ -268,7 +265,7 @@ export {
|
|
|
268
265
|
MasterMainIndustrySchema,
|
|
269
266
|
createMasterMainIndustry,
|
|
270
267
|
deleteMasterMainIndustry,
|
|
271
|
-
|
|
268
|
+
findMasterMainIndustrys,
|
|
272
269
|
getMasterMainIndustryCache,
|
|
273
270
|
newMasterMainIndustryPayload,
|
|
274
271
|
toMasterMainIndustryPayload,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import {
|
|
4
|
+
import { e as MasterMainCountry, f as MasterMainState } from '../../../user_organisation_service-_rBwGIT-.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import './master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -40,8 +40,8 @@ declare const MasterMainLandmarkSchema: z.ZodObject<{
|
|
|
40
40
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
status: Status;
|
|
43
|
-
state_id: string;
|
|
44
43
|
country_id: string;
|
|
44
|
+
state_id: string;
|
|
45
45
|
locality: string;
|
|
46
46
|
city_district_town: string;
|
|
47
47
|
zip_code: string;
|
|
@@ -52,8 +52,8 @@ declare const MasterMainLandmarkSchema: z.ZodObject<{
|
|
|
52
52
|
longitude?: number | undefined;
|
|
53
53
|
}, {
|
|
54
54
|
status: Status;
|
|
55
|
-
state_id: string;
|
|
56
55
|
country_id: string;
|
|
56
|
+
state_id: string;
|
|
57
57
|
landmark_name: string;
|
|
58
58
|
locality?: string | undefined;
|
|
59
59
|
city_district_town?: string | undefined;
|
|
@@ -150,7 +150,7 @@ declare const MasterMainLandmarkQuerySchema: z.ZodObject<{
|
|
|
150
150
|
landmark_ids?: string[] | undefined;
|
|
151
151
|
}>;
|
|
152
152
|
type MasterMainLandmarkQueryDTO = z.infer<typeof MasterMainLandmarkQuerySchema>;
|
|
153
|
-
declare const toMasterMainLandmarkPayload: (
|
|
153
|
+
declare const toMasterMainLandmarkPayload: (row: MasterMainLandmark) => MasterMainLandmarkDTO;
|
|
154
154
|
declare const newMasterMainLandmarkPayload: () => MasterMainLandmarkDTO;
|
|
155
155
|
declare const findMasterMainCountries: (data: MasterMainLandmarkQueryDTO) => Promise<FBR<MasterMainLandmark[]>>;
|
|
156
156
|
declare const createMasterMainCountry: (data: MasterMainLandmarkDTO) => Promise<SBR>;
|
|
@@ -240,10 +240,10 @@ var ENDPOINTS = {
|
|
|
240
240
|
delete: (id) => `${URL}/${id}`
|
|
241
241
|
};
|
|
242
242
|
var MasterMainLandmarkSchema = z3.object({
|
|
243
|
-
country_id: single_select_mandatory("
|
|
244
|
-
// ✅ Single-
|
|
245
|
-
state_id: single_select_mandatory("
|
|
246
|
-
// ✅ Single-
|
|
243
|
+
country_id: single_select_mandatory("MasterMainCountry"),
|
|
244
|
+
// ✅ Single-Selection -> MasterMainCountry
|
|
245
|
+
state_id: single_select_mandatory("MasterMainState"),
|
|
246
|
+
// ✅ Single-Selection -> MasterMainState
|
|
247
247
|
landmark_name: stringMandatory("Landmark Name", 3, 100),
|
|
248
248
|
location: stringOptional("Location", 0, 100),
|
|
249
249
|
google_location: stringOptional("Google Location", 0, 100),
|
|
@@ -255,25 +255,25 @@ var MasterMainLandmarkSchema = z3.object({
|
|
|
255
255
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
256
256
|
});
|
|
257
257
|
var MasterMainLandmarkQuerySchema = BaseQuerySchema.extend({
|
|
258
|
-
country_ids: multi_select_optional("
|
|
258
|
+
country_ids: multi_select_optional("MasterMainCountry"),
|
|
259
259
|
// ✅ Multi-selection -> MasterMainCountry
|
|
260
|
-
state_ids: multi_select_optional("
|
|
260
|
+
state_ids: multi_select_optional("MasterMainState"),
|
|
261
261
|
// ✅ Multi-selection -> MasterMainState
|
|
262
|
-
landmark_ids: multi_select_optional("
|
|
262
|
+
landmark_ids: multi_select_optional("MasterMainLandmark")
|
|
263
263
|
// ✅ Multi-selection -> MasterMainLandmark
|
|
264
264
|
});
|
|
265
|
-
var toMasterMainLandmarkPayload = (
|
|
266
|
-
country_id:
|
|
267
|
-
state_id:
|
|
268
|
-
landmark_name:
|
|
269
|
-
location:
|
|
270
|
-
google_location:
|
|
271
|
-
locality:
|
|
272
|
-
city_district_town:
|
|
273
|
-
zip_code:
|
|
274
|
-
latitude:
|
|
275
|
-
longitude:
|
|
276
|
-
status:
|
|
265
|
+
var toMasterMainLandmarkPayload = (row) => ({
|
|
266
|
+
country_id: row.country_id,
|
|
267
|
+
state_id: row.state_id,
|
|
268
|
+
landmark_name: row.landmark_name,
|
|
269
|
+
location: row.location,
|
|
270
|
+
google_location: row.google_location,
|
|
271
|
+
locality: row.locality,
|
|
272
|
+
city_district_town: row.city_district_town,
|
|
273
|
+
zip_code: row.zip_code,
|
|
274
|
+
latitude: row.latitude,
|
|
275
|
+
longitude: row.longitude,
|
|
276
|
+
status: row.status
|
|
277
277
|
});
|
|
278
278
|
var newMasterMainLandmarkPayload = () => ({
|
|
279
279
|
country_id: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { gm as MasterMainLanguage, go as MasterMainLanguageDTO, gq as MasterMainLanguageQueryDTO, gp as MasterMainLanguageQuerySchema, gn as MasterMainLanguageSchema, gu as createMasterMainLanguage, gw as deleteMasterMainLanguage, gt as findMasterMainLanguages, gx as getMasterMainLanguageCache, gs as newMasterMainLanguagePayload, gr as toMasterMainLanguagePayload, gv as updateMasterMainLanguage } from '../../../user_organisation_service-_rBwGIT-.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import './master_main_sim_provider_service.js';
|
|
@@ -235,10 +235,10 @@ var MasterMainLanguageQuerySchema = BaseQuerySchema.extend({
|
|
|
235
235
|
language_ids: multi_select_optional("Language")
|
|
236
236
|
// ✅ Multi-selection -> MasterMainLanguage
|
|
237
237
|
});
|
|
238
|
-
var toMasterMainLanguagePayload = (
|
|
239
|
-
language_name:
|
|
240
|
-
language_code:
|
|
241
|
-
status:
|
|
238
|
+
var toMasterMainLanguagePayload = (row) => ({
|
|
239
|
+
language_name: row.language_name,
|
|
240
|
+
language_code: row.language_code,
|
|
241
|
+
status: row.status
|
|
242
242
|
});
|
|
243
243
|
var newMasterMainLanguagePayload = () => ({
|
|
244
244
|
language_name: "",
|
|
@@ -246,10 +246,7 @@ var newMasterMainLanguagePayload = () => ({
|
|
|
246
246
|
status: "Active" /* Active */
|
|
247
247
|
});
|
|
248
248
|
var findMasterMainLanguages = async (data) => {
|
|
249
|
-
return apiPost(
|
|
250
|
-
ENDPOINTS.find,
|
|
251
|
-
data
|
|
252
|
-
);
|
|
249
|
+
return apiPost(ENDPOINTS.find, data);
|
|
253
250
|
};
|
|
254
251
|
var createMasterMainLanguage = async (data) => {
|
|
255
252
|
return apiPost(ENDPOINTS.create, data);
|
|
@@ -13,7 +13,7 @@ interface MasterMainSimProvider extends Record<string, unknown> {
|
|
|
13
13
|
}
|
|
14
14
|
declare const MasterMainSimProviderSchema: z.ZodObject<{
|
|
15
15
|
provider_name: z.ZodEffects<z.ZodString, string, string>;
|
|
16
|
-
country_notes: z.ZodEffects<z.ZodString, string, string
|
|
16
|
+
country_notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
17
17
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
status: Status;
|
|
@@ -22,7 +22,7 @@ declare const MasterMainSimProviderSchema: z.ZodObject<{
|
|
|
22
22
|
}, {
|
|
23
23
|
status: Status;
|
|
24
24
|
provider_name: string;
|
|
25
|
-
country_notes
|
|
25
|
+
country_notes?: string | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
type MasterMainSimProviderDTO = z.infer<typeof MasterMainSimProviderSchema>;
|
|
28
28
|
declare const MasterMainSimProviderQuerySchema: z.ZodObject<{
|