@fesmex/models 0.1.62 → 0.1.63
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 +113 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -27
- package/dist/index.d.ts +87 -27
- package/dist/index.js +114 -46
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
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$w: 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$v: 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$u: 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$t: 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$s: 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$r: 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$q: 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;
|
|
@@ -163,7 +163,7 @@ interface ArticleType {
|
|
|
163
163
|
updated_at?: Date;
|
|
164
164
|
deleted_at?: Date;
|
|
165
165
|
}
|
|
166
|
-
declare const _default$
|
|
166
|
+
declare const _default$p: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ArticleType, {}, {}, {}, mongoose.Document<unknown, {}, ArticleType, {}, mongoose.DefaultSchemaOptions> & ArticleType & {
|
|
167
167
|
_id: Types.ObjectId;
|
|
168
168
|
} & {
|
|
169
169
|
__v: number;
|
|
@@ -171,7 +171,7 @@ declare const _default$n: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
171
171
|
id: string;
|
|
172
172
|
}, any, ArticleType>;
|
|
173
173
|
|
|
174
|
-
declare const _default$
|
|
174
|
+
declare const _default$o: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
175
175
|
name: string;
|
|
176
176
|
description?: string;
|
|
177
177
|
}, {}, {}, {
|
|
@@ -241,7 +241,7 @@ declare const _default$m: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
241
241
|
__v: number;
|
|
242
242
|
}>;
|
|
243
243
|
|
|
244
|
-
declare const _default$
|
|
244
|
+
declare const _default$n: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
245
245
|
name: string;
|
|
246
246
|
description?: string;
|
|
247
247
|
}, {}, {}, {
|
|
@@ -311,7 +311,7 @@ declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
311
311
|
__v: number;
|
|
312
312
|
}>;
|
|
313
313
|
|
|
314
|
-
declare const _default$
|
|
314
|
+
declare const _default$m: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
315
315
|
created_at: NativeDate;
|
|
316
316
|
article_id: Types.ObjectId;
|
|
317
317
|
price_list_id: Types.ObjectId;
|
|
@@ -441,7 +441,7 @@ declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
441
441
|
__v: number;
|
|
442
442
|
}>;
|
|
443
443
|
|
|
444
|
-
declare const _default$
|
|
444
|
+
declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
445
445
|
symbol: string;
|
|
446
446
|
name: string;
|
|
447
447
|
code: string;
|
|
@@ -521,7 +521,7 @@ declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
521
521
|
__v: number;
|
|
522
522
|
}>;
|
|
523
523
|
|
|
524
|
-
declare const _default$
|
|
524
|
+
declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
525
525
|
created_at: NativeDate;
|
|
526
526
|
name: string;
|
|
527
527
|
code: string;
|
|
@@ -621,7 +621,7 @@ declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
621
621
|
__v: number;
|
|
622
622
|
}>;
|
|
623
623
|
|
|
624
|
-
declare const _default$
|
|
624
|
+
declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
625
625
|
updated_at: NativeDate;
|
|
626
626
|
article_id: Types.ObjectId;
|
|
627
627
|
warehouse_id: Types.ObjectId;
|
|
@@ -756,7 +756,7 @@ interface StockReservationType {
|
|
|
756
756
|
created_at?: Date;
|
|
757
757
|
updated_at?: Date;
|
|
758
758
|
}
|
|
759
|
-
declare const _default$
|
|
759
|
+
declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<StockReservationType, {}, {}, {}, mongoose.Document<unknown, {}, StockReservationType, {}, mongoose.DefaultSchemaOptions> & StockReservationType & {
|
|
760
760
|
_id: Types.ObjectId;
|
|
761
761
|
} & {
|
|
762
762
|
__v: number;
|
|
@@ -764,7 +764,7 @@ declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
764
764
|
id: string;
|
|
765
765
|
}, any, StockReservationType>;
|
|
766
766
|
|
|
767
|
-
declare const _default$
|
|
767
|
+
declare const _default$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
768
768
|
number: string;
|
|
769
769
|
created_at: NativeDate;
|
|
770
770
|
name: string;
|
|
@@ -854,7 +854,7 @@ declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
854
854
|
__v: number;
|
|
855
855
|
}>;
|
|
856
856
|
|
|
857
|
-
declare const _default$
|
|
857
|
+
declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
858
858
|
created_at: NativeDate;
|
|
859
859
|
updated_at: NativeDate;
|
|
860
860
|
name: string;
|
|
@@ -974,7 +974,7 @@ declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
974
974
|
__v: number;
|
|
975
975
|
}>;
|
|
976
976
|
|
|
977
|
-
declare const _default$
|
|
977
|
+
declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
978
978
|
created_at: NativeDate;
|
|
979
979
|
updated_at: NativeDate;
|
|
980
980
|
type: "filter" | "sidebar";
|
|
@@ -1107,13 +1107,13 @@ declare enum CreatedMethod {
|
|
|
1107
1107
|
MANUAL = "MANUAL",
|
|
1108
1108
|
CSV = "CSV"
|
|
1109
1109
|
}
|
|
1110
|
-
declare const _default$
|
|
1110
|
+
declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1111
1111
|
|
|
1112
|
-
declare const _default$
|
|
1112
|
+
declare const _default$d: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1113
1113
|
|
|
1114
|
-
declare const _default$
|
|
1114
|
+
declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1115
1115
|
|
|
1116
|
-
declare const _default$
|
|
1116
|
+
declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1117
1117
|
created_at: NativeDate;
|
|
1118
1118
|
quote_id: mongoose.Types.ObjectId;
|
|
1119
1119
|
email?: string;
|
|
@@ -1223,7 +1223,7 @@ declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1223
1223
|
__v: number;
|
|
1224
1224
|
}>;
|
|
1225
1225
|
|
|
1226
|
-
declare const _default$
|
|
1226
|
+
declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1227
1227
|
|
|
1228
1228
|
declare enum CustomerStatus {
|
|
1229
1229
|
ACTIVE = "active",
|
|
@@ -1323,7 +1323,7 @@ interface OrderType {
|
|
|
1323
1323
|
created_at?: Date;
|
|
1324
1324
|
updated_at?: Date;
|
|
1325
1325
|
}
|
|
1326
|
-
declare const _default$
|
|
1326
|
+
declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderType, {}, {}, {}, mongoose.Document<unknown, {}, OrderType, {}, mongoose.DefaultSchemaOptions> & OrderType & {
|
|
1327
1327
|
_id: Types.ObjectId;
|
|
1328
1328
|
} & {
|
|
1329
1329
|
__v: number;
|
|
@@ -1338,7 +1338,7 @@ interface OrderStatusLogType {
|
|
|
1338
1338
|
changed_at?: Date;
|
|
1339
1339
|
note?: string;
|
|
1340
1340
|
}
|
|
1341
|
-
declare const _default$
|
|
1341
|
+
declare const _default$8: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderStatusLogType, {}, {}, {}, mongoose.Document<unknown, {}, OrderStatusLogType, {}, mongoose.DefaultSchemaOptions> & OrderStatusLogType & {
|
|
1342
1342
|
_id: Types.ObjectId;
|
|
1343
1343
|
} & {
|
|
1344
1344
|
__v: number;
|
|
@@ -1355,7 +1355,7 @@ interface StateType {
|
|
|
1355
1355
|
created_at?: Date;
|
|
1356
1356
|
updated_at?: Date;
|
|
1357
1357
|
}
|
|
1358
|
-
declare const _default$
|
|
1358
|
+
declare const _default$7: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<StateType, {}, {}, {}, mongoose.Document<unknown, {}, StateType, {}, mongoose.DefaultSchemaOptions> & StateType & Required<{
|
|
1359
1359
|
_id: mongoose.Types.ObjectId;
|
|
1360
1360
|
}> & {
|
|
1361
1361
|
__v: number;
|
|
@@ -1410,6 +1410,66 @@ declare const SyncLog: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose
|
|
|
1410
1410
|
id: string;
|
|
1411
1411
|
}, any, ISyncLog>;
|
|
1412
1412
|
|
|
1413
|
+
interface SapOrderType {
|
|
1414
|
+
doc_entry: number;
|
|
1415
|
+
doc_num?: number | null;
|
|
1416
|
+
doc_date?: Date | null;
|
|
1417
|
+
doc_due_date?: Date | null;
|
|
1418
|
+
tax_date?: Date | null;
|
|
1419
|
+
doc_time?: number | null;
|
|
1420
|
+
update_date?: Date | null;
|
|
1421
|
+
update_time?: number | null;
|
|
1422
|
+
card_code?: string | null;
|
|
1423
|
+
card_name?: string | null;
|
|
1424
|
+
doc_total?: number | null;
|
|
1425
|
+
doc_total_fc?: number | null;
|
|
1426
|
+
doc_total_sys?: number | null;
|
|
1427
|
+
doc_currency?: string | null;
|
|
1428
|
+
doc_rate?: number | null;
|
|
1429
|
+
sales_person_code?: number | null;
|
|
1430
|
+
vat_sum?: number | null;
|
|
1431
|
+
cancelled?: string | null;
|
|
1432
|
+
document_status?: string | null;
|
|
1433
|
+
created_at?: Date;
|
|
1434
|
+
updated_at?: Date;
|
|
1435
|
+
}
|
|
1436
|
+
declare const _default$6: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<SapOrderType, {}, {}, {}, mongoose.Document<unknown, {}, SapOrderType, {}, mongoose.DefaultSchemaOptions> & SapOrderType & {
|
|
1437
|
+
_id: mongoose.Types.ObjectId;
|
|
1438
|
+
} & {
|
|
1439
|
+
__v: number;
|
|
1440
|
+
} & {
|
|
1441
|
+
id: string;
|
|
1442
|
+
}, any, SapOrderType>;
|
|
1443
|
+
|
|
1444
|
+
interface SapOrderLineType {
|
|
1445
|
+
doc_entry: number;
|
|
1446
|
+
line_num: number;
|
|
1447
|
+
item_code?: string | null;
|
|
1448
|
+
item_description?: string | null;
|
|
1449
|
+
quantity?: number | null;
|
|
1450
|
+
remaining_open_quantity?: number | null;
|
|
1451
|
+
ship_date?: Date | null;
|
|
1452
|
+
price?: number | null;
|
|
1453
|
+
discount_percent?: number | null;
|
|
1454
|
+
line_total?: number | null;
|
|
1455
|
+
row_total_fc?: number | null;
|
|
1456
|
+
currency?: string | null;
|
|
1457
|
+
rate?: number | null;
|
|
1458
|
+
gross_profit?: number | null;
|
|
1459
|
+
sales_person_code?: number | null;
|
|
1460
|
+
warehouse_code?: string | null;
|
|
1461
|
+
line_status?: string | null;
|
|
1462
|
+
created_at?: Date;
|
|
1463
|
+
updated_at?: Date;
|
|
1464
|
+
}
|
|
1465
|
+
declare const _default$5: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<SapOrderLineType, {}, {}, {}, mongoose.Document<unknown, {}, SapOrderLineType, {}, mongoose.DefaultSchemaOptions> & SapOrderLineType & {
|
|
1466
|
+
_id: mongoose.Types.ObjectId;
|
|
1467
|
+
} & {
|
|
1468
|
+
__v: number;
|
|
1469
|
+
} & {
|
|
1470
|
+
id: string;
|
|
1471
|
+
}, any, SapOrderLineType>;
|
|
1472
|
+
|
|
1413
1473
|
declare enum UserRole {
|
|
1414
1474
|
ADMIN = "admin",
|
|
1415
1475
|
SALES = "sales",
|
|
@@ -1607,4 +1667,4 @@ declare const _default: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoos
|
|
|
1607
1667
|
id: string;
|
|
1608
1668
|
}, any, OrderPaymentDocument>;
|
|
1609
1669
|
|
|
1610
|
-
export { _default$3 as Announcement, type AnnouncementType, _default$
|
|
1670
|
+
export { _default$3 as Announcement, type AnnouncementType, _default$p as Article, _default$n as ArticleClass, type ArticleContentType, _default$o as ArticleGroup, _default$m as ArticlePrice, type ArticleType, ArticleView, _default$2 as Cart, type CartItem, type CartType, _default$g as Category, _default$w as Client, _default$u as ClientAddress, type ClientAddressType, _default$v as ClientContact, type ClientContactType, _default$t as ClientPaymentMethod, type ClientPaymentMethodType, _default$s as ClientPaymentTerm, type ClientPaymentTermType, _default$r as ClientPriceList, type ClientPriceListType, _default$q as ClientSalesEmployee, type ClientSalesEmployeeType, type ClientType, CreatedMethod, _default$l 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$j as InventoryStock, _default$9 as Order, _default as OrderPayment, OrderSapSyncStatus, OrderStatus, _default$8 as OrderStatusLog, type OrderStatusLogType, type OrderType, PasswordResetToken, type PasswordResetTokenDoc, type PasswordResetTokenModel, type PasswordResetTokenType, PaymentMethod, PaymentMethodType, type PaymentMethodWallet, PaymentProvider$1 as PaymentProvider, PaymentStatus, _default$h as PriceList, _default$e as Quote, _default$d as QuoteArticle, _default$c as QuoteArticleExtra, _default$b as QuoteContact, QuoteStatus, _default$a as QuoteTerm, RefreshToken, type RefreshTokenDoc, type RefreshTokenModel, type RefreshTokenType, _default$6 as SapOrder, _default$5 as SapOrderLine, type SapOrderLineType, type SapOrderType, _default$7 as State, type StateType, Status, _default$i as StockReservation, StockReservationStatus, type StockReservationType, SyncLog, SyncLogAction, SyncLogStatus, SyncLogType, _default$f as Tag, TransactionMethod, TransactionStatus, UserRole, UserStatus, type UserType, _default$4 as Users, _default$k as Warehouse };
|
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$w: 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$v: 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$u: 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$t: 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$s: 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$r: 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$q: 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;
|
|
@@ -163,7 +163,7 @@ interface ArticleType {
|
|
|
163
163
|
updated_at?: Date;
|
|
164
164
|
deleted_at?: Date;
|
|
165
165
|
}
|
|
166
|
-
declare const _default$
|
|
166
|
+
declare const _default$p: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ArticleType, {}, {}, {}, mongoose.Document<unknown, {}, ArticleType, {}, mongoose.DefaultSchemaOptions> & ArticleType & {
|
|
167
167
|
_id: Types.ObjectId;
|
|
168
168
|
} & {
|
|
169
169
|
__v: number;
|
|
@@ -171,7 +171,7 @@ declare const _default$n: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
171
171
|
id: string;
|
|
172
172
|
}, any, ArticleType>;
|
|
173
173
|
|
|
174
|
-
declare const _default$
|
|
174
|
+
declare const _default$o: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
175
175
|
name: string;
|
|
176
176
|
description?: string;
|
|
177
177
|
}, {}, {}, {
|
|
@@ -241,7 +241,7 @@ declare const _default$m: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
241
241
|
__v: number;
|
|
242
242
|
}>;
|
|
243
243
|
|
|
244
|
-
declare const _default$
|
|
244
|
+
declare const _default$n: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
245
245
|
name: string;
|
|
246
246
|
description?: string;
|
|
247
247
|
}, {}, {}, {
|
|
@@ -311,7 +311,7 @@ declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
311
311
|
__v: number;
|
|
312
312
|
}>;
|
|
313
313
|
|
|
314
|
-
declare const _default$
|
|
314
|
+
declare const _default$m: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
315
315
|
created_at: NativeDate;
|
|
316
316
|
article_id: Types.ObjectId;
|
|
317
317
|
price_list_id: Types.ObjectId;
|
|
@@ -441,7 +441,7 @@ declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
441
441
|
__v: number;
|
|
442
442
|
}>;
|
|
443
443
|
|
|
444
|
-
declare const _default$
|
|
444
|
+
declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
445
445
|
symbol: string;
|
|
446
446
|
name: string;
|
|
447
447
|
code: string;
|
|
@@ -521,7 +521,7 @@ declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
521
521
|
__v: number;
|
|
522
522
|
}>;
|
|
523
523
|
|
|
524
|
-
declare const _default$
|
|
524
|
+
declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
525
525
|
created_at: NativeDate;
|
|
526
526
|
name: string;
|
|
527
527
|
code: string;
|
|
@@ -621,7 +621,7 @@ declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
621
621
|
__v: number;
|
|
622
622
|
}>;
|
|
623
623
|
|
|
624
|
-
declare const _default$
|
|
624
|
+
declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
625
625
|
updated_at: NativeDate;
|
|
626
626
|
article_id: Types.ObjectId;
|
|
627
627
|
warehouse_id: Types.ObjectId;
|
|
@@ -756,7 +756,7 @@ interface StockReservationType {
|
|
|
756
756
|
created_at?: Date;
|
|
757
757
|
updated_at?: Date;
|
|
758
758
|
}
|
|
759
|
-
declare const _default$
|
|
759
|
+
declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<StockReservationType, {}, {}, {}, mongoose.Document<unknown, {}, StockReservationType, {}, mongoose.DefaultSchemaOptions> & StockReservationType & {
|
|
760
760
|
_id: Types.ObjectId;
|
|
761
761
|
} & {
|
|
762
762
|
__v: number;
|
|
@@ -764,7 +764,7 @@ declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
764
764
|
id: string;
|
|
765
765
|
}, any, StockReservationType>;
|
|
766
766
|
|
|
767
|
-
declare const _default$
|
|
767
|
+
declare const _default$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
768
768
|
number: string;
|
|
769
769
|
created_at: NativeDate;
|
|
770
770
|
name: string;
|
|
@@ -854,7 +854,7 @@ declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
854
854
|
__v: number;
|
|
855
855
|
}>;
|
|
856
856
|
|
|
857
|
-
declare const _default$
|
|
857
|
+
declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
858
858
|
created_at: NativeDate;
|
|
859
859
|
updated_at: NativeDate;
|
|
860
860
|
name: string;
|
|
@@ -974,7 +974,7 @@ declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
974
974
|
__v: number;
|
|
975
975
|
}>;
|
|
976
976
|
|
|
977
|
-
declare const _default$
|
|
977
|
+
declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
978
978
|
created_at: NativeDate;
|
|
979
979
|
updated_at: NativeDate;
|
|
980
980
|
type: "filter" | "sidebar";
|
|
@@ -1107,13 +1107,13 @@ declare enum CreatedMethod {
|
|
|
1107
1107
|
MANUAL = "MANUAL",
|
|
1108
1108
|
CSV = "CSV"
|
|
1109
1109
|
}
|
|
1110
|
-
declare const _default$
|
|
1110
|
+
declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1111
1111
|
|
|
1112
|
-
declare const _default$
|
|
1112
|
+
declare const _default$d: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1113
1113
|
|
|
1114
|
-
declare const _default$
|
|
1114
|
+
declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1115
1115
|
|
|
1116
|
-
declare const _default$
|
|
1116
|
+
declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1117
1117
|
created_at: NativeDate;
|
|
1118
1118
|
quote_id: mongoose.Types.ObjectId;
|
|
1119
1119
|
email?: string;
|
|
@@ -1223,7 +1223,7 @@ declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1223
1223
|
__v: number;
|
|
1224
1224
|
}>;
|
|
1225
1225
|
|
|
1226
|
-
declare const _default$
|
|
1226
|
+
declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1227
1227
|
|
|
1228
1228
|
declare enum CustomerStatus {
|
|
1229
1229
|
ACTIVE = "active",
|
|
@@ -1323,7 +1323,7 @@ interface OrderType {
|
|
|
1323
1323
|
created_at?: Date;
|
|
1324
1324
|
updated_at?: Date;
|
|
1325
1325
|
}
|
|
1326
|
-
declare const _default$
|
|
1326
|
+
declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderType, {}, {}, {}, mongoose.Document<unknown, {}, OrderType, {}, mongoose.DefaultSchemaOptions> & OrderType & {
|
|
1327
1327
|
_id: Types.ObjectId;
|
|
1328
1328
|
} & {
|
|
1329
1329
|
__v: number;
|
|
@@ -1338,7 +1338,7 @@ interface OrderStatusLogType {
|
|
|
1338
1338
|
changed_at?: Date;
|
|
1339
1339
|
note?: string;
|
|
1340
1340
|
}
|
|
1341
|
-
declare const _default$
|
|
1341
|
+
declare const _default$8: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderStatusLogType, {}, {}, {}, mongoose.Document<unknown, {}, OrderStatusLogType, {}, mongoose.DefaultSchemaOptions> & OrderStatusLogType & {
|
|
1342
1342
|
_id: Types.ObjectId;
|
|
1343
1343
|
} & {
|
|
1344
1344
|
__v: number;
|
|
@@ -1355,7 +1355,7 @@ interface StateType {
|
|
|
1355
1355
|
created_at?: Date;
|
|
1356
1356
|
updated_at?: Date;
|
|
1357
1357
|
}
|
|
1358
|
-
declare const _default$
|
|
1358
|
+
declare const _default$7: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<StateType, {}, {}, {}, mongoose.Document<unknown, {}, StateType, {}, mongoose.DefaultSchemaOptions> & StateType & Required<{
|
|
1359
1359
|
_id: mongoose.Types.ObjectId;
|
|
1360
1360
|
}> & {
|
|
1361
1361
|
__v: number;
|
|
@@ -1410,6 +1410,66 @@ declare const SyncLog: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose
|
|
|
1410
1410
|
id: string;
|
|
1411
1411
|
}, any, ISyncLog>;
|
|
1412
1412
|
|
|
1413
|
+
interface SapOrderType {
|
|
1414
|
+
doc_entry: number;
|
|
1415
|
+
doc_num?: number | null;
|
|
1416
|
+
doc_date?: Date | null;
|
|
1417
|
+
doc_due_date?: Date | null;
|
|
1418
|
+
tax_date?: Date | null;
|
|
1419
|
+
doc_time?: number | null;
|
|
1420
|
+
update_date?: Date | null;
|
|
1421
|
+
update_time?: number | null;
|
|
1422
|
+
card_code?: string | null;
|
|
1423
|
+
card_name?: string | null;
|
|
1424
|
+
doc_total?: number | null;
|
|
1425
|
+
doc_total_fc?: number | null;
|
|
1426
|
+
doc_total_sys?: number | null;
|
|
1427
|
+
doc_currency?: string | null;
|
|
1428
|
+
doc_rate?: number | null;
|
|
1429
|
+
sales_person_code?: number | null;
|
|
1430
|
+
vat_sum?: number | null;
|
|
1431
|
+
cancelled?: string | null;
|
|
1432
|
+
document_status?: string | null;
|
|
1433
|
+
created_at?: Date;
|
|
1434
|
+
updated_at?: Date;
|
|
1435
|
+
}
|
|
1436
|
+
declare const _default$6: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<SapOrderType, {}, {}, {}, mongoose.Document<unknown, {}, SapOrderType, {}, mongoose.DefaultSchemaOptions> & SapOrderType & {
|
|
1437
|
+
_id: mongoose.Types.ObjectId;
|
|
1438
|
+
} & {
|
|
1439
|
+
__v: number;
|
|
1440
|
+
} & {
|
|
1441
|
+
id: string;
|
|
1442
|
+
}, any, SapOrderType>;
|
|
1443
|
+
|
|
1444
|
+
interface SapOrderLineType {
|
|
1445
|
+
doc_entry: number;
|
|
1446
|
+
line_num: number;
|
|
1447
|
+
item_code?: string | null;
|
|
1448
|
+
item_description?: string | null;
|
|
1449
|
+
quantity?: number | null;
|
|
1450
|
+
remaining_open_quantity?: number | null;
|
|
1451
|
+
ship_date?: Date | null;
|
|
1452
|
+
price?: number | null;
|
|
1453
|
+
discount_percent?: number | null;
|
|
1454
|
+
line_total?: number | null;
|
|
1455
|
+
row_total_fc?: number | null;
|
|
1456
|
+
currency?: string | null;
|
|
1457
|
+
rate?: number | null;
|
|
1458
|
+
gross_profit?: number | null;
|
|
1459
|
+
sales_person_code?: number | null;
|
|
1460
|
+
warehouse_code?: string | null;
|
|
1461
|
+
line_status?: string | null;
|
|
1462
|
+
created_at?: Date;
|
|
1463
|
+
updated_at?: Date;
|
|
1464
|
+
}
|
|
1465
|
+
declare const _default$5: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<SapOrderLineType, {}, {}, {}, mongoose.Document<unknown, {}, SapOrderLineType, {}, mongoose.DefaultSchemaOptions> & SapOrderLineType & {
|
|
1466
|
+
_id: mongoose.Types.ObjectId;
|
|
1467
|
+
} & {
|
|
1468
|
+
__v: number;
|
|
1469
|
+
} & {
|
|
1470
|
+
id: string;
|
|
1471
|
+
}, any, SapOrderLineType>;
|
|
1472
|
+
|
|
1413
1473
|
declare enum UserRole {
|
|
1414
1474
|
ADMIN = "admin",
|
|
1415
1475
|
SALES = "sales",
|
|
@@ -1607,4 +1667,4 @@ declare const _default: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoos
|
|
|
1607
1667
|
id: string;
|
|
1608
1668
|
}, any, OrderPaymentDocument>;
|
|
1609
1669
|
|
|
1610
|
-
export { _default$3 as Announcement, type AnnouncementType, _default$
|
|
1670
|
+
export { _default$3 as Announcement, type AnnouncementType, _default$p as Article, _default$n as ArticleClass, type ArticleContentType, _default$o as ArticleGroup, _default$m as ArticlePrice, type ArticleType, ArticleView, _default$2 as Cart, type CartItem, type CartType, _default$g as Category, _default$w as Client, _default$u as ClientAddress, type ClientAddressType, _default$v as ClientContact, type ClientContactType, _default$t as ClientPaymentMethod, type ClientPaymentMethodType, _default$s as ClientPaymentTerm, type ClientPaymentTermType, _default$r as ClientPriceList, type ClientPriceListType, _default$q as ClientSalesEmployee, type ClientSalesEmployeeType, type ClientType, CreatedMethod, _default$l 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$j as InventoryStock, _default$9 as Order, _default as OrderPayment, OrderSapSyncStatus, OrderStatus, _default$8 as OrderStatusLog, type OrderStatusLogType, type OrderType, PasswordResetToken, type PasswordResetTokenDoc, type PasswordResetTokenModel, type PasswordResetTokenType, PaymentMethod, PaymentMethodType, type PaymentMethodWallet, PaymentProvider$1 as PaymentProvider, PaymentStatus, _default$h as PriceList, _default$e as Quote, _default$d as QuoteArticle, _default$c as QuoteArticleExtra, _default$b as QuoteContact, QuoteStatus, _default$a as QuoteTerm, RefreshToken, type RefreshTokenDoc, type RefreshTokenModel, type RefreshTokenType, _default$6 as SapOrder, _default$5 as SapOrderLine, type SapOrderLineType, type SapOrderType, _default$7 as State, type StateType, Status, _default$i as StockReservation, StockReservationStatus, type StockReservationType, SyncLog, SyncLogAction, SyncLogStatus, SyncLogType, _default$f as Tag, TransactionMethod, TransactionStatus, UserRole, UserStatus, type UserType, _default$4 as Users, _default$k as Warehouse };
|