@fesmex/models 0.1.49 → 0.1.51

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
@@ -15,7 +15,7 @@ interface ClientType {
15
15
  created_at?: Date;
16
16
  updated_at?: Date;
17
17
  }
18
- declare const _default$o: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientType, {}, {}, {}, mongoose.Document<unknown, {}, ClientType, {}, mongoose.DefaultSchemaOptions> & ClientType & {
18
+ declare const _default$q: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientType, {}, {}, {}, mongoose.Document<unknown, {}, ClientType, {}, mongoose.DefaultSchemaOptions> & ClientType & {
19
19
  _id: mongoose.Types.ObjectId;
20
20
  } & {
21
21
  __v: number;
@@ -34,7 +34,7 @@ interface ClientContactType {
34
34
  created_at?: Date;
35
35
  updated_at?: Date;
36
36
  }
37
- declare const _default$n: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientContactType, {}, {}, {}, mongoose.Document<unknown, {}, ClientContactType, {}, mongoose.DefaultSchemaOptions> & ClientContactType & {
37
+ declare const _default$p: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientContactType, {}, {}, {}, mongoose.Document<unknown, {}, ClientContactType, {}, mongoose.DefaultSchemaOptions> & ClientContactType & {
38
38
  _id: Types.ObjectId;
39
39
  } & {
40
40
  __v: number;
@@ -54,7 +54,7 @@ interface ClientAddressType {
54
54
  created_at?: Date;
55
55
  updated_at?: Date;
56
56
  }
57
- declare const _default$m: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientAddressType, {}, {}, {}, mongoose.Document<unknown, {}, ClientAddressType, {}, mongoose.DefaultSchemaOptions> & ClientAddressType & {
57
+ declare const _default$o: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientAddressType, {}, {}, {}, mongoose.Document<unknown, {}, ClientAddressType, {}, mongoose.DefaultSchemaOptions> & ClientAddressType & {
58
58
  _id: Types.ObjectId;
59
59
  } & {
60
60
  __v: number;
@@ -69,7 +69,7 @@ interface ClientPaymentMethodType {
69
69
  created_at?: Date;
70
70
  updated_at?: Date;
71
71
  }
72
- declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientPaymentMethodType, {}, {}, {}, mongoose.Document<unknown, {}, ClientPaymentMethodType, {}, mongoose.DefaultSchemaOptions> & ClientPaymentMethodType & {
72
+ declare const _default$n: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientPaymentMethodType, {}, {}, {}, mongoose.Document<unknown, {}, ClientPaymentMethodType, {}, mongoose.DefaultSchemaOptions> & ClientPaymentMethodType & {
73
73
  _id: Types.ObjectId;
74
74
  } & {
75
75
  __v: number;
@@ -84,7 +84,7 @@ interface ClientPaymentTermType {
84
84
  created_at?: Date;
85
85
  updated_at?: Date;
86
86
  }
87
- declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientPaymentTermType, {}, {}, {}, mongoose.Document<unknown, {}, ClientPaymentTermType, {}, mongoose.DefaultSchemaOptions> & ClientPaymentTermType & {
87
+ declare const _default$m: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientPaymentTermType, {}, {}, {}, mongoose.Document<unknown, {}, ClientPaymentTermType, {}, mongoose.DefaultSchemaOptions> & ClientPaymentTermType & {
88
88
  _id: Types.ObjectId;
89
89
  } & {
90
90
  __v: number;
@@ -99,7 +99,7 @@ interface ClientPriceListType {
99
99
  created_at?: Date;
100
100
  updated_at?: Date;
101
101
  }
102
- declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientPriceListType, {}, {}, {}, mongoose.Document<unknown, {}, ClientPriceListType, {}, mongoose.DefaultSchemaOptions> & ClientPriceListType & {
102
+ declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientPriceListType, {}, {}, {}, mongoose.Document<unknown, {}, ClientPriceListType, {}, mongoose.DefaultSchemaOptions> & ClientPriceListType & {
103
103
  _id: Types.ObjectId;
104
104
  } & {
105
105
  __v: number;
@@ -114,7 +114,7 @@ interface ClientSalesEmployeeType {
114
114
  created_at?: Date;
115
115
  updated_at?: Date;
116
116
  }
117
- declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientSalesEmployeeType, {}, {}, {}, mongoose.Document<unknown, {}, ClientSalesEmployeeType, {}, mongoose.DefaultSchemaOptions> & ClientSalesEmployeeType & {
117
+ declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientSalesEmployeeType, {}, {}, {}, mongoose.Document<unknown, {}, ClientSalesEmployeeType, {}, mongoose.DefaultSchemaOptions> & ClientSalesEmployeeType & {
118
118
  _id: Types.ObjectId;
119
119
  } & {
120
120
  __v: number;
@@ -122,7 +122,7 @@ declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
122
122
  id: string;
123
123
  }, any, ClientSalesEmployeeType>;
124
124
 
125
- declare const _default$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
125
+ declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
126
126
  created_at: NativeDate;
127
127
  description: string;
128
128
  article_number: string;
@@ -1042,7 +1042,7 @@ declare const _default$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
1042
1042
  __v: number;
1043
1043
  }>;
1044
1044
 
1045
- declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1045
+ declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1046
1046
  name: string;
1047
1047
  description?: string;
1048
1048
  }, {}, {}, {
@@ -1112,7 +1112,7 @@ declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
1112
1112
  __v: number;
1113
1113
  }>;
1114
1114
 
1115
- declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1115
+ declare const _default$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1116
1116
  name: string;
1117
1117
  description?: string;
1118
1118
  }, {}, {}, {
@@ -1182,7 +1182,7 @@ declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
1182
1182
  __v: number;
1183
1183
  }>;
1184
1184
 
1185
- declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1185
+ declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1186
1186
  created_at: NativeDate;
1187
1187
  article_id: Types.ObjectId;
1188
1188
  price_list_id: Types.ObjectId;
@@ -1312,7 +1312,7 @@ declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
1312
1312
  __v: number;
1313
1313
  }>;
1314
1314
 
1315
- declare const _default$d: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1315
+ declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1316
1316
  symbol: string;
1317
1317
  name: string;
1318
1318
  code: string;
@@ -1392,7 +1392,7 @@ declare const _default$d: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
1392
1392
  __v: number;
1393
1393
  }>;
1394
1394
 
1395
- declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1395
+ declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1396
1396
  created_at: NativeDate;
1397
1397
  name: string;
1398
1398
  code: string;
@@ -1492,7 +1492,7 @@ declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
1492
1492
  __v: number;
1493
1493
  }>;
1494
1494
 
1495
- declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1495
+ declare const _default$d: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1496
1496
  updated_at: NativeDate;
1497
1497
  article_id: Types.ObjectId;
1498
1498
  warehouse_id: Types.ObjectId;
@@ -1612,7 +1612,7 @@ declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
1612
1612
  __v: number;
1613
1613
  }>;
1614
1614
 
1615
- declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1615
+ declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1616
1616
  number: string;
1617
1617
  created_at: NativeDate;
1618
1618
  name: string;
@@ -1702,6 +1702,236 @@ declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
1702
1702
  __v: number;
1703
1703
  }>;
1704
1704
 
1705
+ declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1706
+ created_at: NativeDate;
1707
+ updated_at: NativeDate;
1708
+ name: string;
1709
+ slug: string;
1710
+ order: number;
1711
+ is_active: boolean;
1712
+ parent_id?: Types.ObjectId;
1713
+ }, {}, {}, {
1714
+ id: string;
1715
+ }, mongoose.Document<unknown, {}, {
1716
+ created_at: NativeDate;
1717
+ updated_at: NativeDate;
1718
+ name: string;
1719
+ slug: string;
1720
+ order: number;
1721
+ is_active: boolean;
1722
+ parent_id?: Types.ObjectId;
1723
+ }, {
1724
+ id: string;
1725
+ }, mongoose.DefaultSchemaOptions> & Omit<{
1726
+ created_at: NativeDate;
1727
+ updated_at: NativeDate;
1728
+ name: string;
1729
+ slug: string;
1730
+ order: number;
1731
+ is_active: boolean;
1732
+ parent_id?: Types.ObjectId;
1733
+ } & {
1734
+ _id: Types.ObjectId;
1735
+ } & {
1736
+ __v: number;
1737
+ }, "id"> & {
1738
+ id: string;
1739
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1740
+ created_at: NativeDate;
1741
+ updated_at: NativeDate;
1742
+ name: string;
1743
+ slug: string;
1744
+ order: number;
1745
+ is_active: boolean;
1746
+ parent_id?: Types.ObjectId;
1747
+ }, mongoose.Document<unknown, {}, {
1748
+ created_at: NativeDate;
1749
+ updated_at: NativeDate;
1750
+ name: string;
1751
+ slug: string;
1752
+ order: number;
1753
+ is_active: boolean;
1754
+ parent_id?: Types.ObjectId;
1755
+ }, {
1756
+ id: string;
1757
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
1758
+ created_at: NativeDate;
1759
+ updated_at: NativeDate;
1760
+ name: string;
1761
+ slug: string;
1762
+ order: number;
1763
+ is_active: boolean;
1764
+ parent_id?: Types.ObjectId;
1765
+ } & {
1766
+ _id: Types.ObjectId;
1767
+ } & {
1768
+ __v: number;
1769
+ }, "id"> & {
1770
+ id: string;
1771
+ }, {
1772
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
1773
+ } | {
1774
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
1775
+ created_at: NativeDate;
1776
+ updated_at: NativeDate;
1777
+ name: string;
1778
+ slug: string;
1779
+ order: number;
1780
+ is_active: boolean;
1781
+ parent_id?: Types.ObjectId;
1782
+ }, {
1783
+ id: string;
1784
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
1785
+ created_at: NativeDate;
1786
+ updated_at: NativeDate;
1787
+ name: string;
1788
+ slug: string;
1789
+ order: number;
1790
+ is_active: boolean;
1791
+ parent_id?: Types.ObjectId;
1792
+ } & {
1793
+ _id: Types.ObjectId;
1794
+ } & {
1795
+ __v: number;
1796
+ }, "id"> & {
1797
+ id: string;
1798
+ }>;
1799
+ }, {
1800
+ created_at: NativeDate;
1801
+ updated_at: NativeDate;
1802
+ name: string;
1803
+ slug: string;
1804
+ order: number;
1805
+ is_active: boolean;
1806
+ parent_id?: Types.ObjectId;
1807
+ } & {
1808
+ _id: Types.ObjectId;
1809
+ } & {
1810
+ __v: number;
1811
+ }>, {
1812
+ created_at: NativeDate;
1813
+ updated_at: NativeDate;
1814
+ name: string;
1815
+ slug: string;
1816
+ order: number;
1817
+ is_active: boolean;
1818
+ parent_id?: Types.ObjectId;
1819
+ } & {
1820
+ _id: Types.ObjectId;
1821
+ } & {
1822
+ __v: number;
1823
+ }>;
1824
+
1825
+ declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1826
+ created_at: NativeDate;
1827
+ updated_at: NativeDate;
1828
+ type: "filter" | "sidebar";
1829
+ name: string;
1830
+ slug: string;
1831
+ is_active: boolean;
1832
+ }, {}, {}, {
1833
+ id: string;
1834
+ }, mongoose.Document<unknown, {}, {
1835
+ created_at: NativeDate;
1836
+ updated_at: NativeDate;
1837
+ type: "filter" | "sidebar";
1838
+ name: string;
1839
+ slug: string;
1840
+ is_active: boolean;
1841
+ }, {
1842
+ id: string;
1843
+ }, mongoose.DefaultSchemaOptions> & Omit<{
1844
+ created_at: NativeDate;
1845
+ updated_at: NativeDate;
1846
+ type: "filter" | "sidebar";
1847
+ name: string;
1848
+ slug: string;
1849
+ is_active: boolean;
1850
+ } & {
1851
+ _id: mongoose.Types.ObjectId;
1852
+ } & {
1853
+ __v: number;
1854
+ }, "id"> & {
1855
+ id: string;
1856
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
1857
+ created_at: NativeDate;
1858
+ updated_at: NativeDate;
1859
+ type: "filter" | "sidebar";
1860
+ name: string;
1861
+ slug: string;
1862
+ is_active: boolean;
1863
+ }, mongoose.Document<unknown, {}, {
1864
+ created_at: NativeDate;
1865
+ updated_at: NativeDate;
1866
+ type: "filter" | "sidebar";
1867
+ name: string;
1868
+ slug: string;
1869
+ is_active: boolean;
1870
+ }, {
1871
+ id: string;
1872
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
1873
+ created_at: NativeDate;
1874
+ updated_at: NativeDate;
1875
+ type: "filter" | "sidebar";
1876
+ name: string;
1877
+ slug: string;
1878
+ is_active: boolean;
1879
+ } & {
1880
+ _id: mongoose.Types.ObjectId;
1881
+ } & {
1882
+ __v: number;
1883
+ }, "id"> & {
1884
+ id: string;
1885
+ }, {
1886
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
1887
+ } | {
1888
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
1889
+ created_at: NativeDate;
1890
+ updated_at: NativeDate;
1891
+ type: "filter" | "sidebar";
1892
+ name: string;
1893
+ slug: string;
1894
+ is_active: boolean;
1895
+ }, {
1896
+ id: string;
1897
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
1898
+ created_at: NativeDate;
1899
+ updated_at: NativeDate;
1900
+ type: "filter" | "sidebar";
1901
+ name: string;
1902
+ slug: string;
1903
+ is_active: boolean;
1904
+ } & {
1905
+ _id: mongoose.Types.ObjectId;
1906
+ } & {
1907
+ __v: number;
1908
+ }, "id"> & {
1909
+ id: string;
1910
+ }>;
1911
+ }, {
1912
+ created_at: NativeDate;
1913
+ updated_at: NativeDate;
1914
+ type: "filter" | "sidebar";
1915
+ name: string;
1916
+ slug: string;
1917
+ is_active: boolean;
1918
+ } & {
1919
+ _id: mongoose.Types.ObjectId;
1920
+ } & {
1921
+ __v: number;
1922
+ }>, {
1923
+ created_at: NativeDate;
1924
+ updated_at: NativeDate;
1925
+ type: "filter" | "sidebar";
1926
+ name: string;
1927
+ slug: string;
1928
+ is_active: boolean;
1929
+ } & {
1930
+ _id: mongoose.Types.ObjectId;
1931
+ } & {
1932
+ __v: number;
1933
+ }>;
1934
+
1705
1935
  declare enum QuoteStatus {
1706
1936
  OPPORTUNITY = "OPPORTUNITY",
1707
1937
  QUOTE = "QUOTE",
@@ -2073,4 +2303,4 @@ type EmailVerificationTokenDoc = HydratedDocument<EmailVerificationTokenType>;
2073
2303
  type EmailVerificationTokenModel = Model<EmailVerificationTokenType>;
2074
2304
  declare const EmailVerificationToken: EmailVerificationTokenModel;
2075
2305
 
2076
- export { _default$1 as Announcement, type AnnouncementType, _default$h as Article, _default$f as ArticleClass, _default$g as ArticleGroup, _default$e as ArticlePrice, _default as Cart, type CartItem, type CartType, _default$o as Client, _default$m as ClientAddress, type ClientAddressType, _default$n as ClientContact, type ClientContactType, _default$l as ClientPaymentMethod, type ClientPaymentMethodType, _default$k as ClientPaymentTerm, type ClientPaymentTermType, _default$j as ClientPriceList, type ClientPriceListType, _default$i as ClientSalesEmployee, type ClientSalesEmployeeType, type ClientType, CreatedMethod, _default$d as Currency, Customer, type CustomerDoc, type CustomerModel, CustomerStatus, type CustomerType, EmailVerificationToken, type EmailVerificationTokenDoc, type EmailVerificationTokenModel, type EmailVerificationTokenType, FiscalProfile, type FiscalProfileDoc, type FiscalProfileModel, type FiscalProfileType, type ISyncLog, _default$b as InventoryStock, _default$4 as Order, OrderStatus, _default$3 as OrderStatusLog, type OrderStatusLogType, PasswordResetToken, type PasswordResetTokenDoc, type PasswordResetTokenModel, type PasswordResetTokenType, PaymentMethod, PaymentStatus, _default$a as PriceList, _default$9 as Quote, _default$8 as QuoteArticle, _default$7 as QuoteArticleExtra, _default$6 as QuoteContact, QuoteStatus, _default$5 as QuoteTerm, RefreshToken, type RefreshTokenDoc, type RefreshTokenModel, type RefreshTokenType, Status, SyncLog, SyncLogAction, SyncLogStatus, SyncLogType, UserRole, UserStatus, type UserType, _default$2 as Users, _default$c as Warehouse };
2306
+ export { _default$1 as Announcement, type AnnouncementType, _default$j as Article, _default$h as ArticleClass, _default$i as ArticleGroup, _default$g as ArticlePrice, _default as Cart, type CartItem, type CartType, _default$b as Category, _default$q as Client, _default$o as ClientAddress, type ClientAddressType, _default$p as ClientContact, type ClientContactType, _default$n as ClientPaymentMethod, type ClientPaymentMethodType, _default$m as ClientPaymentTerm, type ClientPaymentTermType, _default$l as ClientPriceList, type ClientPriceListType, _default$k as ClientSalesEmployee, type ClientSalesEmployeeType, type ClientType, CreatedMethod, _default$f as Currency, Customer, type CustomerDoc, type CustomerModel, CustomerStatus, type CustomerType, EmailVerificationToken, type EmailVerificationTokenDoc, type EmailVerificationTokenModel, type EmailVerificationTokenType, FiscalProfile, type FiscalProfileDoc, type FiscalProfileModel, type FiscalProfileType, type ISyncLog, _default$d as InventoryStock, _default$4 as Order, OrderStatus, _default$3 as OrderStatusLog, type OrderStatusLogType, PasswordResetToken, type PasswordResetTokenDoc, type PasswordResetTokenModel, type PasswordResetTokenType, PaymentMethod, PaymentStatus, _default$c as PriceList, _default$9 as Quote, _default$8 as QuoteArticle, _default$7 as QuoteArticleExtra, _default$6 as QuoteContact, QuoteStatus, _default$5 as QuoteTerm, RefreshToken, type RefreshTokenDoc, type RefreshTokenModel, type RefreshTokenType, Status, SyncLog, SyncLogAction, SyncLogStatus, SyncLogType, _default$a as Tag, UserRole, UserStatus, type UserType, _default$2 as Users, _default$e as Warehouse };