@francesco_ksh/app-ksh-mgd-schemas 1.2.6 → 1.2.8
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/models/AdminReview.js +25 -22
- package/models/Article.js +36 -33
- package/models/Brand.js +17 -14
- package/models/CSVUpload.js +22 -19
- package/models/Carrier.js +98 -95
- package/models/CarrierPortalOrder.js +120 -117
- package/models/Chat.js +73 -70
- package/models/ChatMessages.js +46 -43
- package/models/Comment.js +50 -47
- package/models/ConsignmentListing.js +66 -63
- package/models/Error.js +15 -12
- package/models/Etsy.js +86 -83
- package/models/Feedback.js +24 -21
- package/models/Listing.js +1879 -1874
- package/models/MarketplaceUpdates.js +874 -871
- package/models/MissingLocations.js +17 -14
- package/models/MktModel.js +29 -26
- package/models/Notification.js +58 -55
- package/models/Offer.js +52 -49
- package/models/Order.js +287 -284
- package/models/OrderReview.js +54 -51
- package/models/Promo.js +45 -42
- package/models/RemovedListing.js +15 -12
- package/models/ShopifyApi.js +114 -109
- package/models/Store.js +431 -428
- package/models/Synonyms.js +14 -11
- package/models/Test.js +11 -8
- package/models/TopPicks.js +9 -6
- package/models/User.js +348 -345
- package/models/WoocommerceApi.js +68 -63
- package/models/XCartApi.js +32 -29
- package/package.json +1 -1
package/models/AdminReview.js
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
const Schema = mongoose.Schema;
|
|
3
3
|
|
|
4
|
-
const adminReviewSchema = new Schema(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const adminReviewSchema = new Schema(
|
|
5
|
+
{
|
|
6
|
+
authorName: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
authorDescription: {
|
|
11
|
+
type: String,
|
|
12
|
+
},
|
|
13
|
+
authorReview: {
|
|
14
|
+
type: String,
|
|
15
|
+
},
|
|
16
|
+
picture: {
|
|
17
|
+
type: String,
|
|
18
|
+
},
|
|
19
|
+
rating: {
|
|
20
|
+
type: Number,
|
|
21
|
+
required: true,
|
|
22
|
+
},
|
|
23
|
+
date: {
|
|
24
|
+
type: Date,
|
|
25
|
+
default: Date.now,
|
|
26
|
+
},
|
|
8
27
|
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
authorReview: {
|
|
13
|
-
type: String,
|
|
14
|
-
},
|
|
15
|
-
picture: {
|
|
16
|
-
type: String,
|
|
17
|
-
},
|
|
18
|
-
rating: {
|
|
19
|
-
type: Number,
|
|
20
|
-
required: true,
|
|
21
|
-
},
|
|
22
|
-
date: {
|
|
23
|
-
type: Date,
|
|
24
|
-
default: Date.now,
|
|
25
|
-
},
|
|
26
|
-
});
|
|
28
|
+
{ supressReservedKeysWarning: true }
|
|
29
|
+
);
|
|
27
30
|
|
|
28
31
|
module.exports = adminReviewSchema;
|
package/models/Article.js
CHANGED
|
@@ -1,38 +1,41 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
const Schema = mongoose.Schema;
|
|
3
3
|
|
|
4
|
-
const articlesSchema = new Schema(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
4
|
+
const articlesSchema = new Schema(
|
|
5
|
+
{
|
|
6
|
+
title: {
|
|
7
|
+
type: String,
|
|
8
|
+
},
|
|
9
|
+
picture: {
|
|
10
|
+
type: String,
|
|
11
|
+
},
|
|
12
|
+
content: {
|
|
13
|
+
type: Array,
|
|
14
|
+
},
|
|
15
|
+
author: {
|
|
16
|
+
type: Schema.Types.ObjectId,
|
|
17
|
+
ref: 'User',
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
tags: {
|
|
21
|
+
type: Array,
|
|
22
|
+
},
|
|
23
|
+
teaser: {
|
|
24
|
+
type: String,
|
|
25
|
+
},
|
|
26
|
+
views: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 20,
|
|
29
|
+
},
|
|
30
|
+
date: {
|
|
31
|
+
type: Date,
|
|
32
|
+
default: Date.now,
|
|
33
|
+
},
|
|
34
|
+
sellerId: {
|
|
35
|
+
type: String,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{ supressReservedKeysWarning: true }
|
|
39
|
+
);
|
|
37
40
|
|
|
38
41
|
module.exports = articlesSchema;
|
package/models/Brand.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
const Schema = mongoose.Schema;
|
|
3
3
|
|
|
4
|
-
const brandSchema = new Schema(
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const brandSchema = new Schema(
|
|
5
|
+
{
|
|
6
|
+
brand: {
|
|
7
|
+
type: String,
|
|
8
|
+
},
|
|
9
|
+
link: {
|
|
10
|
+
type: String,
|
|
11
|
+
},
|
|
12
|
+
ranking: {
|
|
13
|
+
type: Number,
|
|
14
|
+
default: 0,
|
|
15
|
+
},
|
|
16
|
+
clones: {
|
|
17
|
+
type: Array,
|
|
18
|
+
},
|
|
7
19
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
ranking: {
|
|
12
|
-
type: Number,
|
|
13
|
-
default: 0,
|
|
14
|
-
},
|
|
15
|
-
clones: {
|
|
16
|
-
type: Array,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
20
|
+
{ supressReservedKeysWarning: true }
|
|
21
|
+
);
|
|
19
22
|
|
|
20
23
|
module.exports = brandSchema;
|
package/models/CSVUpload.js
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
const Schema = mongoose.Schema;
|
|
3
3
|
|
|
4
|
-
const CSVUploadSchema = new Schema(
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const CSVUploadSchema = new Schema(
|
|
5
|
+
{
|
|
6
|
+
data: {
|
|
7
|
+
type: Array,
|
|
8
|
+
},
|
|
9
|
+
user: {
|
|
10
|
+
type: Schema.Types.ObjectId,
|
|
11
|
+
ref: 'User',
|
|
12
|
+
},
|
|
13
|
+
storeId: {
|
|
14
|
+
type: Schema.Types.ObjectId,
|
|
15
|
+
ref: 'Store',
|
|
16
|
+
},
|
|
17
|
+
fileName: {
|
|
18
|
+
type: String,
|
|
19
|
+
},
|
|
20
|
+
date: {
|
|
21
|
+
type: Date,
|
|
22
|
+
default: Date.now,
|
|
23
|
+
},
|
|
7
24
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
ref: 'User',
|
|
11
|
-
},
|
|
12
|
-
storeId: {
|
|
13
|
-
type: Schema.Types.ObjectId,
|
|
14
|
-
ref: 'Store',
|
|
15
|
-
},
|
|
16
|
-
fileName: {
|
|
17
|
-
type: String,
|
|
18
|
-
},
|
|
19
|
-
date: {
|
|
20
|
-
type: Date,
|
|
21
|
-
default: Date.now,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
25
|
+
{ supressReservedKeysWarning: true }
|
|
26
|
+
);
|
|
24
27
|
|
|
25
28
|
module.exports = CSVUploadSchema;
|
package/models/Carrier.js
CHANGED
|
@@ -1,111 +1,114 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
const Schema = mongoose.Schema;
|
|
3
3
|
|
|
4
|
-
const carrierSchema = new Schema(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
email: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: true,
|
|
12
|
-
// unique: true,
|
|
13
|
-
},
|
|
14
|
-
phone: {
|
|
15
|
-
type: String,
|
|
16
|
-
},
|
|
17
|
-
company: {
|
|
18
|
-
type: String,
|
|
19
|
-
},
|
|
20
|
-
picture: {
|
|
21
|
-
type: String,
|
|
22
|
-
},
|
|
23
|
-
driversLicenseBack: {
|
|
24
|
-
type: String,
|
|
25
|
-
},
|
|
26
|
-
driversLicenseFront: {
|
|
27
|
-
type: String,
|
|
28
|
-
},
|
|
29
|
-
headShot: {
|
|
30
|
-
type: String,
|
|
31
|
-
},
|
|
32
|
-
password: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: true,
|
|
35
|
-
},
|
|
36
|
-
isAdmin: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: false,
|
|
39
|
-
},
|
|
40
|
-
accountBalance: {
|
|
41
|
-
type: Number,
|
|
42
|
-
default: 0,
|
|
43
|
-
},
|
|
44
|
-
notifications: [
|
|
45
|
-
{
|
|
46
|
-
type: Schema.Types.ObjectId,
|
|
47
|
-
ref: 'Notification',
|
|
4
|
+
const carrierSchema = new Schema(
|
|
5
|
+
{
|
|
6
|
+
name: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
48
9
|
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
10
|
+
email: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
// unique: true,
|
|
14
|
+
},
|
|
15
|
+
phone: {
|
|
16
|
+
type: String,
|
|
17
|
+
},
|
|
18
|
+
company: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
picture: {
|
|
22
|
+
type: String,
|
|
23
|
+
},
|
|
24
|
+
driversLicenseBack: {
|
|
25
|
+
type: String,
|
|
26
|
+
},
|
|
27
|
+
driversLicenseFront: {
|
|
28
|
+
type: String,
|
|
29
|
+
},
|
|
30
|
+
headShot: {
|
|
31
|
+
type: String,
|
|
32
|
+
},
|
|
33
|
+
password: {
|
|
34
|
+
type: String,
|
|
35
|
+
required: true,
|
|
36
|
+
},
|
|
37
|
+
isAdmin: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false,
|
|
40
|
+
},
|
|
41
|
+
accountBalance: {
|
|
42
|
+
type: Number,
|
|
43
|
+
default: 0,
|
|
44
|
+
},
|
|
45
|
+
notifications: [
|
|
46
|
+
{
|
|
56
47
|
type: Schema.Types.ObjectId,
|
|
57
|
-
ref: '
|
|
58
|
-
},
|
|
59
|
-
amount: {
|
|
60
|
-
type: 'Number',
|
|
48
|
+
ref: 'Notification',
|
|
61
49
|
},
|
|
62
|
-
|
|
63
|
-
|
|
50
|
+
],
|
|
51
|
+
balances: [
|
|
52
|
+
{
|
|
53
|
+
type: {
|
|
54
|
+
type: String,
|
|
55
|
+
},
|
|
56
|
+
order: {
|
|
57
|
+
type: Schema.Types.ObjectId,
|
|
58
|
+
ref: 'Order',
|
|
59
|
+
},
|
|
60
|
+
amount: {
|
|
61
|
+
type: 'Number',
|
|
62
|
+
},
|
|
63
|
+
balance: {
|
|
64
|
+
type: 'Number',
|
|
65
|
+
},
|
|
66
|
+
date: {
|
|
67
|
+
type: Date,
|
|
68
|
+
default: Date.now,
|
|
69
|
+
},
|
|
64
70
|
},
|
|
65
|
-
|
|
66
|
-
type: Date,
|
|
67
|
-
default: Date.now,
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
+
],
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
payoutAccounts: {
|
|
74
|
+
venmo: {
|
|
75
|
+
venmoHandle: {
|
|
76
|
+
type: String,
|
|
77
|
+
},
|
|
78
|
+
venmoPhone: {
|
|
79
|
+
type: String,
|
|
80
|
+
},
|
|
76
81
|
},
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
payPal: {
|
|
83
|
+
paypalHandle: {
|
|
84
|
+
type: String,
|
|
85
|
+
},
|
|
86
|
+
paypalUserName: {
|
|
87
|
+
type: String,
|
|
88
|
+
},
|
|
79
89
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
90
|
+
bankTransfer: {
|
|
91
|
+
fullName: {
|
|
92
|
+
type: String,
|
|
93
|
+
},
|
|
94
|
+
accountNumber: {
|
|
95
|
+
type: String,
|
|
96
|
+
},
|
|
97
|
+
routingNumber: {
|
|
98
|
+
type: String,
|
|
99
|
+
},
|
|
87
100
|
},
|
|
88
101
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
routingNumber: {
|
|
97
|
-
type: String,
|
|
98
|
-
},
|
|
102
|
+
date: {
|
|
103
|
+
type: Date,
|
|
104
|
+
default: Date.now,
|
|
105
|
+
},
|
|
106
|
+
lastLogin: {
|
|
107
|
+
type: Date,
|
|
108
|
+
default: Date.now,
|
|
99
109
|
},
|
|
100
110
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
default: Date.now,
|
|
104
|
-
},
|
|
105
|
-
lastLogin: {
|
|
106
|
-
type: Date,
|
|
107
|
-
default: Date.now,
|
|
108
|
-
},
|
|
109
|
-
});
|
|
111
|
+
{ supressReservedKeysWarning: true }
|
|
112
|
+
);
|
|
110
113
|
|
|
111
114
|
module.exports = carrierSchema;
|
|
@@ -1,129 +1,89 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
const Schema = mongoose.Schema;
|
|
3
3
|
const moment = require('moment');
|
|
4
|
-
const carrierPortalOrderSchema = new Schema(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
ref: 'User',
|
|
8
|
-
},
|
|
9
|
-
seller: {
|
|
10
|
-
type: Schema.Types.ObjectId,
|
|
11
|
-
ref: 'User',
|
|
12
|
-
},
|
|
13
|
-
carrier: {
|
|
14
|
-
price: {
|
|
15
|
-
type: Number,
|
|
16
|
-
},
|
|
17
|
-
accepted: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false,
|
|
20
|
-
},
|
|
21
|
-
carrier: {
|
|
4
|
+
const carrierPortalOrderSchema = new Schema(
|
|
5
|
+
{
|
|
6
|
+
buyer: {
|
|
22
7
|
type: Schema.Types.ObjectId,
|
|
23
|
-
ref: '
|
|
24
|
-
},
|
|
25
|
-
dropOffDate: {
|
|
26
|
-
type: Date,
|
|
8
|
+
ref: 'User',
|
|
27
9
|
},
|
|
28
|
-
|
|
29
|
-
type:
|
|
30
|
-
|
|
31
|
-
dropOffPictures: {
|
|
32
|
-
type: Array,
|
|
10
|
+
seller: {
|
|
11
|
+
type: Schema.Types.ObjectId,
|
|
12
|
+
ref: 'User',
|
|
33
13
|
},
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
|
|
37
|
-
type: String,
|
|
38
|
-
},
|
|
39
|
-
date: {
|
|
40
|
-
type: Date,
|
|
41
|
-
},
|
|
42
|
-
sender: {
|
|
43
|
-
type: Schema.Types.ObjectId,
|
|
44
|
-
ref: 'Carrier',
|
|
45
|
-
},
|
|
14
|
+
carrier: {
|
|
15
|
+
price: {
|
|
16
|
+
type: Number,
|
|
46
17
|
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
listings: [
|
|
55
|
-
{
|
|
56
|
-
listing: {
|
|
18
|
+
accepted: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: false,
|
|
21
|
+
},
|
|
22
|
+
carrier: {
|
|
57
23
|
type: Schema.Types.ObjectId,
|
|
58
|
-
ref: '
|
|
24
|
+
ref: 'Carrier',
|
|
59
25
|
},
|
|
60
|
-
|
|
61
|
-
type:
|
|
26
|
+
dropOffDate: {
|
|
27
|
+
type: Date,
|
|
62
28
|
},
|
|
63
|
-
|
|
64
|
-
type:
|
|
29
|
+
pickupPictures: {
|
|
30
|
+
type: Array,
|
|
65
31
|
},
|
|
66
|
-
|
|
67
|
-
type:
|
|
32
|
+
dropOffPictures: {
|
|
33
|
+
type: Array,
|
|
68
34
|
},
|
|
35
|
+
questions: [
|
|
36
|
+
{
|
|
37
|
+
question: {
|
|
38
|
+
type: String,
|
|
39
|
+
},
|
|
40
|
+
date: {
|
|
41
|
+
type: Date,
|
|
42
|
+
},
|
|
43
|
+
sender: {
|
|
44
|
+
type: Schema.Types.ObjectId,
|
|
45
|
+
ref: 'Carrier',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
],
|
|
69
49
|
},
|
|
70
|
-
],
|
|
71
|
-
type: {
|
|
72
|
-
type: String,
|
|
73
|
-
},
|
|
74
|
-
deliveryType: {
|
|
75
|
-
type: String,
|
|
76
|
-
},
|
|
77
50
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
delivery: {
|
|
82
|
-
carrier: {
|
|
83
|
-
name: {
|
|
84
|
-
type: String,
|
|
85
|
-
},
|
|
86
|
-
phone: {
|
|
87
|
-
type: String,
|
|
88
|
-
},
|
|
89
|
-
email: {
|
|
90
|
-
type: String,
|
|
91
|
-
},
|
|
51
|
+
approved: {
|
|
52
|
+
type: Boolean,
|
|
92
53
|
},
|
|
93
|
-
|
|
54
|
+
|
|
55
|
+
listings: [
|
|
56
|
+
{
|
|
57
|
+
listing: {
|
|
58
|
+
type: Schema.Types.ObjectId,
|
|
59
|
+
ref: 'Listing',
|
|
60
|
+
},
|
|
61
|
+
quantity: {
|
|
62
|
+
type: Number,
|
|
63
|
+
},
|
|
64
|
+
listingPrice: {
|
|
65
|
+
type: Number,
|
|
66
|
+
},
|
|
67
|
+
carrierNotes: {
|
|
68
|
+
type: String,
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
type: {
|
|
94
73
|
type: String,
|
|
95
74
|
},
|
|
96
|
-
|
|
75
|
+
deliveryType: {
|
|
97
76
|
type: String,
|
|
98
77
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
price: {
|
|
103
|
-
type: Number,
|
|
104
|
-
},
|
|
105
|
-
storeDelivers: {
|
|
106
|
-
type: Boolean,
|
|
107
|
-
},
|
|
108
|
-
storeDeliveryCost: {
|
|
109
|
-
type: Number,
|
|
110
|
-
},
|
|
111
|
-
productSKUs: {
|
|
78
|
+
|
|
79
|
+
status: {
|
|
112
80
|
type: String,
|
|
113
81
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
location: {
|
|
120
|
-
type: Object,
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
elevator: {
|
|
124
|
-
type: Boolean,
|
|
125
|
-
},
|
|
126
|
-
contact: {
|
|
82
|
+
delivery: {
|
|
83
|
+
carrier: {
|
|
84
|
+
name: {
|
|
85
|
+
type: String,
|
|
86
|
+
},
|
|
127
87
|
phone: {
|
|
128
88
|
type: String,
|
|
129
89
|
},
|
|
@@ -131,25 +91,68 @@ const carrierPortalOrderSchema = new Schema({
|
|
|
131
91
|
type: String,
|
|
132
92
|
},
|
|
133
93
|
},
|
|
134
|
-
|
|
94
|
+
trackingLink: {
|
|
135
95
|
type: String,
|
|
136
96
|
},
|
|
137
|
-
|
|
97
|
+
bolLink: {
|
|
138
98
|
type: String,
|
|
139
99
|
},
|
|
140
|
-
|
|
100
|
+
durationEstimate: {
|
|
141
101
|
type: Object,
|
|
142
102
|
},
|
|
103
|
+
price: {
|
|
104
|
+
type: Number,
|
|
105
|
+
},
|
|
106
|
+
storeDelivers: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
},
|
|
109
|
+
storeDeliveryCost: {
|
|
110
|
+
type: Number,
|
|
111
|
+
},
|
|
112
|
+
productSKUs: {
|
|
113
|
+
type: String,
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
buyer: {
|
|
117
|
+
address: {
|
|
118
|
+
type: Object,
|
|
119
|
+
},
|
|
120
|
+
location: {
|
|
121
|
+
type: Object,
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
elevator: {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
},
|
|
127
|
+
contact: {
|
|
128
|
+
phone: {
|
|
129
|
+
type: String,
|
|
130
|
+
},
|
|
131
|
+
email: {
|
|
132
|
+
type: String,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
flights: {
|
|
136
|
+
type: String,
|
|
137
|
+
},
|
|
138
|
+
otherInfo: {
|
|
139
|
+
type: String,
|
|
140
|
+
},
|
|
141
|
+
coordinates: {
|
|
142
|
+
type: Object,
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
date: {
|
|
147
|
+
type: Date,
|
|
148
|
+
default: Date.now,
|
|
149
|
+
},
|
|
150
|
+
expirationDate: {
|
|
151
|
+
type: Date,
|
|
152
|
+
default: moment().add(3, 'days'),
|
|
143
153
|
},
|
|
144
154
|
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
default: Date.now,
|
|
148
|
-
},
|
|
149
|
-
expirationDate: {
|
|
150
|
-
type: Date,
|
|
151
|
-
default: moment().add(3, 'days'),
|
|
152
|
-
},
|
|
153
|
-
});
|
|
155
|
+
{ supressReservedKeysWarning: true }
|
|
156
|
+
);
|
|
154
157
|
|
|
155
158
|
module.exports = carrierPortalOrderSchema;
|