@fesmex/models 0.1.37 → 0.1.39
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 +92 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -281
- package/dist/index.d.ts +13 -281
- package/dist/index.js +90 -40
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1088,291 +1088,23 @@ declare enum OrderStatus {
|
|
|
1088
1088
|
CANCELLED = "cancelled",
|
|
1089
1089
|
COMPLETED = "completed"
|
|
1090
1090
|
}
|
|
1091
|
-
declare
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
article_id: mongoose.Types.ObjectId;
|
|
1103
|
-
quantity: number;
|
|
1104
|
-
unit_price: number;
|
|
1105
|
-
total: number;
|
|
1106
|
-
}> & {
|
|
1107
|
-
article_id: mongoose.Types.ObjectId;
|
|
1108
|
-
quantity: number;
|
|
1109
|
-
unit_price: number;
|
|
1110
|
-
total: number;
|
|
1111
|
-
}>;
|
|
1112
|
-
updated_at?: NativeDate;
|
|
1113
|
-
notes?: string;
|
|
1114
|
-
tracking_number?: string;
|
|
1115
|
-
}, {}, {}, {
|
|
1116
|
-
id: string;
|
|
1117
|
-
}, mongoose.Document<unknown, {}, {
|
|
1118
|
-
created_at: NativeDate;
|
|
1119
|
-
status: OrderStatus;
|
|
1120
|
-
total: number;
|
|
1121
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1122
|
-
items: mongoose.Types.DocumentArray<{
|
|
1123
|
-
article_id: mongoose.Types.ObjectId;
|
|
1124
|
-
quantity: number;
|
|
1125
|
-
unit_price: number;
|
|
1126
|
-
total: number;
|
|
1127
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1128
|
-
article_id: mongoose.Types.ObjectId;
|
|
1129
|
-
quantity: number;
|
|
1130
|
-
unit_price: number;
|
|
1131
|
-
total: number;
|
|
1132
|
-
}> & {
|
|
1133
|
-
article_id: mongoose.Types.ObjectId;
|
|
1134
|
-
quantity: number;
|
|
1135
|
-
unit_price: number;
|
|
1136
|
-
total: number;
|
|
1137
|
-
}>;
|
|
1138
|
-
updated_at?: NativeDate;
|
|
1139
|
-
notes?: string;
|
|
1140
|
-
tracking_number?: string;
|
|
1141
|
-
}, {
|
|
1142
|
-
id: string;
|
|
1143
|
-
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1144
|
-
created_at: NativeDate;
|
|
1145
|
-
status: OrderStatus;
|
|
1146
|
-
total: number;
|
|
1147
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1148
|
-
items: mongoose.Types.DocumentArray<{
|
|
1149
|
-
article_id: mongoose.Types.ObjectId;
|
|
1150
|
-
quantity: number;
|
|
1151
|
-
unit_price: number;
|
|
1152
|
-
total: number;
|
|
1153
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1154
|
-
article_id: mongoose.Types.ObjectId;
|
|
1155
|
-
quantity: number;
|
|
1156
|
-
unit_price: number;
|
|
1157
|
-
total: number;
|
|
1158
|
-
}> & {
|
|
1159
|
-
article_id: mongoose.Types.ObjectId;
|
|
1160
|
-
quantity: number;
|
|
1161
|
-
unit_price: number;
|
|
1162
|
-
total: number;
|
|
1163
|
-
}>;
|
|
1164
|
-
updated_at?: NativeDate;
|
|
1165
|
-
notes?: string;
|
|
1166
|
-
tracking_number?: string;
|
|
1167
|
-
} & {
|
|
1168
|
-
_id: mongoose.Types.ObjectId;
|
|
1169
|
-
} & {
|
|
1170
|
-
__v: number;
|
|
1171
|
-
}, "id"> & {
|
|
1172
|
-
id: string;
|
|
1173
|
-
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
1174
|
-
created_at: NativeDate;
|
|
1175
|
-
status: OrderStatus;
|
|
1176
|
-
total: number;
|
|
1177
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1178
|
-
items: mongoose.Types.DocumentArray<{
|
|
1179
|
-
article_id: mongoose.Types.ObjectId;
|
|
1180
|
-
quantity: number;
|
|
1181
|
-
unit_price: number;
|
|
1182
|
-
total: number;
|
|
1183
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1184
|
-
article_id: mongoose.Types.ObjectId;
|
|
1185
|
-
quantity: number;
|
|
1186
|
-
unit_price: number;
|
|
1187
|
-
total: number;
|
|
1188
|
-
}> & {
|
|
1189
|
-
article_id: mongoose.Types.ObjectId;
|
|
1190
|
-
quantity: number;
|
|
1191
|
-
unit_price: number;
|
|
1192
|
-
total: number;
|
|
1193
|
-
}>;
|
|
1194
|
-
updated_at?: NativeDate;
|
|
1195
|
-
notes?: string;
|
|
1196
|
-
tracking_number?: string;
|
|
1197
|
-
}, mongoose.Document<unknown, {}, {
|
|
1198
|
-
created_at: NativeDate;
|
|
1199
|
-
status: OrderStatus;
|
|
1200
|
-
total: number;
|
|
1201
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1202
|
-
items: mongoose.Types.DocumentArray<{
|
|
1203
|
-
article_id: mongoose.Types.ObjectId;
|
|
1204
|
-
quantity: number;
|
|
1205
|
-
unit_price: number;
|
|
1206
|
-
total: number;
|
|
1207
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1208
|
-
article_id: mongoose.Types.ObjectId;
|
|
1209
|
-
quantity: number;
|
|
1210
|
-
unit_price: number;
|
|
1211
|
-
total: number;
|
|
1212
|
-
}> & {
|
|
1213
|
-
article_id: mongoose.Types.ObjectId;
|
|
1214
|
-
quantity: number;
|
|
1215
|
-
unit_price: number;
|
|
1216
|
-
total: number;
|
|
1217
|
-
}>;
|
|
1218
|
-
updated_at?: NativeDate;
|
|
1219
|
-
notes?: string;
|
|
1220
|
-
tracking_number?: string;
|
|
1221
|
-
}, {
|
|
1222
|
-
id: string;
|
|
1223
|
-
}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
|
|
1224
|
-
created_at: NativeDate;
|
|
1225
|
-
status: OrderStatus;
|
|
1226
|
-
total: number;
|
|
1227
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1228
|
-
items: mongoose.Types.DocumentArray<{
|
|
1229
|
-
article_id: mongoose.Types.ObjectId;
|
|
1230
|
-
quantity: number;
|
|
1231
|
-
unit_price: number;
|
|
1232
|
-
total: number;
|
|
1233
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1234
|
-
article_id: mongoose.Types.ObjectId;
|
|
1235
|
-
quantity: number;
|
|
1236
|
-
unit_price: number;
|
|
1237
|
-
total: number;
|
|
1238
|
-
}> & {
|
|
1239
|
-
article_id: mongoose.Types.ObjectId;
|
|
1240
|
-
quantity: number;
|
|
1241
|
-
unit_price: number;
|
|
1242
|
-
total: number;
|
|
1243
|
-
}>;
|
|
1244
|
-
updated_at?: NativeDate;
|
|
1245
|
-
notes?: string;
|
|
1246
|
-
tracking_number?: string;
|
|
1247
|
-
} & {
|
|
1248
|
-
_id: mongoose.Types.ObjectId;
|
|
1249
|
-
} & {
|
|
1250
|
-
__v: number;
|
|
1251
|
-
}, "id"> & {
|
|
1252
|
-
id: string;
|
|
1253
|
-
}, {
|
|
1254
|
-
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
1255
|
-
} | {
|
|
1256
|
-
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
1257
|
-
created_at: NativeDate;
|
|
1258
|
-
status: OrderStatus;
|
|
1259
|
-
total: number;
|
|
1260
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1261
|
-
items: mongoose.Types.DocumentArray<{
|
|
1262
|
-
article_id: mongoose.Types.ObjectId;
|
|
1263
|
-
quantity: number;
|
|
1264
|
-
unit_price: number;
|
|
1265
|
-
total: number;
|
|
1266
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1267
|
-
article_id: mongoose.Types.ObjectId;
|
|
1268
|
-
quantity: number;
|
|
1269
|
-
unit_price: number;
|
|
1270
|
-
total: number;
|
|
1271
|
-
}> & {
|
|
1272
|
-
article_id: mongoose.Types.ObjectId;
|
|
1273
|
-
quantity: number;
|
|
1274
|
-
unit_price: number;
|
|
1275
|
-
total: number;
|
|
1276
|
-
}>;
|
|
1277
|
-
updated_at?: NativeDate;
|
|
1278
|
-
notes?: string;
|
|
1279
|
-
tracking_number?: string;
|
|
1280
|
-
}, {
|
|
1281
|
-
id: string;
|
|
1282
|
-
}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
|
|
1283
|
-
created_at: NativeDate;
|
|
1284
|
-
status: OrderStatus;
|
|
1285
|
-
total: number;
|
|
1286
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1287
|
-
items: mongoose.Types.DocumentArray<{
|
|
1288
|
-
article_id: mongoose.Types.ObjectId;
|
|
1289
|
-
quantity: number;
|
|
1290
|
-
unit_price: number;
|
|
1291
|
-
total: number;
|
|
1292
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1293
|
-
article_id: mongoose.Types.ObjectId;
|
|
1294
|
-
quantity: number;
|
|
1295
|
-
unit_price: number;
|
|
1296
|
-
total: number;
|
|
1297
|
-
}> & {
|
|
1298
|
-
article_id: mongoose.Types.ObjectId;
|
|
1299
|
-
quantity: number;
|
|
1300
|
-
unit_price: number;
|
|
1301
|
-
total: number;
|
|
1302
|
-
}>;
|
|
1303
|
-
updated_at?: NativeDate;
|
|
1304
|
-
notes?: string;
|
|
1305
|
-
tracking_number?: string;
|
|
1306
|
-
} & {
|
|
1307
|
-
_id: mongoose.Types.ObjectId;
|
|
1308
|
-
} & {
|
|
1309
|
-
__v: number;
|
|
1310
|
-
}, "id"> & {
|
|
1311
|
-
id: string;
|
|
1312
|
-
}>;
|
|
1313
|
-
}, {
|
|
1314
|
-
created_at: NativeDate;
|
|
1315
|
-
status: OrderStatus;
|
|
1316
|
-
total: number;
|
|
1317
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1318
|
-
items: mongoose.Types.DocumentArray<{
|
|
1319
|
-
article_id: mongoose.Types.ObjectId;
|
|
1320
|
-
quantity: number;
|
|
1321
|
-
unit_price: number;
|
|
1322
|
-
total: number;
|
|
1323
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1324
|
-
article_id: mongoose.Types.ObjectId;
|
|
1325
|
-
quantity: number;
|
|
1326
|
-
unit_price: number;
|
|
1327
|
-
total: number;
|
|
1328
|
-
}> & {
|
|
1329
|
-
article_id: mongoose.Types.ObjectId;
|
|
1330
|
-
quantity: number;
|
|
1331
|
-
unit_price: number;
|
|
1332
|
-
total: number;
|
|
1333
|
-
}>;
|
|
1334
|
-
updated_at?: NativeDate;
|
|
1335
|
-
notes?: string;
|
|
1336
|
-
tracking_number?: string;
|
|
1337
|
-
} & {
|
|
1338
|
-
_id: mongoose.Types.ObjectId;
|
|
1339
|
-
} & {
|
|
1340
|
-
__v: number;
|
|
1341
|
-
}>, {
|
|
1342
|
-
created_at: NativeDate;
|
|
1343
|
-
status: OrderStatus;
|
|
1344
|
-
total: number;
|
|
1345
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1346
|
-
items: mongoose.Types.DocumentArray<{
|
|
1347
|
-
article_id: mongoose.Types.ObjectId;
|
|
1348
|
-
quantity: number;
|
|
1349
|
-
unit_price: number;
|
|
1350
|
-
total: number;
|
|
1351
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1352
|
-
article_id: mongoose.Types.ObjectId;
|
|
1353
|
-
quantity: number;
|
|
1354
|
-
unit_price: number;
|
|
1355
|
-
total: number;
|
|
1356
|
-
}> & {
|
|
1357
|
-
article_id: mongoose.Types.ObjectId;
|
|
1358
|
-
quantity: number;
|
|
1359
|
-
unit_price: number;
|
|
1360
|
-
total: number;
|
|
1361
|
-
}>;
|
|
1362
|
-
updated_at?: NativeDate;
|
|
1363
|
-
notes?: string;
|
|
1364
|
-
tracking_number?: string;
|
|
1365
|
-
} & {
|
|
1366
|
-
_id: mongoose.Types.ObjectId;
|
|
1367
|
-
} & {
|
|
1368
|
-
__v: number;
|
|
1369
|
-
}>;
|
|
1091
|
+
declare enum PaymentMethod {
|
|
1092
|
+
CARD = "CARD",
|
|
1093
|
+
TRANSFER = "TRANSFER"
|
|
1094
|
+
}
|
|
1095
|
+
declare enum PaymentStatus {
|
|
1096
|
+
UNPAID = "UNPAID",
|
|
1097
|
+
PENDING_TRANSFER = "PENDING_TRANSFER",
|
|
1098
|
+
PAID = "PAID",
|
|
1099
|
+
REFUNDED = "REFUNDED"
|
|
1100
|
+
}
|
|
1101
|
+
declare const _default$4: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1370
1102
|
|
|
1371
1103
|
interface OrderStatusLogType {
|
|
1372
1104
|
order_id: Types.ObjectId;
|
|
1373
1105
|
status: OrderStatus;
|
|
1374
1106
|
changed_by: Types.ObjectId;
|
|
1375
|
-
changed_at
|
|
1107
|
+
changed_at?: Date;
|
|
1376
1108
|
note?: string;
|
|
1377
1109
|
}
|
|
1378
1110
|
declare const _default$3: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderStatusLogType, {}, {}, {}, mongoose.Document<unknown, {}, OrderStatusLogType, {}, mongoose.DefaultSchemaOptions> & OrderStatusLogType & {
|
|
@@ -1551,4 +1283,4 @@ type EmailVerificationTokenDoc = HydratedDocument<EmailVerificationTokenType>;
|
|
|
1551
1283
|
type EmailVerificationTokenModel = Model<EmailVerificationTokenType>;
|
|
1552
1284
|
declare const EmailVerificationToken: EmailVerificationTokenModel;
|
|
1553
1285
|
|
|
1554
|
-
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, _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 };
|
|
1286
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1088,291 +1088,23 @@ declare enum OrderStatus {
|
|
|
1088
1088
|
CANCELLED = "cancelled",
|
|
1089
1089
|
COMPLETED = "completed"
|
|
1090
1090
|
}
|
|
1091
|
-
declare
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
article_id: mongoose.Types.ObjectId;
|
|
1103
|
-
quantity: number;
|
|
1104
|
-
unit_price: number;
|
|
1105
|
-
total: number;
|
|
1106
|
-
}> & {
|
|
1107
|
-
article_id: mongoose.Types.ObjectId;
|
|
1108
|
-
quantity: number;
|
|
1109
|
-
unit_price: number;
|
|
1110
|
-
total: number;
|
|
1111
|
-
}>;
|
|
1112
|
-
updated_at?: NativeDate;
|
|
1113
|
-
notes?: string;
|
|
1114
|
-
tracking_number?: string;
|
|
1115
|
-
}, {}, {}, {
|
|
1116
|
-
id: string;
|
|
1117
|
-
}, mongoose.Document<unknown, {}, {
|
|
1118
|
-
created_at: NativeDate;
|
|
1119
|
-
status: OrderStatus;
|
|
1120
|
-
total: number;
|
|
1121
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1122
|
-
items: mongoose.Types.DocumentArray<{
|
|
1123
|
-
article_id: mongoose.Types.ObjectId;
|
|
1124
|
-
quantity: number;
|
|
1125
|
-
unit_price: number;
|
|
1126
|
-
total: number;
|
|
1127
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1128
|
-
article_id: mongoose.Types.ObjectId;
|
|
1129
|
-
quantity: number;
|
|
1130
|
-
unit_price: number;
|
|
1131
|
-
total: number;
|
|
1132
|
-
}> & {
|
|
1133
|
-
article_id: mongoose.Types.ObjectId;
|
|
1134
|
-
quantity: number;
|
|
1135
|
-
unit_price: number;
|
|
1136
|
-
total: number;
|
|
1137
|
-
}>;
|
|
1138
|
-
updated_at?: NativeDate;
|
|
1139
|
-
notes?: string;
|
|
1140
|
-
tracking_number?: string;
|
|
1141
|
-
}, {
|
|
1142
|
-
id: string;
|
|
1143
|
-
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
1144
|
-
created_at: NativeDate;
|
|
1145
|
-
status: OrderStatus;
|
|
1146
|
-
total: number;
|
|
1147
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1148
|
-
items: mongoose.Types.DocumentArray<{
|
|
1149
|
-
article_id: mongoose.Types.ObjectId;
|
|
1150
|
-
quantity: number;
|
|
1151
|
-
unit_price: number;
|
|
1152
|
-
total: number;
|
|
1153
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1154
|
-
article_id: mongoose.Types.ObjectId;
|
|
1155
|
-
quantity: number;
|
|
1156
|
-
unit_price: number;
|
|
1157
|
-
total: number;
|
|
1158
|
-
}> & {
|
|
1159
|
-
article_id: mongoose.Types.ObjectId;
|
|
1160
|
-
quantity: number;
|
|
1161
|
-
unit_price: number;
|
|
1162
|
-
total: number;
|
|
1163
|
-
}>;
|
|
1164
|
-
updated_at?: NativeDate;
|
|
1165
|
-
notes?: string;
|
|
1166
|
-
tracking_number?: string;
|
|
1167
|
-
} & {
|
|
1168
|
-
_id: mongoose.Types.ObjectId;
|
|
1169
|
-
} & {
|
|
1170
|
-
__v: number;
|
|
1171
|
-
}, "id"> & {
|
|
1172
|
-
id: string;
|
|
1173
|
-
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
1174
|
-
created_at: NativeDate;
|
|
1175
|
-
status: OrderStatus;
|
|
1176
|
-
total: number;
|
|
1177
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1178
|
-
items: mongoose.Types.DocumentArray<{
|
|
1179
|
-
article_id: mongoose.Types.ObjectId;
|
|
1180
|
-
quantity: number;
|
|
1181
|
-
unit_price: number;
|
|
1182
|
-
total: number;
|
|
1183
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1184
|
-
article_id: mongoose.Types.ObjectId;
|
|
1185
|
-
quantity: number;
|
|
1186
|
-
unit_price: number;
|
|
1187
|
-
total: number;
|
|
1188
|
-
}> & {
|
|
1189
|
-
article_id: mongoose.Types.ObjectId;
|
|
1190
|
-
quantity: number;
|
|
1191
|
-
unit_price: number;
|
|
1192
|
-
total: number;
|
|
1193
|
-
}>;
|
|
1194
|
-
updated_at?: NativeDate;
|
|
1195
|
-
notes?: string;
|
|
1196
|
-
tracking_number?: string;
|
|
1197
|
-
}, mongoose.Document<unknown, {}, {
|
|
1198
|
-
created_at: NativeDate;
|
|
1199
|
-
status: OrderStatus;
|
|
1200
|
-
total: number;
|
|
1201
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1202
|
-
items: mongoose.Types.DocumentArray<{
|
|
1203
|
-
article_id: mongoose.Types.ObjectId;
|
|
1204
|
-
quantity: number;
|
|
1205
|
-
unit_price: number;
|
|
1206
|
-
total: number;
|
|
1207
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1208
|
-
article_id: mongoose.Types.ObjectId;
|
|
1209
|
-
quantity: number;
|
|
1210
|
-
unit_price: number;
|
|
1211
|
-
total: number;
|
|
1212
|
-
}> & {
|
|
1213
|
-
article_id: mongoose.Types.ObjectId;
|
|
1214
|
-
quantity: number;
|
|
1215
|
-
unit_price: number;
|
|
1216
|
-
total: number;
|
|
1217
|
-
}>;
|
|
1218
|
-
updated_at?: NativeDate;
|
|
1219
|
-
notes?: string;
|
|
1220
|
-
tracking_number?: string;
|
|
1221
|
-
}, {
|
|
1222
|
-
id: string;
|
|
1223
|
-
}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
|
|
1224
|
-
created_at: NativeDate;
|
|
1225
|
-
status: OrderStatus;
|
|
1226
|
-
total: number;
|
|
1227
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1228
|
-
items: mongoose.Types.DocumentArray<{
|
|
1229
|
-
article_id: mongoose.Types.ObjectId;
|
|
1230
|
-
quantity: number;
|
|
1231
|
-
unit_price: number;
|
|
1232
|
-
total: number;
|
|
1233
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1234
|
-
article_id: mongoose.Types.ObjectId;
|
|
1235
|
-
quantity: number;
|
|
1236
|
-
unit_price: number;
|
|
1237
|
-
total: number;
|
|
1238
|
-
}> & {
|
|
1239
|
-
article_id: mongoose.Types.ObjectId;
|
|
1240
|
-
quantity: number;
|
|
1241
|
-
unit_price: number;
|
|
1242
|
-
total: number;
|
|
1243
|
-
}>;
|
|
1244
|
-
updated_at?: NativeDate;
|
|
1245
|
-
notes?: string;
|
|
1246
|
-
tracking_number?: string;
|
|
1247
|
-
} & {
|
|
1248
|
-
_id: mongoose.Types.ObjectId;
|
|
1249
|
-
} & {
|
|
1250
|
-
__v: number;
|
|
1251
|
-
}, "id"> & {
|
|
1252
|
-
id: string;
|
|
1253
|
-
}, {
|
|
1254
|
-
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
1255
|
-
} | {
|
|
1256
|
-
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
1257
|
-
created_at: NativeDate;
|
|
1258
|
-
status: OrderStatus;
|
|
1259
|
-
total: number;
|
|
1260
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1261
|
-
items: mongoose.Types.DocumentArray<{
|
|
1262
|
-
article_id: mongoose.Types.ObjectId;
|
|
1263
|
-
quantity: number;
|
|
1264
|
-
unit_price: number;
|
|
1265
|
-
total: number;
|
|
1266
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1267
|
-
article_id: mongoose.Types.ObjectId;
|
|
1268
|
-
quantity: number;
|
|
1269
|
-
unit_price: number;
|
|
1270
|
-
total: number;
|
|
1271
|
-
}> & {
|
|
1272
|
-
article_id: mongoose.Types.ObjectId;
|
|
1273
|
-
quantity: number;
|
|
1274
|
-
unit_price: number;
|
|
1275
|
-
total: number;
|
|
1276
|
-
}>;
|
|
1277
|
-
updated_at?: NativeDate;
|
|
1278
|
-
notes?: string;
|
|
1279
|
-
tracking_number?: string;
|
|
1280
|
-
}, {
|
|
1281
|
-
id: string;
|
|
1282
|
-
}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
|
|
1283
|
-
created_at: NativeDate;
|
|
1284
|
-
status: OrderStatus;
|
|
1285
|
-
total: number;
|
|
1286
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1287
|
-
items: mongoose.Types.DocumentArray<{
|
|
1288
|
-
article_id: mongoose.Types.ObjectId;
|
|
1289
|
-
quantity: number;
|
|
1290
|
-
unit_price: number;
|
|
1291
|
-
total: number;
|
|
1292
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1293
|
-
article_id: mongoose.Types.ObjectId;
|
|
1294
|
-
quantity: number;
|
|
1295
|
-
unit_price: number;
|
|
1296
|
-
total: number;
|
|
1297
|
-
}> & {
|
|
1298
|
-
article_id: mongoose.Types.ObjectId;
|
|
1299
|
-
quantity: number;
|
|
1300
|
-
unit_price: number;
|
|
1301
|
-
total: number;
|
|
1302
|
-
}>;
|
|
1303
|
-
updated_at?: NativeDate;
|
|
1304
|
-
notes?: string;
|
|
1305
|
-
tracking_number?: string;
|
|
1306
|
-
} & {
|
|
1307
|
-
_id: mongoose.Types.ObjectId;
|
|
1308
|
-
} & {
|
|
1309
|
-
__v: number;
|
|
1310
|
-
}, "id"> & {
|
|
1311
|
-
id: string;
|
|
1312
|
-
}>;
|
|
1313
|
-
}, {
|
|
1314
|
-
created_at: NativeDate;
|
|
1315
|
-
status: OrderStatus;
|
|
1316
|
-
total: number;
|
|
1317
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1318
|
-
items: mongoose.Types.DocumentArray<{
|
|
1319
|
-
article_id: mongoose.Types.ObjectId;
|
|
1320
|
-
quantity: number;
|
|
1321
|
-
unit_price: number;
|
|
1322
|
-
total: number;
|
|
1323
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1324
|
-
article_id: mongoose.Types.ObjectId;
|
|
1325
|
-
quantity: number;
|
|
1326
|
-
unit_price: number;
|
|
1327
|
-
total: number;
|
|
1328
|
-
}> & {
|
|
1329
|
-
article_id: mongoose.Types.ObjectId;
|
|
1330
|
-
quantity: number;
|
|
1331
|
-
unit_price: number;
|
|
1332
|
-
total: number;
|
|
1333
|
-
}>;
|
|
1334
|
-
updated_at?: NativeDate;
|
|
1335
|
-
notes?: string;
|
|
1336
|
-
tracking_number?: string;
|
|
1337
|
-
} & {
|
|
1338
|
-
_id: mongoose.Types.ObjectId;
|
|
1339
|
-
} & {
|
|
1340
|
-
__v: number;
|
|
1341
|
-
}>, {
|
|
1342
|
-
created_at: NativeDate;
|
|
1343
|
-
status: OrderStatus;
|
|
1344
|
-
total: number;
|
|
1345
|
-
customer_id: mongoose.Types.ObjectId;
|
|
1346
|
-
items: mongoose.Types.DocumentArray<{
|
|
1347
|
-
article_id: mongoose.Types.ObjectId;
|
|
1348
|
-
quantity: number;
|
|
1349
|
-
unit_price: number;
|
|
1350
|
-
total: number;
|
|
1351
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
1352
|
-
article_id: mongoose.Types.ObjectId;
|
|
1353
|
-
quantity: number;
|
|
1354
|
-
unit_price: number;
|
|
1355
|
-
total: number;
|
|
1356
|
-
}> & {
|
|
1357
|
-
article_id: mongoose.Types.ObjectId;
|
|
1358
|
-
quantity: number;
|
|
1359
|
-
unit_price: number;
|
|
1360
|
-
total: number;
|
|
1361
|
-
}>;
|
|
1362
|
-
updated_at?: NativeDate;
|
|
1363
|
-
notes?: string;
|
|
1364
|
-
tracking_number?: string;
|
|
1365
|
-
} & {
|
|
1366
|
-
_id: mongoose.Types.ObjectId;
|
|
1367
|
-
} & {
|
|
1368
|
-
__v: number;
|
|
1369
|
-
}>;
|
|
1091
|
+
declare enum PaymentMethod {
|
|
1092
|
+
CARD = "CARD",
|
|
1093
|
+
TRANSFER = "TRANSFER"
|
|
1094
|
+
}
|
|
1095
|
+
declare enum PaymentStatus {
|
|
1096
|
+
UNPAID = "UNPAID",
|
|
1097
|
+
PENDING_TRANSFER = "PENDING_TRANSFER",
|
|
1098
|
+
PAID = "PAID",
|
|
1099
|
+
REFUNDED = "REFUNDED"
|
|
1100
|
+
}
|
|
1101
|
+
declare const _default$4: mongoose.Model<any, {}, {}, {}, any, any, any>;
|
|
1370
1102
|
|
|
1371
1103
|
interface OrderStatusLogType {
|
|
1372
1104
|
order_id: Types.ObjectId;
|
|
1373
1105
|
status: OrderStatus;
|
|
1374
1106
|
changed_by: Types.ObjectId;
|
|
1375
|
-
changed_at
|
|
1107
|
+
changed_at?: Date;
|
|
1376
1108
|
note?: string;
|
|
1377
1109
|
}
|
|
1378
1110
|
declare const _default$3: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderStatusLogType, {}, {}, {}, mongoose.Document<unknown, {}, OrderStatusLogType, {}, mongoose.DefaultSchemaOptions> & OrderStatusLogType & {
|
|
@@ -1551,4 +1283,4 @@ type EmailVerificationTokenDoc = HydratedDocument<EmailVerificationTokenType>;
|
|
|
1551
1283
|
type EmailVerificationTokenModel = Model<EmailVerificationTokenType>;
|
|
1552
1284
|
declare const EmailVerificationToken: EmailVerificationTokenModel;
|
|
1553
1285
|
|
|
1554
|
-
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, _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 };
|
|
1286
|
+
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 };
|