@francesco_ksh/app-ksh-mgd-schemas 1.1.0

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.
Files changed (42) hide show
  1. package/README.md +1 -0
  2. package/index.js +73 -0
  3. package/models/AdminReview.js +31 -0
  4. package/models/Article.js +44 -0
  5. package/models/Brand.js +23 -0
  6. package/models/CSVUpload.js +28 -0
  7. package/models/Carrier.js +114 -0
  8. package/models/CarrierPortalOrder.js +158 -0
  9. package/models/Chat.js +92 -0
  10. package/models/ChatMessages.js +64 -0
  11. package/models/Comment.js +60 -0
  12. package/models/ConsignmentListing.js +89 -0
  13. package/models/Counter.js +15 -0
  14. package/models/CrossListing.js +24 -0
  15. package/models/Discount.js +105 -0
  16. package/models/Error.js +21 -0
  17. package/models/Etsy.js +112 -0
  18. package/models/ExploreCard.js +168 -0
  19. package/models/Feedback.js +30 -0
  20. package/models/Listing.js +414 -0
  21. package/models/MarketplaceUpdates.js +895 -0
  22. package/models/MissingLocations.js +23 -0
  23. package/models/MktModel.js +40 -0
  24. package/models/Notification.js +68 -0
  25. package/models/Offer.js +60 -0
  26. package/models/Order.js +555 -0
  27. package/models/OrderReview.js +75 -0
  28. package/models/Promo.js +56 -0
  29. package/models/RemovedListing.js +21 -0
  30. package/models/ShopifyApi.js +151 -0
  31. package/models/Store.js +519 -0
  32. package/models/Synonyms.js +20 -0
  33. package/models/Test.js +29 -0
  34. package/models/TopPicks.js +15 -0
  35. package/models/User.js +476 -0
  36. package/models/WoocommerceApi.js +81 -0
  37. package/models/XCartApi.js +38 -0
  38. package/package.json +25 -0
  39. package/utils/furnitureCategoryList.js +69 -0
  40. package/utils/getSchemaDefinition.js +650 -0
  41. package/utils/getTaxonomy.js +30 -0
  42. package/utils/schemaTypes.js +44680 -0
@@ -0,0 +1,895 @@
1
+ const mongoose = require('mongoose');
2
+ const Schema = mongoose.Schema;
3
+
4
+ const marketplaceUpdatesSchema = new Schema(
5
+ {
6
+ lastUpdate: {
7
+ type: Date,
8
+ default: Date.now,
9
+ },
10
+
11
+ BA: {
12
+ facebook: {
13
+ listing: {
14
+ type: Boolean,
15
+ default: true,
16
+ },
17
+ email: {
18
+ type: String,
19
+ },
20
+ password: {
21
+ type: String,
22
+ },
23
+ },
24
+ craigslist: {
25
+ listing: {
26
+ type: Boolean,
27
+ default: true,
28
+ },
29
+ email: {
30
+ type: String,
31
+ },
32
+ password: {
33
+ type: String,
34
+ },
35
+ },
36
+ craigslistFree: {
37
+ listing: {
38
+ type: Boolean,
39
+ default: true,
40
+ },
41
+ email: {
42
+ type: String,
43
+ },
44
+ password: {
45
+ type: String,
46
+ },
47
+ },
48
+ nextdoor: {
49
+ listing: {
50
+ type: Boolean,
51
+ default: true,
52
+ },
53
+ email: {
54
+ type: String,
55
+ },
56
+ password: {
57
+ type: String,
58
+ },
59
+ },
60
+ pintrest: {
61
+ listing: {
62
+ type: Boolean,
63
+ default: true,
64
+ },
65
+ email: {
66
+ type: String,
67
+ },
68
+ password: {
69
+ type: String,
70
+ },
71
+ },
72
+ google: {
73
+ listing: {
74
+ type: Boolean,
75
+ default: true,
76
+ },
77
+ email: {
78
+ type: String,
79
+ },
80
+ password: {
81
+ type: String,
82
+ },
83
+ },
84
+ },
85
+
86
+ PHO: {
87
+ facebook: {
88
+ listing: {
89
+ type: Boolean,
90
+ default: true,
91
+ },
92
+ email: {
93
+ type: String,
94
+ },
95
+ password: {
96
+ type: String,
97
+ },
98
+ },
99
+ craigslist: {
100
+ listing: {
101
+ type: Boolean,
102
+ default: true,
103
+ },
104
+ email: {
105
+ type: String,
106
+ },
107
+ password: {
108
+ type: String,
109
+ },
110
+ },
111
+ craigslistFree: {
112
+ listing: {
113
+ type: Boolean,
114
+ default: true,
115
+ },
116
+ email: {
117
+ type: String,
118
+ },
119
+ password: {
120
+ type: String,
121
+ },
122
+ },
123
+ nextdoor: {
124
+ listing: {
125
+ type: Boolean,
126
+ default: true,
127
+ },
128
+ email: {
129
+ type: String,
130
+ },
131
+ password: {
132
+ type: String,
133
+ },
134
+ },
135
+ pintrest: {
136
+ listing: {
137
+ type: Boolean,
138
+ default: true,
139
+ },
140
+ email: {
141
+ type: String,
142
+ },
143
+ password: {
144
+ type: String,
145
+ },
146
+ },
147
+ google: {
148
+ listing: {
149
+ type: Boolean,
150
+ default: true,
151
+ },
152
+ email: {
153
+ type: String,
154
+ },
155
+ password: {
156
+ type: String,
157
+ },
158
+ },
159
+ },
160
+
161
+ MIA: {
162
+ facebook: {
163
+ listing: {
164
+ type: Boolean,
165
+ default: true,
166
+ },
167
+ email: {
168
+ type: String,
169
+ },
170
+ password: {
171
+ type: String,
172
+ },
173
+ },
174
+ craigslist: {
175
+ listing: {
176
+ type: Boolean,
177
+ default: true,
178
+ },
179
+ email: {
180
+ type: String,
181
+ },
182
+ password: {
183
+ type: String,
184
+ },
185
+ },
186
+ craigslistFree: {
187
+ listing: {
188
+ type: Boolean,
189
+ default: true,
190
+ },
191
+ email: {
192
+ type: String,
193
+ },
194
+ password: {
195
+ type: String,
196
+ },
197
+ },
198
+ nextdoor: {
199
+ listing: {
200
+ type: Boolean,
201
+ default: true,
202
+ },
203
+ email: {
204
+ type: String,
205
+ },
206
+ password: {
207
+ type: String,
208
+ },
209
+ },
210
+ pintrest: {
211
+ listing: {
212
+ type: Boolean,
213
+ default: true,
214
+ },
215
+ email: {
216
+ type: String,
217
+ },
218
+ password: {
219
+ type: String,
220
+ },
221
+ },
222
+ google: {
223
+ listing: {
224
+ type: Boolean,
225
+ default: true,
226
+ },
227
+ email: {
228
+ type: String,
229
+ },
230
+ password: {
231
+ type: String,
232
+ },
233
+ },
234
+ },
235
+ HOU: {
236
+ facebook: {
237
+ listing: {
238
+ type: Boolean,
239
+ default: true,
240
+ },
241
+ email: {
242
+ type: String,
243
+ },
244
+ password: {
245
+ type: String,
246
+ },
247
+ },
248
+ craigslist: {
249
+ listing: {
250
+ type: Boolean,
251
+ default: true,
252
+ },
253
+ email: {
254
+ type: String,
255
+ },
256
+ password: {
257
+ type: String,
258
+ },
259
+ },
260
+ craigslistFree: {
261
+ listing: {
262
+ type: Boolean,
263
+ default: true,
264
+ },
265
+ email: {
266
+ type: String,
267
+ },
268
+ password: {
269
+ type: String,
270
+ },
271
+ },
272
+ nextdoor: {
273
+ listing: {
274
+ type: Boolean,
275
+ default: true,
276
+ },
277
+ email: {
278
+ type: String,
279
+ },
280
+ password: {
281
+ type: String,
282
+ },
283
+ },
284
+ pintrest: {
285
+ listing: {
286
+ type: Boolean,
287
+ default: true,
288
+ },
289
+ email: {
290
+ type: String,
291
+ },
292
+ password: {
293
+ type: String,
294
+ },
295
+ },
296
+ google: {
297
+ listing: {
298
+ type: Boolean,
299
+ default: true,
300
+ },
301
+ email: {
302
+ type: String,
303
+ },
304
+ password: {
305
+ type: String,
306
+ },
307
+ },
308
+ },
309
+ NY: {
310
+ facebook: {
311
+ listing: {
312
+ type: Boolean,
313
+ default: true,
314
+ },
315
+ email: {
316
+ type: String,
317
+ },
318
+ password: {
319
+ type: String,
320
+ },
321
+ },
322
+ craigslist: {
323
+ listing: {
324
+ type: Boolean,
325
+ default: true,
326
+ },
327
+ email: {
328
+ type: String,
329
+ },
330
+ password: {
331
+ type: String,
332
+ },
333
+ },
334
+ craigslistFree: {
335
+ listing: {
336
+ type: Boolean,
337
+ default: true,
338
+ },
339
+ email: {
340
+ type: String,
341
+ },
342
+ password: {
343
+ type: String,
344
+ },
345
+ },
346
+ nextdoor: {
347
+ listing: {
348
+ type: Boolean,
349
+ default: true,
350
+ },
351
+ email: {
352
+ type: String,
353
+ },
354
+ password: {
355
+ type: String,
356
+ },
357
+ },
358
+ pintrest: {
359
+ listing: {
360
+ type: Boolean,
361
+ default: true,
362
+ },
363
+ email: {
364
+ type: String,
365
+ },
366
+ password: {
367
+ type: String,
368
+ },
369
+ },
370
+ google: {
371
+ listing: {
372
+ type: Boolean,
373
+ default: true,
374
+ },
375
+ email: {
376
+ type: String,
377
+ },
378
+ password: {
379
+ type: String,
380
+ },
381
+ },
382
+ },
383
+ CHI: {
384
+ facebook: {
385
+ listing: {
386
+ type: Boolean,
387
+ default: true,
388
+ },
389
+ email: {
390
+ type: String,
391
+ },
392
+ password: {
393
+ type: String,
394
+ },
395
+ },
396
+ craigslist: {
397
+ listing: {
398
+ type: Boolean,
399
+ default: true,
400
+ },
401
+ email: {
402
+ type: String,
403
+ },
404
+ password: {
405
+ type: String,
406
+ },
407
+ },
408
+ craigslistFree: {
409
+ listing: {
410
+ type: Boolean,
411
+ default: true,
412
+ },
413
+ email: {
414
+ type: String,
415
+ },
416
+ password: {
417
+ type: String,
418
+ },
419
+ },
420
+ nextdoor: {
421
+ listing: {
422
+ type: Boolean,
423
+ default: true,
424
+ },
425
+ email: {
426
+ type: String,
427
+ },
428
+ password: {
429
+ type: String,
430
+ },
431
+ },
432
+ pintrest: {
433
+ listing: {
434
+ type: Boolean,
435
+ default: true,
436
+ },
437
+ email: {
438
+ type: String,
439
+ },
440
+ password: {
441
+ type: String,
442
+ },
443
+ },
444
+ google: {
445
+ listing: {
446
+ type: Boolean,
447
+ default: true,
448
+ },
449
+ email: {
450
+ type: String,
451
+ },
452
+ password: {
453
+ type: String,
454
+ },
455
+ },
456
+ },
457
+
458
+ PDX: {
459
+ facebook: {
460
+ listing: {
461
+ type: Boolean,
462
+ default: true,
463
+ },
464
+ email: {
465
+ type: String,
466
+ default: '',
467
+ },
468
+ password: {
469
+ type: String,
470
+ default: '',
471
+ },
472
+ },
473
+ craigslist: {
474
+ listing: {
475
+ type: Boolean,
476
+ default: true,
477
+ },
478
+ email: {
479
+ type: String,
480
+ default: '',
481
+ },
482
+ password: {
483
+ type: String,
484
+ default: '',
485
+ },
486
+ },
487
+ nextdoor: {
488
+ listing: {
489
+ type: Boolean,
490
+ default: true,
491
+ },
492
+ email: {
493
+ type: String,
494
+ default: '',
495
+ },
496
+ password: {
497
+ type: String,
498
+ default: '',
499
+ },
500
+ },
501
+ pintrest: {
502
+ listing: {
503
+ type: Boolean,
504
+ default: true,
505
+ },
506
+ email: {
507
+ type: String,
508
+ default: '',
509
+ },
510
+ password: {
511
+ type: String,
512
+ default: '',
513
+ },
514
+ },
515
+ google: {
516
+ listing: {
517
+ type: Boolean,
518
+ default: true,
519
+ },
520
+ email: {
521
+ type: String,
522
+ default: '',
523
+ },
524
+ password: {
525
+ type: String,
526
+ default: '',
527
+ },
528
+ },
529
+ },
530
+ DTX: {
531
+ facebook: {
532
+ listing: {
533
+ type: Boolean,
534
+ default: true,
535
+ },
536
+ email: {
537
+ type: String,
538
+ default: '',
539
+ },
540
+ password: {
541
+ type: String,
542
+ default: '',
543
+ },
544
+ },
545
+ craigslist: {
546
+ listing: {
547
+ type: Boolean,
548
+ default: true,
549
+ },
550
+ email: {
551
+ type: String,
552
+ default: '',
553
+ },
554
+ password: {
555
+ type: String,
556
+ default: '',
557
+ },
558
+ },
559
+ nextdoor: {
560
+ listing: {
561
+ type: Boolean,
562
+ default: true,
563
+ },
564
+ email: {
565
+ type: String,
566
+ default: '',
567
+ },
568
+ password: {
569
+ type: String,
570
+ default: '',
571
+ },
572
+ },
573
+ pintrest: {
574
+ listing: {
575
+ type: Boolean,
576
+ default: true,
577
+ },
578
+ email: {
579
+ type: String,
580
+ default: '',
581
+ },
582
+ password: {
583
+ type: String,
584
+ default: '',
585
+ },
586
+ },
587
+ google: {
588
+ listing: {
589
+ type: Boolean,
590
+ default: true,
591
+ },
592
+ email: {
593
+ type: String,
594
+ default: '',
595
+ },
596
+ password: {
597
+ type: String,
598
+ default: '',
599
+ },
600
+ },
601
+ },
602
+ ATL: {
603
+ facebook: {
604
+ listing: {
605
+ type: Boolean,
606
+ default: true,
607
+ },
608
+ email: {
609
+ type: String,
610
+ default: '',
611
+ },
612
+ password: {
613
+ type: String,
614
+ default: '',
615
+ },
616
+ },
617
+ craigslist: {
618
+ listing: {
619
+ type: Boolean,
620
+ default: true,
621
+ },
622
+ email: {
623
+ type: String,
624
+ default: '',
625
+ },
626
+ password: {
627
+ type: String,
628
+ default: '',
629
+ },
630
+ },
631
+ nextdoor: {
632
+ listing: {
633
+ type: Boolean,
634
+ default: true,
635
+ },
636
+ email: {
637
+ type: String,
638
+ default: '',
639
+ },
640
+ password: {
641
+ type: String,
642
+ default: '',
643
+ },
644
+ },
645
+ pintrest: {
646
+ listing: {
647
+ type: Boolean,
648
+ default: true,
649
+ },
650
+ email: {
651
+ type: String,
652
+ default: '',
653
+ },
654
+ password: {
655
+ type: String,
656
+ default: '',
657
+ },
658
+ },
659
+ google: {
660
+ listing: {
661
+ type: Boolean,
662
+ default: true,
663
+ },
664
+ email: {
665
+ type: String,
666
+ default: '',
667
+ },
668
+ password: {
669
+ type: String,
670
+ default: '',
671
+ },
672
+ },
673
+ },
674
+ LA: {
675
+ facebook: {
676
+ listing: {
677
+ type: Boolean,
678
+ default: true,
679
+ },
680
+ email: {
681
+ type: String,
682
+ default: '',
683
+ },
684
+ password: {
685
+ type: String,
686
+ default: '',
687
+ },
688
+ },
689
+ craigslist: {
690
+ listing: {
691
+ type: Boolean,
692
+ default: true,
693
+ },
694
+ email: {
695
+ type: String,
696
+ default: '',
697
+ },
698
+ password: {
699
+ type: String,
700
+ default: '',
701
+ },
702
+ },
703
+ nextdoor: {
704
+ listing: {
705
+ type: Boolean,
706
+ default: true,
707
+ },
708
+ email: {
709
+ type: String,
710
+ default: '',
711
+ },
712
+ password: {
713
+ type: String,
714
+ default: '',
715
+ },
716
+ },
717
+ pintrest: {
718
+ listing: {
719
+ type: Boolean,
720
+ default: true,
721
+ },
722
+ email: {
723
+ type: String,
724
+ default: '',
725
+ },
726
+ password: {
727
+ type: String,
728
+ default: '',
729
+ },
730
+ },
731
+ google: {
732
+ listing: {
733
+ type: Boolean,
734
+ default: true,
735
+ },
736
+ email: {
737
+ type: String,
738
+ default: '',
739
+ },
740
+ password: {
741
+ type: String,
742
+ default: '',
743
+ },
744
+ },
745
+ },
746
+ PHL: {
747
+ facebook: {
748
+ listing: {
749
+ type: Boolean,
750
+ default: true,
751
+ },
752
+ email: {
753
+ type: String,
754
+ default: '',
755
+ },
756
+ password: {
757
+ type: String,
758
+ default: '',
759
+ },
760
+ },
761
+ craigslist: {
762
+ listing: {
763
+ type: Boolean,
764
+ default: true,
765
+ },
766
+ email: {
767
+ type: String,
768
+ default: '',
769
+ },
770
+ password: {
771
+ type: String,
772
+ default: '',
773
+ },
774
+ },
775
+ nextdoor: {
776
+ listing: {
777
+ type: Boolean,
778
+ default: true,
779
+ },
780
+ email: {
781
+ type: String,
782
+ default: '',
783
+ },
784
+ password: {
785
+ type: String,
786
+ default: '',
787
+ },
788
+ },
789
+ pintrest: {
790
+ listing: {
791
+ type: Boolean,
792
+ default: true,
793
+ },
794
+ email: {
795
+ type: String,
796
+ default: '',
797
+ },
798
+ password: {
799
+ type: String,
800
+ default: '',
801
+ },
802
+ },
803
+ google: {
804
+ listing: {
805
+ type: Boolean,
806
+ default: true,
807
+ },
808
+ email: {
809
+ type: String,
810
+ default: '',
811
+ },
812
+ password: {
813
+ type: String,
814
+ default: '',
815
+ },
816
+ },
817
+ },
818
+
819
+ FM: {
820
+ facebook: {
821
+ listing: {
822
+ type: Boolean,
823
+ default: true,
824
+ },
825
+ email: {
826
+ type: String,
827
+ default: '',
828
+ },
829
+ password: {
830
+ type: String,
831
+ default: '',
832
+ },
833
+ },
834
+ craigslist: {
835
+ listing: {
836
+ type: Boolean,
837
+ default: true,
838
+ },
839
+ email: {
840
+ type: String,
841
+ default: '',
842
+ },
843
+ password: {
844
+ type: String,
845
+ default: '',
846
+ },
847
+ },
848
+ nextdoor: {
849
+ listing: {
850
+ type: Boolean,
851
+ default: true,
852
+ },
853
+ email: {
854
+ type: String,
855
+ default: '',
856
+ },
857
+ password: {
858
+ type: String,
859
+ default: '',
860
+ },
861
+ },
862
+ pintrest: {
863
+ listing: {
864
+ type: Boolean,
865
+ default: true,
866
+ },
867
+ email: {
868
+ type: String,
869
+ default: '',
870
+ },
871
+ password: {
872
+ type: String,
873
+ default: '',
874
+ },
875
+ },
876
+ google: {
877
+ listing: {
878
+ type: Boolean,
879
+ default: true,
880
+ },
881
+ email: {
882
+ type: String,
883
+ default: '',
884
+ },
885
+ password: {
886
+ type: String,
887
+ default: '',
888
+ },
889
+ },
890
+ },
891
+ },
892
+ { supressReservedKeysWarning: true }
893
+ );
894
+
895
+ module.exports = marketplaceUpdatesSchema;