@fesmex/models 0.1.34 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import mongoose, { Types, Model, HydratedDocument, Document } from 'mongoose';
1
+ import mongoose, { Types, Model, HydratedDocument, Document, Schema } from 'mongoose';
2
2
 
3
3
  interface ClientType {
4
4
  sn_code?: string | null;
@@ -15,7 +15,13 @@ interface ClientType {
15
15
  created_at?: Date;
16
16
  updated_at?: Date;
17
17
  }
18
- declare const _default$o: mongoose.Model<any, {}, {}, {}, any, any>;
18
+ declare const _default$o: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientType, {}, {}, {}, mongoose.Document<unknown, {}, ClientType, {}, mongoose.DefaultSchemaOptions> & ClientType & {
19
+ _id: mongoose.Types.ObjectId;
20
+ } & {
21
+ __v: number;
22
+ } & {
23
+ id: string;
24
+ }, any, ClientType>;
19
25
 
20
26
  interface ClientContactType {
21
27
  client_id: Types.ObjectId;
@@ -28,7 +34,13 @@ interface ClientContactType {
28
34
  created_at?: Date;
29
35
  updated_at?: Date;
30
36
  }
31
- declare const _default$n: mongoose.Model<any, {}, {}, {}, any, any>;
37
+ declare const _default$n: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientContactType, {}, {}, {}, mongoose.Document<unknown, {}, ClientContactType, {}, mongoose.DefaultSchemaOptions> & ClientContactType & {
38
+ _id: Types.ObjectId;
39
+ } & {
40
+ __v: number;
41
+ } & {
42
+ id: string;
43
+ }, any, ClientContactType>;
32
44
 
33
45
  interface ClientAddressType {
34
46
  client_id: Types.ObjectId;
@@ -42,7 +54,13 @@ interface ClientAddressType {
42
54
  created_at?: Date;
43
55
  updated_at?: Date;
44
56
  }
45
- declare const _default$m: mongoose.Model<any, {}, {}, {}, any, any>;
57
+ declare const _default$m: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientAddressType, {}, {}, {}, mongoose.Document<unknown, {}, ClientAddressType, {}, mongoose.DefaultSchemaOptions> & ClientAddressType & {
58
+ _id: Types.ObjectId;
59
+ } & {
60
+ __v: number;
61
+ } & {
62
+ id: string;
63
+ }, any, ClientAddressType>;
46
64
 
47
65
  interface ClientPaymentMethodType {
48
66
  client_id: Types.ObjectId;
@@ -51,7 +69,13 @@ interface ClientPaymentMethodType {
51
69
  created_at?: Date;
52
70
  updated_at?: Date;
53
71
  }
54
- declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any>;
72
+ declare const _default$l: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientPaymentMethodType, {}, {}, {}, mongoose.Document<unknown, {}, ClientPaymentMethodType, {}, mongoose.DefaultSchemaOptions> & ClientPaymentMethodType & {
73
+ _id: Types.ObjectId;
74
+ } & {
75
+ __v: number;
76
+ } & {
77
+ id: string;
78
+ }, any, ClientPaymentMethodType>;
55
79
 
56
80
  interface ClientPaymentTermType {
57
81
  client_id: Types.ObjectId;
@@ -60,7 +84,13 @@ interface ClientPaymentTermType {
60
84
  created_at?: Date;
61
85
  updated_at?: Date;
62
86
  }
63
- declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any>;
87
+ declare const _default$k: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientPaymentTermType, {}, {}, {}, mongoose.Document<unknown, {}, ClientPaymentTermType, {}, mongoose.DefaultSchemaOptions> & ClientPaymentTermType & {
88
+ _id: Types.ObjectId;
89
+ } & {
90
+ __v: number;
91
+ } & {
92
+ id: string;
93
+ }, any, ClientPaymentTermType>;
64
94
 
65
95
  interface ClientPriceListType {
66
96
  client_id: Types.ObjectId;
@@ -69,7 +99,13 @@ interface ClientPriceListType {
69
99
  created_at?: Date;
70
100
  updated_at?: Date;
71
101
  }
72
- declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any>;
102
+ declare const _default$j: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientPriceListType, {}, {}, {}, mongoose.Document<unknown, {}, ClientPriceListType, {}, mongoose.DefaultSchemaOptions> & ClientPriceListType & {
103
+ _id: Types.ObjectId;
104
+ } & {
105
+ __v: number;
106
+ } & {
107
+ id: string;
108
+ }, any, ClientPriceListType>;
73
109
 
74
110
  interface ClientSalesEmployeeType {
75
111
  client_id: Types.ObjectId;
@@ -78,23 +114,803 @@ interface ClientSalesEmployeeType {
78
114
  created_at?: Date;
79
115
  updated_at?: Date;
80
116
  }
81
- declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any>;
117
+ declare const _default$i: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ClientSalesEmployeeType, {}, {}, {}, mongoose.Document<unknown, {}, ClientSalesEmployeeType, {}, mongoose.DefaultSchemaOptions> & ClientSalesEmployeeType & {
118
+ _id: Types.ObjectId;
119
+ } & {
120
+ __v: number;
121
+ } & {
122
+ id: string;
123
+ }, any, ClientSalesEmployeeType>;
82
124
 
83
- declare const _default$h: mongoose.Model<any, {}, {}, {}, any, any>;
125
+ declare const _default$h: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
126
+ created_at: NativeDate;
127
+ description: string;
128
+ article_number: string;
129
+ unit: string;
130
+ group_id: Types.ObjectId;
131
+ deleted_at?: NativeDate;
132
+ updated_at?: NativeDate;
133
+ model?: string;
134
+ brand?: string;
135
+ }, {}, {}, {
136
+ id: string;
137
+ }, mongoose.Document<unknown, {}, {
138
+ created_at: NativeDate;
139
+ description: string;
140
+ article_number: string;
141
+ unit: string;
142
+ group_id: Types.ObjectId;
143
+ deleted_at?: NativeDate;
144
+ updated_at?: NativeDate;
145
+ model?: string;
146
+ brand?: string;
147
+ }, {
148
+ id: string;
149
+ }, mongoose.DefaultSchemaOptions> & Omit<{
150
+ created_at: NativeDate;
151
+ description: string;
152
+ article_number: string;
153
+ unit: string;
154
+ group_id: Types.ObjectId;
155
+ deleted_at?: NativeDate;
156
+ updated_at?: NativeDate;
157
+ model?: string;
158
+ brand?: string;
159
+ } & {
160
+ _id: Types.ObjectId;
161
+ } & {
162
+ __v: number;
163
+ }, "id"> & {
164
+ id: string;
165
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
166
+ created_at: NativeDate;
167
+ description: string;
168
+ article_number: string;
169
+ unit: string;
170
+ group_id: Types.ObjectId;
171
+ deleted_at?: NativeDate;
172
+ updated_at?: NativeDate;
173
+ model?: string;
174
+ brand?: string;
175
+ }, mongoose.Document<unknown, {}, {
176
+ created_at: NativeDate;
177
+ description: string;
178
+ article_number: string;
179
+ unit: string;
180
+ group_id: Types.ObjectId;
181
+ deleted_at?: NativeDate;
182
+ updated_at?: NativeDate;
183
+ model?: string;
184
+ brand?: string;
185
+ }, {
186
+ id: string;
187
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
188
+ created_at: NativeDate;
189
+ description: string;
190
+ article_number: string;
191
+ unit: string;
192
+ group_id: Types.ObjectId;
193
+ deleted_at?: NativeDate;
194
+ updated_at?: NativeDate;
195
+ model?: string;
196
+ brand?: string;
197
+ } & {
198
+ _id: Types.ObjectId;
199
+ } & {
200
+ __v: number;
201
+ }, "id"> & {
202
+ id: string;
203
+ }, {
204
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
205
+ } | {
206
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
207
+ created_at: NativeDate;
208
+ description: string;
209
+ article_number: string;
210
+ unit: string;
211
+ group_id: Types.ObjectId;
212
+ deleted_at?: NativeDate;
213
+ updated_at?: NativeDate;
214
+ model?: string;
215
+ brand?: string;
216
+ }, {
217
+ id: string;
218
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
219
+ created_at: NativeDate;
220
+ description: string;
221
+ article_number: string;
222
+ unit: string;
223
+ group_id: Types.ObjectId;
224
+ deleted_at?: NativeDate;
225
+ updated_at?: NativeDate;
226
+ model?: string;
227
+ brand?: string;
228
+ } & {
229
+ _id: Types.ObjectId;
230
+ } & {
231
+ __v: number;
232
+ }, "id"> & {
233
+ id: string;
234
+ }>;
235
+ }, {
236
+ created_at: NativeDate;
237
+ description: string;
238
+ article_number: string;
239
+ unit: string;
240
+ group_id: Types.ObjectId;
241
+ deleted_at?: NativeDate;
242
+ updated_at?: NativeDate;
243
+ model?: string;
244
+ brand?: string;
245
+ } & {
246
+ _id: Types.ObjectId;
247
+ } & {
248
+ __v: number;
249
+ }>, {
250
+ created_at: NativeDate;
251
+ description: string;
252
+ article_number: string;
253
+ unit: string;
254
+ group_id: Types.ObjectId;
255
+ deleted_at?: NativeDate;
256
+ updated_at?: NativeDate;
257
+ model?: string;
258
+ brand?: string;
259
+ } & {
260
+ _id: Types.ObjectId;
261
+ } & {
262
+ __v: number;
263
+ }>;
84
264
 
85
- declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any>;
265
+ declare const _default$g: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
266
+ name: string;
267
+ description?: string;
268
+ }, {}, {}, {
269
+ id: string;
270
+ }, mongoose.Document<unknown, {}, {
271
+ name: string;
272
+ description?: string;
273
+ }, {
274
+ id: string;
275
+ }, mongoose.DefaultSchemaOptions> & Omit<{
276
+ name: string;
277
+ description?: string;
278
+ } & {
279
+ _id: mongoose.Types.ObjectId;
280
+ } & {
281
+ __v: number;
282
+ }, "id"> & {
283
+ id: string;
284
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
285
+ name: string;
286
+ description?: string;
287
+ }, mongoose.Document<unknown, {}, {
288
+ name: string;
289
+ description?: string;
290
+ }, {
291
+ id: string;
292
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
293
+ name: string;
294
+ description?: string;
295
+ } & {
296
+ _id: mongoose.Types.ObjectId;
297
+ } & {
298
+ __v: number;
299
+ }, "id"> & {
300
+ id: string;
301
+ }, {
302
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
303
+ } | {
304
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
305
+ name: string;
306
+ description?: string;
307
+ }, {
308
+ id: string;
309
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
310
+ name: string;
311
+ description?: string;
312
+ } & {
313
+ _id: mongoose.Types.ObjectId;
314
+ } & {
315
+ __v: number;
316
+ }, "id"> & {
317
+ id: string;
318
+ }>;
319
+ }, {
320
+ name: string;
321
+ description?: string;
322
+ } & {
323
+ _id: mongoose.Types.ObjectId;
324
+ } & {
325
+ __v: number;
326
+ }>, {
327
+ name: string;
328
+ description?: string;
329
+ } & {
330
+ _id: mongoose.Types.ObjectId;
331
+ } & {
332
+ __v: number;
333
+ }>;
86
334
 
87
- declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any>;
335
+ declare const _default$f: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
336
+ name: string;
337
+ description?: string;
338
+ }, {}, {}, {
339
+ id: string;
340
+ }, mongoose.Document<unknown, {}, {
341
+ name: string;
342
+ description?: string;
343
+ }, {
344
+ id: string;
345
+ }, mongoose.DefaultSchemaOptions> & Omit<{
346
+ name: string;
347
+ description?: string;
348
+ } & {
349
+ _id: mongoose.Types.ObjectId;
350
+ } & {
351
+ __v: number;
352
+ }, "id"> & {
353
+ id: string;
354
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
355
+ name: string;
356
+ description?: string;
357
+ }, mongoose.Document<unknown, {}, {
358
+ name: string;
359
+ description?: string;
360
+ }, {
361
+ id: string;
362
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
363
+ name: string;
364
+ description?: string;
365
+ } & {
366
+ _id: mongoose.Types.ObjectId;
367
+ } & {
368
+ __v: number;
369
+ }, "id"> & {
370
+ id: string;
371
+ }, {
372
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
373
+ } | {
374
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
375
+ name: string;
376
+ description?: string;
377
+ }, {
378
+ id: string;
379
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
380
+ name: string;
381
+ description?: string;
382
+ } & {
383
+ _id: mongoose.Types.ObjectId;
384
+ } & {
385
+ __v: number;
386
+ }, "id"> & {
387
+ id: string;
388
+ }>;
389
+ }, {
390
+ name: string;
391
+ description?: string;
392
+ } & {
393
+ _id: mongoose.Types.ObjectId;
394
+ } & {
395
+ __v: number;
396
+ }>, {
397
+ name: string;
398
+ description?: string;
399
+ } & {
400
+ _id: mongoose.Types.ObjectId;
401
+ } & {
402
+ __v: number;
403
+ }>;
88
404
 
89
- declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any>;
405
+ declare const _default$e: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
406
+ created_at: NativeDate;
407
+ article_id: Types.ObjectId;
408
+ price_list_id: Types.ObjectId;
409
+ currency_id: Types.ObjectId;
410
+ price: number;
411
+ updated_at?: NativeDate;
412
+ valid_from?: NativeDate;
413
+ valid_to?: NativeDate;
414
+ }, {}, {}, {
415
+ id: string;
416
+ }, mongoose.Document<unknown, {}, {
417
+ created_at: NativeDate;
418
+ article_id: Types.ObjectId;
419
+ price_list_id: Types.ObjectId;
420
+ currency_id: Types.ObjectId;
421
+ price: number;
422
+ updated_at?: NativeDate;
423
+ valid_from?: NativeDate;
424
+ valid_to?: NativeDate;
425
+ }, {
426
+ id: string;
427
+ }, mongoose.DefaultSchemaOptions> & Omit<{
428
+ created_at: NativeDate;
429
+ article_id: Types.ObjectId;
430
+ price_list_id: Types.ObjectId;
431
+ currency_id: Types.ObjectId;
432
+ price: number;
433
+ updated_at?: NativeDate;
434
+ valid_from?: NativeDate;
435
+ valid_to?: NativeDate;
436
+ } & {
437
+ _id: Types.ObjectId;
438
+ } & {
439
+ __v: number;
440
+ }, "id"> & {
441
+ id: string;
442
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
443
+ created_at: NativeDate;
444
+ article_id: Types.ObjectId;
445
+ price_list_id: Types.ObjectId;
446
+ currency_id: Types.ObjectId;
447
+ price: number;
448
+ updated_at?: NativeDate;
449
+ valid_from?: NativeDate;
450
+ valid_to?: NativeDate;
451
+ }, mongoose.Document<unknown, {}, {
452
+ created_at: NativeDate;
453
+ article_id: Types.ObjectId;
454
+ price_list_id: Types.ObjectId;
455
+ currency_id: Types.ObjectId;
456
+ price: number;
457
+ updated_at?: NativeDate;
458
+ valid_from?: NativeDate;
459
+ valid_to?: NativeDate;
460
+ }, {
461
+ id: string;
462
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
463
+ created_at: NativeDate;
464
+ article_id: Types.ObjectId;
465
+ price_list_id: Types.ObjectId;
466
+ currency_id: Types.ObjectId;
467
+ price: number;
468
+ updated_at?: NativeDate;
469
+ valid_from?: NativeDate;
470
+ valid_to?: NativeDate;
471
+ } & {
472
+ _id: Types.ObjectId;
473
+ } & {
474
+ __v: number;
475
+ }, "id"> & {
476
+ id: string;
477
+ }, {
478
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
479
+ } | {
480
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
481
+ created_at: NativeDate;
482
+ article_id: Types.ObjectId;
483
+ price_list_id: Types.ObjectId;
484
+ currency_id: Types.ObjectId;
485
+ price: number;
486
+ updated_at?: NativeDate;
487
+ valid_from?: NativeDate;
488
+ valid_to?: NativeDate;
489
+ }, {
490
+ id: string;
491
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
492
+ created_at: NativeDate;
493
+ article_id: Types.ObjectId;
494
+ price_list_id: Types.ObjectId;
495
+ currency_id: Types.ObjectId;
496
+ price: number;
497
+ updated_at?: NativeDate;
498
+ valid_from?: NativeDate;
499
+ valid_to?: NativeDate;
500
+ } & {
501
+ _id: Types.ObjectId;
502
+ } & {
503
+ __v: number;
504
+ }, "id"> & {
505
+ id: string;
506
+ }>;
507
+ }, {
508
+ created_at: NativeDate;
509
+ article_id: Types.ObjectId;
510
+ price_list_id: Types.ObjectId;
511
+ currency_id: Types.ObjectId;
512
+ price: number;
513
+ updated_at?: NativeDate;
514
+ valid_from?: NativeDate;
515
+ valid_to?: NativeDate;
516
+ } & {
517
+ _id: Types.ObjectId;
518
+ } & {
519
+ __v: number;
520
+ }>, {
521
+ created_at: NativeDate;
522
+ article_id: Types.ObjectId;
523
+ price_list_id: Types.ObjectId;
524
+ currency_id: Types.ObjectId;
525
+ price: number;
526
+ updated_at?: NativeDate;
527
+ valid_from?: NativeDate;
528
+ valid_to?: NativeDate;
529
+ } & {
530
+ _id: Types.ObjectId;
531
+ } & {
532
+ __v: number;
533
+ }>;
90
534
 
91
- declare const _default$d: mongoose.Model<any, {}, {}, {}, any, any>;
535
+ declare const _default$d: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
536
+ symbol: string;
537
+ name: string;
538
+ code: string;
539
+ }, {}, {}, {
540
+ id: string;
541
+ }, mongoose.Document<unknown, {}, {
542
+ symbol: string;
543
+ name: string;
544
+ code: string;
545
+ }, {
546
+ id: string;
547
+ }, mongoose.DefaultSchemaOptions> & Omit<{
548
+ symbol: string;
549
+ name: string;
550
+ code: string;
551
+ } & {
552
+ _id: mongoose.Types.ObjectId;
553
+ } & {
554
+ __v: number;
555
+ }, "id"> & {
556
+ id: string;
557
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
558
+ symbol: string;
559
+ name: string;
560
+ code: string;
561
+ }, mongoose.Document<unknown, {}, {
562
+ symbol: string;
563
+ name: string;
564
+ code: string;
565
+ }, {
566
+ id: string;
567
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
568
+ symbol: string;
569
+ name: string;
570
+ code: string;
571
+ } & {
572
+ _id: mongoose.Types.ObjectId;
573
+ } & {
574
+ __v: number;
575
+ }, "id"> & {
576
+ id: string;
577
+ }, {
578
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
579
+ } | {
580
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
581
+ symbol: string;
582
+ name: string;
583
+ code: string;
584
+ }, {
585
+ id: string;
586
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
587
+ symbol: string;
588
+ name: string;
589
+ code: string;
590
+ } & {
591
+ _id: mongoose.Types.ObjectId;
592
+ } & {
593
+ __v: number;
594
+ }, "id"> & {
595
+ id: string;
596
+ }>;
597
+ }, {
598
+ symbol: string;
599
+ name: string;
600
+ code: string;
601
+ } & {
602
+ _id: mongoose.Types.ObjectId;
603
+ } & {
604
+ __v: number;
605
+ }>, {
606
+ symbol: string;
607
+ name: string;
608
+ code: string;
609
+ } & {
610
+ _id: mongoose.Types.ObjectId;
611
+ } & {
612
+ __v: number;
613
+ }>;
92
614
 
93
- declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any>;
615
+ declare const _default$c: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
616
+ created_at: NativeDate;
617
+ name: string;
618
+ code: string;
619
+ updated_at?: NativeDate;
620
+ location?: string;
621
+ }, {}, {}, {
622
+ id: string;
623
+ }, mongoose.Document<unknown, {}, {
624
+ created_at: NativeDate;
625
+ name: string;
626
+ code: string;
627
+ updated_at?: NativeDate;
628
+ location?: string;
629
+ }, {
630
+ id: string;
631
+ }, mongoose.DefaultSchemaOptions> & Omit<{
632
+ created_at: NativeDate;
633
+ name: string;
634
+ code: string;
635
+ updated_at?: NativeDate;
636
+ location?: string;
637
+ } & {
638
+ _id: mongoose.Types.ObjectId;
639
+ } & {
640
+ __v: number;
641
+ }, "id"> & {
642
+ id: string;
643
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
644
+ created_at: NativeDate;
645
+ name: string;
646
+ code: string;
647
+ updated_at?: NativeDate;
648
+ location?: string;
649
+ }, mongoose.Document<unknown, {}, {
650
+ created_at: NativeDate;
651
+ name: string;
652
+ code: string;
653
+ updated_at?: NativeDate;
654
+ location?: string;
655
+ }, {
656
+ id: string;
657
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
658
+ created_at: NativeDate;
659
+ name: string;
660
+ code: string;
661
+ updated_at?: NativeDate;
662
+ location?: string;
663
+ } & {
664
+ _id: mongoose.Types.ObjectId;
665
+ } & {
666
+ __v: number;
667
+ }, "id"> & {
668
+ id: string;
669
+ }, {
670
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
671
+ } | {
672
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
673
+ created_at: NativeDate;
674
+ name: string;
675
+ code: string;
676
+ updated_at?: NativeDate;
677
+ location?: string;
678
+ }, {
679
+ id: string;
680
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
681
+ created_at: NativeDate;
682
+ name: string;
683
+ code: string;
684
+ updated_at?: NativeDate;
685
+ location?: string;
686
+ } & {
687
+ _id: mongoose.Types.ObjectId;
688
+ } & {
689
+ __v: number;
690
+ }, "id"> & {
691
+ id: string;
692
+ }>;
693
+ }, {
694
+ created_at: NativeDate;
695
+ name: string;
696
+ code: string;
697
+ updated_at?: NativeDate;
698
+ location?: string;
699
+ } & {
700
+ _id: mongoose.Types.ObjectId;
701
+ } & {
702
+ __v: number;
703
+ }>, {
704
+ created_at: NativeDate;
705
+ name: string;
706
+ code: string;
707
+ updated_at?: NativeDate;
708
+ location?: string;
709
+ } & {
710
+ _id: mongoose.Types.ObjectId;
711
+ } & {
712
+ __v: number;
713
+ }>;
94
714
 
95
- declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any>;
715
+ declare const _default$b: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
716
+ updated_at: NativeDate;
717
+ article_id: Types.ObjectId;
718
+ warehouse_id: Types.ObjectId;
719
+ count: number;
720
+ min_stock?: number;
721
+ max_stock?: number;
722
+ }, {}, {}, {
723
+ id: string;
724
+ }, mongoose.Document<unknown, {}, {
725
+ updated_at: NativeDate;
726
+ article_id: Types.ObjectId;
727
+ warehouse_id: Types.ObjectId;
728
+ count: number;
729
+ min_stock?: number;
730
+ max_stock?: number;
731
+ }, {
732
+ id: string;
733
+ }, mongoose.DefaultSchemaOptions> & Omit<{
734
+ updated_at: NativeDate;
735
+ article_id: Types.ObjectId;
736
+ warehouse_id: Types.ObjectId;
737
+ count: number;
738
+ min_stock?: number;
739
+ max_stock?: number;
740
+ } & {
741
+ _id: Types.ObjectId;
742
+ } & {
743
+ __v: number;
744
+ }, "id"> & {
745
+ id: string;
746
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
747
+ updated_at: NativeDate;
748
+ article_id: Types.ObjectId;
749
+ warehouse_id: Types.ObjectId;
750
+ count: number;
751
+ min_stock?: number;
752
+ max_stock?: number;
753
+ }, mongoose.Document<unknown, {}, {
754
+ updated_at: NativeDate;
755
+ article_id: Types.ObjectId;
756
+ warehouse_id: Types.ObjectId;
757
+ count: number;
758
+ min_stock?: number;
759
+ max_stock?: number;
760
+ }, {
761
+ id: string;
762
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
763
+ updated_at: NativeDate;
764
+ article_id: Types.ObjectId;
765
+ warehouse_id: Types.ObjectId;
766
+ count: number;
767
+ min_stock?: number;
768
+ max_stock?: number;
769
+ } & {
770
+ _id: Types.ObjectId;
771
+ } & {
772
+ __v: number;
773
+ }, "id"> & {
774
+ id: string;
775
+ }, {
776
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
777
+ } | {
778
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
779
+ updated_at: NativeDate;
780
+ article_id: Types.ObjectId;
781
+ warehouse_id: Types.ObjectId;
782
+ count: number;
783
+ min_stock?: number;
784
+ max_stock?: number;
785
+ }, {
786
+ id: string;
787
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
788
+ updated_at: NativeDate;
789
+ article_id: Types.ObjectId;
790
+ warehouse_id: Types.ObjectId;
791
+ count: number;
792
+ min_stock?: number;
793
+ max_stock?: number;
794
+ } & {
795
+ _id: Types.ObjectId;
796
+ } & {
797
+ __v: number;
798
+ }, "id"> & {
799
+ id: string;
800
+ }>;
801
+ }, {
802
+ updated_at: NativeDate;
803
+ article_id: Types.ObjectId;
804
+ warehouse_id: Types.ObjectId;
805
+ count: number;
806
+ min_stock?: number;
807
+ max_stock?: number;
808
+ } & {
809
+ _id: Types.ObjectId;
810
+ } & {
811
+ __v: number;
812
+ }>, {
813
+ updated_at: NativeDate;
814
+ article_id: Types.ObjectId;
815
+ warehouse_id: Types.ObjectId;
816
+ count: number;
817
+ min_stock?: number;
818
+ max_stock?: number;
819
+ } & {
820
+ _id: Types.ObjectId;
821
+ } & {
822
+ __v: number;
823
+ }>;
96
824
 
97
- declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any>;
825
+ declare const _default$a: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
826
+ number: string;
827
+ created_at: NativeDate;
828
+ name: string;
829
+ updated_at?: NativeDate;
830
+ }, {}, {}, {
831
+ id: string;
832
+ }, mongoose.Document<unknown, {}, {
833
+ number: string;
834
+ created_at: NativeDate;
835
+ name: string;
836
+ updated_at?: NativeDate;
837
+ }, {
838
+ id: string;
839
+ }, mongoose.DefaultSchemaOptions> & Omit<{
840
+ number: string;
841
+ created_at: NativeDate;
842
+ name: string;
843
+ updated_at?: NativeDate;
844
+ } & {
845
+ _id: mongoose.Types.ObjectId;
846
+ } & {
847
+ __v: number;
848
+ }, "id"> & {
849
+ id: string;
850
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
851
+ number: string;
852
+ created_at: NativeDate;
853
+ name: string;
854
+ updated_at?: NativeDate;
855
+ }, mongoose.Document<unknown, {}, {
856
+ number: string;
857
+ created_at: NativeDate;
858
+ name: string;
859
+ updated_at?: NativeDate;
860
+ }, {
861
+ id: string;
862
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
863
+ number: string;
864
+ created_at: NativeDate;
865
+ name: string;
866
+ updated_at?: NativeDate;
867
+ } & {
868
+ _id: mongoose.Types.ObjectId;
869
+ } & {
870
+ __v: number;
871
+ }, "id"> & {
872
+ id: string;
873
+ }, {
874
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
875
+ } | {
876
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
877
+ number: string;
878
+ created_at: NativeDate;
879
+ name: string;
880
+ updated_at?: NativeDate;
881
+ }, {
882
+ id: string;
883
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
884
+ number: string;
885
+ created_at: NativeDate;
886
+ name: string;
887
+ updated_at?: NativeDate;
888
+ } & {
889
+ _id: mongoose.Types.ObjectId;
890
+ } & {
891
+ __v: number;
892
+ }, "id"> & {
893
+ id: string;
894
+ }>;
895
+ }, {
896
+ number: string;
897
+ created_at: NativeDate;
898
+ name: string;
899
+ updated_at?: NativeDate;
900
+ } & {
901
+ _id: mongoose.Types.ObjectId;
902
+ } & {
903
+ __v: number;
904
+ }>, {
905
+ number: string;
906
+ created_at: NativeDate;
907
+ name: string;
908
+ updated_at?: NativeDate;
909
+ } & {
910
+ _id: mongoose.Types.ObjectId;
911
+ } & {
912
+ __v: number;
913
+ }>;
98
914
 
99
915
  declare enum QuoteStatus {
100
916
  OPPORTUNITY = "OPPORTUNITY",
@@ -112,15 +928,123 @@ declare enum CreatedMethod {
112
928
  MANUAL = "MANUAL",
113
929
  CSV = "CSV"
114
930
  }
115
- declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any>;
931
+ declare const _default$9: mongoose.Model<any, {}, {}, {}, any, any, any>;
116
932
 
117
- declare const _default$8: mongoose.Model<any, {}, {}, {}, any, any>;
933
+ declare const _default$8: mongoose.Model<any, {}, {}, {}, any, any, any>;
118
934
 
119
- declare const _default$7: mongoose.Model<any, {}, {}, {}, any, any>;
935
+ declare const _default$7: mongoose.Model<any, {}, {}, {}, any, any, any>;
120
936
 
121
- declare const _default$6: mongoose.Model<any, {}, {}, {}, any, any>;
937
+ declare const _default$6: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
938
+ created_at: NativeDate;
939
+ quote_id: mongoose.Types.ObjectId;
940
+ email?: string;
941
+ pipedrive_id?: string;
942
+ name?: string;
943
+ mobile?: string;
944
+ }, {}, {}, {
945
+ id: string;
946
+ }, mongoose.Document<unknown, {}, {
947
+ created_at: NativeDate;
948
+ quote_id: mongoose.Types.ObjectId;
949
+ email?: string;
950
+ pipedrive_id?: string;
951
+ name?: string;
952
+ mobile?: string;
953
+ }, {
954
+ id: string;
955
+ }, mongoose.DefaultSchemaOptions> & Omit<{
956
+ created_at: NativeDate;
957
+ quote_id: mongoose.Types.ObjectId;
958
+ email?: string;
959
+ pipedrive_id?: string;
960
+ name?: string;
961
+ mobile?: string;
962
+ } & {
963
+ _id: mongoose.Types.ObjectId;
964
+ } & {
965
+ __v: number;
966
+ }, "id"> & {
967
+ id: string;
968
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
969
+ created_at: NativeDate;
970
+ quote_id: mongoose.Types.ObjectId;
971
+ email?: string;
972
+ pipedrive_id?: string;
973
+ name?: string;
974
+ mobile?: string;
975
+ }, mongoose.Document<unknown, {}, {
976
+ created_at: NativeDate;
977
+ quote_id: mongoose.Types.ObjectId;
978
+ email?: string;
979
+ pipedrive_id?: string;
980
+ name?: string;
981
+ mobile?: string;
982
+ }, {
983
+ id: string;
984
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
985
+ created_at: NativeDate;
986
+ quote_id: mongoose.Types.ObjectId;
987
+ email?: string;
988
+ pipedrive_id?: string;
989
+ name?: string;
990
+ mobile?: string;
991
+ } & {
992
+ _id: mongoose.Types.ObjectId;
993
+ } & {
994
+ __v: number;
995
+ }, "id"> & {
996
+ id: string;
997
+ }, {
998
+ [path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
999
+ } | {
1000
+ [x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
1001
+ created_at: NativeDate;
1002
+ quote_id: mongoose.Types.ObjectId;
1003
+ email?: string;
1004
+ pipedrive_id?: string;
1005
+ name?: string;
1006
+ mobile?: string;
1007
+ }, {
1008
+ id: string;
1009
+ }, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
1010
+ created_at: NativeDate;
1011
+ quote_id: mongoose.Types.ObjectId;
1012
+ email?: string;
1013
+ pipedrive_id?: string;
1014
+ name?: string;
1015
+ mobile?: string;
1016
+ } & {
1017
+ _id: mongoose.Types.ObjectId;
1018
+ } & {
1019
+ __v: number;
1020
+ }, "id"> & {
1021
+ id: string;
1022
+ }>;
1023
+ }, {
1024
+ created_at: NativeDate;
1025
+ quote_id: mongoose.Types.ObjectId;
1026
+ email?: string;
1027
+ pipedrive_id?: string;
1028
+ name?: string;
1029
+ mobile?: string;
1030
+ } & {
1031
+ _id: mongoose.Types.ObjectId;
1032
+ } & {
1033
+ __v: number;
1034
+ }>, {
1035
+ created_at: NativeDate;
1036
+ quote_id: mongoose.Types.ObjectId;
1037
+ email?: string;
1038
+ pipedrive_id?: string;
1039
+ name?: string;
1040
+ mobile?: string;
1041
+ } & {
1042
+ _id: mongoose.Types.ObjectId;
1043
+ } & {
1044
+ __v: number;
1045
+ }>;
122
1046
 
123
- declare const _default$5: mongoose.Model<any, {}, {}, {}, any, any>;
1047
+ declare const _default$5: mongoose.Model<any, {}, {}, {}, any, any, any>;
124
1048
 
125
1049
  declare enum CustomerStatus {
126
1050
  ACTIVE = "active",
@@ -164,7 +1088,285 @@ declare enum OrderStatus {
164
1088
  CANCELLED = "cancelled",
165
1089
  COMPLETED = "completed"
166
1090
  }
167
- declare const _default$4: mongoose.Model<any, {}, {}, {}, any, any>;
1091
+ declare const _default$4: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<{
1092
+ created_at: NativeDate;
1093
+ status: OrderStatus;
1094
+ total: number;
1095
+ customer_id: mongoose.Types.ObjectId;
1096
+ items: mongoose.Types.DocumentArray<{
1097
+ article_id: mongoose.Types.ObjectId;
1098
+ quantity: number;
1099
+ unit_price: number;
1100
+ total: number;
1101
+ }, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
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
+ }>;
168
1370
 
169
1371
  interface OrderStatusLogType {
170
1372
  order_id: Types.ObjectId;
@@ -173,7 +1375,13 @@ interface OrderStatusLogType {
173
1375
  changed_at: Date;
174
1376
  note?: string;
175
1377
  }
176
- declare const _default$3: mongoose.Model<any, {}, {}, {}, any, any>;
1378
+ declare const _default$3: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<OrderStatusLogType, {}, {}, {}, mongoose.Document<unknown, {}, OrderStatusLogType, {}, mongoose.DefaultSchemaOptions> & OrderStatusLogType & {
1379
+ _id: Types.ObjectId;
1380
+ } & {
1381
+ __v: number;
1382
+ } & {
1383
+ id: string;
1384
+ }, any, OrderStatusLogType>;
177
1385
 
178
1386
  /**
179
1387
  * Sync Log Types
@@ -214,7 +1422,13 @@ interface ISyncLog extends Document {
214
1422
  resolved_at?: Date;
215
1423
  resolved_by?: Types.ObjectId;
216
1424
  }
217
- declare const SyncLog: mongoose.Model<any, {}, {}, {}, any, any>;
1425
+ declare const SyncLog: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<ISyncLog, {}, {}, {}, mongoose.Document<unknown, {}, ISyncLog, {}, mongoose.DefaultSchemaOptions> & ISyncLog & Required<{
1426
+ _id: Types.ObjectId;
1427
+ }> & {
1428
+ __v: number;
1429
+ } & {
1430
+ id: string;
1431
+ }, any, ISyncLog>;
218
1432
 
219
1433
  declare enum UserRole {
220
1434
  ADMIN = "admin",
@@ -247,7 +1461,13 @@ interface UserType {
247
1461
  deleted_at?: Date;
248
1462
  deleted_by?: mongoose.Types.ObjectId;
249
1463
  }
250
- declare const _default$2: mongoose.Model<any, {}, {}, {}, any, any>;
1464
+ declare const _default$2: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<UserType, {}, {}, {}, mongoose.Document<unknown, {}, UserType, {}, mongoose.DefaultSchemaOptions> & UserType & {
1465
+ _id: mongoose.Types.ObjectId;
1466
+ } & {
1467
+ __v: number;
1468
+ } & {
1469
+ id: string;
1470
+ }, any, UserType>;
251
1471
 
252
1472
  interface AnnouncementType {
253
1473
  created_by: mongoose.Types.ObjectId;
@@ -260,9 +1480,30 @@ interface AnnouncementType {
260
1480
  text: string;
261
1481
  roles: UserRole[];
262
1482
  }
263
- declare const _default$1: mongoose.Model<any, {}, {}, {}, any, any>;
1483
+ declare const _default$1: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<AnnouncementType, {}, {}, {}, mongoose.Document<unknown, {}, AnnouncementType, {}, mongoose.DefaultSchemaOptions> & AnnouncementType & {
1484
+ _id: mongoose.Types.ObjectId;
1485
+ } & {
1486
+ __v: number;
1487
+ } & {
1488
+ id: string;
1489
+ }, any, AnnouncementType>;
264
1490
 
265
- declare const _default: mongoose.Model<any, {}, {}, {}, any, any>;
1491
+ interface CartItem {
1492
+ article_id: Schema.Types.ObjectId;
1493
+ quantity: number;
1494
+ }
1495
+ interface CartType {
1496
+ customer_id: Schema.Types.ObjectId;
1497
+ items: CartItem[];
1498
+ updated_at?: Date;
1499
+ }
1500
+ declare const _default: mongoose.Model<any, {}, {}, {}, any, any, any> | mongoose.Model<CartType, {}, {}, {}, mongoose.Document<unknown, {}, CartType, {}, mongoose.DefaultSchemaOptions> & CartType & {
1501
+ _id: Types.ObjectId;
1502
+ } & {
1503
+ __v: number;
1504
+ } & {
1505
+ id: string;
1506
+ }, any, CartType>;
266
1507
 
267
1508
  interface RefreshTokenType {
268
1509
  customer_id: Types.ObjectId;