@fesmex/models 0.1.53 → 0.1.54
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 +145 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +103 -28
- package/dist/index.d.ts +103 -28
- package/dist/index.js +139 -0
- 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$s: 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$r: 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$q: 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$p: 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$o: 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$n: 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$m: 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$k: 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$l: 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$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1062
1062
|
__v: number;
|
|
1063
1063
|
}>;
|
|
1064
1064
|
|
|
1065
|
-
declare const _default$
|
|
1065
|
+
declare const _default$k: 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$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1132
1132
|
__v: number;
|
|
1133
1133
|
}>;
|
|
1134
1134
|
|
|
1135
|
-
declare const _default$
|
|
1135
|
+
declare const _default$j: 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$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1202
1202
|
__v: number;
|
|
1203
1203
|
}>;
|
|
1204
1204
|
|
|
1205
|
-
declare const _default$
|
|
1205
|
+
declare const _default$i: 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$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1332
1332
|
__v: number;
|
|
1333
1333
|
}>;
|
|
1334
1334
|
|
|
1335
|
-
declare const _default$
|
|
1335
|
+
declare const _default$h: 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$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1412
1412
|
__v: number;
|
|
1413
1413
|
}>;
|
|
1414
1414
|
|
|
1415
|
-
declare const _default$
|
|
1415
|
+
declare const _default$g: 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$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1512
1512
|
__v: number;
|
|
1513
1513
|
}>;
|
|
1514
1514
|
|
|
1515
|
-
declare const _default$
|
|
1515
|
+
declare const _default$f: 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$d: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1632
1632
|
__v: number;
|
|
1633
1633
|
}>;
|
|
1634
1634
|
|
|
1635
|
-
declare const _default$
|
|
1635
|
+
declare const _default$e: 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$c: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1722
1722
|
__v: number;
|
|
1723
1723
|
}>;
|
|
1724
1724
|
|
|
1725
|
-
declare const _default$
|
|
1725
|
+
declare const _default$d: 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$b: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1842
1842
|
__v: number;
|
|
1843
1843
|
}>;
|
|
1844
1844
|
|
|
1845
|
-
declare const _default$
|
|
1845
|
+
declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1846
1846
|
created_at: NativeDate;
|
|
1847
1847
|
updated_at: NativeDate;
|
|
1848
1848
|
type: "filter" | "sidebar";
|
|
@@ -1968,13 +1968,13 @@ declare enum CreatedMethod {
|
|
|
1968
1968
|
MANUAL = "MANUAL",
|
|
1969
1969
|
CSV = "CSV"
|
|
1970
1970
|
}
|
|
1971
|
-
declare const _default$
|
|
1971
|
+
declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1972
1972
|
|
|
1973
|
-
declare const _default$
|
|
1973
|
+
declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1974
1974
|
|
|
1975
|
-
declare const _default$
|
|
1975
|
+
declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1976
1976
|
|
|
1977
|
-
declare const _default$
|
|
1977
|
+
declare const _default$8: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1978
1978
|
created_at: NativeDate;
|
|
1979
1979
|
quote_id: mongoose.Types.ObjectId;
|
|
1980
1980
|
email?: string;
|
|
@@ -2084,7 +2084,7 @@ declare const _default$6: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
2084
2084
|
__v: number;
|
|
2085
2085
|
}>;
|
|
2086
2086
|
|
|
2087
|
-
declare const _default$
|
|
2087
|
+
declare const _default$7: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
2088
2088
|
|
|
2089
2089
|
declare enum CustomerStatus {
|
|
2090
2090
|
ACTIVE = "active",
|
|
@@ -2138,7 +2138,7 @@ declare enum PaymentStatus {
|
|
|
2138
2138
|
PAID = "PAID",
|
|
2139
2139
|
REFUNDED = "REFUNDED"
|
|
2140
2140
|
}
|
|
2141
|
-
declare const _default$
|
|
2141
|
+
declare const _default$6: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
2142
2142
|
|
|
2143
2143
|
interface OrderStatusLogType {
|
|
2144
2144
|
order_id: Types.ObjectId;
|
|
@@ -2147,7 +2147,7 @@ interface OrderStatusLogType {
|
|
|
2147
2147
|
changed_at?: Date;
|
|
2148
2148
|
note?: string;
|
|
2149
2149
|
}
|
|
2150
|
-
declare const _default$
|
|
2150
|
+
declare const _default$5: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderStatusLogType, {}, {}, {}, mongoose.Document<unknown, {}, OrderStatusLogType, {}, mongoose.DefaultSchemaOptions> & OrderStatusLogType & {
|
|
2151
2151
|
_id: Types.ObjectId;
|
|
2152
2152
|
} & {
|
|
2153
2153
|
__v: number;
|
|
@@ -2233,7 +2233,7 @@ interface UserType {
|
|
|
2233
2233
|
deleted_at?: Date;
|
|
2234
2234
|
deleted_by?: mongoose.Types.ObjectId;
|
|
2235
2235
|
}
|
|
2236
|
-
declare const _default$
|
|
2236
|
+
declare const _default$4: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<UserType, {}, {}, {}, mongoose.Document<unknown, {}, UserType, {}, mongoose.DefaultSchemaOptions> & UserType & {
|
|
2237
2237
|
_id: mongoose.Types.ObjectId;
|
|
2238
2238
|
} & {
|
|
2239
2239
|
__v: number;
|
|
@@ -2252,7 +2252,7 @@ interface AnnouncementType {
|
|
|
2252
2252
|
text: string;
|
|
2253
2253
|
roles: UserRole[];
|
|
2254
2254
|
}
|
|
2255
|
-
declare const _default$
|
|
2255
|
+
declare const _default$3: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<AnnouncementType, {}, {}, {}, mongoose.Document<unknown, {}, AnnouncementType, {}, mongoose.DefaultSchemaOptions> & AnnouncementType & {
|
|
2256
2256
|
_id: mongoose.Types.ObjectId;
|
|
2257
2257
|
} & {
|
|
2258
2258
|
__v: number;
|
|
@@ -2278,7 +2278,7 @@ interface CartType {
|
|
|
2278
2278
|
created_at?: Date;
|
|
2279
2279
|
updated_at?: Date;
|
|
2280
2280
|
}
|
|
2281
|
-
declare const _default: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<CartType, {}, {}, {}, mongoose.Document<unknown, {}, CartType, {}, mongoose.DefaultSchemaOptions> & CartType & {
|
|
2281
|
+
declare const _default$2: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<CartType, {}, {}, {}, mongoose.Document<unknown, {}, CartType, {}, mongoose.DefaultSchemaOptions> & CartType & {
|
|
2282
2282
|
_id: Types.ObjectId;
|
|
2283
2283
|
} & {
|
|
2284
2284
|
__v: number;
|
|
@@ -2323,4 +2323,79 @@ type EmailVerificationTokenDoc = HydratedDocument<EmailVerificationTokenType>;
|
|
|
2323
2323
|
type EmailVerificationTokenModel = Model<EmailVerificationTokenType>;
|
|
2324
2324
|
declare const EmailVerificationToken: EmailVerificationTokenModel;
|
|
2325
2325
|
|
|
2326
|
-
|
|
2326
|
+
declare enum PaymentProvider$1 {
|
|
2327
|
+
STRIPE = "stripe"
|
|
2328
|
+
}
|
|
2329
|
+
declare enum PaymentMethodType {
|
|
2330
|
+
CARD = "card",
|
|
2331
|
+
APPLE_PAY = "apple_pay",
|
|
2332
|
+
GOOGLE_PAY = "google_pay",
|
|
2333
|
+
BANK_TRANSFER = "bank_transfer"
|
|
2334
|
+
}
|
|
2335
|
+
type PaymentMethodWallet = "apple_pay" | "google_pay";
|
|
2336
|
+
interface CustomerPaymentMethodDocument {
|
|
2337
|
+
customer_id: Types.ObjectId;
|
|
2338
|
+
provider: PaymentProvider$1;
|
|
2339
|
+
provider_customer_id: string;
|
|
2340
|
+
provider_payment_method_id: string;
|
|
2341
|
+
type: PaymentMethodType;
|
|
2342
|
+
brand: string;
|
|
2343
|
+
last4: string;
|
|
2344
|
+
exp_month: number;
|
|
2345
|
+
exp_year: number;
|
|
2346
|
+
wallet?: PaymentMethodWallet | null;
|
|
2347
|
+
is_default: boolean;
|
|
2348
|
+
created_at: Date;
|
|
2349
|
+
updated_at?: Date;
|
|
2350
|
+
deleted_at?: Date;
|
|
2351
|
+
deleted_by?: Types.ObjectId;
|
|
2352
|
+
}
|
|
2353
|
+
declare const _default$1: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<CustomerPaymentMethodDocument, {}, {}, {}, mongoose.Document<unknown, {}, CustomerPaymentMethodDocument, {}, mongoose.DefaultSchemaOptions> & CustomerPaymentMethodDocument & {
|
|
2354
|
+
_id: Types.ObjectId;
|
|
2355
|
+
} & {
|
|
2356
|
+
__v: number;
|
|
2357
|
+
} & {
|
|
2358
|
+
id: string;
|
|
2359
|
+
}, any, CustomerPaymentMethodDocument>;
|
|
2360
|
+
|
|
2361
|
+
declare enum PaymentProvider {
|
|
2362
|
+
STRIPE = "stripe"
|
|
2363
|
+
}
|
|
2364
|
+
declare enum TransactionStatus {
|
|
2365
|
+
PENDING = "pending",
|
|
2366
|
+
PROCESSING = "processing",
|
|
2367
|
+
SUCCEEDED = "succeeded",
|
|
2368
|
+
FAILED = "failed",
|
|
2369
|
+
REFUNDED = "refunded"
|
|
2370
|
+
}
|
|
2371
|
+
declare enum TransactionMethod {
|
|
2372
|
+
CARD = "card",
|
|
2373
|
+
APPLE_PAY = "apple_pay",
|
|
2374
|
+
GOOGLE_PAY = "google_pay",
|
|
2375
|
+
BANK_TRANSFER = "bank_transfer"
|
|
2376
|
+
}
|
|
2377
|
+
interface OrderPaymentDocument {
|
|
2378
|
+
order_id: Types.ObjectId;
|
|
2379
|
+
customer_id: Types.ObjectId;
|
|
2380
|
+
payment_method_id?: Types.ObjectId;
|
|
2381
|
+
provider: PaymentProvider;
|
|
2382
|
+
provider_payment_id?: string;
|
|
2383
|
+
provider_payment_intent_id: string;
|
|
2384
|
+
method: TransactionMethod;
|
|
2385
|
+
status: TransactionStatus;
|
|
2386
|
+
amount: number;
|
|
2387
|
+
currency: string;
|
|
2388
|
+
created_at: Date;
|
|
2389
|
+
updated_at?: Date;
|
|
2390
|
+
deleted_at?: Date;
|
|
2391
|
+
deleted_by?: Types.ObjectId;
|
|
2392
|
+
}
|
|
2393
|
+
declare const _default: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderPaymentDocument, {}, {}, {}, mongoose.Document<unknown, {}, OrderPaymentDocument, {}, mongoose.DefaultSchemaOptions> & OrderPaymentDocument & {
|
|
2394
|
+
_id: Types.ObjectId;
|
|
2395
|
+
} & {
|
|
2396
|
+
__v: number;
|
|
2397
|
+
} & {
|
|
2398
|
+
id: string;
|
|
2399
|
+
}, any, OrderPaymentDocument>;
|
|
2400
|
+
|
|
2401
|
+
export { _default$3 as Announcement, type AnnouncementType, _default$l as Article, _default$j as ArticleClass, _default$k as ArticleGroup, _default$i as ArticlePrice, _default$2 as Cart, type CartItem, type CartType, _default$d as Category, _default$s as Client, _default$q as ClientAddress, type ClientAddressType, _default$r as ClientContact, type ClientContactType, _default$p as ClientPaymentMethod, type ClientPaymentMethodType, _default$o as ClientPaymentTerm, type ClientPaymentTermType, _default$n as ClientPriceList, type ClientPriceListType, _default$m as ClientSalesEmployee, type ClientSalesEmployeeType, type ClientType, CreatedMethod, _default$h 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$f as InventoryStock, _default$6 as Order, _default as OrderPayment, OrderStatus, _default$5 as OrderStatusLog, type OrderStatusLogType, PasswordResetToken, type PasswordResetTokenDoc, type PasswordResetTokenModel, type PasswordResetTokenType, PaymentMethod, PaymentMethodType, type PaymentMethodWallet, PaymentProvider$1 as PaymentProvider, PaymentStatus, _default$e as PriceList, _default$b as Quote, _default$a as QuoteArticle, _default$9 as QuoteArticleExtra, _default$8 as QuoteContact, QuoteStatus, _default$7 as QuoteTerm, RefreshToken, type RefreshTokenDoc, type RefreshTokenModel, type RefreshTokenType, Status, SyncLog, SyncLogAction, SyncLogStatus, SyncLogType, _default$c as Tag, TransactionMethod, TransactionStatus, UserRole, UserStatus, type UserType, _default$4 as Users, _default$g 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$s: 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$r: 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$q: 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$p: 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$o: 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$n: 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$m: 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$k: 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$l: 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$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1062
1062
|
__v: number;
|
|
1063
1063
|
}>;
|
|
1064
1064
|
|
|
1065
|
-
declare const _default$
|
|
1065
|
+
declare const _default$k: 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$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1132
1132
|
__v: number;
|
|
1133
1133
|
}>;
|
|
1134
1134
|
|
|
1135
|
-
declare const _default$
|
|
1135
|
+
declare const _default$j: 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$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1202
1202
|
__v: number;
|
|
1203
1203
|
}>;
|
|
1204
1204
|
|
|
1205
|
-
declare const _default$
|
|
1205
|
+
declare const _default$i: 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$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1332
1332
|
__v: number;
|
|
1333
1333
|
}>;
|
|
1334
1334
|
|
|
1335
|
-
declare const _default$
|
|
1335
|
+
declare const _default$h: 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$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1412
1412
|
__v: number;
|
|
1413
1413
|
}>;
|
|
1414
1414
|
|
|
1415
|
-
declare const _default$
|
|
1415
|
+
declare const _default$g: 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$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1512
1512
|
__v: number;
|
|
1513
1513
|
}>;
|
|
1514
1514
|
|
|
1515
|
-
declare const _default$
|
|
1515
|
+
declare const _default$f: 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$d: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1632
1632
|
__v: number;
|
|
1633
1633
|
}>;
|
|
1634
1634
|
|
|
1635
|
-
declare const _default$
|
|
1635
|
+
declare const _default$e: 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$c: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1722
1722
|
__v: number;
|
|
1723
1723
|
}>;
|
|
1724
1724
|
|
|
1725
|
-
declare const _default$
|
|
1725
|
+
declare const _default$d: 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$b: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
1842
1842
|
__v: number;
|
|
1843
1843
|
}>;
|
|
1844
1844
|
|
|
1845
|
-
declare const _default$
|
|
1845
|
+
declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1846
1846
|
created_at: NativeDate;
|
|
1847
1847
|
updated_at: NativeDate;
|
|
1848
1848
|
type: "filter" | "sidebar";
|
|
@@ -1968,13 +1968,13 @@ declare enum CreatedMethod {
|
|
|
1968
1968
|
MANUAL = "MANUAL",
|
|
1969
1969
|
CSV = "CSV"
|
|
1970
1970
|
}
|
|
1971
|
-
declare const _default$
|
|
1971
|
+
declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1972
1972
|
|
|
1973
|
-
declare const _default$
|
|
1973
|
+
declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1974
1974
|
|
|
1975
|
-
declare const _default$
|
|
1975
|
+
declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1976
1976
|
|
|
1977
|
-
declare const _default$
|
|
1977
|
+
declare const _default$8: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
|
|
1978
1978
|
created_at: NativeDate;
|
|
1979
1979
|
quote_id: mongoose.Types.ObjectId;
|
|
1980
1980
|
email?: string;
|
|
@@ -2084,7 +2084,7 @@ declare const _default$6: mongoose.Model<any, {}, {}, {}, any, any, any> | mongo
|
|
|
2084
2084
|
__v: number;
|
|
2085
2085
|
}>;
|
|
2086
2086
|
|
|
2087
|
-
declare const _default$
|
|
2087
|
+
declare const _default$7: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
2088
2088
|
|
|
2089
2089
|
declare enum CustomerStatus {
|
|
2090
2090
|
ACTIVE = "active",
|
|
@@ -2138,7 +2138,7 @@ declare enum PaymentStatus {
|
|
|
2138
2138
|
PAID = "PAID",
|
|
2139
2139
|
REFUNDED = "REFUNDED"
|
|
2140
2140
|
}
|
|
2141
|
-
declare const _default$
|
|
2141
|
+
declare const _default$6: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
2142
2142
|
|
|
2143
2143
|
interface OrderStatusLogType {
|
|
2144
2144
|
order_id: Types.ObjectId;
|
|
@@ -2147,7 +2147,7 @@ interface OrderStatusLogType {
|
|
|
2147
2147
|
changed_at?: Date;
|
|
2148
2148
|
note?: string;
|
|
2149
2149
|
}
|
|
2150
|
-
declare const _default$
|
|
2150
|
+
declare const _default$5: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderStatusLogType, {}, {}, {}, mongoose.Document<unknown, {}, OrderStatusLogType, {}, mongoose.DefaultSchemaOptions> & OrderStatusLogType & {
|
|
2151
2151
|
_id: Types.ObjectId;
|
|
2152
2152
|
} & {
|
|
2153
2153
|
__v: number;
|
|
@@ -2233,7 +2233,7 @@ interface UserType {
|
|
|
2233
2233
|
deleted_at?: Date;
|
|
2234
2234
|
deleted_by?: mongoose.Types.ObjectId;
|
|
2235
2235
|
}
|
|
2236
|
-
declare const _default$
|
|
2236
|
+
declare const _default$4: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<UserType, {}, {}, {}, mongoose.Document<unknown, {}, UserType, {}, mongoose.DefaultSchemaOptions> & UserType & {
|
|
2237
2237
|
_id: mongoose.Types.ObjectId;
|
|
2238
2238
|
} & {
|
|
2239
2239
|
__v: number;
|
|
@@ -2252,7 +2252,7 @@ interface AnnouncementType {
|
|
|
2252
2252
|
text: string;
|
|
2253
2253
|
roles: UserRole[];
|
|
2254
2254
|
}
|
|
2255
|
-
declare const _default$
|
|
2255
|
+
declare const _default$3: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<AnnouncementType, {}, {}, {}, mongoose.Document<unknown, {}, AnnouncementType, {}, mongoose.DefaultSchemaOptions> & AnnouncementType & {
|
|
2256
2256
|
_id: mongoose.Types.ObjectId;
|
|
2257
2257
|
} & {
|
|
2258
2258
|
__v: number;
|
|
@@ -2278,7 +2278,7 @@ interface CartType {
|
|
|
2278
2278
|
created_at?: Date;
|
|
2279
2279
|
updated_at?: Date;
|
|
2280
2280
|
}
|
|
2281
|
-
declare const _default: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<CartType, {}, {}, {}, mongoose.Document<unknown, {}, CartType, {}, mongoose.DefaultSchemaOptions> & CartType & {
|
|
2281
|
+
declare const _default$2: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<CartType, {}, {}, {}, mongoose.Document<unknown, {}, CartType, {}, mongoose.DefaultSchemaOptions> & CartType & {
|
|
2282
2282
|
_id: Types.ObjectId;
|
|
2283
2283
|
} & {
|
|
2284
2284
|
__v: number;
|
|
@@ -2323,4 +2323,79 @@ type EmailVerificationTokenDoc = HydratedDocument<EmailVerificationTokenType>;
|
|
|
2323
2323
|
type EmailVerificationTokenModel = Model<EmailVerificationTokenType>;
|
|
2324
2324
|
declare const EmailVerificationToken: EmailVerificationTokenModel;
|
|
2325
2325
|
|
|
2326
|
-
|
|
2326
|
+
declare enum PaymentProvider$1 {
|
|
2327
|
+
STRIPE = "stripe"
|
|
2328
|
+
}
|
|
2329
|
+
declare enum PaymentMethodType {
|
|
2330
|
+
CARD = "card",
|
|
2331
|
+
APPLE_PAY = "apple_pay",
|
|
2332
|
+
GOOGLE_PAY = "google_pay",
|
|
2333
|
+
BANK_TRANSFER = "bank_transfer"
|
|
2334
|
+
}
|
|
2335
|
+
type PaymentMethodWallet = "apple_pay" | "google_pay";
|
|
2336
|
+
interface CustomerPaymentMethodDocument {
|
|
2337
|
+
customer_id: Types.ObjectId;
|
|
2338
|
+
provider: PaymentProvider$1;
|
|
2339
|
+
provider_customer_id: string;
|
|
2340
|
+
provider_payment_method_id: string;
|
|
2341
|
+
type: PaymentMethodType;
|
|
2342
|
+
brand: string;
|
|
2343
|
+
last4: string;
|
|
2344
|
+
exp_month: number;
|
|
2345
|
+
exp_year: number;
|
|
2346
|
+
wallet?: PaymentMethodWallet | null;
|
|
2347
|
+
is_default: boolean;
|
|
2348
|
+
created_at: Date;
|
|
2349
|
+
updated_at?: Date;
|
|
2350
|
+
deleted_at?: Date;
|
|
2351
|
+
deleted_by?: Types.ObjectId;
|
|
2352
|
+
}
|
|
2353
|
+
declare const _default$1: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<CustomerPaymentMethodDocument, {}, {}, {}, mongoose.Document<unknown, {}, CustomerPaymentMethodDocument, {}, mongoose.DefaultSchemaOptions> & CustomerPaymentMethodDocument & {
|
|
2354
|
+
_id: Types.ObjectId;
|
|
2355
|
+
} & {
|
|
2356
|
+
__v: number;
|
|
2357
|
+
} & {
|
|
2358
|
+
id: string;
|
|
2359
|
+
}, any, CustomerPaymentMethodDocument>;
|
|
2360
|
+
|
|
2361
|
+
declare enum PaymentProvider {
|
|
2362
|
+
STRIPE = "stripe"
|
|
2363
|
+
}
|
|
2364
|
+
declare enum TransactionStatus {
|
|
2365
|
+
PENDING = "pending",
|
|
2366
|
+
PROCESSING = "processing",
|
|
2367
|
+
SUCCEEDED = "succeeded",
|
|
2368
|
+
FAILED = "failed",
|
|
2369
|
+
REFUNDED = "refunded"
|
|
2370
|
+
}
|
|
2371
|
+
declare enum TransactionMethod {
|
|
2372
|
+
CARD = "card",
|
|
2373
|
+
APPLE_PAY = "apple_pay",
|
|
2374
|
+
GOOGLE_PAY = "google_pay",
|
|
2375
|
+
BANK_TRANSFER = "bank_transfer"
|
|
2376
|
+
}
|
|
2377
|
+
interface OrderPaymentDocument {
|
|
2378
|
+
order_id: Types.ObjectId;
|
|
2379
|
+
customer_id: Types.ObjectId;
|
|
2380
|
+
payment_method_id?: Types.ObjectId;
|
|
2381
|
+
provider: PaymentProvider;
|
|
2382
|
+
provider_payment_id?: string;
|
|
2383
|
+
provider_payment_intent_id: string;
|
|
2384
|
+
method: TransactionMethod;
|
|
2385
|
+
status: TransactionStatus;
|
|
2386
|
+
amount: number;
|
|
2387
|
+
currency: string;
|
|
2388
|
+
created_at: Date;
|
|
2389
|
+
updated_at?: Date;
|
|
2390
|
+
deleted_at?: Date;
|
|
2391
|
+
deleted_by?: Types.ObjectId;
|
|
2392
|
+
}
|
|
2393
|
+
declare const _default: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderPaymentDocument, {}, {}, {}, mongoose.Document<unknown, {}, OrderPaymentDocument, {}, mongoose.DefaultSchemaOptions> & OrderPaymentDocument & {
|
|
2394
|
+
_id: Types.ObjectId;
|
|
2395
|
+
} & {
|
|
2396
|
+
__v: number;
|
|
2397
|
+
} & {
|
|
2398
|
+
id: string;
|
|
2399
|
+
}, any, OrderPaymentDocument>;
|
|
2400
|
+
|
|
2401
|
+
export { _default$3 as Announcement, type AnnouncementType, _default$l as Article, _default$j as ArticleClass, _default$k as ArticleGroup, _default$i as ArticlePrice, _default$2 as Cart, type CartItem, type CartType, _default$d as Category, _default$s as Client, _default$q as ClientAddress, type ClientAddressType, _default$r as ClientContact, type ClientContactType, _default$p as ClientPaymentMethod, type ClientPaymentMethodType, _default$o as ClientPaymentTerm, type ClientPaymentTermType, _default$n as ClientPriceList, type ClientPriceListType, _default$m as ClientSalesEmployee, type ClientSalesEmployeeType, type ClientType, CreatedMethod, _default$h 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$f as InventoryStock, _default$6 as Order, _default as OrderPayment, OrderStatus, _default$5 as OrderStatusLog, type OrderStatusLogType, PasswordResetToken, type PasswordResetTokenDoc, type PasswordResetTokenModel, type PasswordResetTokenType, PaymentMethod, PaymentMethodType, type PaymentMethodWallet, PaymentProvider$1 as PaymentProvider, PaymentStatus, _default$e as PriceList, _default$b as Quote, _default$a as QuoteArticle, _default$9 as QuoteArticleExtra, _default$8 as QuoteContact, QuoteStatus, _default$7 as QuoteTerm, RefreshToken, type RefreshTokenDoc, type RefreshTokenModel, type RefreshTokenType, Status, SyncLog, SyncLogAction, SyncLogStatus, SyncLogType, _default$c as Tag, TransactionMethod, TransactionStatus, UserRole, UserStatus, type UserType, _default$4 as Users, _default$g as Warehouse };
|