vms-nest-prisma-api-document 1.0.6 → 1.0.8

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/index.d.ts CHANGED
@@ -1545,6 +1545,116 @@ interface MasterExpenseName extends Record<string, unknown> {
1545
1545
  FleetIncidentManagementCost: number;
1546
1546
  };
1547
1547
  }
1548
+ declare const MasterExpenseNameSchema: z.ZodObject<{
1549
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
1550
+ expense_name: z.ZodEffects<z.ZodString, string, string>;
1551
+ expense_category: z.ZodType<ExpenseCategory, z.ZodTypeDef, ExpenseCategory>;
1552
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ status: Status;
1555
+ organisation_id: string;
1556
+ expense_name: string;
1557
+ expense_category: ExpenseCategory;
1558
+ }, {
1559
+ status: Status;
1560
+ organisation_id: string;
1561
+ expense_name: string;
1562
+ expense_category: ExpenseCategory;
1563
+ }>;
1564
+ type MasterExpenseNameDTO = z.infer<typeof MasterExpenseNameSchema>;
1565
+ declare const MasterExpenseNameQuerySchema: z.ZodObject<{
1566
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1567
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
1568
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
1569
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
1570
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
1571
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
1572
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1573
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
1574
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1575
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
1576
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1577
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1578
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1579
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1580
+ name: z.ZodEffects<z.ZodString, string, string>;
1581
+ field: z.ZodEffects<z.ZodString, string, string>;
1582
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
1583
+ }, "strip", z.ZodTypeAny, {
1584
+ name: string;
1585
+ field: string;
1586
+ direction: OrderBy;
1587
+ }, {
1588
+ name: string;
1589
+ field: string;
1590
+ direction: OrderBy;
1591
+ }>, "many">>>;
1592
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
1593
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
1594
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
1595
+ } & {
1596
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1597
+ expense_name_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1598
+ expense_category: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ExpenseCategory>, "many">>>;
1599
+ }, "strip", z.ZodTypeAny, {
1600
+ search: string;
1601
+ load_child: LoadChild;
1602
+ load_parents: LoadParents;
1603
+ paging: PAGING;
1604
+ page_index: number;
1605
+ page_count: number;
1606
+ status: Status[];
1607
+ load_parents_list: string[];
1608
+ load_child_list: string[];
1609
+ load_child_count: LoadChildCount;
1610
+ load_child_count_list: string[];
1611
+ include_details: Record<string, any>;
1612
+ where_relations: Record<string, any>;
1613
+ order_by: {
1614
+ name: string;
1615
+ field: string;
1616
+ direction: OrderBy;
1617
+ }[];
1618
+ include_master_data: YesNo;
1619
+ date_format_id: string;
1620
+ time_zone_id: string;
1621
+ organisation_ids: string[];
1622
+ expense_category: ExpenseCategory[];
1623
+ expense_name_ids: string[];
1624
+ }, {
1625
+ date_format_id: string;
1626
+ time_zone_id: string;
1627
+ search?: string | undefined;
1628
+ load_child?: LoadChild | undefined;
1629
+ load_parents?: LoadParents | undefined;
1630
+ paging?: PAGING | undefined;
1631
+ page_index?: unknown;
1632
+ page_count?: unknown;
1633
+ status?: Status[] | undefined;
1634
+ load_parents_list?: string[] | undefined;
1635
+ load_child_list?: string[] | undefined;
1636
+ load_child_count?: LoadChildCount | undefined;
1637
+ load_child_count_list?: string[] | undefined;
1638
+ include_details?: Record<string, any> | undefined;
1639
+ where_relations?: Record<string, any> | undefined;
1640
+ order_by?: {
1641
+ name: string;
1642
+ field: string;
1643
+ direction: OrderBy;
1644
+ }[] | undefined;
1645
+ include_master_data?: YesNo | undefined;
1646
+ organisation_ids?: string[] | undefined;
1647
+ expense_category?: ExpenseCategory[] | undefined;
1648
+ expense_name_ids?: string[] | undefined;
1649
+ }>;
1650
+ type MasterExpenseNameQueryDTO = z.infer<typeof MasterExpenseNameQuerySchema>;
1651
+ declare const toMasterExpenseNamePayload: (expense: MasterExpenseName) => MasterExpenseNameDTO;
1652
+ declare const newMasterExpenseNamePayload: () => MasterExpenseNameDTO;
1653
+ declare const findMasterExpenseNames: (data: MasterExpenseNameQueryDTO) => Promise<FBR<MasterExpenseName[]>>;
1654
+ declare const createMasterExpenseName: (data: MasterExpenseNameDTO) => Promise<SBR>;
1655
+ declare const updateMasterExpenseName: (id: string, data: MasterExpenseNameDTO) => Promise<SBR>;
1656
+ declare const deleteMasterExpenseName: (id: string) => Promise<SBR>;
1657
+ declare const getMasterExpenseNameCache: (organisation_id: string) => Promise<FBR<MasterExpenseName[]>>;
1548
1658
 
1549
1659
  interface MasterExpenseType extends Record<string, unknown> {
1550
1660
  expense_type_id: string;
@@ -1556,6 +1666,110 @@ interface MasterExpenseType extends Record<string, unknown> {
1556
1666
  UserOrganisation?: UserOrganisation;
1557
1667
  _count?: object;
1558
1668
  }
1669
+ declare const MasterExpenseTypeSchema: z.ZodObject<{
1670
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
1671
+ expense_type_name: z.ZodEffects<z.ZodString, string, string>;
1672
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
1673
+ }, "strip", z.ZodTypeAny, {
1674
+ status: Status;
1675
+ organisation_id: string;
1676
+ expense_type_name: string;
1677
+ }, {
1678
+ status: Status;
1679
+ organisation_id: string;
1680
+ expense_type_name: string;
1681
+ }>;
1682
+ type MasterExpenseTypeDTO = z.infer<typeof MasterExpenseTypeSchema>;
1683
+ declare const MasterExpenseTypeQuerySchema: z.ZodObject<{
1684
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1685
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
1686
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
1687
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
1688
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
1689
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
1690
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1691
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
1692
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1693
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
1694
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1695
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1696
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1697
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1698
+ name: z.ZodEffects<z.ZodString, string, string>;
1699
+ field: z.ZodEffects<z.ZodString, string, string>;
1700
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
1701
+ }, "strip", z.ZodTypeAny, {
1702
+ name: string;
1703
+ field: string;
1704
+ direction: OrderBy;
1705
+ }, {
1706
+ name: string;
1707
+ field: string;
1708
+ direction: OrderBy;
1709
+ }>, "many">>>;
1710
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
1711
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
1712
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
1713
+ } & {
1714
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1715
+ expense_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1716
+ }, "strip", z.ZodTypeAny, {
1717
+ search: string;
1718
+ load_child: LoadChild;
1719
+ load_parents: LoadParents;
1720
+ paging: PAGING;
1721
+ page_index: number;
1722
+ page_count: number;
1723
+ status: Status[];
1724
+ load_parents_list: string[];
1725
+ load_child_list: string[];
1726
+ load_child_count: LoadChildCount;
1727
+ load_child_count_list: string[];
1728
+ include_details: Record<string, any>;
1729
+ where_relations: Record<string, any>;
1730
+ order_by: {
1731
+ name: string;
1732
+ field: string;
1733
+ direction: OrderBy;
1734
+ }[];
1735
+ include_master_data: YesNo;
1736
+ date_format_id: string;
1737
+ time_zone_id: string;
1738
+ organisation_ids: string[];
1739
+ expense_type_ids: string[];
1740
+ }, {
1741
+ date_format_id: string;
1742
+ time_zone_id: string;
1743
+ search?: string | undefined;
1744
+ load_child?: LoadChild | undefined;
1745
+ load_parents?: LoadParents | undefined;
1746
+ paging?: PAGING | undefined;
1747
+ page_index?: unknown;
1748
+ page_count?: unknown;
1749
+ status?: Status[] | undefined;
1750
+ load_parents_list?: string[] | undefined;
1751
+ load_child_list?: string[] | undefined;
1752
+ load_child_count?: LoadChildCount | undefined;
1753
+ load_child_count_list?: string[] | undefined;
1754
+ include_details?: Record<string, any> | undefined;
1755
+ where_relations?: Record<string, any> | undefined;
1756
+ order_by?: {
1757
+ name: string;
1758
+ field: string;
1759
+ direction: OrderBy;
1760
+ }[] | undefined;
1761
+ include_master_data?: YesNo | undefined;
1762
+ organisation_ids?: string[] | undefined;
1763
+ expense_type_ids?: string[] | undefined;
1764
+ }>;
1765
+ type MasterExpenseTypeQueryDTO = z.infer<typeof MasterExpenseTypeQuerySchema>;
1766
+ declare const toMasterExpenseTypePayload: (expenseType: MasterExpenseType) => MasterExpenseTypeDTO;
1767
+ declare const newMasterExpenseTypePayload: () => MasterExpenseTypeDTO;
1768
+ declare const findMasterExpenseTypes: (data: MasterExpenseTypeQueryDTO) => Promise<FBR<MasterExpenseType[]>>;
1769
+ declare const createMasterExpenseType: (data: MasterExpenseTypeDTO) => Promise<SBR>;
1770
+ declare const updateMasterExpenseType: (id: string, data: MasterExpenseTypeDTO) => Promise<SBR>;
1771
+ declare const deleteMasterExpenseType: (id: string) => Promise<SBR>;
1772
+ declare const getMasterExpenseTypeCache: (organisation_id: string) => Promise<FBR<MasterExpenseType[]>>;
1559
1773
 
1560
1774
  interface MasterTyreGrade extends Record<string, unknown> {
1561
1775
  tyre_grade_id: string;
@@ -1688,6 +1902,113 @@ interface MasterVendorType extends Record<string, unknown> {
1688
1902
  organisation_id?: string;
1689
1903
  UserOrganisation?: UserOrganisation;
1690
1904
  }
1905
+ declare const MasterVendorTypeSchema: z.ZodObject<{
1906
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
1907
+ vendor_type: z.ZodEffects<z.ZodString, string, string>;
1908
+ description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1909
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
1910
+ }, "strip", z.ZodTypeAny, {
1911
+ status: Status;
1912
+ organisation_id: string;
1913
+ vendor_type: string;
1914
+ description: string;
1915
+ }, {
1916
+ status: Status;
1917
+ organisation_id: string;
1918
+ vendor_type: string;
1919
+ description?: string | undefined;
1920
+ }>;
1921
+ type MasterVendorTypeDTO = z.infer<typeof MasterVendorTypeSchema>;
1922
+ declare const MasterVendorTypeQuerySchema: z.ZodObject<{
1923
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1924
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
1925
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
1926
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
1927
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
1928
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
1929
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1930
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
1931
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1932
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
1933
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1934
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1935
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1936
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1937
+ name: z.ZodEffects<z.ZodString, string, string>;
1938
+ field: z.ZodEffects<z.ZodString, string, string>;
1939
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
1940
+ }, "strip", z.ZodTypeAny, {
1941
+ name: string;
1942
+ field: string;
1943
+ direction: OrderBy;
1944
+ }, {
1945
+ name: string;
1946
+ field: string;
1947
+ direction: OrderBy;
1948
+ }>, "many">>>;
1949
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
1950
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
1951
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
1952
+ } & {
1953
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1954
+ vendor_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1955
+ }, "strip", z.ZodTypeAny, {
1956
+ search: string;
1957
+ load_child: LoadChild;
1958
+ load_parents: LoadParents;
1959
+ paging: PAGING;
1960
+ page_index: number;
1961
+ page_count: number;
1962
+ status: Status[];
1963
+ load_parents_list: string[];
1964
+ load_child_list: string[];
1965
+ load_child_count: LoadChildCount;
1966
+ load_child_count_list: string[];
1967
+ include_details: Record<string, any>;
1968
+ where_relations: Record<string, any>;
1969
+ order_by: {
1970
+ name: string;
1971
+ field: string;
1972
+ direction: OrderBy;
1973
+ }[];
1974
+ include_master_data: YesNo;
1975
+ date_format_id: string;
1976
+ time_zone_id: string;
1977
+ organisation_ids: string[];
1978
+ vendor_type_ids: string[];
1979
+ }, {
1980
+ date_format_id: string;
1981
+ time_zone_id: string;
1982
+ search?: string | undefined;
1983
+ load_child?: LoadChild | undefined;
1984
+ load_parents?: LoadParents | undefined;
1985
+ paging?: PAGING | undefined;
1986
+ page_index?: unknown;
1987
+ page_count?: unknown;
1988
+ status?: Status[] | undefined;
1989
+ load_parents_list?: string[] | undefined;
1990
+ load_child_list?: string[] | undefined;
1991
+ load_child_count?: LoadChildCount | undefined;
1992
+ load_child_count_list?: string[] | undefined;
1993
+ include_details?: Record<string, any> | undefined;
1994
+ where_relations?: Record<string, any> | undefined;
1995
+ order_by?: {
1996
+ name: string;
1997
+ field: string;
1998
+ direction: OrderBy;
1999
+ }[] | undefined;
2000
+ include_master_data?: YesNo | undefined;
2001
+ organisation_ids?: string[] | undefined;
2002
+ vendor_type_ids?: string[] | undefined;
2003
+ }>;
2004
+ type MasterVendorTypeQueryDTO = z.infer<typeof MasterVendorTypeQuerySchema>;
2005
+ declare const toMasterVendorTypePayload: (vendorType: MasterVendorType) => MasterVendorTypeDTO;
2006
+ declare const newMasterVendorTypePayload: () => MasterVendorTypeDTO;
2007
+ declare const findMasterVendorTypes: (data: MasterVendorTypeQueryDTO) => Promise<FBR<MasterVendorType[]>>;
2008
+ declare const createMasterVendorType: (data: MasterVendorTypeDTO) => Promise<SBR>;
2009
+ declare const updateMasterVendorType: (id: string, data: MasterVendorTypeDTO) => Promise<SBR>;
2010
+ declare const deleteMasterVendorType: (id: string) => Promise<SBR>;
2011
+ declare const getMasterVendorTypeCache: (organisation_id: string) => Promise<FBR<MasterVendorType[]>>;
1691
2012
 
1692
2013
  interface MasterSparePartSubCategory extends Record<string, unknown> {
1693
2014
  spare_part_sub_category_id: string;
@@ -2324,4 +2645,4 @@ declare const getMasterDeviceManufacturerCache: () => Promise<FBR<MasterDeviceMa
2324
2645
  declare const getMasterDeviceManufacturerCacheCount: () => Promise<FBR<number>>;
2325
2646
  declare const getMasterDeviceManufacturerCacheChild: () => Promise<FBR<MasterDeviceManufacturer[]>>;
2326
2647
 
2327
- export { AdminRole, AlertSubType, AlertType, type BR, type BaseFindParams, type BaseQueryDTO, BaseQuerySchema, BillingStatus, BooleanType, DefaultBaseFindParams, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, ExpenseCategory, type FBR, FileType, FleetSize, GPSFuelApproveStatus, GPSSource, GPSType, GeofencePurposeType, GeofenceStatusType, GeofenceType, InspectionActionStatus, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoginFrom, type MasterDeviceManufacturer, type MasterDeviceManufacturerDTO, type MasterDeviceManufacturerQueryDTO, MasterDeviceManufacturerQuerySchema, MasterDeviceManufacturerSchema, type MasterDeviceModel, type MasterDeviceModelDTO, type MasterDeviceModelQueryDTO, MasterDeviceModelQuerySchema, MasterDeviceModelSchema, type MasterDeviceType, type MasterDeviceTypeDTO, type MasterDeviceTypeQueryDTO, MasterDeviceTypeQuerySchema, MasterDeviceTypeSchema, MenuType, Module, type MongoBaseQueryDTO, MongoBaseQuerySchema, NightDriving, NotificationType, OdometerSource, OrderBy, OrderBySchema, OverSpeed, PAGING, type PageData, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, ReminderSource, ReminderStatus, ReminderTriggerType, RequestType, RetreadingMethod, type SBR, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, SubModule, type SummaryData, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo, apiDelete, apiGet, apiPatch, apiPost, booleanMandatory, booleanOptional, createMasterDeviceManufacturer, createMasterDeviceModel, createMasterDeviceType, dateMandatory, dateOptional, dateTimeMandatory, dateTimeOptional, deleteMasterDeviceManufacturer, deleteMasterDeviceModel, deleteMasterDeviceType, doubleMandatory, doubleMandatoryAmount, doubleMandatoryLatLng, doubleOptional, doubleOptionalAmount, doubleOptionalLatLng, dynamicJsonSchema, enumArrayMandatory, enumArrayOptional, enumMandatory, enumOptional, findMasterDeviceManufacturers, findMasterDeviceModels, findMasterDeviceTypes, getAllEnums, getMasterDeviceManufacturerCache, getMasterDeviceManufacturerCacheChild, getMasterDeviceManufacturerCacheCount, getMasterDeviceModelCache, getMasterDeviceModelCacheChild, getMasterDeviceModelCacheCount, getMasterDeviceTypeCache, getMasterDeviceTypeCacheChild, getMasterDeviceTypeCacheCount, multi_select_mandatory, multi_select_optional, nestedArrayOfObjectMandatory, nestedArrayOfObjectsOptional, nestedObjectMandatory, nestedObjectOptional, newMasterDeviceManufacturerPayload, newMasterDeviceModelPayload, newMasterDeviceTypePayload, numberArrayMandatory, numberArrayOptional, numberMandatory, numberOptional, r_log, setAxiosInstance as setupSdk, single_select_mandatory, single_select_optional, stringArrayMandatory, stringArrayOptional, stringMandatory, stringOptional, stringUUIDMandatory, toMasterDeviceManufacturerPayload, toMasterDeviceModelPayload, toMasterDeviceTypePayload, updateMasterDeviceManufacturer, updateMasterDeviceModel, updateMasterDeviceType, withDefaults };
2648
+ export { AdminRole, AlertSubType, AlertType, type BR, type BaseFindParams, type BaseQueryDTO, BaseQuerySchema, BillingStatus, BooleanType, DefaultBaseFindParams, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, ExpenseCategory, type FBR, FileType, FleetSize, GPSFuelApproveStatus, GPSSource, GPSType, GeofencePurposeType, GeofenceStatusType, GeofenceType, InspectionActionStatus, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoginFrom, type MasterDeviceManufacturer, type MasterDeviceManufacturerDTO, type MasterDeviceManufacturerQueryDTO, MasterDeviceManufacturerQuerySchema, MasterDeviceManufacturerSchema, type MasterDeviceModel, type MasterDeviceModelDTO, type MasterDeviceModelQueryDTO, MasterDeviceModelQuerySchema, MasterDeviceModelSchema, type MasterDeviceType, type MasterDeviceTypeDTO, type MasterDeviceTypeQueryDTO, MasterDeviceTypeQuerySchema, MasterDeviceTypeSchema, type MasterExpenseName, type MasterExpenseNameDTO, type MasterExpenseNameQueryDTO, MasterExpenseNameQuerySchema, MasterExpenseNameSchema, type MasterExpenseType, type MasterExpenseTypeDTO, type MasterExpenseTypeQueryDTO, MasterExpenseTypeQuerySchema, MasterExpenseTypeSchema, type MasterVendorType, type MasterVendorTypeDTO, type MasterVendorTypeQueryDTO, MasterVendorTypeQuerySchema, MasterVendorTypeSchema, MenuType, Module, type MongoBaseQueryDTO, MongoBaseQuerySchema, NightDriving, NotificationType, OdometerSource, OrderBy, OrderBySchema, OverSpeed, PAGING, type PageData, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, ReminderSource, ReminderStatus, ReminderTriggerType, RequestType, RetreadingMethod, type SBR, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, SubModule, type SummaryData, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo, apiDelete, apiGet, apiPatch, apiPost, booleanMandatory, booleanOptional, createMasterDeviceManufacturer, createMasterDeviceModel, createMasterDeviceType, createMasterExpenseName, createMasterExpenseType, createMasterVendorType, dateMandatory, dateOptional, dateTimeMandatory, dateTimeOptional, deleteMasterDeviceManufacturer, deleteMasterDeviceModel, deleteMasterDeviceType, deleteMasterExpenseName, deleteMasterExpenseType, deleteMasterVendorType, doubleMandatory, doubleMandatoryAmount, doubleMandatoryLatLng, doubleOptional, doubleOptionalAmount, doubleOptionalLatLng, dynamicJsonSchema, enumArrayMandatory, enumArrayOptional, enumMandatory, enumOptional, findMasterDeviceManufacturers, findMasterDeviceModels, findMasterDeviceTypes, findMasterExpenseNames, findMasterExpenseTypes, findMasterVendorTypes, getAllEnums, getMasterDeviceManufacturerCache, getMasterDeviceManufacturerCacheChild, getMasterDeviceManufacturerCacheCount, getMasterDeviceModelCache, getMasterDeviceModelCacheChild, getMasterDeviceModelCacheCount, getMasterDeviceTypeCache, getMasterDeviceTypeCacheChild, getMasterDeviceTypeCacheCount, getMasterExpenseNameCache, getMasterExpenseTypeCache, getMasterVendorTypeCache, multi_select_mandatory, multi_select_optional, nestedArrayOfObjectMandatory, nestedArrayOfObjectsOptional, nestedObjectMandatory, nestedObjectOptional, newMasterDeviceManufacturerPayload, newMasterDeviceModelPayload, newMasterDeviceTypePayload, newMasterExpenseNamePayload, newMasterExpenseTypePayload, newMasterVendorTypePayload, numberArrayMandatory, numberArrayOptional, numberMandatory, numberOptional, r_log, setAxiosInstance as setupSdk, single_select_mandatory, single_select_optional, stringArrayMandatory, stringArrayOptional, stringMandatory, stringOptional, stringUUIDMandatory, toMasterDeviceManufacturerPayload, toMasterDeviceModelPayload, toMasterDeviceTypePayload, toMasterExpenseNamePayload, toMasterExpenseTypePayload, toMasterVendorTypePayload, updateMasterDeviceManufacturer, updateMasterDeviceModel, updateMasterDeviceType, updateMasterExpenseName, updateMasterExpenseType, updateMasterVendorType, withDefaults };
package/dist/index.js CHANGED
@@ -1205,6 +1205,197 @@ var getMasterDeviceTypeCacheCount = async (device_model_id) => {
1205
1205
  var getMasterDeviceTypeCacheChild = async (device_model_id) => {
1206
1206
  return apiGet(ENDPOINTS3.cache_child(device_model_id));
1207
1207
  };
1208
+
1209
+ // src/services/master/expense/master_expense_name_service.ts
1210
+ import { z as z6 } from "zod";
1211
+ import {
1212
+ stringMandatory as stringMandatory5,
1213
+ enumMandatory as enumMandatory5,
1214
+ enumArrayOptional as enumArrayOptional2,
1215
+ multi_select_optional as multi_select_optional5,
1216
+ single_select_mandatory as single_select_mandatory4
1217
+ } from "zod/zod_utils";
1218
+ import { BaseQuerySchema as BaseQuerySchema5 } from "zod/zod_base_schema";
1219
+ var URL4 = "master/expense/expense_name";
1220
+ var ENDPOINTS4 = {
1221
+ find: `${URL4}/search`,
1222
+ create: URL4,
1223
+ update: (id) => `${URL4}/${id}`,
1224
+ delete: (id) => `${URL4}/${id}`,
1225
+ cache: (organisation_id) => `${URL4}/cache/${organisation_id}`
1226
+ };
1227
+ var MasterExpenseNameSchema = z6.object({
1228
+ organisation_id: single_select_mandatory4("Organisation"),
1229
+ // ✅ Single-selection -> UserOrganisation
1230
+ expense_name: stringMandatory5("Expense Name", 3, 100),
1231
+ expense_category: enumMandatory5(
1232
+ "Expense Category",
1233
+ ExpenseCategory,
1234
+ "Main" /* Main */
1235
+ ),
1236
+ status: enumMandatory5("Status", Status, "Active" /* Active */)
1237
+ });
1238
+ var MasterExpenseNameQuerySchema = BaseQuerySchema5.extend({
1239
+ organisation_ids: multi_select_optional5("Organisation"),
1240
+ // ✅ Multi-selection -> UserOrganisation
1241
+ expense_name_ids: multi_select_optional5("Expense Name"),
1242
+ // ✅ Multi-selection -> MasterExpenseName
1243
+ expense_category: enumArrayOptional2("Expense Category", ExpenseCategory)
1244
+ // ✅ Multi-selection -> ExpenseCategory
1245
+ });
1246
+ var toMasterExpenseNamePayload = (expense) => {
1247
+ var _a;
1248
+ return {
1249
+ organisation_id: (_a = expense.organisation_id) != null ? _a : "",
1250
+ expense_name: expense.expense_name,
1251
+ expense_category: expense.expense_category,
1252
+ status: expense.status
1253
+ };
1254
+ };
1255
+ var newMasterExpenseNamePayload = () => ({
1256
+ organisation_id: "",
1257
+ expense_name: "",
1258
+ expense_category: "Main" /* Main */,
1259
+ status: "Active" /* Active */
1260
+ });
1261
+ var findMasterExpenseNames = async (data) => {
1262
+ return apiPost(ENDPOINTS4.find, data);
1263
+ };
1264
+ var createMasterExpenseName = async (data) => {
1265
+ return apiPost(ENDPOINTS4.create, data);
1266
+ };
1267
+ var updateMasterExpenseName = async (id, data) => {
1268
+ return apiPatch(ENDPOINTS4.update(id), data);
1269
+ };
1270
+ var deleteMasterExpenseName = async (id) => {
1271
+ return apiDelete(ENDPOINTS4.delete(id));
1272
+ };
1273
+ var getMasterExpenseNameCache = async (organisation_id) => {
1274
+ return apiGet(ENDPOINTS4.cache(organisation_id));
1275
+ };
1276
+
1277
+ // src/services/master/expense/master_expense_type_service.ts
1278
+ import { z as z7 } from "zod";
1279
+ import {
1280
+ stringMandatory as stringMandatory6,
1281
+ enumMandatory as enumMandatory6,
1282
+ multi_select_optional as multi_select_optional6,
1283
+ single_select_mandatory as single_select_mandatory5
1284
+ } from "zod/zod_utils";
1285
+ import { BaseQuerySchema as BaseQuerySchema6 } from "zod/zod_base_schema";
1286
+ var URL5 = "master/expense/expense_type";
1287
+ var ENDPOINTS5 = {
1288
+ find: `${URL5}/search`,
1289
+ create: URL5,
1290
+ update: (id) => `${URL5}/${id}`,
1291
+ delete: (id) => `${URL5}/${id}`,
1292
+ cache: (organisation_id) => `${URL5}/cache/${organisation_id}`
1293
+ };
1294
+ var MasterExpenseTypeSchema = z7.object({
1295
+ organisation_id: single_select_mandatory5("Organisation"),
1296
+ // ✅ Single-selection -> UserOrganisation
1297
+ expense_type_name: stringMandatory6("Expense Type Name", 3, 100),
1298
+ status: enumMandatory6("Status", Status, "Active" /* Active */)
1299
+ });
1300
+ var MasterExpenseTypeQuerySchema = BaseQuerySchema6.extend({
1301
+ organisation_ids: multi_select_optional6("Organisation"),
1302
+ // ✅ Multi-selection -> UserOrganisation
1303
+ expense_type_ids: multi_select_optional6("Expense Type")
1304
+ // ✅ Multi-selection -> MasterExpenseType
1305
+ });
1306
+ var toMasterExpenseTypePayload = (expenseType) => {
1307
+ var _a;
1308
+ return {
1309
+ organisation_id: (_a = expenseType.organisation_id) != null ? _a : "",
1310
+ expense_type_name: expenseType.expense_type_name,
1311
+ status: expenseType.status
1312
+ };
1313
+ };
1314
+ var newMasterExpenseTypePayload = () => ({
1315
+ organisation_id: "",
1316
+ expense_type_name: "",
1317
+ status: "Active" /* Active */
1318
+ });
1319
+ var findMasterExpenseTypes = async (data) => {
1320
+ return apiPost(ENDPOINTS5.find, data);
1321
+ };
1322
+ var createMasterExpenseType = async (data) => {
1323
+ return apiPost(ENDPOINTS5.create, data);
1324
+ };
1325
+ var updateMasterExpenseType = async (id, data) => {
1326
+ return apiPatch(ENDPOINTS5.update(id), data);
1327
+ };
1328
+ var deleteMasterExpenseType = async (id) => {
1329
+ return apiDelete(ENDPOINTS5.delete(id));
1330
+ };
1331
+ var getMasterExpenseTypeCache = async (organisation_id) => {
1332
+ return apiGet(ENDPOINTS5.cache(organisation_id));
1333
+ };
1334
+
1335
+ // src/services/master/expense/master_vendor_type_service.ts
1336
+ import { z as z8 } from "zod";
1337
+ import {
1338
+ stringMandatory as stringMandatory7,
1339
+ single_select_mandatory as single_select_mandatory6,
1340
+ multi_select_optional as multi_select_optional7,
1341
+ enumMandatory as enumMandatory7,
1342
+ stringOptional as stringOptional5
1343
+ } from "zod/zod_utils";
1344
+ import { BaseQuerySchema as BaseQuerySchema7 } from "zod/zod_base_schema";
1345
+ var URL6 = "master/expense/vendor_type";
1346
+ var ENDPOINTS6 = {
1347
+ find: `${URL6}/search`,
1348
+ create: URL6,
1349
+ update: (id) => `${URL6}/${id}`,
1350
+ delete: (id) => `${URL6}/${id}`,
1351
+ cache: (organisation_id) => `${URL6}/cache/${organisation_id}`
1352
+ };
1353
+ var MasterVendorTypeSchema = z8.object({
1354
+ organisation_id: single_select_mandatory6("Organisation"),
1355
+ // ✅ Single-selection -> UserOrganisation
1356
+ vendor_type: stringMandatory7("Vendor Type", 3, 100),
1357
+ description: stringOptional5("Description", 0, 100),
1358
+ status: enumMandatory7("Status", Status, "Active" /* Active */)
1359
+ });
1360
+ var MasterVendorTypeQuerySchema = BaseQuerySchema7.extend({
1361
+ organisation_ids: multi_select_optional7("Organisation"),
1362
+ // ✅ Multi-selection -> UserOrganisation
1363
+ vendor_type_ids: multi_select_optional7("Vendor Type")
1364
+ // ✅ Multi-selection -> MasterVendorType
1365
+ });
1366
+ var toMasterVendorTypePayload = (vendorType) => {
1367
+ var _a, _b;
1368
+ return {
1369
+ organisation_id: (_a = vendorType.organisation_id) != null ? _a : "",
1370
+ vendor_type: vendorType.vendor_type,
1371
+ description: (_b = vendorType.description) != null ? _b : "",
1372
+ status: vendorType.status
1373
+ };
1374
+ };
1375
+ var newMasterVendorTypePayload = () => ({
1376
+ organisation_id: "",
1377
+ vendor_type: "",
1378
+ description: "",
1379
+ status: "Active" /* Active */
1380
+ });
1381
+ var findMasterVendorTypes = async (data) => {
1382
+ return apiPost(
1383
+ ENDPOINTS6.find,
1384
+ data
1385
+ );
1386
+ };
1387
+ var createMasterVendorType = async (data) => {
1388
+ return apiPost(ENDPOINTS6.create, data);
1389
+ };
1390
+ var updateMasterVendorType = async (id, data) => {
1391
+ return apiPatch(ENDPOINTS6.update(id), data);
1392
+ };
1393
+ var deleteMasterVendorType = async (id) => {
1394
+ return apiDelete(ENDPOINTS6.delete(id));
1395
+ };
1396
+ var getMasterVendorTypeCache = async (organisation_id) => {
1397
+ return apiGet(ENDPOINTS6.cache(organisation_id));
1398
+ };
1208
1399
  export {
1209
1400
  AdminRole,
1210
1401
  AlertSubType,
@@ -1249,6 +1440,12 @@ export {
1249
1440
  MasterDeviceModelSchema,
1250
1441
  MasterDeviceTypeQuerySchema,
1251
1442
  MasterDeviceTypeSchema,
1443
+ MasterExpenseNameQuerySchema,
1444
+ MasterExpenseNameSchema,
1445
+ MasterExpenseTypeQuerySchema,
1446
+ MasterExpenseTypeSchema,
1447
+ MasterVendorTypeQuerySchema,
1448
+ MasterVendorTypeSchema,
1252
1449
  MenuType,
1253
1450
  Module,
1254
1451
  MongoBaseQuerySchema,
@@ -1292,6 +1489,9 @@ export {
1292
1489
  createMasterDeviceManufacturer,
1293
1490
  createMasterDeviceModel,
1294
1491
  createMasterDeviceType,
1492
+ createMasterExpenseName,
1493
+ createMasterExpenseType,
1494
+ createMasterVendorType,
1295
1495
  dateMandatory,
1296
1496
  dateOptional,
1297
1497
  dateTimeMandatory,
@@ -1299,6 +1499,9 @@ export {
1299
1499
  deleteMasterDeviceManufacturer,
1300
1500
  deleteMasterDeviceModel,
1301
1501
  deleteMasterDeviceType,
1502
+ deleteMasterExpenseName,
1503
+ deleteMasterExpenseType,
1504
+ deleteMasterVendorType,
1302
1505
  doubleMandatory,
1303
1506
  doubleMandatoryAmount,
1304
1507
  doubleMandatoryLatLng,
@@ -1313,6 +1516,9 @@ export {
1313
1516
  findMasterDeviceManufacturers,
1314
1517
  findMasterDeviceModels,
1315
1518
  findMasterDeviceTypes,
1519
+ findMasterExpenseNames,
1520
+ findMasterExpenseTypes,
1521
+ findMasterVendorTypes,
1316
1522
  getAllEnums,
1317
1523
  getMasterDeviceManufacturerCache,
1318
1524
  getMasterDeviceManufacturerCacheChild,
@@ -1323,6 +1529,9 @@ export {
1323
1529
  getMasterDeviceTypeCache,
1324
1530
  getMasterDeviceTypeCacheChild,
1325
1531
  getMasterDeviceTypeCacheCount,
1532
+ getMasterExpenseNameCache,
1533
+ getMasterExpenseTypeCache,
1534
+ getMasterVendorTypeCache,
1326
1535
  multi_select_mandatory,
1327
1536
  multi_select_optional,
1328
1537
  nestedArrayOfObjectMandatory,
@@ -1332,6 +1541,9 @@ export {
1332
1541
  newMasterDeviceManufacturerPayload,
1333
1542
  newMasterDeviceModelPayload,
1334
1543
  newMasterDeviceTypePayload,
1544
+ newMasterExpenseNamePayload,
1545
+ newMasterExpenseTypePayload,
1546
+ newMasterVendorTypePayload,
1335
1547
  numberArrayMandatory,
1336
1548
  numberArrayOptional,
1337
1549
  numberMandatory,
@@ -1348,9 +1560,15 @@ export {
1348
1560
  toMasterDeviceManufacturerPayload,
1349
1561
  toMasterDeviceModelPayload,
1350
1562
  toMasterDeviceTypePayload,
1563
+ toMasterExpenseNamePayload,
1564
+ toMasterExpenseTypePayload,
1565
+ toMasterVendorTypePayload,
1351
1566
  updateMasterDeviceManufacturer,
1352
1567
  updateMasterDeviceModel,
1353
1568
  updateMasterDeviceType,
1569
+ updateMasterExpenseName,
1570
+ updateMasterExpenseType,
1571
+ updateMasterVendorType,
1354
1572
  withDefaults
1355
1573
  };
1356
1574
  //# sourceMappingURL=index.js.map