@fesmex/models 0.1.54 → 0.1.56
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.cjs +151 -98
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -24
- package/dist/index.d.ts +48 -24
- package/dist/index.js +154 -103
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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$
|
|
18
|
+
declare const _default$t: 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$
|
|
37
|
+
declare const _default$s: 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$
|
|
57
|
+
declare const _default$r: 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$
|
|
72
|
+
declare const _default$q: 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$
|
|
87
|
+
declare const _default$p: 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$
|
|
102
|
+
declare const _default$o: 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$
|
|
117
|
+
declare const _default$n: 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$m: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
122
122
|
id: string;
|
|
123
123
|
}, any, ClientSalesEmployeeType>;
|
|
124
124
|
|
|
125
|
-
declare const _default$
|
|
125
|
+
declare const _default$m: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
126
126
|
created_at: NativeDate;
|
|
127
127
|
description: string;
|
|
128
128
|
article_number: string;
|
|
@@ -1062,7 +1062,7 @@ declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1062
1062
|
__v: number;
|
|
1063
1063
|
}>;
|
|
1064
1064
|
|
|
1065
|
-
declare const _default$
|
|
1065
|
+
declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1066
1066
|
name: string;
|
|
1067
1067
|
description?: string;
|
|
1068
1068
|
}, {}, {}, {
|
|
@@ -1132,7 +1132,7 @@ declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1132
1132
|
__v: number;
|
|
1133
1133
|
}>;
|
|
1134
1134
|
|
|
1135
|
-
declare const _default$
|
|
1135
|
+
declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1136
1136
|
name: string;
|
|
1137
1137
|
description?: string;
|
|
1138
1138
|
}, {}, {}, {
|
|
@@ -1202,7 +1202,7 @@ declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1202
1202
|
__v: number;
|
|
1203
1203
|
}>;
|
|
1204
1204
|
|
|
1205
|
-
declare const _default$
|
|
1205
|
+
declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1206
1206
|
created_at: NativeDate;
|
|
1207
1207
|
article_id: Types.ObjectId;
|
|
1208
1208
|
price_list_id: Types.ObjectId;
|
|
@@ -1332,7 +1332,7 @@ declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1332
1332
|
__v: number;
|
|
1333
1333
|
}>;
|
|
1334
1334
|
|
|
1335
|
-
declare const _default$
|
|
1335
|
+
declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1336
1336
|
symbol: string;
|
|
1337
1337
|
name: string;
|
|
1338
1338
|
code: string;
|
|
@@ -1412,7 +1412,7 @@ declare const _default$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1412
1412
|
__v: number;
|
|
1413
1413
|
}>;
|
|
1414
1414
|
|
|
1415
|
-
declare const _default$
|
|
1415
|
+
declare const _default$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1416
1416
|
created_at: NativeDate;
|
|
1417
1417
|
name: string;
|
|
1418
1418
|
code: string;
|
|
@@ -1512,7 +1512,7 @@ declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1512
1512
|
__v: number;
|
|
1513
1513
|
}>;
|
|
1514
1514
|
|
|
1515
|
-
declare const _default$
|
|
1515
|
+
declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1516
1516
|
updated_at: NativeDate;
|
|
1517
1517
|
article_id: Types.ObjectId;
|
|
1518
1518
|
warehouse_id: Types.ObjectId;
|
|
@@ -1632,7 +1632,7 @@ declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1632
1632
|
__v: number;
|
|
1633
1633
|
}>;
|
|
1634
1634
|
|
|
1635
|
-
declare const _default$
|
|
1635
|
+
declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1636
1636
|
number: string;
|
|
1637
1637
|
created_at: NativeDate;
|
|
1638
1638
|
name: string;
|
|
@@ -1722,7 +1722,7 @@ declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1722
1722
|
__v: number;
|
|
1723
1723
|
}>;
|
|
1724
1724
|
|
|
1725
|
-
declare const _default$
|
|
1725
|
+
declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1726
1726
|
created_at: NativeDate;
|
|
1727
1727
|
updated_at: NativeDate;
|
|
1728
1728
|
name: string;
|
|
@@ -1842,7 +1842,7 @@ declare const _default$d: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1842
1842
|
__v: number;
|
|
1843
1843
|
}>;
|
|
1844
1844
|
|
|
1845
|
-
declare const _default$
|
|
1845
|
+
declare const _default$d: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1846
1846
|
created_at: NativeDate;
|
|
1847
1847
|
updated_at: NativeDate;
|
|
1848
1848
|
type: "filter" | "sidebar";
|
|
@@ -1952,6 +1952,13 @@ declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1952
1952
|
__v: number;
|
|
1953
1953
|
}>;
|
|
1954
1954
|
|
|
1955
|
+
interface ArticleViewType {
|
|
1956
|
+
article_id: Types.ObjectId;
|
|
1957
|
+
visited_at: Date;
|
|
1958
|
+
}
|
|
1959
|
+
type ArticleViewModel = Model<ArticleViewType>;
|
|
1960
|
+
declare const ArticleView: ArticleViewModel;
|
|
1961
|
+
|
|
1955
1962
|
declare enum QuoteStatus {
|
|
1956
1963
|
OPPORTUNITY = "OPPORTUNITY",
|
|
1957
1964
|
QUOTE = "QUOTE",
|
|
@@ -1968,13 +1975,13 @@ declare enum CreatedMethod {
|
|
|
1968
1975
|
MANUAL = "MANUAL",
|
|
1969
1976
|
CSV = "CSV"
|
|
1970
1977
|
}
|
|
1978
|
+
declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1979
|
+
|
|
1971
1980
|
declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1972
1981
|
|
|
1973
1982
|
declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1974
1983
|
|
|
1975
|
-
declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any, any
|
|
1976
|
-
|
|
1977
|
-
declare const _default$8: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1984
|
+
declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1978
1985
|
created_at: NativeDate;
|
|
1979
1986
|
quote_id: mongoose.Types.ObjectId;
|
|
1980
1987
|
email?: string;
|
|
@@ -2084,7 +2091,7 @@ declare const _default$8: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
2084
2091
|
__v: number;
|
|
2085
2092
|
}>;
|
|
2086
2093
|
|
|
2087
|
-
declare const _default$
|
|
2094
|
+
declare const _default$8: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
2088
2095
|
|
|
2089
2096
|
declare enum CustomerStatus {
|
|
2090
2097
|
ACTIVE = "active",
|
|
@@ -2138,7 +2145,7 @@ declare enum PaymentStatus {
|
|
|
2138
2145
|
PAID = "PAID",
|
|
2139
2146
|
REFUNDED = "REFUNDED"
|
|
2140
2147
|
}
|
|
2141
|
-
declare const _default$
|
|
2148
|
+
declare const _default$7: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
2142
2149
|
|
|
2143
2150
|
interface OrderStatusLogType {
|
|
2144
2151
|
order_id: Types.ObjectId;
|
|
@@ -2147,7 +2154,7 @@ interface OrderStatusLogType {
|
|
|
2147
2154
|
changed_at?: Date;
|
|
2148
2155
|
note?: string;
|
|
2149
2156
|
}
|
|
2150
|
-
declare const _default$
|
|
2157
|
+
declare const _default$6: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderStatusLogType, {}, {}, {}, mongoose.Document<unknown, {}, OrderStatusLogType, {}, mongoose.DefaultSchemaOptions> & OrderStatusLogType & {
|
|
2151
2158
|
_id: Types.ObjectId;
|
|
2152
2159
|
} & {
|
|
2153
2160
|
__v: number;
|
|
@@ -2155,6 +2162,23 @@ declare const _default$5: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
2155
2162
|
id: string;
|
|
2156
2163
|
}, any, OrderStatusLogType>;
|
|
2157
2164
|
|
|
2165
|
+
interface StateType {
|
|
2166
|
+
_id?: mongoose.Types.ObjectId;
|
|
2167
|
+
name: string;
|
|
2168
|
+
code?: string;
|
|
2169
|
+
percentage: number;
|
|
2170
|
+
is_active: boolean;
|
|
2171
|
+
created_at?: Date;
|
|
2172
|
+
updated_at?: Date;
|
|
2173
|
+
}
|
|
2174
|
+
declare const _default$5: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<StateType, {}, {}, {}, mongoose.Document<unknown, {}, StateType, {}, mongoose.DefaultSchemaOptions> & StateType & Required<{
|
|
2175
|
+
_id: mongoose.Types.ObjectId;
|
|
2176
|
+
}> & {
|
|
2177
|
+
__v: number;
|
|
2178
|
+
} & {
|
|
2179
|
+
id: string;
|
|
2180
|
+
}, any, StateType>;
|
|
2181
|
+
|
|
2158
2182
|
/**
|
|
2159
2183
|
* Sync Log Types
|
|
2160
2184
|
*/
|
|
@@ -2398,4 +2422,4 @@ declare const _default: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoos
|
|
|
2398
2422
|
id: string;
|
|
2399
2423
|
}, any, OrderPaymentDocument>;
|
|
2400
2424
|
|
|
2401
|
-
export { _default$3 as Announcement, type AnnouncementType, _default$
|
|
2425
|
+
export { _default$3 as Announcement, type AnnouncementType, _default$m as Article, _default$k as ArticleClass, _default$l as ArticleGroup, _default$j as ArticlePrice, ArticleView, _default$2 as Cart, type CartItem, type CartType, _default$e as Category, _default$t as Client, _default$r as ClientAddress, type ClientAddressType, _default$s as ClientContact, type ClientContactType, _default$q as ClientPaymentMethod, type ClientPaymentMethodType, _default$p as ClientPaymentTerm, type ClientPaymentTermType, _default$o as ClientPriceList, type ClientPriceListType, _default$n as ClientSalesEmployee, type ClientSalesEmployeeType, type ClientType, CreatedMethod, _default$i as Currency, Customer, type CustomerDoc, type CustomerModel, _default$1 as CustomerPaymentMethod, CustomerStatus, type CustomerType, EmailVerificationToken, type EmailVerificationTokenDoc, type EmailVerificationTokenModel, type EmailVerificationTokenType, FiscalProfile, type FiscalProfileDoc, type FiscalProfileModel, type FiscalProfileType, type ISyncLog, _default$g as InventoryStock, _default$7 as Order, _default as OrderPayment, OrderStatus, _default$6 as OrderStatusLog, type OrderStatusLogType, PasswordResetToken, type PasswordResetTokenDoc, type PasswordResetTokenModel, type PasswordResetTokenType, PaymentMethod, PaymentMethodType, type PaymentMethodWallet, PaymentProvider$1 as PaymentProvider, PaymentStatus, _default$f as PriceList, _default$c as Quote, _default$b as QuoteArticle, _default$a as QuoteArticleExtra, _default$9 as QuoteContact, QuoteStatus, _default$8 as QuoteTerm, RefreshToken, type RefreshTokenDoc, type RefreshTokenModel, type RefreshTokenType, _default$5 as State, type StateType, Status, SyncLog, SyncLogAction, SyncLogStatus, SyncLogType, _default$d as Tag, TransactionMethod, TransactionStatus, UserRole, UserStatus, type UserType, _default$4 as Users, _default$h as Warehouse };
|